Class: Gtk::HSV

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#get_color(h, s, v) ⇒ nil

Queries the current color in an HSV color selector. Returned values will be in the [0.0, 1.0] range.

Parameters:

  • h (Float)

    Return value for the hue

  • s (Float)

    Return value for the saturation

  • v (Float)

    Return value for the value

Returns:

  • (nil)

#get_metrics(size, ring_width) ⇒ nil

Queries the size and ring width of an HSV color selector.

Parameters:

  • size (Integer)

    Return value for the diameter of the hue ring

  • ring_width (Integer)

    Return value for the width of the hue ring

Returns:

  • (nil)

#is_adjustingTrueClass

An HSV color selector can be said to be adjusting if multiple rapid changes are being made to its value, for example, when the user is adjusting the value with the mouse. This function queries whether the HSV color selector is being adjusted or not.

Returns:

  • (TrueClass)

    true if clients can ignore changes to the color value, since they may be transitory, or false if they should consider the color value status to be final.

#newGtk::Widget

Creates a new HSV color selector.

Returns:

  • (Gtk::Widget)

    A newly-created HSV color selector.

#set_color(h, s, v) ⇒ nil

Sets the current color in an HSV color selector. Color component values must be in the [0.0, 1.0] range.

Parameters:

  • h (Float)

    Hue

  • s (Float)

    Saturation

  • v (Float)

    Value

Returns:

  • (nil)

#set_metrics(size, ring_width) ⇒ nil

Sets the size and ring width of an HSV color selector.

Parameters:

  • size (Integer)

    Diameter for the hue ring

  • ring_width (Integer)

    Width of the hue ring

Returns:

  • (nil)