Package ch.bailu.gtk.gdk
Klasse ColorState
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gdk.ColorState
- Alle implementierten Schnittstellen:
PointerInterface
Provides information to interpret colors and pixels in a variety of ways.
They are also known as
[*color spaces*](https://en.wikipedia.org/wiki/Color_space).
Crucially, GTK knows how to convert colors from one color
state to another.
`GdkColorState` objects are immutable and therefore threadsafe.
They are also known as
[*color spaces*](https://en.wikipedia.org/wiki/Color_space).
Crucially, GTK knows how to convert colors from one color
state to another.
`GdkColorState` objects are immutable and therefore threadsafe.
-
Feldübersicht
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungCreate a [class@Gdk.CicpParams] representing the colorstate.booleanequal(ColorState other) Compares two `GdkColorStates` for equality.static ClassHandlerstatic intstatic ColorStategetOklab()Returns the color state object representing the oklab color space.static ColorStategetOklch()Returns the color state object representing the oklch color space.static longstatic TypeSystem.TypeSizestatic ColorStateReturns the color state object representing the linear rec2100 color space.static ColorStateReturns the color state object representing the rec2100-pq color space.static ColorStategetSrgb()Returns the color state object representing the sRGB color space.static ColorStateReturns the color state object representing the linearized sRGB color space.static longstatic TypeSystem.TypeSizeref()Increase the reference count of @self.voidunref()Decrease the reference count of @self.Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksVon Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
ColorState
-
-
Methodendetails
-
getClassHandler
-
createCicpParams
Create a [class@Gdk.CicpParams] representing the colorstate.
It is not guaranteed that every `GdkColorState` can be
represented with Cicp parameters. If that is the case,
this function returns `NULL`.- Gibt zurück:
- A new [class@Gdk.CicpParams]
-
equal
Compares two `GdkColorStates` for equality.
Note that this function is not guaranteed to be perfect and two objects
describing the same color state may compare not equal. However, different
color states will never compare equal.- Parameter:
other- another `GdkColorStatee`- Gibt zurück:
- %TRUE if the two color states compare equal
-
ref
Increase the reference count of @self.- Gibt zurück:
- the object that was passed in
-
unref
public void unref()Decrease the reference count of @self.
Unless @self is static, it will be freed
when the reference count reaches zero. -
getOklab
Returns the color state object representing the oklab color space.
This is a perceptually uniform color state.- Gibt zurück:
- the color state object for oklab
-
getOklch
Returns the color state object representing the oklch color space.
This is the polar variant of oklab, in which the hue is encoded as
a polar coordinate.- Gibt zurück:
- the color state object for oklch
-
getRec2100Linear
Returns the color state object representing the linear rec2100 color space.
This color state uses the primaries defined by BT.2020-2 and BT.2100-0 and a linear
transfer function.
It is equivalent to the [Cicp](class.CicpParams.html) tuple 9/8/0/1.
See e.g. [the CSS HDR Module](https://drafts.csswg.org/css-color-hdr/#valdef-color-rec2100-linear)
for details about this colorstate.- Gibt zurück:
- the color state object for linearized rec2100
-
getRec2100Pq
Returns the color state object representing the rec2100-pq color space.
This color state uses the primaries defined by BT.2020-2 and BT.2100-0 and the transfer
function defined by SMPTE ST 2084 and BT.2100-2.
It is equivalent to the [Cicp](class.CicpParams.html) tuple 9/16/0/1.
See e.g. [the CSS HDR Module](https://drafts.csswg.org/css-color-hdr/#valdef-color-rec2100-pq)
for details about this colorstate.- Gibt zurück:
- the color state object for rec2100-pq
-
getSrgb
Returns the color state object representing the sRGB color space.
This color state uses the primaries defined by BT.709-6 and the transfer function
defined by IEC 61966-2-1.
It is equivalent to the [Cicp](class.CicpParams.html) tuple 1/13/0/1.
See e.g. [the CSS Color Module](https://www.w3.org/TR/css-color-4/#predefined-sRGB)
for details about this colorstate.- Gibt zurück:
- the color state object for sRGB
-
getSrgbLinear
Returns the color state object representing the linearized sRGB color space.
This color state uses the primaries defined by BT.709-6 and a linear transfer function.
It is equivalent to the [Cicp](class.CicpParams.html) tuple 1/8/0/1.
See e.g. [the CSS Color Module](https://www.w3.org/TR/css-color-4/#predefined-sRGB-linear)
for details about this colorstate.- Gibt zurück:
- the color state object for linearized sRGB
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-