Klasse CicpParams

Alle implementierten Schnittstellen:
PointerInterface

public class CicpParams extends PropertyHolder
Contains the parameters that define a colorstate with cicp parameters.

Cicp parameters are specified in the ITU-T H.273
[specification](https://www.itu.int/rec/T-REC-H.273/en).

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.

https://docs.gtk.org/gdk4/class.CicpParams.html

  • Konstruktordetails

    • CicpParams

      public CicpParams(PointerContainer pointer)
    • CicpParams

      public 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.
  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • buildColorState

      public ColorState buildColorState() throws AllocationError
      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.
      Gibt zurück:
      A newly allocated `GdkColorState`
      Löst aus:
      AllocationError
    • getColorPrimaries

      public int getColorPrimaries()
      Returns the value of the color-primaries property
      of @self.
      Gibt zurück:
      the color-primaries value
    • getMatrixCoefficients

      public int getMatrixCoefficients()
      Gets the matrix-coefficients property of @self.
      Gibt zurück:
      the matrix-coefficients value
    • getRange

      public int getRange()
      Gets the range property of @self.
      Gibt zurück:
      the range value
    • getTransferFunction

      public int getTransferFunction()
      Gets the transfer-function property of @self.
      Gibt zurück:
      the transfer-function value
    • setColorPrimaries

      public void setColorPrimaries(int color_primaries)
      Sets the color-primaries property of @self.
      Parameter:
      color_primaries - the new color primaries value
    • setMatrixCoefficients

      public void setMatrixCoefficients(int matrix_coefficients)
      @self a `GdkCicpParams`
      Sets the matrix-coefficients property of @self.
      Parameter:
      matrix_coefficients - the new matrix-coefficients value
    • setRange

      public void setRange(int range)
      Sets the range property of @self
      Parameter:
      range - the range value
    • setTransferFunction

      public void setTransferFunction(int transfer_function)
      Sets the transfer-function property of @self.
      Parameter:
      transfer_function - the new transfer-function value
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()