InfTextGtk.HueChooser

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Buildable->Gtk.Widget InfTextGtk.HueChooser InfTextGtk.HueChooser Gtk.Widget->InfTextGtk.HueChooser

Subclasses:None

Virtual Methods

Inherited:Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)
  do_hue_change (hue)
  do_move (direction)

Properties

Inherited:Gtk.Widget (39)
Name Type Flags Short Description
hue float r/w/c The current hue value

Style Properties

Inherited:Gtk.Widget (17)

Signals

Inherited:Gtk.Widget (69), GObject.Object (1)
Name Short Description
hue-change This signal is emitted whenever the hue value is changed.
move This is an action signal emitted when the selection is moved by the user.

Fields

Inherited:Gtk.Widget (69), GObject.Object (1)
Name Type Access Description
parent Gtk.Widget r  

Class Details

class InfTextGtk.HueChooser(**kwargs)
Bases:Gtk.Widget
Abstract:No
Structure:InfTextGtk.HueChooserClass

InfTextGtk.HueChooser is an opaque data type. You should only access it via the public API functions.

classmethod new()
Returns:A newly created InfTextGtk.HueChooser.
Return type:Gtk.Widget

Creates a new InfTextGtk.HueChooser widget with the initial hue set to 0.0 (red).

classmethod new_with_hue(hue)
Parameters:hue (float) – Initial hue value
Returns:A newly created InfTextGtk.HueChooser.
Return type:Gtk.Widget

Creates a new InfTextGtk.HueChooser widget with the given hue as initial value. hue must be between 0.0 and 1.0.

get_hue()
Returns:The current hue value, a number between 0.0 and 1.0.
Return type:float

Returns the currently selected hue value of self.

set_hue(hue)
Parameters:hue (float) – New hue value.

Sets the current hue value of self to hue. hue must be between 0.0 and 1.0.

do_hue_change(hue) virtual
Parameters:hue (float) –
do_move(direction) virtual
Parameters:direction (Gtk.DirectionType) –

Signal Details

InfTextGtk.HueChooser.signals.hue_change(hue_chooser, hue)
Signal Name:

hue-change

Flags:

RUN_LAST

Parameters:

This signal is emitted whenever the hue value is changed.

InfTextGtk.HueChooser.signals.move(hue_chooser, direction)
Signal Name:

move

Flags:

RUN_LAST, ACTION

Parameters:

This is an action signal emitted when the selection is moved by the user.

Property Details

InfTextGtk.HueChooser.props.hue
Name:hue
Type:float
Default Value:0.0
Flags:READABLE, WRITABLE, CONSTRUCT

The current hue value