---
name: "Gtk_Button"
section: "3"
platform: "linux"
package: "libgtkmm-dev"
version: "1.0.3-1.1"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/Gtk_Button"
---

# Gtk\_Button(3)

## NAME - Gtk\_Button

## HEADER REQUIRED

**#include \<gtk--/button.h&gt;\>**

## BASE CLASSES

[Gtk\_Bin(3)](/Gtk_Bin/3.md)

## DERIVED BY

[Gtk\_OptionMenu(3)](/Gtk_OptionMenu/3.md) [Gtk\_ToggleButton(3)](/Gtk_ToggleButton/3.md) [Toolbar\_Child(3)](/Toolbar_Child/3.md)

## PROPERTIES

- *relief*

  Type: guint:2\
   Get:  **get\_relief**()\
   Set:  **set\_relief**()\

-

   Can be set to one of the following values : {num GTK\_RELIEF\_NORMAL}, {num GTK\_RELIEF\_HALF}, {num GTK\_RELIEF\_NONE}

## PUBLIC MEMBER INDEX

```
Gtk_Button();
  Create an empty button.
Gtk_Button(GtkButton *castitem);
  Simple Push Button with label.
Gtk_Button(const string &label);
void  set_relief(GtkReliefStyle newstyle);
GtkReliefStyle  get_relief() const;
signal void  pressed(BaseObjectType);
  Emited on button press.
signal void  released(BaseObjectType);
  Triggered when the user has released the mouse button
signal void  clicked(BaseObjectType);
  Emitted on button press and release.
signal void  enter(BaseObjectType);
  Triggered when the mouse cursor enters the button
signal void  leave(BaseObjectType);
  Triggered when the mouse cursor leaves the button
GtkButton*  gtkobj();
const GtkButton*  gtkobj() const;
static bool  isGtkButton(Gtk_Object *checkcast);
```

## PROTECTED MEMBER INDEX

```
friend  CppClassType;
typedef GtkButton  BaseObjectType;
typedef GtkButtonClass  BaseClassType;
virtual void * get_parent_class();
virtual void  pressed_impl();
virtual void  released_impl();
virtual void  clicked_impl();
virtual void  enter_impl();
virtual void  leave_impl();
```

## PRIVATE MEMBER INDEX

```
static CppClassType  button_class;
GtkType  get_type();
```

## PUBLIC MEMBER DESCRIPTIONS

- 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::**Gtk\_Button** (*GtkButton \*castitem*);

  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.\

- signal void Gtk\_Button::**pressed** (*BaseObjectType*);

  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)\

- signal void Gtk\_Button::**clicked** (*BaseObjectType*);

  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 DESCRIPTIONS

## PRIVATE MEMBER DESCRIPTIONS
