19 #include <ubit/ubox.hpp> 20 #include <ubit/uview.hpp> 59 static UStyle* createStyle();
60 virtual int getDisplayType()
const {
return wmodes.IS_HARDWIN ? HARDWIN : SOFTWIN;}
87 virtual void centerOnScreen(
UDisp* = null);
142 virtual void setModal(
bool =
true) ;
165 virtual void close(
int status = 0);
236 bool isMapped()
const {
return wmodes.IS_MAPPED;}
237 void setMapped(
bool s) {wmodes.IS_MAPPED = s;}
258 virtual void highlight(
bool state);
259 void addWinView(
UView*);
260 virtual void initView(
UView* parent_view);
262 virtual void deleteViewsInside(
const std::vector<UView*>& parent_views);
272 unsigned IS_HARDWIN:1;
274 unsigned IS_DIALOG:1;
276 unsigned IS_MAINFRAME:1;
278 unsigned IS_AUTO_OPENED:1;
279 unsigned IS_MAPPED:1;
282 std::vector<UWinImpl*> wimpl;
285 UDisp*,
bool add_to_the_end);
287 virtual bool realizeHardwin(
char window_type);
290 virtual void realizeChildren(
UView* winview);
336 bool hoppositeBorder, voppositeBorder;
2D Dimension.
Definition: ugeom.hpp:55
virtual void close(int status=0)
closes the window.
Definition: uwin.cpp:555
virtual int showModal(UDisp *=null)
opens a window and locks the interaction with other widgets until this window is closed.
Definition: uwin.cpp:539
static const UUpdate layoutAndPaint
layout then paint: prefined constant for UUpdate(LAYOUT|PAINT);
Definition: uupdate.hpp:50
virtual float getHeight(UDisp *=null) const
returns the window height.
Definition: uwin.cpp:850
virtual UWin & setTitle(const UStr &title)
changes the title of the window.
Definition: uwin.cpp:394
Box container.
Definition: ubox.hpp:64
2D Point.
Definition: ugeom.hpp:25
Box vertical layout.
Definition: uboxgeom.hpp:480
static const UUpdate paint
paint only: prefined constant for UUpdate(PAINT);
Definition: uupdate.hpp:47
Definition: uappliImpl.hpp:40
bool isHardwin() const
returns true if this is a "hard" window.
Definition: uwin.hpp:210
virtual void show(bool state=true)
shows/hides the window.
Definition: uwin.hpp:145
UWin & softwin(bool state=true)
setSoftwin() synonym.
Definition: uwin.hpp:233
virtual const UWin * toWin() const
dynamic cast: returns this object if it derives from UWin and null otherwise.
Definition: uwin.hpp:57
Display Context.
Definition: udisp.hpp:44
virtual UWin * toWin()
dynamic cast: returns this object if it derives from UWin and null otherwise.
Definition: uwin.hpp:56
virtual UPoint getScreenPos(UDisp *=null) const
returns the position of the upper left corner of the window on the screen.
Definition: uwin.cpp:935
virtual void setFullScreen(bool state, UDisp *=null)
set full screen mode on or off.
Definition: uwin.cpp:457
UWin & setSoftWin(bool state=true)
setSoftwin() synonym.
Definition: uwin.hpp:230
Definition: uwinImpl.hpp:62
virtual void adjustSize()
adjusts the size of the window according to its content.
Definition: uwin.cpp:566
specifies how to update UElem, UBox, UWin objects and subclasses.
Definition: uupdate.hpp:25
virtual void doUpdate(const UUpdate &, UDisp *=null)
updates the layout and/or the paint of this object right now.
Definition: uwin.cpp:592
virtual UStr getTitle() const
returns the title of the window.
Definition: uwin.cpp:405
The Application Context.
Definition: uappli.hpp:79
virtual void setSize(const UDimension &, UDisp *=null)
changes the window size on this display.
Definition: uwin.cpp:794
virtual bool isModal() const
is this dialog modal?.
Definition: uwin.cpp:549
bool isSoftwin() const
returns true if this is a "soft" window.
Definition: uwin.hpp:216
virtual void setModal(bool=true)
sets this dialog in modal or non modal mode.
Definition: uwin.cpp:545
virtual bool realize()
[impl] initializes the window and its children.
Definition: uwin.cpp:301
virtual void toBack(UDisp *=null)
sends this window to the back on this display.
Definition: uwin.cpp:438
virtual void setScreenPos(const UPoint &, UDisp *=null)
moves the upper left corner of the window to this position on the screen.
Definition: uwin.cpp:957
Argument list (for passing arguments to constructor or add functions).
Definition: uargs.hpp:43
virtual UPoint getPos(const UWin &win, UDisp *=null) const
returns the position of the upper left corner of the window relatively to 'win'.
virtual UWin & setSoftwin(bool state=true)
sets the "soft window" mode if arg is true.
Definition: uwin.cpp:161
UWin(UArgs nodelist=UArgs::none)
creates a new Window;
Definition: uwin.cpp:57
virtual float getWidth(UDisp *=null) const
returns the window width.
Definition: uwin.cpp:846
Box horizontal layout.
Definition: uboxgeom.hpp:412
Box View.
Definition: uview.hpp:65
virtual void toFront(UDisp *=null)
brings this window to the front on this display.
Definition: uwin.cpp:415
Definition: uhardfont.hpp:31
static const UArgs none
the empty arglist.
Definition: uargs.hpp:45
UHardwinImpl * getHardwin(UDisp *=null) const
[impl] returns the related hard window.
Definition: uwin.cpp:126
Definition: uwinImpl.hpp:84
virtual bool isShown() const
is the window currently shown?
Definition: uwin.cpp:477
Base class for windows and menus.
Definition: uwin.hpp:47
virtual void setPos(UMouseEvent &, float x=0, float y=0)
moves the upper left corner of the window to the event location.
Compiled Object Style.
Definition: ustyle.hpp:44
virtual UDimension getSize(UDisp *=null) const
returns the window size on this display.
Definition: uwin.cpp:823
Constraints for Window Placement.
Definition: uwin.hpp:309
UView * getWinView(UDisp *=null) const
[impl] returns the corresponding view.
Definition: uwin.cpp:132
void update()
updates object graphics.
Definition: uwin.hpp:191
Ubit String.
Definition: ustr.hpp:72
void pack()
synonym for adjustSize().
Definition: uwin.hpp:119
mouse events
Definition: uevent.hpp:172