index
gtk-- homepage



Description:
Gtk_Button

#include <gtk--/button.h>
Base classes: Gtk_Bin
Derived by: Gtk_OptionMenu Gtk_ToggleButton



Properties:


Public member index:


static GtkType get_type();
GtkButton *gtkobj();
const GtkButton *gtkobj()const;
static bool isA(Gtk_Object *checkcast);
virtual ~Gtk_Button();
Gtk_Button();
Create an empty button.

explicit Gtk_Button(const string &label,gfloat x=0 . 5,gfloat y=0 . 5);
Simple Push Button with label.

void set_relief(GtkReliefStyle newstyle);
Set the button's relief style (see properties table)

GtkReliefStyle get_relief()const;
Return the button's relief style (see properties table)

emitable signal void pressed();
Emited on button press.

emitable signal void released();
Triggered when the user has released the mouse button

emitable signal void clicked();
Emitted on button press and release.

emitable signal void enter();
Triggered when the mouse cursor enters the button

emitable signal void leave();
Triggered when the mouse cursor leaves the button

Protected member index:


void initialize_class();
void *get_parent_class();
static void init_parent_class();
explicit Gtk_Button(GtkButton *castitem);
virtual void pressed_impl();
virtual void released_impl();
virtual void clicked_impl();
virtual void enter_impl();
virtual void leave_impl();
Private member index:


Gtk_Button(const Gtk_Button &);
Gtk_Button &operator =(const Gtk_Button &);

Public member details:


Gtk_Button
Gtk_Button::Gtk_Button();

Create an empty button.
With an empty button, you can Gtk_Button::add() a widget such as a Gtk_Pixmap or Gtk_Box.

If you just wish to add a Gtk_Label, you may want to use the

 ctor
 directly instead.


Gtk_Button
explicit Gtk_Button::Gtk_Button(const string &label,gfloat x=0 . 5,gfloat y=0 . 5);

Simple Push Button with label.
Create a button with the given label inside. You won't be able to add a widget in this button since it already has a Gtk_Label in it.


pressed
emitable signal void Gtk_Button::pressed();

Emited on button press.
Triggered when the button is pressed (e.g. the mouse button is still down, it hasn't been released yet, see next signal)


clicked
emitable signal void Gtk_Button::clicked();

Emitted on button press and release.
Triggered when the user has pressed and released the mouse button This is the signal you most likely want to connect.


Protected member details:



Private member details:



Examples:





(pages generated by PERCEPS -script.)