#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 |
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) |
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) |
virtual bool | isShown () const |
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) |
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.] initializes the window and its children | |
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 | |
const UStyle & | makeStyle () |
Static Public Attributes | |
UStyle * | style = null |
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 |
|
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: |
|
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) |
|
sets the "soft window" mode if arg is true see: isSoftwin() for details.
|
|
updates this object's paint and/or layout Arguments:
|