gtk+-2.0 Reference Manual

Synopsis

public class Button : Bin, Implementor, Buildable  {
    public    weak Gdk.Window           event_window ;
    public    weak string               label_text ;
    public    uint                      activate_timeout ;
    public    uint                      constructed ;
    public    uint                      in_button ;
    public    uint                      button_down ;
    public    uint                      depressed ;
    public    uint                      depress_on_activate ;


    public    weak bool                 focus_on_click            { get; set; } ;
    public    weak Widget               image                     { get; set; } ;
    public    weak PositionType         image_position            { get; set; } ;
    public    weak string               label                     { get; construct set; } ;
    public    weak ReliefStyle          relief                    { get; set; } ;
    public    weak bool                 use_stock                 { get; construct set; } ;
    public    weak bool                 use_underline             { get; construct set; } ;
    public    weak float                xalign                    { get; set; } ;
    public    weak float                yalign                    { get; set; } ;


    public                              Button                    (  ) ;
    public                              Button.from_stock         ( string              stock_id ) ;
    public                              Button.with_label         ( string              label ) ;
    public                              Button.with_mnemonic      ( string              label ) ;


    public    signal void               activate                  (  )  ;
    public    signal void               clicked                   (  )  ;
    public    signal void               enter                     (  )  ;
    public    signal void               leave                     (  )  ;
    public    signal void               pressed                   (  )  ;
    public    signal void               released                  (  )  ;


    public    void                      get_alignment             ( float               xalign,
                                                                    float               yalign ) ;
    public    bool                      get_focus_on_click        (  ) ;
    public    weak Widget               get_image                 (  ) ;
    public    PositionType              get_image_position        (  ) ;
    public    weak string               get_label                 (  ) ;
    public    ReliefStyle               get_relief                (  ) ;
    public    bool                      get_use_stock             (  ) ;
    public    bool                      get_use_underline         (  ) ;
    public    void                      set_alignment             ( float               xalign,
                                                                    float               yalign ) ;
    public    void                      set_focus_on_click        ( bool                focus_on_click ) ;
    public    void                      set_image                 ( Widget              image ) ;
    public    void                      set_image_position        ( PositionType        position ) ;
    public    void                      set_label                 ( string              label ) ;
    public    void                      set_relief                ( ReliefStyle         newstyle ) ;
    public    void                      set_use_stock             ( bool                use_stock ) ;
    public    void                      set_use_underline         ( bool                use_underline ) ;
}

Button Description

Details

Constructor Details

Button ()
    public                              Button                    (  ) ;		

Button.from_stock ()
    public                              Button.from_stock         ( string              stock_id ) ;		

Button.with_label ()
    public                              Button.with_label         ( string              label ) ;		

Button.with_mnemonic ()
    public                              Button.with_mnemonic      ( string              label ) ;		

Field Details

event_window
    public    weak Gdk.Window           event_window ;		

label_text
    public    weak string               label_text ;		

activate_timeout
    public    uint                      activate_timeout ;		

constructed
    public    uint                      constructed ;		

in_button
    public    uint                      in_button ;		

button_down
    public    uint                      button_down ;		

depressed
    public    uint                      depressed ;		

depress_on_activate
    public    uint                      depress_on_activate ;		

Signal Details

activate
    public    signal void               activate                  (  )  ;		

clicked
    public    signal void               clicked                   (  )  ;		

enter
    public    signal void               enter                     (  )  ;		

leave
    public    signal void               leave                     (  )  ;		

pressed
    public    signal void               pressed                   (  )  ;		

released
    public    signal void               released                  (  )  ;		

Property Details

focus_on_click
    public    weak bool                 focus_on_click            { get; set; } ;		

image
    public    weak Widget               image                     { get; set; } ;		

image_position
    public    weak PositionType         image_position            { get; set; } ;		

label
    public    weak string               label                     { get; construct set; } ;		

relief
    public    weak ReliefStyle          relief                    { get; set; } ;		

use_stock
    public    weak bool                 use_stock                 { get; construct set; } ;		

use_underline
    public    weak bool                 use_underline             { get; construct set; } ;		

xalign
    public    weak float                xalign                    { get; set; } ;		

yalign
    public    weak float                yalign                    { get; set; } ;		

Method Details

get_alignment ()
    public    void                      get_alignment             ( float               xalign,
                                                                    float               yalign ) ;		

get_focus_on_click ()
    public    bool                      get_focus_on_click        (  ) ;		

get_image ()
    public    weak Widget               get_image                 (  ) ;		

get_image_position ()
    public    PositionType              get_image_position        (  ) ;		

get_label ()
    public    weak string               get_label                 (  ) ;		

get_relief ()
    public    ReliefStyle               get_relief                (  ) ;		

get_use_stock ()
    public    bool                      get_use_stock             (  ) ;		

get_use_underline ()
    public    bool                      get_use_underline         (  ) ;		

set_alignment ()
    public    void                      set_alignment             ( float               xalign,
                                                                    float               yalign ) ;		

set_focus_on_click ()
    public    void                      set_focus_on_click        ( bool                focus_on_click ) ;		

set_image ()
    public    void                      set_image                 ( Widget              image ) ;		

set_image_position ()
    public    void                      set_image_position        ( PositionType        position ) ;		

set_label ()
    public    void                      set_label                 ( string              label ) ;		

set_relief ()
    public    void                      set_relief                ( ReliefStyle         newstyle ) ;		

set_use_stock ()
    public    void                      set_use_stock             ( bool                use_stock ) ;		

set_use_underline ()
    public    void                      set_use_underline         ( bool                use_underline ) ;		


Created by Valadoc