PHP-GTK
Monday, November 24, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previousGtkBox::query_child_packing
GtkButton Constructornext

Last updated: Sun, 12 May 2013
view this page in English

GtkButton

A pushbutton widget that issues a signal when clicked.

Object Hierarchy

Direct Subclasses

Description

The GtkButton widget is usually displayed as a pushbutton with a text label, GtkLabel, although it can contain any valid widget. The GtkButton is generally used to attach a callback function or method that is called when the button is clicked.

Constructors

GtkButton (string label, boolean use_underline);

-- Creates a new button widget.

GtkButton::new_from_stock (string stock_id);

-- Creates a GtkButton from stock.

Methods

clicked()
  Emits the "clicked" signal to the button.
enter()
  Emits the "enter" signal to the button.
get_alignment()
  Returns the xalign and the yalign properties.
get_focus_on_click()
  Returns the value of the "focus-on-click" property.
get_image()
  Returns the widget set as the image for the button.
get_label()
  Retrieves the text from the button label.
get_relief()
  Retrieves the current relief style.
get_use_stock()
  Returns the "use_stock" property.
get_use_underline()
  Returns the "use_underline" property.
leave()
  Emits the "leave" signal to the button.
pressed()
  Emits the "pressed" signal to the button.
released()
  Emits the "released" signal to the button.
set_alignment()
  Sets the "xalign" and "yalign" properties.
set_focus_on_click()
  Sets the "focus-on-click" property.
set_image()
  Sets the widget as an image for the button.
set_label()
  Sets the text of the button.
set_relief()
  Sets the current relief style of the button.
set_use_stock()
  Sets the "use_stock" property.
set_use_underline()
  Sets the "use_underline" property.

Signals

"activate"
  Emitted when the activate method is called.
"clicked"
  Emitted when the user clicks the button.
"enter"
  Emitted when the mouse pointer enters the button.
"leave"
  Emitted when the mouse pointer leaves the button.
"pressed"
  Emitted when the mouse button is pressed over the button.
"released"
  Emitted when the mouse button is released over the button.


User Contributed Notes
gtk.gtkbutton.php
add a note about notes
There are no user contributed notes for this page.


previousGtkBox::query_child_packing
GtkButton Constructornext

Last updated: Sun, 12 May 2013
view this page in English


credits 

PHP  Copyright © 2001-2014 The PHP Group
 All rights reserved.
Last updated: Sun May 12 20:50:56 2013 CEST