Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-3.0.gir |
C documentation: | GtkStateFlags |
Enum : | StateFlags |
Properties | |
---|---|
guint32 Gtk.StateFlags.ACTIVE : 1
|
|
guint32 Gtk.StateFlags.FOCUSED : 32
|
|
guint32 Gtk.StateFlags.INCONSISTENT : 16
|
|
guint32 Gtk.StateFlags.INSENSITIVE : 8
|
|
guint32 Gtk.StateFlags.NORMAL : 0
|
|
guint32 Gtk.StateFlags.PRELIGHT : 2
|
|
guint32 Gtk.StateFlags.SELECTED : 4
|
None |
None |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gtk.CellRenderer
Method |
Translates the cell renderer state to GtkStateFlags,
based on the cell renderer and widget sensitivity, and the given GtkCellRendererState. |
Gtk.StyleContext
Method |
get_background_color
(StateFlags state)
:
Gdk.RGBA
Gets the background color for a given state.
|
Gtk.StyleContext
Method |
get_border
(StateFlags state)
:
Gtk.Border
Gets the border for a given state as a GtkBorder.
|
Gtk.StyleContext
Method |
get_border_color
(StateFlags state)
:
Gdk.RGBA
Gets the border color for a given state.
|
Gtk.StyleContext
Method |
get_color
(StateFlags state)
:
Gdk.RGBA
Gets the foreground color for a given state.
|
Gtk.StyleContext
Method |
get_font
(StateFlags state)
:
Pango.FontDescription
Returns the font description for a given state.
|
Gtk.StyleContext
Method |
get_margin
(StateFlags state)
:
Gtk.Border
Gets the margin for a given state as a GtkBorder.
|
Gtk.StyleContext
Method |
get_padding
(StateFlags state)
:
Gtk.Border
Gets the padding for a given state as a GtkBorder.
|
Gtk.StyleContext
Method |
Gets a style property from context for the given state.
|
Gtk.StyleContext
Method |
get_state
()
:
Gtk.StateFlags
Returns the state used when rendering.
|
Gtk.StyleContext
Method |
set_state
(StateFlags flags)
:
none
Sets the state to be used when rendering with any
of the gtk_render_*() functions. |
Gtk.StyleProperties
Method |
Gets a style property from props for the given state.
|
Gtk.StyleProperties
Method |
Sets a styling property in props.
|
Gtk.StyleProperties
Method |
unset_property
(String property, StateFlags state)
:
none
Unsets a style property in props.
|
Gtk.StyleProvider
Method |
get_style_property
(WidgetPath path, StateFlags state, ParamSpec pspec, Object out_values)
:
gboolean
Looks up a widget style property as defined by provider for
the widget represented by path. |
Gtk.ThemingEngine
Method |
get_background_color
(StateFlags state)
:
Gdk.RGBA
Gets the background color for a given state.
|
Gtk.ThemingEngine
Method |
get_border
(StateFlags state)
:
Gtk.Border
Gets the border for a given state as a GtkBorder.
|
Gtk.ThemingEngine
Method |
get_border_color
(StateFlags state)
:
Gdk.RGBA
Gets the border color for a given state.
|
Gtk.ThemingEngine
Method |
get_color
(StateFlags state)
:
Gdk.RGBA
Gets the foreground color for a given state.
|
Gtk.ThemingEngine
Method |
get_font
(StateFlags state)
:
Pango.FontDescription
Returns the font description for a given state.
|
Gtk.ThemingEngine
Method |
get_margin
(StateFlags state)
:
Gtk.Border
Gets the margin for a given state as a GtkBorder.
|
Gtk.ThemingEngine
Method |
get_padding
(StateFlags state)
:
Gtk.Border
Gets the padding for a given state as a GtkBorder.
|
Gtk.ThemingEngine
Method |
Gets a property value as retrieved from the style settings that apply
to the currently rendered element. |
Gtk.ThemingEngine
Method |
get_state
()
:
Gtk.StateFlags
returns the state used when rendering.
|
Gtk.Widget
Signal |
state_flags_changed
(Widget self, StateFlags flags)
:
none
The ::state-flags-changed signal is emitted when the widget state
changes, see gtk_widget_get_state_flags(). |
Gtk.Widget
Method |
get_state_flags
()
:
Gtk.StateFlags
Returns the widget state as a flag set.
|
Gtk.Widget
Method |
override_background_color
(StateFlags state, RGBA color)
:
none
Sets the background color to use for a widget.
|
Gtk.Widget
Method |
override_color
(StateFlags state, RGBA color)
:
none
Sets the color to use for a widget.
|
Gtk.Widget
Method |
set_state_flags
(StateFlags flags, gboolean clear)
:
none
This function is for use in widget implementations.
|
Gtk.Widget
Method |
unset_state_flags
(StateFlags flags)
:
none
This function is for use in widget implementations.
|