Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

UFrame Class Reference

UFrame: main frame and primary main window. More...

#include <uwin.hpp>

Inheritance diagram for UFrame:

UDialog UWin UBox UGroup List of all members.

Public Member Functions

 UFrame (const UArgs &a=UArgs::none)
 constructor; see also ~UGroup and the creator shortcut uframe()
virtual const UStylegetStyle (UContext *) const
 returns the contextual UStyle of this object
virtual void close (int status)
 closes this window and quits the application if this window is the main frame.
bool isMainFrame () const
 is this frame the "main frame"? (see: UAppli)
virtual bool realize ()
 [impl.

Static Public Member Functions

static const UStylemakeStyle ()
 creates the Style of this object.

Static Public Attributes

static UStylestyle = null
 corresponding Ubit UStyle

Friends

class UAppli
UFrameuframe (const UArgs &a=UArgs::none)
 creator shortcut that is equivalent to: *new UFrame()

Detailed Description

UFrame: main frame and primary main window.

see class UWin for important info. (most methods being inherited from this class).

the "Main Frame" is the first UFrame that is added to the UAppli other UFrame(s) are considered as "primary windows"

Iconification and window stack

Implicit hehaviors:


Member Function Documentation

void UFrame::close int  status  )  [virtual]
 

closes this window and quits the application if this window is the main frame.

the main frame is the first UFrame that was added to the UAppli.

see: UWin::close(), UAppli::quit(), UFrame::isMainFrame()

Reimplemented from UWin.

virtual const UStyle& UFrame::getStyle UContext *   )  const [virtual]
 

returns the contextual UStyle of this object

This virtual function calls the makeStyle() static function that was redefined for this specific class

Reimplemented from UDialog.

const UStyle & UFrame::makeStyle  )  [static]
 

creates the Style of this object.

This static function is redefined by each class that derives from UGroup. It is called by the virtual function UGroup::getStyle()

Reimplemented from UDialog.

bool UFrame::realize  )  [virtual]
 

[impl.

] initializes the window and its children. creates the associated graphics context and native window if this is a "hard window".

this fct. is automatically called when the window is shown for the first time (so that unused windows won't consume unnecessary resources)

Reimplemented from UDialog.


The documentation for this class was generated from the following files:
Generated on Thu May 19 12:40:18 2005 for Ubit[Eric.Lecolinet@enst.fr] by  doxygen 1.4.2