GtkFC API Reference version 0.1.0

Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members   Examples  

Gbutton Class Reference

#include <Gbutton.h>

Inheritance diagram for Gbutton:

Gwidget Gobject List of all members.

Public Methods

 Gbutton (const char *label)
 Gbutton (Gstring label)
virtual void OnEvent (GdkEvent *e, void *user_data)
virtual void OnAction (Gwidget *w, GdkEvent *e)
 ~Gbutton ()

Detailed Description

The Gbutton class build a simple push button. By default when the button is clicked an event is sending to the parent of the button. You can override the OnAction function if you inherit a widget from Gbutton to treat the event.
Author(s):
Thibaut Nicolas
Version:
0.1.0
Examples:

button.cpp, and clist.cpp.


Member Function Documentation

void Gbutton::OnAction ( Gwidget * w,
GdkEvent * e ) [virtual]
 

Function called when the button receive an event. By default the event is sending to the parent widget

Reimplemented from Gwidget.

virtual void Gbutton::OnEvent ( GdkEvent * e,
void * user_data ) [virtual]
 

Action performed when an event occur

Reimplemented from Gwidget.


The documentation for this class was generated from the following file:

Copyright © 2002 Thibaut Nicolas
Last modified  lun sep 23 23:41:26 EDT 2002