Back to Seed Clases

Gtk


Classes

Interfaces

Structs

Unions

Enums

Enum Gtk.StateType

Import line: Gtk = imports.gi.Gtk;
GIR File: Gtk-3.0.gir
C documentation: GtkStateType
Enum : StateType
This type indicates the current state of a widget; the state determines how
the widget is drawn. The GtkStateType enumeration is also used to
identify different colors in a GtkStyle for drawing, so states can be
used for subparts of a widget as well as entire widgets.
Values
Properties
Properties
None
Public Methods
None
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Gtk
Method
Gtk.paint_arrow (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, ArrowType arrow_type, gboolean fill, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws an arrow in the given rectangle on cr using the given
parameters.
Gtk
Method
Gtk.paint_box (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a box on cr with the given parameters.
Gtk
Method
Gtk.paint_box_gap (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height, PositionType gap_side, gint32 gap_x, gint32 gap_width) : none
Draws a box in cr using the given style and state and shadow type,
leaving a gap in one side.
Gtk
Method
Gtk.paint_check (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a check button indicator in the given rectangle on cr with
the given parameters.
Gtk
Method
Gtk.paint_diamond (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a diamond in the given rectangle on window using the given
parameters.
Gtk
Method
Gtk.paint_expander (Style style, Context cr, StateType state_type, Widget widget, String detail, gint32 x, gint32 y, ExpanderStyle expander_style) : none
Draws an expander as used in GtkTreeView.
Gtk
Method
Gtk.paint_extension (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height, PositionType gap_side) : none
Draws an extension, i.e.
Gtk
Method
Gtk.paint_flat_box (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a flat box on cr with the given parameters.
Gtk
Method
Gtk.paint_focus (Style style, Context cr, StateType state_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a focus indicator around the given rectangle on cr using the
given style.
Gtk
Method
Gtk.paint_handle (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height, Orientation orientation) : none
Draws a handle as used in GtkHandleBox and GtkPaned.
Gtk
Method
Gtk.paint_hline (Style style, Context cr, StateType state_type, Widget widget, String detail, gint32 x1, gint32 x2, gint32 y) : none
Draws a horizontal line from (x1, y) to (x2, y) in cr
using the given style and state.
Gtk
Method
Gtk.paint_layout (Style style, Context cr, StateType state_type, gboolean use_text, Widget widget, String detail, gint32 x, gint32 y, Layout layout) : none
Draws a layout on cr using the given parameters.
Gtk
Method
Gtk.paint_option (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a radio button indicator in the given rectangle on cr with
the given parameters.
Gtk
Method
Gtk.paint_resize_grip (Style style, Context cr, StateType state_type, Widget widget, String detail, WindowEdge edge, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a resize grip in the given rectangle on cr using the given
parameters.
Gtk
Method
Gtk.paint_shadow (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a shadow around the given rectangle in cr
using the given style and state and shadow type.
Gtk
Method
Gtk.paint_shadow_gap (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height, PositionType gap_side, gint32 gap_x, gint32 gap_width) : none
Draws a shadow around the given rectangle in cr
using the given style and state and shadow type, leaving a
gap in one side.
Gtk
Method
Gtk.paint_slider (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height, Orientation orientation) : none
Draws a slider in the given rectangle on cr using the
given style and orientation.
Gtk
Method
Gtk.paint_spinner (Style style, Context cr, StateType state_type, Widget widget, String detail, guint32 step, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws a spinner on window using the given parameters.
Gtk
Method
Gtk.paint_tab (Style style, Context cr, StateType state_type, ShadowType shadow_type, Widget widget, String detail, gint32 x, gint32 y, gint32 width, gint32 height) : none
Draws an option menu tab (i.e.
Gtk
Method
Gtk.paint_vline (Style style, Context cr, StateType state_type, Widget widget, String detail, gint32 y1_, gint32 y2_, gint32 x) : none
Draws a vertical line from (x, y1_) to (x, y2_) in cr
using the given style and state.
Gtk.IconInfo
Method
load_symbolic_for_style (Style style, StateType state, Object out_values) : GdkPixbuf.Pixbuf
Loads an icon, modifying it to match the system colours for the foreground,
success, warning and error colors provided.
Gtk.IconSet
Method
render_icon (Style style, TextDirection direction, StateType state, gint32 size, Widget widget, String detail) : GdkPixbuf.Pixbuf
Renders an icon using gtk_style_render_icon().
Gtk.IconSource
Method
get_state () : Gtk.StateType
Obtains the widget state this icon source applies to.
Gtk.IconSource
Method
set_state (StateType state) : none
Sets the widget state this icon source is intended to be used
with.
Gtk.Style
Method
apply_default_background (Context cr, Window window, StateType state_type, gint32 x, gint32 y, gint32 width, gint32 height) : none
Gtk.Style
Method
render_icon (IconSource source, TextDirection direction, StateType state, gint32 size, Widget widget, String detail) : GdkPixbuf.Pixbuf
Renders the icon specified by source at the given size
according to the given parameters and returns the result in a
pixbuf.
Gtk.Style
Method
set_background (Window window, StateType state_type) : none
Sets the background of window to the background color or pixmap
specified by style for the given state.
Gtk.StyleContext
Method
notify_state_change (Window window, void* region_id, StateType state, gboolean state_value) : none
Notifies a state change on context, so if the current style makes use
of transition animations, one will be started so all rendered elements
under region_id are animated for state state being set to value
The window parameter is used in order to invalidate the rendered area
as the animation runs, so make sure it is the same window that is being
rendered on by the gtk_render_*() functions.
Gtk.StyleContext
Method
state_is_running (StateType state, Object out_values) : gboolean
Returns TRUE if there is a transition animation running for the
current region (see gtk_style_context_push_animatable_region()).
Gtk.ThemingEngine
Method
state_is_running (StateType state, Object out_values) : gboolean
Returns TRUE if there is a transition animation running for the
current region (see gtk_style_context_push_animatable_region()).
Gtk.Widget
Signal
state_changed (Widget self, StateType state) : none
The ::state-changed signal is emitted when the widget state changes.
Gtk.Widget
Method
get_state () : Gtk.StateType
Returns the widget's state.
Gtk.Widget
Method
modify_base (StateType state, Color color) : none
Sets the base color for a widget in a particular state.
Gtk.Widget
Method
modify_bg (StateType state, Color color) : none
Sets the background color for a widget in a particular state.
Gtk.Widget
Method
modify_fg (StateType state, Color color) : none
Sets the foreground color for a widget in a particular state.
Gtk.Widget
Method
modify_text (StateType state, Color color) : none
Sets the text color for a widget in a particular state.
Gtk.Widget
Method
set_state (StateType state) : none
This function is for use in widget implementations.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:16:02 GMT+0800 (HKT)