ubit::UFrame Class Reference

UFrame: iconifiable toplevel window. More...

#include <uwin.hpp>

Inheritance diagram for ubit::UFrame:

ubit::UDialog ubit::UWin ubit::UBox ubit::UGroup ubit::UControl ubit::UBrick ubit::UObject List of all members.

Public Member Functions

 UFrame (const UArgs &a=UArgs::none)
 create a new Frame Window.
bool isMainFrame () const
 is this frame the "main frame"? (
virtual void show (bool state, UDisp *)
virtual void show (bool state=true)
 shows/hides the window.
virtual void close (int status=0)
 closes this window and quits the application if this window is the main frame.
virtual bool realize ()
 [impl] initializes the window and its children.

Static Public Member Functions

static UStylecreateStyle ()
 < important: all subclasses MUST contain this declaration. static function that returns the UStyle of this class (see details!).

Friends

class UAppli
UFrameuframe (const UArgs &a=UArgs::none)
 shortcut that returns *new UFrame(args).

Detailed Description

UFrame: iconifiable toplevel window.

In contrast with Dialogs, Frames can be iconified and they are not hidden when the Main Frame is iconified. The Main Frame is the first Frame that was added to the UAppli. Usually, an application has only one Frame. But it can have several frames if it is useful to have several iconifiable windows.

See class UWin for inherited methods and other important remarks.


Member Function Documentation

void ubit::UFrame::close ( int  status = 0  )  [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 also:
: UWin::close(), UAppli::quit(), UFrame::isMainFrame()

Reimplemented from ubit::UWin.

UStyle * ubit::UFrame::createStyle (  )  [static]

< important: all subclasses MUST contain this declaration. static function that returns the UStyle of this class (see details!).

this macro defines the UClass that corresponds to this class and:

Reimplemented from ubit::UDialog.

bool ubit::UFrame::isMainFrame (  )  const

is this frame the "main frame"? (

See also:
: UAppli)

bool ubit::UFrame::realize (  )  [virtual]

[impl] initializes the window and its children.

this function called when the window is shown for the first time

Reimplemented from ubit::UDialog.

virtual void ubit::UFrame::show ( bool  state = true  )  [virtual]

shows/hides the window.

windows are not shown by default; show() must be called to make them visible. Note that the window size will not change after the first call to show(). setSize() or updateSize() must be called to change its size.

See also:
also: showModal() to open a modal window.

Reimplemented from ubit::UDialog.


The documentation for this class was generated from the following files:
Generated on Mon Jan 29 00:20:57 2007 for Ubit by  doxygen 1.4.7