Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: GdkColorState

[16:7] extends: object

Provides information to interpret colors and pixels in a variety of ways. They are also known as color spaces. Crucially, GTK knows how to convert colors from one color state to another. GdkColorState objects are immutable and therefore threadsafe.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • GdkColorState (Handle = null)

    Creates a new ColorState by wrapping a native handle or another wrapper.

    • @p Handle is the native handle or another wrapper whose handle to adopt.
  • 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.
  • create_cicp_params ()

    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.

    • @r A new [class@Gdk.CicpParams].
  • equal (object other)

    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.

    • @p other is another GdkColorStatee.
    • @r %TRUE if the two color states compare equal.
  • equivalent (object other)

    Compares two GdkColorStates for equivalence. Two objects that represent the same color state should be equivalent, even though they may not be equal in the sense of [method@Gdk.ColorState.equal].

    • @p other is another GdkColorStatee.
    • @r %TRUE if the two color states are equivalent.
  • ref ()

    Increase the reference count of @self.

    • @r the object that was passed in.
  • unref ()

    Decrease the reference count of @self. Unless @self is static, it will be freed when the reference count reaches zero.

    • @r None.