Webhosting and cheap domain registration service
  

 Home

Prev GtkObject::set_flags Next

GtkObject::set_flags

This method allows you to set any of the flags defined by the GtkWidgetFlags enumerated values. These flags share the flags space in GtkObject; the first four bits are taken by GtkObjectFlags, and derived objects use the remaining bitfields. The GtkWidgetFlags settings determine the capabilities of a widget; e.g the flag GTK_NO_WINDOW is set on certain widgets during their creation in the GTK source, reversing the generic widget property of $widget->window; - such widgets are not able to respond unilaterally to GDK events. (Use a GtkEventBox to capture events on windowless widgets.)

You would use set_flags() in a situation where the widget needs capabilities it does not have at base; setting for instance GTK_CAN_DEFAULT on a GtkButton you want to have keyboard grab by default will cause that button to be drawn in such a way that space is allowed for it to be displayed with default status.

Although all the flag bitfields are reversible in this way, it is not always sane to alter them, given that the chief characteristics of a widget are controlled by them. For example, unsetting the GTK_NO_WINDOW flag on a GtkLabel widget will prevent the label from displaying its current text.

See also: flags() , unset_flags() , and a whole host of GtkWidget methods such as set_sensitive() and grab_default() which either act as wrappers for the set_flags() function or need to work in tandem with GtkWidgetFlags values set in this way.


Prev Home Next
GtkObject::flags Up GtkObject::unset_flags

 

  

Network sites:

Cheap domain registrar's cheap domain registration service

$8.95 domain registration : Buy domain name or register domain name 

 
 
Quotes:
Your joy is your sorrow unmasked. And the self-same well from which your laughter rises was often-times filled with your tears.  
 
 

Disclaimer: This documentation is provided only for the benefits of our webhosting customers.
For authoritative source of the documentation, please refer to http://gtk.php.net/docs.php