gtk+-2.0 Reference Manual

Synopsis

public class Style : Object  {
    public    Gdk.Color[]               fg ;
    public    Gdk.Color[]               bg ;
    public    Gdk.Color[]               light ;
    public    Gdk.Color[]               dark ;
    public    Gdk.Color[]               mid ;
    public    Gdk.Color[]               text ;
    public    Gdk.Color[]               base ;
    public    Gdk.Color[]               text_aa ;
    public    Gdk.Color                 black ;
    public    Gdk.Color                 white ;
    public    weak Pango.FontDescription  font_desc ;
    public    int                       xthickness ;
    public    int                       ythickness ;
    public    Gdk.GC[]                  fg_gc ;
    public    Gdk.GC[]                  bg_gc ;
    public    Gdk.GC[]                  light_gc ;
    public    Gdk.GC[]                  dark_gc ;
    public    Gdk.GC[]                  mid_gc ;
    public    Gdk.GC[]                  text_gc ;
    public    Gdk.GC[]                  base_gc ;
    public    Gdk.GC[]                  text_aa_gc ;
    public    weak Gdk.GC               black_gc ;
    public    weak Gdk.GC               white_gc ;
    public    Gdk.Pixmap[]              bg_pixmap ;
    public    int                       attach_count ;
    public    int                       depth ;
    public    weak Gdk.Colormap         colormap ;
    public    weak RcStyle              rc_style ;
    public    weak GLib.SList           styles ;
    public    weak GLib.Array           property_cache ;
    public    weak GLib.SList           icon_factories ;


    public                              Style                     (  ) ;


    public    signal void               realize                   (  )  ;
    public    signal void               unrealize                 (  )  ;


    public    void                      apply_default_background  ( Gdk.Window          window,
                                                                    bool                set_bg,
                                                                    StateType           state_type,
                                                                    Gdk.Rectangle       area,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height ) ;
    public    weak Style                attach                    ( Gdk.Window          window ) ;
    public    void                      detach                    (  ) ;
    public    bool                      lookup_color              ( string              color_name,
                                                                    Gdk.Color           color ) ;
    public    weak IconSet              lookup_icon_set           ( string              stock_id ) ;
    public    virtual weak Style        clone                     (  ) ;
    public    virtual void              copy                      (  ) ;
    public    virtual void              draw_arrow                ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    ArrowType           arrow_type,
                                                                    bool                fill,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height ) ;
    public    virtual void              draw_box                  ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height ) ;
    public    virtual void              draw_box_gap              ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height,
                                                                    PositionType        gap_side,
                                                                    int                 gap_x,
                                                                    int                 gap_width ) ;
    public    virtual void              draw_check                ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height ) ;
    public    virtual void              draw_diamond              ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height ) ;
    public    virtual void              draw_expander             ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    ExpanderStyle       expander_style ) ;
    public    virtual void              draw_extension            ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height,
                                                                    PositionType        gap_side ) ;
    public    virtual void              draw_flat_box             ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height ) ;
    public    virtual void              draw_focus                ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height ) ;
    public    virtual void              draw_handle               ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height,
                                                                    Orientation         orientation ) ;
    public    virtual void              draw_hline                ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x1,
                                                                    int                 x2,
                                                                    int                 y ) ;
    public    virtual void              draw_layout               ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    bool                use_text,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    Pango.Layout        layout ) ;
    public    virtual void              draw_option               ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height ) ;
    public    virtual void              draw_polygon              ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    Gdk.Point           point,
                                                                    int                 npoints,
                                                                    bool                fill ) ;
    public    virtual void              draw_resize_grip          ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    Gdk.WindowEdge      edge,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height ) ;
    public    virtual void              draw_shadow               ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height ) ;
    public    virtual void              draw_shadow_gap           ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height,
                                                                    PositionType        gap_side,
                                                                    int                 gap_x,
                                                                    int                 gap_width ) ;
    public    virtual void              draw_slider               ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height,
                                                                    Orientation         orientation ) ;
    public    virtual void              draw_string               ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    string              str ) ;
    public    virtual void              draw_tab                  ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height ) ;
    public    virtual void              draw_vline                ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 y1_,
                                                                    int                 y2_,
                                                                    int                 x ) ;
    public    virtual void              init_from_rc              ( RcStyle             rc_style ) ;
    public    virtual weak Gdk.Pixbuf   render_icon               ( IconSource          source,
                                                                    TextDirection       direction,
                                                                    StateType           state,
                                                                    IconSize            size,
                                                                    Widget              widget,
                                                                    string              detail ) ;
    public    virtual void              set_background            ( Gdk.Window          window,
                                                                    StateType           state_type ) ;
}

Style Description

Details

Constructor Details

Style ()
    public                              Style                     (  ) ;		

Field Details

fg
    public    Gdk.Color[]               fg ;		

bg
    public    Gdk.Color[]               bg ;		

light
    public    Gdk.Color[]               light ;		

dark
    public    Gdk.Color[]               dark ;		

mid
    public    Gdk.Color[]               mid ;		

text
    public    Gdk.Color[]               text ;		

base
    public    Gdk.Color[]               base ;		

text_aa
    public    Gdk.Color[]               text_aa ;		

black
    public    Gdk.Color                 black ;		

white
    public    Gdk.Color                 white ;		

font_desc
    public    weak Pango.FontDescription  font_desc ;		

xthickness
    public    int                       xthickness ;		

ythickness
    public    int                       ythickness ;		

fg_gc
    public    Gdk.GC[]                  fg_gc ;		

bg_gc
    public    Gdk.GC[]                  bg_gc ;		

light_gc
    public    Gdk.GC[]                  light_gc ;		

dark_gc
    public    Gdk.GC[]                  dark_gc ;		

mid_gc
    public    Gdk.GC[]                  mid_gc ;		

text_gc
    public    Gdk.GC[]                  text_gc ;		

base_gc
    public    Gdk.GC[]                  base_gc ;		

text_aa_gc
    public    Gdk.GC[]                  text_aa_gc ;		

black_gc
    public    weak Gdk.GC               black_gc ;		

white_gc
    public    weak Gdk.GC               white_gc ;		

bg_pixmap
    public    Gdk.Pixmap[]              bg_pixmap ;		

attach_count
    public    int                       attach_count ;		

depth
    public    int                       depth ;		

colormap
    public    weak Gdk.Colormap         colormap ;		

rc_style
    public    weak RcStyle              rc_style ;		

styles
    public    weak GLib.SList           styles ;		

property_cache
    public    weak GLib.Array           property_cache ;		

icon_factories
    public    weak GLib.SList           icon_factories ;		

Signal Details

realize
    public    signal void               realize                   (  )  ;		

unrealize
    public    signal void               unrealize                 (  )  ;		

Property Details

Method Details

apply_default_background ()
    public    void                      apply_default_background  ( Gdk.Window          window,
                                                                    bool                set_bg,
                                                                    StateType           state_type,
                                                                    Gdk.Rectangle       area,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height ) ;		

attach ()
    public    weak Style                attach                    ( Gdk.Window          window ) ;		

detach ()
    public    void                      detach                    (  ) ;		

lookup_color ()
    public    bool                      lookup_color              ( string              color_name,
                                                                    Gdk.Color           color ) ;		

lookup_icon_set ()
    public    weak IconSet              lookup_icon_set           ( string              stock_id ) ;		

clone ()
    public    virtual weak Style        clone                     (  ) ;		

copy ()
    public    virtual void              copy                      (  ) ;		

draw_arrow ()
    public    virtual void              draw_arrow                ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    ArrowType           arrow_type,
                                                                    bool                fill,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height ) ;		

draw_box ()
    public    virtual void              draw_box                  ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height ) ;		

draw_box_gap ()
    public    virtual void              draw_box_gap              ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height,
                                                                    PositionType        gap_side,
                                                                    int                 gap_x,
                                                                    int                 gap_width ) ;		

draw_check ()
    public    virtual void              draw_check                ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height ) ;		

draw_diamond ()
    public    virtual void              draw_diamond              ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height ) ;		

draw_expander ()
    public    virtual void              draw_expander             ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    ExpanderStyle       expander_style ) ;		

draw_extension ()
    public    virtual void              draw_extension            ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height,
                                                                    PositionType        gap_side ) ;		

draw_flat_box ()
    public    virtual void              draw_flat_box             ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height ) ;		

draw_focus ()
    public    virtual void              draw_focus                ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height ) ;		

draw_handle ()
    public    virtual void              draw_handle               ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height,
                                                                    Orientation         orientation ) ;		

draw_hline ()
    public    virtual void              draw_hline                ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x1,
                                                                    int                 x2,
                                                                    int                 y ) ;		

draw_layout ()
    public    virtual void              draw_layout               ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    bool                use_text,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    Pango.Layout        layout ) ;		

draw_option ()
    public    virtual void              draw_option               ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height ) ;		

draw_polygon ()
    public    virtual void              draw_polygon              ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    Gdk.Point           point,
                                                                    int                 npoints,
                                                                    bool                fill ) ;		

draw_resize_grip ()
    public    virtual void              draw_resize_grip          ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    Gdk.WindowEdge      edge,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height ) ;		

draw_shadow ()
    public    virtual void              draw_shadow               ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height ) ;		

draw_shadow_gap ()
    public    virtual void              draw_shadow_gap           ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height,
                                                                    PositionType        gap_side,
                                                                    int                 gap_x,
                                                                    int                 gap_width ) ;		

draw_slider ()
    public    virtual void              draw_slider               ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height,
                                                                    Orientation         orientation ) ;		

draw_string ()
    public    virtual void              draw_string               ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    string              str ) ;		

draw_tab ()
    public    virtual void              draw_tab                  ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    ShadowType          shadow_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 x,
                                                                    int                 y,
                                                                    int                 width,
                                                                    int                 height ) ;		

draw_vline ()
    public    virtual void              draw_vline                ( Gdk.Window          window,
                                                                    StateType           state_type,
                                                                    Gdk.Rectangle       area,
                                                                    Widget              widget,
                                                                    string              detail,
                                                                    int                 y1_,
                                                                    int                 y2_,
                                                                    int                 x ) ;		

init_from_rc ()
    public    virtual void              init_from_rc              ( RcStyle             rc_style ) ;		

render_icon ()
    public    virtual weak Gdk.Pixbuf   render_icon               ( IconSource          source,
                                                                    TextDirection       direction,
                                                                    StateType           state,
                                                                    IconSize            size,
                                                                    Widget              widget,
                                                                    string              detail ) ;		

set_background ()
    public    virtual void              set_background            ( Gdk.Window          window,
                                                                    StateType           state_type ) ;		


Created by Valadoc