#include <uwin.hpp>
Inheritance diagram for UWin:
Public Member Functions | |
UWin (const UArgs &) | |
constructor; see also class UGroup and destructor UGroup::~UGroup | |
virtual | ~UWin () |
important note on recursive deletion: see UGroup:~UGroup | |
virtual class UWin * | winCast () |
virtual const UStyle & | getStyle (UContext *) const |
returns the contextual UStyle of this object. | |
virtual void | move (UWin *, u_pos x_in_win, u_pos y_in_win, UDisp *=null) |
changes window location relatively to a (x,y) position in a Window. | |
virtual void | move (class UView *, u_pos x_in_view, u_pos y_in_view) |
changes window location relatively to a (x,y) position in a View. | |
virtual void | move (class UView *, class UPlacement &) |
changes window location relatively to a View using placement constraints ( UPlacement). | |
virtual void | move (class UEvent *, u_pos x_offset, u_pos y_offset) |
virtual void | move (class UEvent &, u_pos x_offset, u_pos y_offset) |
changes window location relatively to an Event position. | |
virtual void | moveOnScreen (u_pos x_in_screen, u_pos y_in_screen, UDisp *=null) |
changes window location on Screen. | |
virtual void | moveAndCenter (UDisp *=null) |
centers the window on the screen. | |
virtual bool | where (UWin *, u_pos &x, u_pos &y, UDisp *=null) const |
gets window location relatively to the origin of another Window. | |
virtual bool | where (class UView *, u_pos &x, u_pos &y) const |
gets window location relatively to the origin of a View. | |
virtual bool | whereOnScreen (u_pos &x, u_pos &y, UDisp *=null) const |
gets window location on Screen. | |
virtual void | resize (u_dim width, u_dim height, UDisp *=null) |
changes current window size. | |
virtual bool | getSize (u_dim &width, u_dim &height, UDisp *=null) const |
virtual u_dim | getWidth (UDisp *=null) const |
virtual u_dim | getHeight (UDisp *=null) const |
returns current size. | |
virtual void | highlight (bool state) |
highlight the object (and brings it to the top if it is a window). | |
virtual void | close (int status=0) |
closes this window. | |
virtual int | lock (UDisp *=null) |
opens the window in modal mode and locks the execution thread. | |
virtual void | show (bool state, UDisp *) |
virtual void | show (bool state=true) |
shows the object if argument is true; hides it if false. | |
virtual bool | isShown () const |
< shows the window to if argument is true, hides if it is false. is the window currently shown ? | |
virtual void | setModal (bool) |
sets this dialog in modal or non modal mode. | |
virtual bool | isModal () const |
is this dialog modal?. | |
virtual void | toBack () |
sends this window to the back. | |
virtual void | toFront () |
brings this window to the front. | |
virtual void | update () |
virtual void | update (class UUpdate upmode) |
updates this object's paint and/or layout. | |
virtual void | update (class UUpdate upmode, UDisp *) |
updates this object's paint and/or layout. | |
UView * | getWinViews () const |
UView * | getWinView (class UDisp *) const |
returns the window View (UWins have only one (shared) view). | |
UAppli * | getAppli () const |
returns the Application Context of this window. | |
virtual void | setSoftwinMode (bool=true) |
< returns the Display Context of this window. | |
UWin & | softwin () |
sets the "soft window" mode if arg is true. | |
bool | isHardwin () const |
bool | isSoftwin () const |
is this window a "hard window" or a "soft window" ?. | |
virtual bool | realize ()=0 |
[impl. | |
UWinGraph * | getWinGraph (class UDisp *=null) const |
[impl] returns the Graphics context that is used for drawing this window | |
UNatWin * | getNatWin (class UDisp *=null) const |
[impl] returns the Native Window that is used for drawing this window | |
Static Public Member Functions | |
static const UStyle & | makeStyle () |
creates the Style of this object. | |
Static Public Attributes | |
static UStyle * | style = null |
corresponding Ubit UStyle |
UWin is an abstract class:
Notes:
|
closes this window. Default behavior: hides the object (same as show(false)). This function is called when the "Close" button of the window manager is clicked. It can be redefined by subclasses for appropriate behaviors (typically for saving or freeing data) 'status' should be >= 0 (0 being the default). see: UWin::lock() for details. close() is also called by UBox::closeWin() and by the ucloseWin() callback Reimplemented from UGroup. |
|
returns the contextual UStyle of this object. This virtual function calls the makeStyle() static function that was redefined for this specific class
Reimplemented from UBox. Reimplemented in UMenu, UPopmenu, UDialog, UFrame, and UIncrust. |
|
< shows the window to if argument is true, hides if it is false. is the window currently shown ? show(true) also and brings the window to the front.
|
|
is this window a "hard window" or a "soft window" ?. Notes:
|
|
opens the window in modal mode and locks the execution thread. This function returns when the window is closed. Returned value:
|
|
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 UBox. Reimplemented in UMenu, UPopmenu, UDialog, UFrame, and UIncrust. |
|
changes window location on Screen. !!COMPLETER |
|
[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) |
|
shows the object if argument is true; hides it if false. see also: hide(), isShown(), isShowable() Reimplemented from UGroup. Reimplemented in UDialog. |
|
sets the "soft window" mode if arg is true. see: isSoftwin() for details.
|
|
updates this object's paint and/or layout. Arguments:
|
|
updates this object's paint and/or layout. Arguments:
Note:
Reimplemented from UBox. |