GtkFC API Reference version 0.1.0

Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members   Examples  

Gapplication Class Reference

#include <Gapplication.h>

List of all members.

Public Methods

 Gapplication (char *name, int argc, char **argv)
 ~Gapplication ()
void Run ()
void Add (Gwindow *w)
Gstring GetAppName ()
GwindowMgrGetWindowMgr ()

Static Public Methods

void Exit ()


Detailed Description

Gapplication is the main classe of GFC. A Gapplication construct the widget manager and is able to receive the top window of the program. After creation, user can add a Gwindow and launch the interaction loop with the Run method. The application will stop when a call to Exit() is made.
See also:
GwindowMgr for a description of the widget manager
Author(s):
Thibaut Nicolas
Version:
0.1.0
Examples:

askyesno.cpp, button.cpp, clist.cpp, entry.cpp, hello.cpp, label.cpp, and layout.cpp.


Constructor & Destructor Documentation

Gapplication::Gapplication ( char * name,
int argc,
char ** argv )
 

main constructor for Gapplication.

Parameters:
name   the name you want to give to your application
argc,argv   the main function parameters. They will be passed to gtk_main()


Member Function Documentation

void Gapplication::Add ( Gwindow * w )
 

Add a window to the application The window is registered in the GwindowManager at the root.

Parameters:
w   The Gwindow to add.
Examples:
askyesno.cpp, button.cpp, clist.cpp, entry.cpp, hello.cpp, label.cpp, and layout.cpp.

void Gapplication::Exit ( ) [static]
 

Exit the current application The Run function will return after a call to Exit()

Examples:
askyesno.cpp, button.cpp, clist.cpp, entry.cpp, hello.cpp, label.cpp, and layout.cpp.

Gstring Gapplication::GetAppName ( )
 

Return the name of the application.

Examples:
askyesno.cpp, button.cpp, clist.cpp, entry.cpp, hello.cpp, label.cpp, and layout.cpp.

GwindowMgr * Gapplication::GetWindowMgr ( )
 

Return the GwindowManager of the application

void Gapplication::Run ( )
 

Launch the application. The run function will not return until the Exit function was called.

Examples:
askyesno.cpp, button.cpp, clist.cpp, entry.cpp, hello.cpp, label.cpp, and layout.cpp.


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