---
name: "GButton"
section: "3o"
platform: "linux"
package: "liblablgtk2-ocaml-doc"
version: "2.4.0v0.2tv-8"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/GButton"
---

# GButton(3o)

A widget that creates a signal when clicked on

## NAME

GButton - A widget that creates a signal when clicked on

## Module

Module   GButton

## Documentation

Module **GButton**\
  :  **sig end**

A widget that creates a signal when clicked on

**=== A widget that creates a signal when clicked on ===**

**===** **GtkButton** **===**

*class button\_skel :* **\[\> Gtk.button \] Gtk.obj -\> object end**

*class button\_signals :* **\[\> Gtk.button \] Gtk.obj -\> object end**

*class button :* **Gtk.button Gtk.obj -\> object end**

A widget that creates a signal when clicked on

*val button* :  **?label:string -\>** **?use\_mnemonic:bool -\>** **?stock:GtkStock.id -\>** **?relief:Gtk.Tags.relief\_style -\>** **?packing:(GObj.widget -\> unit) -\> ?show:bool -\> unit -\> button**

**===** **GtkToggleButton & GtkRadioButton** **===**

*class toggle\_button\_signals :* **\[\> Gtk.toggle\_button \] Gtk.obj -\> object end**

*class toggle\_button :* **\[\> Gtk.toggle\_button \] Gtk.obj -\> object end**

Create buttons which retain their state

*val toggle\_button* :  **?label:string -\>** **?use\_mnemonic:bool -\>** **?stock:GtkStock.id -\>** **?relief:Gtk.Tags.relief\_style -\>** **?active:bool -\>** **?draw\_indicator:bool -\>** **?packing:(GObj.widget -\> unit) -\> ?show:bool -\> unit -\> toggle\_button**

*val check\_button* :  **?label:string -\>** **?use\_mnemonic:bool -\>** **?stock:GtkStock.id -\>** **?relief:Gtk.Tags.relief\_style -\>** **?active:bool -\>** **?draw\_indicator:bool -\>** **?packing:(GObj.widget -\> unit) -\> ?show:bool -\> unit -\> toggle\_button**

*class radio\_button :* **Gtk.radio\_button Gtk.obj -\> object end**

A choice from multiple check buttons

*val radio\_button* :  **?group:Gtk.radio\_button Gtk.group -\>** **?label:string -\>** **?use\_mnemonic:bool -\>** **?stock:GtkStock.id -\>** **?relief:Gtk.Tags.relief\_style -\>** **?active:bool -\>** **?draw\_indicator:bool -\>** **?packing:(GObj.widget -\> unit) -\> ?show:bool -\> unit -\> radio\_button**

**===** **GtkColorButton & GtkFontButton** **===**

*class color\_button\_signals :* **\[\> Gtk.color\_button \] Gtk.obj -\> object end**

**Since** GTK 2.4

*class color\_button :* **\[\> Gtk.color\_button \] Gtk.obj -\> object end**

**Since** GTK 2.4

*val color\_button* :  **?color:Gdk.color -\>** **?title:string -\>** **?packing:(GObj.widget -\> unit) -\> ?show:bool -\> unit -\> color\_button**

A button to launch a color selection dialog

**Since** GTK 2.4

*class font\_button\_signals :* **\[\> Gtk.font\_button \] Gtk.obj -\> object end**

**Since** GTK 2.4

*class font\_button :* **\[\> Gtk.font\_button \] Gtk.obj -\> object end**

**Since** GTK 2.4

*val font\_button* :  **?font\_name:string -\>** **?title:string -\>** **?packing:(GObj.widget -\> unit) -\> ?show:bool -\> unit -\> font\_button**

A button to launch a font selection dialog

**Since** GTK 2.4

**===** **GtkToolbar** **===**

*class type tool\_item\_o =* **object end**

*class toolbar\_signals :* **\[\> Gtk.toolbar \] Gtk.obj -\> object end**

*class toolbar :* **Gtk.toolbar Gtk.obj -\> object end**

Create bars of buttons and other widgets

*val toolbar* :  **?orientation:Gtk.Tags.orientation -\>** **?style:Gtk.Tags.toolbar\_style -\>** **?tooltips:bool -\>** **?border\_width:int -\>** **?width:int -\>** **?height:int -\>** **?packing:(GObj.widget -\> unit) -\> ?show:bool -\> unit -\> toolbar**

**===** **ToolItems for the new toolbar API** **===**

*class tool\_item\_skel :* **\[\> Gtk.tool\_item \] Gtk.obj -\> object end**

**Since** GTK 2.4

*class tool\_item :* **\[\> Gtk.tool\_item \] Gtk.obj -\> object end**

**Since** GTK 2.4

*val tool\_item* :  **?homogeneous:bool -\>** **?expand:bool -\>** **?packing:(tool\_item\_o -\> unit) -\>** **?show:bool -\> unit -\> tool\_item**

**Since** GTK 2.4

*class separator\_tool\_item :* **\[\> Gtk.separator\_tool\_item \] Gtk.obj -\> object end**

**Since** GTK 2.4

*val separator\_tool\_item* :  **?draw:bool -\>** **?homogeneous:bool -\>** **?expand:bool -\>** **?packing:(tool\_item\_o -\> unit) -\>** **?show:bool -\> unit -\> separator\_tool\_item**

**Since** GTK 2.4

*class tool\_button\_signals :* **\[\> Gtk.tool\_button \] Gtk.obj -\> object end**

**Since** GTK 2.4

*class tool\_button\_skel :* **\[\> Gtk.tool\_button \] Gtk.obj -\> object end**

**Since** GTK 2.4

*class tool\_button :* **\[\> Gtk.tool\_button \] Gtk.obj -\> object end**

**Since** GTK 2.4

*val tool\_button* :  **?label:string -\>** **?stock:GtkStock.id -\>** **?use\_underline:bool -\>** **?homogeneous:bool -\>** **?expand:bool -\>** **?packing:(tool\_item\_o -\> unit) -\>** **?show:bool -\> unit -\> tool\_button**

**Since** GTK 2.4

*class toggle\_tool\_button\_signals :* **\[\> Gtk.toggle\_tool\_button \] Gtk.obj -\> object end**

**Since** GTK 2.4

*class toggle\_tool\_button :* **\[\> Gtk.toggle\_tool\_button \] Gtk.obj -\> object end**

**Since** GTK 2.4

*val toggle\_tool\_button* :  **?active:bool -\>** **?label:string -\>** **?stock:GtkStock.id -\>** **?use\_underline:bool -\>** **?homogeneous:bool -\>** **?expand:bool -\>** **?packing:(tool\_item\_o -\> unit) -\>** **?show:bool -\> unit -\> toggle\_tool\_button**

**Since** GTK 2.4

*class radio\_tool\_button :* **\[\> Gtk.radio\_tool\_button \] Gtk.obj -\> object end**

**Since** GTK 2.4

*val radio\_tool\_button* :  **?group:radio\_tool\_button -\>** **?active:bool -\>** **?label:string -\>** **?stock:GtkStock.id -\>** **?use\_underline:bool -\>** **?homogeneous:bool -\>** **?expand:bool -\>** **?packing:(tool\_item\_o -\> unit) -\>** **?show:bool -\> unit -\> radio\_tool\_button**

**Since** GTK 2.4
