6 #include <gtkmmconfig.h>
9 #include <glibmm/ustring.h>
10 #include <sigc++/sigc++.h>
35 #include <pangomm/fontdescription.h>
36 #include <pangomm/layout.h>
47 #include <gtkmmconfig.h>
50 #ifndef DOXYGEN_SHOULD_SKIP_THIS
56 #ifndef DOXYGEN_SHOULD_SKIP_THIS
58 {
class Style_Class; }
68 class Style :
public Glib::Object
71 #ifndef DOXYGEN_SHOULD_SKIP_THIS
74 typedef Style CppObjectType;
80 static CppClassType style_class_;
88 explicit Style(
const Glib::ConstructParams& construct_params);
100 #ifndef DOXYGEN_SHOULD_SKIP_THIS
103 static GType get_base_type() G_GNUC_CONST;
156 void set_font(
const Pango::FontDescription& font_desc);
193 #ifndef GTKMM_DISABLE_DEPRECATED
232 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;
270 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;
324 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;
376 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;
413 const Glib::RefPtr<Gdk::Window>& window,
418 const Glib::ustring& detail,
419 const Glib::ArrayHandle<Gdk::Point>& points,
460 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;
479 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;
576 #ifndef GTKMM_DISABLE_DEPRECATED
592 Glib::RefPtr<Style>
copy()
const;
611 Glib::RefPtr<Style>
attach(
const Glib::RefPtr<Gdk::Window>& window);
692 template <
class PropertyType>
693 void get_style_property(GType widget_type,
const Glib::ustring& property_name, PropertyType& value)
const;
724 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);
740 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);
742 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);
744 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);
748 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);
750 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);
796 template <
class PropertyType>
inline
799 Glib::Value<PropertyType> property_value;
800 property_value.init(Glib::Value<PropertyType>::value_type());
807 Style* unconst_this =
const_cast<Style*
>(
this);
810 value = property_value.get();
826 Glib::RefPtr<Gtk::Style>
wrap(
GtkStyle*
object,
bool take_copy =
false);
Gdk::Color get_white() const
virtual void set_background_vfunc(const Glib::RefPtr< Gdk::Window > &window, Gtk::StateType state_type)
Glib::RefPtr< const Gdk::GC > get_bg_gc(Gtk::StateType state_type) const
Gdk::Color get_mid(Gtk::StateType state) 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_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_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
virtual void init_from_rc_vfunc(const Glib::RefPtr< RcStyle > &rc_style)
Gdk::Color get_background(Gtk::StateType state_type) const
Glib::RefPtr< Gdk::Pixmap > get_background_pixmap(Gtk::StateType state_type)
void set_fg(Gtk::StateType state, const Gdk::Color &color)
Gdk::Color get_black() const
virtual void realize_vfunc()
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)
Gdk::Color get_light(Gtk::StateType state) const
void set_base(Gtk::StateType state, const Gdk::Color &color)
Glib::RefPtr< const Gdk::GC > get_black_gc() const
Glib::RefPtr< const Gdk::GC > get_fg_gc(Gtk::StateType state_type) const
Glib::RefPtr< Style > copy() const
static Glib::RefPtr< Style > create()
Glib::RefPtr< Gdk::GC > get_dark_gc(Gtk::StateType state_type)
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)
Glib::RefPtr< Gdk::GC > get_base_gc(Gtk::StateType state_type)
void set_mid(Gtk::StateType state, const Gdk::Color &color)
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
Glib::RefPtr< Gdk::GC > get_bg_gc(Gtk::StateType state_type)
Glib::RefPtr< const Gdk::GC > get_mid_gc(Gtk::StateType state_type) const
void set_text(Gtk::StateType state, const Gdk::Color &color)
Glib::RefPtr< Gdk::GC > get_text_gc(Gtk::StateType state_type)
Glib::RefPtr< Gdk::Pixbuf > render_icon(const IconSource &source, Gtk::TextDirection direction, Gtk::StateType state, Gtk::IconSize size, Gtk::Widget &widget, const Glib::ustring &detail)
Gdk::Color get_dark(Gtk::StateType state) const
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)
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
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)
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_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 set_dark(Gtk::StateType state, const Gdk::Color &color)
Glib::RefPtr< Gtk::Style > wrap(GtkStyle *object, bool take_copy=false)
virtual void on_unrealize()
This is a default handler for the signal signal_unrealize().
IconSet lookup_icon_set(const Gtk::StockID &stock_id)
void set_light(Gtk::StateType state, const Gdk::Color &color)
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
Pango::FontDescription get_font() const
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)
void set_ythickness(int ythickness)
Gdk::Color get_fg(Gtk::StateType state) const
virtual void unrealize_vfunc()
Glib::RefPtr< const Gdk::GC > get_text_gc(Gtk::StateType state_type) 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
GtkStyle * gobj()
Provides access to the underlying C GObject.
void set_font(const Pango::FontDescription &font_desc)
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)
Glib::RefPtr< const Gdk::GC > get_light_gc(Gtk::StateType state_type) const
Glib::RefPtr< Gdk::GC > get_white_gc()
bool lookup_color(const Glib::ustring &color_name, Gdk::Color &color) const
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_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_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_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)
void set_bg_pixmap(Gtk::StateType state_type, const Glib::RefPtr< Gdk::Pixmap > &pixmap)
Glib::RefPtr< const Gdk::GC > get_dark_gc(Gtk::StateType state_type) const
Gdk::Color get_text_aa(Gtk::StateType state) 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
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)
void set_bg(Gtk::StateType state, const Gdk::Color &color)
virtual void copy_vfunc(const Glib::RefPtr< Style > &src)
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_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_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::RefPtr< Gdk::GC > get_light_gc(Gtk::StateType state_type)
Glib::RefPtr< Gdk::GC > get_mid_gc(Gtk::StateType state_type)
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
int get_xthickness() 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_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
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 on_realize()
This is a default handler for the signal signal_realize().
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)
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
Glib::RefPtr< const Gdk::Pixmap > get_bg_pixmap(Gtk::StateType state_type) 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
Gdk::Color get_base(Gtk::StateType state) const
void set_xthickness(int xthickness)
virtual Glib::RefPtr< Gdk::Pixbuf > render_icon_vfunc(const IconSource &source, TextDirection direction, Gtk::StateType state, IconSize size, Widget *widget, const Glib::ustring &detail)
Gdk::Color get_bg(Gtk::StateType state) const
Glib::RefPtr< Gdk::GC > get_black_gc()
Glib::RefPtr< const Gdk::GC > get_white_gc() const
void get_style_property(GType widget_type, const Glib::ustring &property_name, PropertyType &value) const
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)
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
Glib::RefPtr< Style > copy()
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)
void get_style_property_value(GType widget_type, const Glib::ustring &property_name, Glib::ValueBase &value)
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)
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 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)
virtual Glib::RefPtr< Style > clone_vfunc()
Glib::RefPtr< const Gdk::GC > get_base_gc(Gtk::StateType state_type) const
void set_black(const Gdk::Color &value)
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
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)
Gdk::Color get_text(Gtk::StateType state) const
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)
int get_ythickness() const
const GtkStyle * gobj() const
Provides access to the underlying C GObject.
void set_bg_pixmap(Gtk::StateType state_type, const Glib::RefPtr< const Gdk::Pixmap > &pixmap)
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
Glib::RefPtr< Style > attach(const Glib::RefPtr< Gdk::Window > &window)
void set_white(const Gdk::Color &value)
Glib::RefPtr< Gdk::GC > get_fg_gc(Gtk::StateType state_type)
Glib::SignalProxy0< void > signal_unrealize()
Glib::RefPtr< Gdk::Pixmap > get_bg_pixmap(Gtk::StateType state_type)
GtkStyle * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it....
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
static GType get_type() G_GNUC_CONST
void set_text_aa(Gtk::StateType state, const Gdk::Color &color)
Glib::SignalProxy0< void > signal_realize()
typedefG_BEGIN_DECLS struct _GdkPoint GdkPoint
GtkImagePixmapData pixmap
PBD::PropertyDescriptor< uint32_t > color