Ardour  9.0-pre0-582-g084a23a80d
Gtk::Style Class Reference

#include <style.h>

Inheritance diagram for Gtk::Style:
[legend]

Public Member Functions

virtual ~Style ()
 
GtkStylegobj ()
 Provides access to the underlying C GObject. More...
 
const GtkStylegobj () const
 Provides access to the underlying C GObject. More...
 
GtkStylegobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
 
void set_fg (Gtk::StateType state, const Gdk::Color &color)
 
Gdk::Color get_fg (Gtk::StateType state) const
 
void set_bg (Gtk::StateType state, const Gdk::Color &color)
 
Gdk::Color get_bg (Gtk::StateType state) const
 
void set_light (Gtk::StateType state, const Gdk::Color &color)
 
Gdk::Color get_light (Gtk::StateType state) const
 
void set_dark (Gtk::StateType state, const Gdk::Color &color)
 
Gdk::Color get_dark (Gtk::StateType state) const
 
void set_mid (Gtk::StateType state, const Gdk::Color &color)
 
Gdk::Color get_mid (Gtk::StateType state) const
 
void set_text (Gtk::StateType state, const Gdk::Color &color)
 
Gdk::Color get_text (Gtk::StateType state) const
 
void set_base (Gtk::StateType state, const Gdk::Color &color)
 
Gdk::Color get_base (Gtk::StateType state) const
 
void set_text_aa (Gtk::StateType state, const Gdk::Color &color)
 
Gdk::Color get_text_aa (Gtk::StateType state) const
 
void set_black (const Gdk::Color &value)
 
Gdk::Color get_black () const
 
void set_white (const Gdk::Color &value)
 
Gdk::Color get_white () const
 
void set_font (const Pango::FontDescription &font_desc)
 
Pango::FontDescription get_font () const
 
void set_xthickness (int xthickness)
 
int get_xthickness () const
 
void set_ythickness (int ythickness)
 
int get_ythickness () const
 
Glib::RefPtr< Gdk::GCget_fg_gc (Gtk::StateType state_type)
 
Glib::RefPtr< const Gdk::GCget_fg_gc (Gtk::StateType state_type) const
 
Glib::RefPtr< Gdk::GCget_bg_gc (Gtk::StateType state_type)
 
Glib::RefPtr< const Gdk::GCget_bg_gc (Gtk::StateType state_type) const
 
Glib::RefPtr< Gdk::GCget_light_gc (Gtk::StateType state_type)
 
Glib::RefPtr< const Gdk::GCget_light_gc (Gtk::StateType state_type) const
 
Glib::RefPtr< Gdk::GCget_dark_gc (Gtk::StateType state_type)
 
Glib::RefPtr< const Gdk::GCget_dark_gc (Gtk::StateType state_type) const
 
Glib::RefPtr< Gdk::GCget_mid_gc (Gtk::StateType state_type)
 
Glib::RefPtr< const Gdk::GCget_mid_gc (Gtk::StateType state_type) const
 
Glib::RefPtr< Gdk::GCget_text_gc (Gtk::StateType state_type)
 
Glib::RefPtr< const Gdk::GCget_text_gc (Gtk::StateType state_type) const
 
Glib::RefPtr< Gdk::GCget_base_gc (Gtk::StateType state_type)
 
Glib::RefPtr< const Gdk::GCget_base_gc (Gtk::StateType state_type) const
 
Glib::RefPtr< Gdk::GCget_black_gc ()
 
Glib::RefPtr< const Gdk::GCget_black_gc () const
 
Glib::RefPtr< Gdk::GCget_white_gc ()
 
Glib::RefPtr< const Gdk::GCget_white_gc () const
 
Gdk::Color get_background (Gtk::StateType state_type) const
 
Glib::RefPtr< Gdk::Pixmapget_background_pixmap (Gtk::StateType state_type)
 
void set_bg_pixmap (Gtk::StateType state_type, const Glib::RefPtr< Gdk::Pixmap > &pixmap)
 
void set_bg_pixmap (Gtk::StateType state_type, const Glib::RefPtr< const Gdk::Pixmap > &pixmap)
 
Glib::RefPtr< Gdk::Pixmapget_bg_pixmap (Gtk::StateType state_type)
 
Glib::RefPtr< const Gdk::Pixmapget_bg_pixmap (Gtk::StateType state_type) const
 
void paint_arrow (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, ArrowType arrow_type, bool fill, int x, int y, int width, int height) const
 
void paint_box (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, int width, int height) const
 
void paint_box_gap (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, int width, int height, PositionType gap_side, int gap_x, int gap_width) const
 
void paint_check (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, int width, int height) const
 
void paint_diamond (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, int width, int height) const
 
void paint_extension (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, int width, int height, PositionType gap_side) const
 
void paint_flat_box (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, int width, int height) const
 
void paint_focus (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, int width, int height) const
 
void paint_handle (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, int width, int height, Orientation orientation) const
 
void paint_hline (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x1, int x2, int y) const
 
void paint_option (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, int width, int height) const
 
void paint_polygon (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, const Glib::ArrayHandle< Gdk::Point > &points, bool fill) const
 
void paint_shadow (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, int width, int height) const
 
void paint_shadow_gap (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, int width, int height, PositionType gap_side, int gap_x, int gap_width) const
 
void paint_slider (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, int width, int height, Orientation orientation) const
 
void paint_tab (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, int width, int height) const
 
void paint_vline (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int y1, int y2, int x) const
 
void paint_expander (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, ExpanderStyle expander_style) const
 
void paint_layout (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, bool use_text, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, int x, int y, const Glib::RefPtr< Pango::Layout > &layout) const
 
void paint_resize_grip (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, const Gdk::Rectangle &area, Widget &widget, const Glib::ustring &detail, Gdk::WindowEdge edge, int x, int y, int width, int height) const
 
Glib::RefPtr< Stylecopy ()
 
Glib::RefPtr< Stylecopy () const
 
Glib::RefPtr< Styleattach (const Glib::RefPtr< Gdk::Window > &window)
 
void detach ()
 
void set_background (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type)
 
void apply_default_background (const Glib::RefPtr< Gdk::Window > &window, bool set_bg, Gtk::StateType state_type, const Gdk::Rectangle &area, int x, int y, int width, int height)
 
IconSet lookup_icon_set (const Gtk::StockID &stock_id)
 
bool lookup_color (const Glib::ustring &color_name, Gdk::Color &color) const
 
Glib::RefPtr< Gdk::Pixbufrender_icon (const IconSource &source, Gtk::TextDirection direction, Gtk::StateType state, Gtk::IconSize size, Gtk::Widget &widget, const Glib::ustring &detail)
 
void get_style_property_value (GType widget_type, const Glib::ustring &property_name, Glib::ValueBase &value)
 
template<class PropertyType >
void get_style_property (GType widget_type, const Glib::ustring &property_name, PropertyType &value) const
 

Static Public Member Functions

static GType get_type () G_GNUC_CONST
 
static Glib::RefPtr< Stylecreate ()
 

Protected Member Functions

 Style ()
 
virtual void realize_vfunc ()
 
virtual void unrealize_vfunc ()
 
virtual void copy_vfunc (const Glib::RefPtr< Style > &src)
 
virtual Glib::RefPtr< Styleclone_vfunc ()
 
virtual void init_from_rc_vfunc (const Glib::RefPtr< RcStyle > &rc_style)
 
virtual void set_background_vfunc (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type)
 
virtual Glib::RefPtr< Gdk::Pixbufrender_icon_vfunc (const IconSource &source, TextDirection direction, Gtk::StateType state, IconSize size, Widget *widget, const Glib::ustring &detail)
 
virtual void draw_hline_vfunc (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x1, int x2, int y)
 
virtual void draw_vline_vfunc (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int y1, int y2, int x)
 
virtual void draw_shadow_vfunc (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, int width, int height)
 
virtual void draw_polygon_vfunc (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, GdkPoint *point, int npoints, bool fill)
 
virtual void draw_arrow_vfunc (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, Gtk::ArrowType arrow_type, bool fill, int x, int y, int width, int height)
 
virtual void draw_diamond_vfunc (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, int width, int height)
 
virtual void draw_string_vfunc (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, const Glib::ustring &string)
 
virtual void draw_box_vfunc (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, int width, int height)
 
virtual void draw_flat_box_vfunc (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, int width, int height)
 
virtual void draw_check_vfunc (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, int width, int height)
 
virtual void draw_option_vfunc (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, int width, int height)
 
virtual void draw_tab_vfunc (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, int width, int height)
 
virtual void draw_shadow_gap_vfunc (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, int width, int height, Gtk::PositionType gap_side, int gap_x, int gap_width)
 
virtual void draw_box_gap_vfunc (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, int width, int height, Gtk::PositionType gap_side, int gap_x, int gap_width)
 
virtual void draw_extension_vfunc (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, int width, int height, PositionType gap_side)
 
virtual void draw_focus_vfunc (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, int width, int height)
 
virtual void draw_slider_vfunc (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, int width, int height, Orientation orientation)
 
virtual void draw_handle_vfunc (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, int width, int height, Orientation orientation)
 
virtual void draw_expander_vfunc (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, ExpanderStyle expander_style)
 
virtual void draw_layout_vfunc (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, bool use_text, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, int x, int y, const Glib::RefPtr< Pango::Layout > &layout)
 
virtual void draw_resize_grip_vfunc (const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type, const Gdk::Rectangle &area, Widget *widget, const Glib::ustring &detail, Gdk::WindowEdge edge, int x, int y, int width, int height)
 
Glib::SignalProxy0< void > signal_realize ()
 
Glib::SignalProxy0< void > signal_unrealize ()
 
virtual void on_realize ()
 This is a default handler for the signal signal_realize(). More...
 
virtual void on_unrealize ()
 This is a default handler for the signal signal_unrealize(). More...
 

Related Functions

(Note that these are not member functions.)

Glib::RefPtr< Gtk::Stylewrap (GtkStyle *object, bool take_copy=false)
 

Detailed Description

Definition at line 68 of file style.h.

Constructor & Destructor Documentation

◆ ~Style()

virtual Gtk::Style::~Style ( )
virtual

◆ Style()

Gtk::Style::Style ( )
protected

Member Function Documentation

◆ apply_default_background()

void Gtk::Style::apply_default_background ( const Glib::RefPtr< Gdk::Window > &  window,
bool  set_bg,
Gtk::StateType  state_type,
const Gdk::Rectangle area,
int  x,
int  y,
int  width,
int  height 
)

◆ attach()

Glib::RefPtr<Style> Gtk::Style::attach ( const Glib::RefPtr< Gdk::Window > &  window)

Attaches a style to a window; this process allocates the colors and creates the GC's for the style - it specializes it to a particular visual and colormap. The process may involve the creation of a new style if the style has already been attached to a window with a different style and colormap.

Since this function may return a new object, you have to use it in the following way: style = gtk_style_attach (style, window)

Parameters
windowA Gdk::Window.
Returns
Either style, or a newly-created Gtk::Style. If the style is newly created, the style parameter will be unref'ed, and the new style will have a reference count belonging to the caller.

◆ clone_vfunc()

virtual Glib::RefPtr<Style> Gtk::Style::clone_vfunc ( )
protectedvirtual

◆ copy() [1/2]

Glib::RefPtr<Style> Gtk::Style::copy ( )

Creates a copy of the passed in Gtk::Style object.

Returns
A copy of style.

◆ copy() [2/2]

Glib::RefPtr<Style> Gtk::Style::copy ( ) const

Creates a copy of the passed in Gtk::Style object.

Returns
A copy of style.

◆ copy_vfunc()

virtual void Gtk::Style::copy_vfunc ( const Glib::RefPtr< Style > &  src)
protectedvirtual

◆ create()

static Glib::RefPtr<Style> Gtk::Style::create ( )
static

◆ detach()

void Gtk::Style::detach ( )

Detaches a style from a window. If the style is not attached to any windows anymore, it is unrealized. See attach().

◆ draw_arrow_vfunc()

virtual void Gtk::Style::draw_arrow_vfunc ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
Gtk::ArrowType  arrow_type,
bool  fill,
int  x,
int  y,
int  width,
int  height 
)
protectedvirtual

◆ draw_box_gap_vfunc()

virtual void Gtk::Style::draw_box_gap_vfunc ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
int  width,
int  height,
Gtk::PositionType  gap_side,
int  gap_x,
int  gap_width 
)
protectedvirtual

◆ draw_box_vfunc()

virtual void Gtk::Style::draw_box_vfunc ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
int  width,
int  height 
)
protectedvirtual

◆ draw_check_vfunc()

virtual void Gtk::Style::draw_check_vfunc ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
int  width,
int  height 
)
protectedvirtual

◆ draw_diamond_vfunc()

virtual void Gtk::Style::draw_diamond_vfunc ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
int  width,
int  height 
)
protectedvirtual

◆ draw_expander_vfunc()

virtual void Gtk::Style::draw_expander_vfunc ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
ExpanderStyle  expander_style 
)
protectedvirtual

◆ draw_extension_vfunc()

virtual void Gtk::Style::draw_extension_vfunc ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
int  width,
int  height,
PositionType  gap_side 
)
protectedvirtual

◆ draw_flat_box_vfunc()

virtual void Gtk::Style::draw_flat_box_vfunc ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
int  width,
int  height 
)
protectedvirtual

◆ draw_focus_vfunc()

virtual void Gtk::Style::draw_focus_vfunc ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
int  width,
int  height 
)
protectedvirtual

◆ draw_handle_vfunc()

virtual void Gtk::Style::draw_handle_vfunc ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
int  width,
int  height,
Orientation  orientation 
)
protectedvirtual

◆ draw_hline_vfunc()

virtual void Gtk::Style::draw_hline_vfunc ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x1,
int  x2,
int  y 
)
protectedvirtual

◆ draw_layout_vfunc()

virtual void Gtk::Style::draw_layout_vfunc ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
bool  use_text,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
const Glib::RefPtr< Pango::Layout > &  layout 
)
protectedvirtual

◆ draw_option_vfunc()

virtual void Gtk::Style::draw_option_vfunc ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
int  width,
int  height 
)
protectedvirtual

◆ draw_polygon_vfunc()

virtual void Gtk::Style::draw_polygon_vfunc ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
GdkPoint point,
int  npoints,
bool  fill 
)
protectedvirtual

◆ draw_resize_grip_vfunc()

virtual void Gtk::Style::draw_resize_grip_vfunc ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
Gdk::WindowEdge  edge,
int  x,
int  y,
int  width,
int  height 
)
protectedvirtual

◆ draw_shadow_gap_vfunc()

virtual void Gtk::Style::draw_shadow_gap_vfunc ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
int  width,
int  height,
Gtk::PositionType  gap_side,
int  gap_x,
int  gap_width 
)
protectedvirtual

◆ draw_shadow_vfunc()

virtual void Gtk::Style::draw_shadow_vfunc ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
int  width,
int  height 
)
protectedvirtual

◆ draw_slider_vfunc()

virtual void Gtk::Style::draw_slider_vfunc ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
int  width,
int  height,
Orientation  orientation 
)
protectedvirtual

◆ draw_string_vfunc()

virtual void Gtk::Style::draw_string_vfunc ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
const Glib::ustring &  string 
)
protectedvirtual

◆ draw_tab_vfunc()

virtual void Gtk::Style::draw_tab_vfunc ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
int  width,
int  height 
)
protectedvirtual

◆ draw_vline_vfunc()

virtual void Gtk::Style::draw_vline_vfunc ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  y1,
int  y2,
int  x 
)
protectedvirtual

◆ get_background()

Gdk::Color Gtk::Style::get_background ( Gtk::StateType  state_type) const

◆ get_background_pixmap()

Glib::RefPtr<Gdk::Pixmap> Gtk::Style::get_background_pixmap ( Gtk::StateType  state_type)

◆ get_base()

Gdk::Color Gtk::Style::get_base ( Gtk::StateType  state) const

◆ get_base_gc() [1/2]

Glib::RefPtr<Gdk::GC> Gtk::Style::get_base_gc ( Gtk::StateType  state_type)

◆ get_base_gc() [2/2]

Glib::RefPtr<const Gdk::GC> Gtk::Style::get_base_gc ( Gtk::StateType  state_type) const

◆ get_bg()

Gdk::Color Gtk::Style::get_bg ( Gtk::StateType  state) const

◆ get_bg_gc() [1/2]

Glib::RefPtr<Gdk::GC> Gtk::Style::get_bg_gc ( Gtk::StateType  state_type)

◆ get_bg_gc() [2/2]

Glib::RefPtr<const Gdk::GC> Gtk::Style::get_bg_gc ( Gtk::StateType  state_type) const

◆ get_bg_pixmap() [1/2]

Glib::RefPtr<Gdk::Pixmap> Gtk::Style::get_bg_pixmap ( Gtk::StateType  state_type)

◆ get_bg_pixmap() [2/2]

Glib::RefPtr<const Gdk::Pixmap> Gtk::Style::get_bg_pixmap ( Gtk::StateType  state_type) const

◆ get_black()

Gdk::Color Gtk::Style::get_black ( ) const

◆ get_black_gc() [1/2]

Glib::RefPtr<Gdk::GC> Gtk::Style::get_black_gc ( )

◆ get_black_gc() [2/2]

Glib::RefPtr<const Gdk::GC> Gtk::Style::get_black_gc ( ) const

◆ get_dark()

Gdk::Color Gtk::Style::get_dark ( Gtk::StateType  state) const

◆ get_dark_gc() [1/2]

Glib::RefPtr<Gdk::GC> Gtk::Style::get_dark_gc ( Gtk::StateType  state_type)

◆ get_dark_gc() [2/2]

Glib::RefPtr<const Gdk::GC> Gtk::Style::get_dark_gc ( Gtk::StateType  state_type) const

◆ get_fg()

Gdk::Color Gtk::Style::get_fg ( Gtk::StateType  state) const

◆ get_fg_gc() [1/2]

Glib::RefPtr<Gdk::GC> Gtk::Style::get_fg_gc ( Gtk::StateType  state_type)

◆ get_fg_gc() [2/2]

Glib::RefPtr<const Gdk::GC> Gtk::Style::get_fg_gc ( Gtk::StateType  state_type) const

◆ get_font()

Pango::FontDescription Gtk::Style::get_font ( ) const

◆ get_light()

Gdk::Color Gtk::Style::get_light ( Gtk::StateType  state) const

◆ get_light_gc() [1/2]

Glib::RefPtr<Gdk::GC> Gtk::Style::get_light_gc ( Gtk::StateType  state_type)

◆ get_light_gc() [2/2]

Glib::RefPtr<const Gdk::GC> Gtk::Style::get_light_gc ( Gtk::StateType  state_type) const

◆ get_mid()

Gdk::Color Gtk::Style::get_mid ( Gtk::StateType  state) const

◆ get_mid_gc() [1/2]

Glib::RefPtr<Gdk::GC> Gtk::Style::get_mid_gc ( Gtk::StateType  state_type)

◆ get_mid_gc() [2/2]

Glib::RefPtr<const Gdk::GC> Gtk::Style::get_mid_gc ( Gtk::StateType  state_type) const

◆ get_style_property()

template<class PropertyType >
void Gtk::Style::get_style_property ( GType  widget_type,
const Glib::ustring &  property_name,
PropertyType &  value 
) const
inline

Queries the value of a style property corresponding to a widget class in the given style.

Parameters
widget_typethe GType of a descendant of GtkWidget.
property_nameThe name of the style property to get.
valueAn output parameter in which the value of the property being queried will be stored.

Definition at line 797 of file style.h.

◆ get_style_property_value()

void Gtk::Style::get_style_property_value ( GType  widget_type,
const Glib::ustring &  property_name,
Glib::ValueBase &  value 
)

Queries the value of a style property corresponding to a widget class is in the given style.

Parameters
widget_typeThe Type of a descendant of Gtk::Widget.
property_nameThe name of the style property to get.
valueA Value where the value of the property being queried will be stored.

◆ get_text()

Gdk::Color Gtk::Style::get_text ( Gtk::StateType  state) const

◆ get_text_aa()

Gdk::Color Gtk::Style::get_text_aa ( Gtk::StateType  state) const

◆ get_text_gc() [1/2]

Glib::RefPtr<Gdk::GC> Gtk::Style::get_text_gc ( Gtk::StateType  state_type)

◆ get_text_gc() [2/2]

Glib::RefPtr<const Gdk::GC> Gtk::Style::get_text_gc ( Gtk::StateType  state_type) const

◆ get_type()

static GType Gtk::Style::get_type ( )
static

Get the GType for this class, for use with the underlying GObject type system.

◆ get_white()

Gdk::Color Gtk::Style::get_white ( ) const

◆ get_white_gc() [1/2]

Glib::RefPtr<Gdk::GC> Gtk::Style::get_white_gc ( )

◆ get_white_gc() [2/2]

Glib::RefPtr<const Gdk::GC> Gtk::Style::get_white_gc ( ) const

◆ get_xthickness()

int Gtk::Style::get_xthickness ( ) const

◆ get_ythickness()

int Gtk::Style::get_ythickness ( ) const

◆ gobj() [1/2]

GtkStyle* Gtk::Style::gobj ( )
inline

Provides access to the underlying C GObject.

Definition at line 107 of file style.h.

◆ gobj() [2/2]

const GtkStyle* Gtk::Style::gobj ( ) const
inline

Provides access to the underlying C GObject.

Definition at line 110 of file style.h.

◆ gobj_copy()

GtkStyle* Gtk::Style::gobj_copy ( )

Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.

◆ init_from_rc_vfunc()

virtual void Gtk::Style::init_from_rc_vfunc ( const Glib::RefPtr< RcStyle > &  rc_style)
protectedvirtual

◆ lookup_color()

bool Gtk::Style::lookup_color ( const Glib::ustring &  color_name,
Gdk::Color color 
) const

Looks up color_name in the style's logical color mappings, filling in color and returning true if found, otherwise returning false. Do not cache the found mapping, because it depends on the Gtk::Style and might change when a theme switch occurs.

Parameters
color_nameThe name of the logical color to look up.
colorThe Gdk::Color to fill in.
Returns
true if the mapping was found.

◆ lookup_icon_set()

IconSet Gtk::Style::lookup_icon_set ( const Gtk::StockID stock_id)

Looks up stock_id in the icon factories associated with style and the default icon factory, returning an icon set if found, otherwise 0.

Parameters
stock_idAn icon name.
Returns
Icon set of stock_id.

◆ on_realize()

virtual void Gtk::Style::on_realize ( )
protectedvirtual

This is a default handler for the signal signal_realize().

◆ on_unrealize()

virtual void Gtk::Style::on_unrealize ( )
protectedvirtual

This is a default handler for the signal signal_unrealize().

◆ paint_arrow()

void Gtk::Style::paint_arrow ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
ArrowType  arrow_type,
bool  fill,
int  x,
int  y,
int  width,
int  height 
) const

Draws an arrow in the given rectangle on window using the given parameters. arrow_type determines the direction of the arrow.

Parameters
windowA Gdk::Window.
state_typeA state.
shadow_typeThe type of shadow to draw.
areaClip rectangle, or 0 if the output should not be clipped.
widgetThe widget.
detailA style detail.
arrow_typeThe type of arrow to draw.
filltrue if the arrow tip should be filled.
xX origin of the rectangle to draw the arrow in.
yY origin of the rectangle to draw the arrow in.
widthWidth of the rectangle to draw the arrow in.
heightHeight of the rectangle to draw the arrow in.

◆ paint_box()

void Gtk::Style::paint_box ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
int  width,
int  height 
) const

Draws a box on window with the given parameters.

Parameters
windowA Gdk::Window.
state_typeA state.
shadow_typeThe type of shadow to draw.
areaClip rectangle, or 0 if the output should not be clipped.
widgetThe widget.
detailA style detail.
xX origin of the box.
yY origin of the box.
widthThe width of the box.
heightThe height of the box.

◆ paint_box_gap()

void Gtk::Style::paint_box_gap ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
int  width,
int  height,
PositionType  gap_side,
int  gap_x,
int  gap_width 
) const

Draws a box in window using the given style and state and shadow type, leaving a gap in one side.

Parameters
windowA Gdk::Window.
state_typeA state.
shadow_typeType of shadow to draw.
areaClip rectangle, or 0 if the output should not be clipped.
widgetThe widget.
detailA style detail.
xX origin of the rectangle.
yY origin of the rectangle.
widthWidth of the rectangle.
heightWidth of the rectangle.
gap_sideSide in which to leave the gap.
gap_xStarting position of the gap.
gap_widthWidth of the gap.

◆ paint_check()

void Gtk::Style::paint_check ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
int  width,
int  height 
) const

Draws a check button indicator in the given rectangle on window with the given parameters.

Parameters
windowA Gdk::Window.
state_typeA state.
shadow_typeThe type of shadow to draw.
areaClip rectangle, or 0 if the output should not be clipped.
widgetThe widget.
detailA style detail.
xX origin of the rectangle to draw the check in.
yY origin of the rectangle to draw the check in.
widthThe width of the rectangle to draw the check in.
heightThe height of the rectangle to draw the check in.

◆ paint_diamond()

void Gtk::Style::paint_diamond ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
int  width,
int  height 
) const

Draws a diamond in the given rectangle on window using the given parameters.

Parameters
windowA Gdk::Window.
state_typeA state.
shadow_typeThe type of shadow to draw.
areaClip rectangle, or 0 if the output should not be clipped.
widgetThe widget.
detailA style detail.
xX origin of the rectangle to draw the diamond in.
yY origin of the rectangle to draw the diamond in.
widthWidth of the rectangle to draw the diamond in.
heightHeight of the rectangle to draw the diamond in.

◆ paint_expander()

void Gtk::Style::paint_expander ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
ExpanderStyle  expander_style 
) const

Draws an expander as used in Gtk::TreeView. x and y specify the center the expander. The size of the expander is determined by the "expander-size" style property of widget. (If widget is not specified or doesn't have an "expander-size" property, an unspecified default size will be used, since the caller doesn't have sufficient information to position the expander, this is likely not useful.) The expander is expander_size pixels tall in the collapsed position and expander_size pixels wide in the expanded position.

Parameters
windowA Gdk::Window.
state_typeA state.
areaClip rectangle, or 0 if the output should not be clipped.
widgetThe widget.
detailA style detail.
xThe x position to draw the expander at.
yThe y position to draw the expander at.
expander_styleThe style to draw the expander in; determines whether the expander is collapsed, expanded, or in an intermediate state.

◆ paint_extension()

void Gtk::Style::paint_extension ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
int  width,
int  height,
PositionType  gap_side 
) const

Draws an extension, i.e. a notebook tab.

Parameters
windowA Gdk::Window.
state_typeA state.
shadow_typeType of shadow to draw.
areaClip rectangle, or 0 if the output should not be clipped.
widgetThe widget.
detailA style detail.
xX origin of the extension.
yY origin of the extension.
widthWidth of the extension.
heightWidth of the extension.
gap_sideThe side on to which the extension is attached.

◆ paint_flat_box()

void Gtk::Style::paint_flat_box ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
int  width,
int  height 
) const

Draws a flat box on window with the given parameters.

Parameters
windowA Gdk::Window.
state_typeA state.
shadow_typeThe type of shadow to draw.
areaClip rectangle, or 0 if the output should not be clipped.
widgetThe widget.
detailA style detail.
xX origin of the box.
yY origin of the box.
widthThe width of the box.
heightThe height of the box.

◆ paint_focus()

void Gtk::Style::paint_focus ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
int  width,
int  height 
) const

Draws a focus indicator around the given rectangle on window using the given style.

Parameters
windowA Gdk::Window.
state_typeA state.
areaClip rectangle, or 0 if the output should not be clipped.
widgetThe widget.
detailA style detail.
xThe x origin of the rectangle around which to draw a focus indicator.
yThe y origin of the rectangle around which to draw a focus indicator.
widthThe width of the rectangle around which to draw a focus indicator.
heightThe height of the rectangle around which to draw a focus indicator.

◆ paint_handle()

void Gtk::Style::paint_handle ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
int  width,
int  height,
Orientation  orientation 
) const

Draws a handle as used in Gtk::HandleBox and Gtk::Paned.

Parameters
windowA Gdk::Window.
state_typeA state.
shadow_typeType of shadow to draw.
areaClip rectangle, or 0 if the output should not be clipped.
widgetThe widget.
detailA style detail.
xX origin of the handle.
yY origin of the handle.
widthWith of the handle.
heightHeight of the handle.
orientationThe orientation of the handle.

◆ paint_hline()

void Gtk::Style::paint_hline ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x1,
int  x2,
int  y 
) const

Draws a horizontal line from ( x1, y) to ( x2, y) in window using the given style and state.

Parameters
windowA Gdk::Window.
state_typeA state.
areaRectangle to which the output is clipped, or 0 if the output should not be clipped.
widgetThe widget.
detailA style detail.
x1The starting x coordinate.
x2The ending x coordinate.
yThe y coordinate.

◆ paint_layout()

void Gtk::Style::paint_layout ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
bool  use_text,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
const Glib::RefPtr< Pango::Layout > &  layout 
) const

Draws a layout on window using the given parameters.

Parameters
windowA Gdk::Window.
state_typeA state.
use_textWhether to use the text or foreground graphics context of style.
areaClip rectangle, or 0 if the output should not be clipped.
widgetThe widget.
detailA style detail.
xX origin.
yY origin.
layoutThe layout to draw.

◆ paint_option()

void Gtk::Style::paint_option ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
int  width,
int  height 
) const

Draws a radio button indicator in the given rectangle on window with the given parameters.

Parameters
windowA Gdk::Window.
state_typeA state.
shadow_typeThe type of shadow to draw.
areaClip rectangle, or 0 if the output should not be clipped.
widgetThe widget.
detailA style detail.
xX origin of the rectangle to draw the option in.
yY origin of the rectangle to draw the option in.
widthThe width of the rectangle to draw the option in.
heightThe height of the rectangle to draw the option in.

◆ paint_polygon()

void Gtk::Style::paint_polygon ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
const Glib::ArrayHandle< Gdk::Point > &  points,
bool  fill 
) const

◆ paint_resize_grip()

void Gtk::Style::paint_resize_grip ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
Gdk::WindowEdge  edge,
int  x,
int  y,
int  width,
int  height 
) const

Draws a resize grip in the given rectangle on window using the given parameters.

Parameters
windowA Gdk::Window.
state_typeA state.
areaClip rectangle, or 0 if the output should not be clipped.
widgetThe widget.
detailA style detail.
edgeThe edge in which to draw the resize grip.
xThe x origin of the rectangle in which to draw the resize grip.
yThe y origin of the rectangle in which to draw the resize grip.
widthThe width of the rectangle in which to draw the resize grip.
heightThe height of the rectangle in which to draw the resize grip.

◆ paint_shadow()

void Gtk::Style::paint_shadow ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
int  width,
int  height 
) const

Draws a shadow around the given rectangle in window using the given style and state and shadow type.

Parameters
windowA Gdk::Window.
state_typeA state.
shadow_typeType of shadow to draw.
areaClip rectangle or 0 if the output should not be clipped.
widgetThe widget.
detailA style detail.
xX origin of the rectangle.
yY origin of the rectangle.
widthWidth of the rectangle.
heightWidth of the rectangle.

◆ paint_shadow_gap()

void Gtk::Style::paint_shadow_gap ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
int  width,
int  height,
PositionType  gap_side,
int  gap_x,
int  gap_width 
) const

Draws a shadow around the given rectangle in window using the given style and state and shadow type, leaving a gap in one side.

Parameters
windowA Gdk::Window.
state_typeA state.
shadow_typeType of shadow to draw.
areaClip rectangle, or 0 if the output should not be clipped.
widgetThe widget.
detailA style detail.
xX origin of the rectangle.
yY origin of the rectangle.
widthWidth of the rectangle.
heightWidth of the rectangle.
gap_sideSide in which to leave the gap.
gap_xStarting position of the gap.
gap_widthWidth of the gap.

◆ paint_slider()

void Gtk::Style::paint_slider ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
int  width,
int  height,
Orientation  orientation 
) const

Draws a slider in the given rectangle on window using the given style and orientation.

Parameters
windowA Gdk::Window.
state_typeA state.
shadow_typeA shadow.
areaClip rectangle, or 0 if the output should not be clipped.
widgetThe widget.
detailA style detail.
xThe x origin of the rectangle in which to draw a slider.
yThe y origin of the rectangle in which to draw a slider.
widthThe width of the rectangle in which to draw a slider.
heightThe height of the rectangle in which to draw a slider.
orientationThe orientation to be used.

◆ paint_tab()

void Gtk::Style::paint_tab ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
ShadowType  shadow_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  x,
int  y,
int  width,
int  height 
) const

Draws an option menu tab (i.e. the up and down pointing arrows) in the given rectangle on window using the given parameters.

Parameters
windowA Gdk::Window.
state_typeA state.
shadow_typeThe type of shadow to draw.
areaClip rectangle, or 0 if the output should not be clipped.
widgetThe widget.
detailA style detail.
xX origin of the rectangle to draw the tab in.
yY origin of the rectangle to draw the tab in.
widthThe width of the rectangle to draw the tab in.
heightThe height of the rectangle to draw the tab in.

◆ paint_vline()

void Gtk::Style::paint_vline ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type,
const Gdk::Rectangle area,
Widget widget,
const Glib::ustring &  detail,
int  y1,
int  y2,
int  x 
) const

Draws a vertical line from ( x, y1) to ( x, y2) in window using the given style and state.

Parameters
windowA Gdk::Window.
state_typeA state.
areaRectangle to which the output is clipped, or 0 if the output should not be clipped.
widgetThe widget.
detailA style detail.
y1The starting y coordinate.
y2The ending y coordinate.
xThe x coordinate.

◆ realize_vfunc()

virtual void Gtk::Style::realize_vfunc ( )
protectedvirtual

◆ render_icon()

Glib::RefPtr<Gdk::Pixbuf> Gtk::Style::render_icon ( const IconSource source,
Gtk::TextDirection  direction,
Gtk::StateType  state,
Gtk::IconSize  size,
Gtk::Widget widget,
const Glib::ustring &  detail 
)

Renders the icon specified by source at the given size according to the given parameters and returns the result in a pixbuf.

Parameters
sourceThe Gtk::IconSource specifying the icon to render.
directionA text direction.
stateA state.
size(type int) the size to render the icon at. A size of (GtkIconSize)-1 means render at the size of the source and don't scale.
widgetThe widget.
detailA style detail.
Returns
A newly-created Gdk::Pixbuf containing the rendered icon.

◆ render_icon_vfunc()

virtual Glib::RefPtr<Gdk::Pixbuf> Gtk::Style::render_icon_vfunc ( const IconSource source,
TextDirection  direction,
Gtk::StateType  state,
IconSize  size,
Widget widget,
const Glib::ustring &  detail 
)
protectedvirtual

◆ set_background()

void Gtk::Style::set_background ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type 
)

Sets the background of window to the background color or pixmap specified by style for the given state.

Parameters
windowA Gdk::Window.
state_typeA state.

◆ set_background_vfunc()

virtual void Gtk::Style::set_background_vfunc ( const Glib::RefPtr< Gdk::Window > &  window,
Gtk::StateType  state_type 
)
protectedvirtual

◆ set_base()

void Gtk::Style::set_base ( Gtk::StateType  state,
const Gdk::Color color 
)

◆ set_bg()

void Gtk::Style::set_bg ( Gtk::StateType  state,
const Gdk::Color color 
)

◆ set_bg_pixmap() [1/2]

void Gtk::Style::set_bg_pixmap ( Gtk::StateType  state_type,
const Glib::RefPtr< const Gdk::Pixmap > &  pixmap 
)

◆ set_bg_pixmap() [2/2]

void Gtk::Style::set_bg_pixmap ( Gtk::StateType  state_type,
const Glib::RefPtr< Gdk::Pixmap > &  pixmap 
)

◆ set_black()

void Gtk::Style::set_black ( const Gdk::Color value)

◆ set_dark()

void Gtk::Style::set_dark ( Gtk::StateType  state,
const Gdk::Color color 
)

◆ set_fg()

void Gtk::Style::set_fg ( Gtk::StateType  state,
const Gdk::Color color 
)

◆ set_font()

void Gtk::Style::set_font ( const Pango::FontDescription &  font_desc)

◆ set_light()

void Gtk::Style::set_light ( Gtk::StateType  state,
const Gdk::Color color 
)

◆ set_mid()

void Gtk::Style::set_mid ( Gtk::StateType  state,
const Gdk::Color color 
)

◆ set_text()

void Gtk::Style::set_text ( Gtk::StateType  state,
const Gdk::Color color 
)

◆ set_text_aa()

void Gtk::Style::set_text_aa ( Gtk::StateType  state,
const Gdk::Color color 
)

◆ set_white()

void Gtk::Style::set_white ( const Gdk::Color value)

◆ set_xthickness()

void Gtk::Style::set_xthickness ( int  xthickness)

◆ set_ythickness()

void Gtk::Style::set_ythickness ( int  ythickness)

◆ signal_realize()

Glib::SignalProxy0< void > Gtk::Style::signal_realize ( )
protected
Slot Prototype:
void on_my_realize()

◆ signal_unrealize()

Glib::SignalProxy0< void > Gtk::Style::signal_unrealize ( )
protected
Slot Prototype:
void on_my_unrealize()

◆ unrealize_vfunc()

virtual void Gtk::Style::unrealize_vfunc ( )
protectedvirtual

Friends And Related Function Documentation

◆ wrap()

Glib::RefPtr< Gtk::Style > wrap ( GtkStyle object,
bool  take_copy = false 
)
related

A Glib::wrap() method for this object.

Parameters
objectThe C instance.
take_copyFalse if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns
A C++ instance that wraps this C instance.

The documentation for this class was generated from the following file: