#include <uwin.hpp>
Inheritance diagram for ubit::UFrame:
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 UStyle * | createStyle () |
< important: all subclasses MUST contain this declaration. static function that returns the UStyle of this class (see details!). | |
Friends | |
class | UAppli |
UFrame & | uframe (const UArgs &a=UArgs::none) |
shortcut that returns *new UFrame(args). |
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.
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.
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 |
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.
Reimplemented from ubit::UDialog.