PHP-GTK
Thursday, October 23, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previousGObject Enums
GPrioritynext

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

GType

GType is used in GtkListStore and GtkTreeStore to determine the type of the column in the data table. It is also used for custom signals when defining the return values and accepted parameters for callbacks.

The GType controls what type of data may be stored in the particular column, how the default GtkCellRenderer displays the value in the view, even what user defined signal callbacks can accept and return. The typing is very strict. It is generally safest to make sure you cast your variables properly. In addition, every object that is an instanceof Gobject will have a type in a class constant called gtype. This allows you to store widgets or pixbufs in data stores, or use them for parameters and return values with custom signals.

Value

Symbolic name

Description

  0Gobject::TYPE_INVALID
  4Gobject::TYPE_NONE
  8Gobject::TYPE_INTERFACE
  12Gobject::TYPE_CHAR
  20Gobject::TYPE_BOOLEAN A boolean value, true or false
  32Gobject::TYPE_LONG A big integer number.
  48Gobject::TYPE_ENUM
  52Gobject::TYPE_FLAGS
  60Gobject::TYPE_DOUBLE A decimal number with a fraction dot in it.
  64Gobject::TYPE_STRING A normal string.
  68Gobject::TYPE_POINTER
  72Gobject::TYPE_BOXED
  76Gobject::TYPE_PARAM
  80Gobject::TYPE_OBJECT
  137706104Gobject::TYPE_PHP_VALUE Any PHP variable content.

User Contributed Notes
gobject.enum.gtype.php
add a note about notes
There are no user contributed notes for this page.


previousGObject Enums
GPrioritynext

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


credits 

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