GtkFC API Reference version 0.1.0

Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members   Examples  

Gwindow Class Reference

#include <Gwindow.h>

Inheritance diagram for Gwindow:

Gwidget Gobject List of all members.

Public Methods

 Gwindow (Gstring title)
 ~Gwindow ()
void SetTitle (Gstring title)
bool Insert (Gwidget *w)
void SetLayout (Gcontainers *layout)
virtual void OnEvent (GdkEvent *event, void *user_data)
virtual bool Init ()
virtual bool OnInit ()
virtual void SetWindowMgr (GwindowMgr *w)

Protected Methods

virtual bool OnDestroy ()
void Close ()
GcontainersGetMainLayout ()

Detailed Description

The Gwindow is a widget that provide a new window for the application The window contain a Layout for organize widgets. You can insert widgets in the window by a call to Insert in the overriden method OnInit().
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

Gwindow::Gwindow ( Gstring title )
 

Construct a new window with a new title

Parameters:
title   the title of the window


Member Function Documentation

bool Gwindow::Init ( ) [virtual]
 

Function called when the window is initialized

Reimplemented from Gwidget.

bool Gwindow::Insert ( Gwidget * w )
 

Insert a widget in the window. The widget will be inserted in the main layer of the window automatically.

Reimplemented from Gwidget.

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

void Gwindow::OnEvent ( GdkEvent * event,
void * user_data ) [virtual]
 

Receive the event of the widget contained in the window

Reimplemented from Gwidget.

bool Gwindow::OnInit ( ) [virtual]
 

User function to use when you want to initialize the widget in the window

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

void Gwindow::SetLayout ( Gcontainers * layout )
 

Set the new Layer of the window

Parameters:
layout   The layer (GfixedLayout, GLinearLayout...)
Examples:
askyesno.cpp, button.cpp, clist.cpp, entry.cpp, hello.cpp, label.cpp, and layout.cpp.

void Gwindow::SetTitle ( Gstring title )
 

Set the title of the window

Parameters:
title   The new title of the window

void Gwindow::SetWindowMgr ( GwindowMgr * w ) [virtual]
 

Set the window manager of the window. Normally not used by user.

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