Back to Seed Clases

Gtk


Classes

Interfaces

Structs

Unions

Enums

GObject.Object
parent-child marker Gtk.Style

Class Gtk.Style

Import line: Gtk = imports.gi.Gtk;
GIR File: Gtk-3.0.gir
C documentation: GtkStyle
Class : Style
Extends: GObject.Object
A GtkStyle object encapsulates the information that provides the look and
feel for a widget.

In GTK+ 3.0, GtkStyle has been deprecated and replaced by GtkStyleContext.

Each GtkWidget has an associated GtkStyle object that is used when
rendering that widget. Also, a GtkStyle holds information for the five
possible widget states though not every widget supports all five
states; see GtkStateType.
Usually the GtkStyle for a widget is the same as the default style that
is set by GTK+ and modified the theme engine.
Usually applications should not need to use or modify the GtkStyle of
their widgets.
Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
Events - usage syntax: this.signals.EVENTNAME.connect( Function )
Event Defined By
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
Method
Gtk.rc_get_style (Widget widget) : Gtk.Style
Finds all matching RC styles for a given widget,
composites them together, and then creates a
GtkStyle representing the composite appearance.
Gtk
Method
Gtk.rc_get_style_by_paths (Settings settings, String widget_path, String class_path, Number type) : Gtk.Style
Creates up a GtkStyle from styles defined in a RC file by providing
the raw components used in matching.
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.Widget
Property
style : Gtk.Style
Gtk.Widget
Signal
style_set (Widget self, Style previous_style) : none
The ::style-set signal is emitted when a new style has been set
on a widget.
Gtk.Widget
Method
Gtk.Widget.get_default_style () : Gtk.Style
Returns the default style used by all widgets initially.
Gtk.Widget
Method
get_style () : Gtk.Style
Simply an accessor function that returns widget->style.
Gtk.Widget
Method
set_style (Style style) : none
Used to set the GtkStyle for a widget (widget->style).
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:13:58 GMT+0800 (HKT)