Gtk.HSV¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
Properties¶
- Inherited:
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Gtk.HSV(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Gtk.HSV
is the “color wheel” part of a complete color selector widget. It allows to select a color by determining its HSV components in an intuitive way. Moving the selection around the outer ring changes the hue, and moving the selection point inside the inner triangle changes value and saturation.Gtk.HSV
has been deprecated together withGtk.ColorSelection
, where it was used.- classmethod new()[source]¶
- Returns:
A newly-created HSV color selector.
- Return type:
Creates a new HSV color selector.
New in version 2.14.
- classmethod to_rgb(h, s, v)[source]¶
- Parameters:
- Returns:
- r:
Return value for the red component
- g:
Return value for the green component
- b:
Return value for the blue component
- Return type:
Converts a color from HSV space to RGB.
Input values must be in the [0.0, 1.0] range; output values will be in the same range.
New in version 2.14.
- get_color()[source]¶
- Returns:
- h:
Return value for the hue
- s:
Return value for the saturation
- v:
Return value for the value
- Return type:
Queries the current color in an HSV color selector. Returned values will be in the [0.0, 1.0] range.
New in version 2.14.
- get_metrics()[source]¶
- Returns:
- size:
Return value for the diameter of the hue ring
- ring_width:
Return value for the width of the hue ring
- Return type:
Queries the size and ring width of an HSV color selector.
New in version 2.14.
- is_adjusting()[source]¶
- Returns:
True
if clients can ignore changes to the color value, since they may be transitory, orFalse
if they should consider the color value status to be final.- Return type:
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.
New in version 2.14.
- set_color(h, s, v)[source]¶
-
Sets the current color in an HSV color selector. Color component values must be in the [0.0, 1.0] range.
New in version 2.14.
- set_metrics(size, ring_width)[source]¶
-
Sets the size and ring width of an HSV color selector.
New in version 2.14.
- do_changed() virtual¶
- do_move(type) virtual¶
- Parameters:
type (
Gtk.DirectionType
) –
Signal Details¶
- Gtk.HSV.signals.changed(h_s_v)¶
- Gtk.HSV.signals.move(h_s_v, object)¶
- Signal Name:
move
- Flags:
- Parameters:
h_s_v (
Gtk.HSV
) – The object which received the signalobject (
Gtk.DirectionType
) –