Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: CicpParamsMeta

[274:14] static extends: object

Generated metadata helpers for CicpParams class surfaces.

Methods

  • properties ()

    Returns property metadata for CicpParams.

    • @r A list.

class: CicpParams

[25:7] extends: object

Contains the parameters that define a colorstate with cicp parameters. Cicp parameters are specified in the ITU-T H.273 specification. See the documentation of individual properties for supported values. The 'unspecified' value (2) is not treated in any special way, and must be replaced by a different value before creating a color state. GdkCicpParams can be used as a builder object to construct a color state from Cicp data with [method@Gdk.CicpParams.build_color_state]. The function will return an error if the given parameters are not supported. You can obtain a GdkCicpParams object from a color state with [method@Gdk.ColorState.create_cicp_params]. This can be used to create a variant of a color state, by changing just one of the cicp parameters, or just to obtain information about the color state.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • CicpParams ()

    Creates a new GdkCicpParams object. The initial values of the properties are the values for "undefined" and need to be set before a color state object can be built.

  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asObject ()

    Wraps this handle as Object.

    • @r A Object object.
  • getProperty (string Name)

    Reads one generated property by name.

  • setProperty (string Name, Value)

    Writes one generated property by name.

  • setColorprimaries (int Value)

    The color primaries to use. Supported values: - 1: BT.709 / sRGB - 2: unspecified - 5: PAL - 6,7: BT.601 / NTSC - 9: BT.2020 - 12: Display P3

    • @p Value is the new property value.
    • @r None.
  • setMatrixcoefficients (int Value)

    The matrix coefficients (for YUV to RGB conversion). Supported values: - 0: RGB - 1: BT.709 - 2: unspecified - 5,6: BT.601 - 9: BT.2020

    • @p Value is the new property value.
    • @r None.
  • setRange (string Value)

    Whether the data is using the full range of values. The range of the data.

    • @p Value is the new property value.
    • @r None.
  • setTransferfunction (int Value)

    The transfer function to use. Supported values: - 1,6,14,15: BT.709, BT.601, BT.2020 - 2: unspecified - 4: gamma 2.2 - 5: gamma 2.8 - 8: linear - 13: sRGB - 16: BT.2100 PQ - 18: BT.2100 HLG

    • @p Value is the new property value.
    • @r None.
  • build_color_state ()

    Creates a new GdkColorState object for the cicp parameters in @self. Note that this may fail if the cicp parameters in @self are not supported by GTK. In that case, NULL is returned, and @error is set with an error message that can be presented to the user.

  • get_color_primaries ()

    Returns the value of the color-primaries property of @self.

  • get_matrix_coefficients ()

    Gets the matrix-coefficients property of @self.

  • get_range ()

    Gets the range property of @self.

  • get_transfer_function ()

    Gets the transfer-function property of @self.

  • set_color_primaries (int color_primaries)

    Sets the color-primaries property of @self.

    • @p color_primaries is the new color primaries value.
    • @r None.
  • set_matrix_coefficients (int matrix_coefficients)

    • @self a GdkCicpParams Sets the matrix-coefficients property of @self.
    • @p matrix_coefficients is the new matrix-coefficients value.
    • @r None.
  • set_range (string range)

    Sets the range property of @self

    • @p range is the range value.
    • @r None.
  • set_transfer_function (int transfer_function)

    Sets the transfer-function property of @self.

    • @p transfer_function is the new transfer-function value.
    • @r None.