Class Index | Cross Index | Namespace Index |
Contained in: Gtk
Derived from:
Gtk::Bin
Derived by:
Gtk::OptionMenu
Gtk::ToggleButton
#include <gtk--/button.h>
public function member index: |
||
Button | (); | |
explicit | Button | (const string& label, gfloat x=0.5, gfloat y=0.5); |
emitable signal void | clicked | (); |
emitable signal void | enter | (); |
GtkReliefStyle | get_relief | () const; |
GtkButton* | gtkobj | (); |
const GtkButton* | gtkobj | () const; |
static bool | isA | (Object* object); |
emitable signal void | leave | (); |
emitable signal void | pressed | (); |
emitable signal void | released | (); |
void | set_relief | (GtkReliefStyle newstyle); |
virtual | ~Button | (); |
protected function member index: |
||
virtual void | clicked_impl | (); |
virtual void | enter_impl | (); |
virtual void | leave_impl | (); |
virtual void | pressed_impl | (); |
virtual void | released_impl | (); |
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 Gtk_Button(const string &label)} ctor directly instead.
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.
Triggered when the user has pressed and released the mouse button This is the signal you most likely want to connect.
Triggered when the button is pressed (e.g. the mouse button is still down, it hasn't been released yet, see next signal)