#include <window.h>
Inheritance diagram for os::Window:
Public Methods | |
Window (const Rect &cFrame, const std::string &cName, const std::string &cTitle, uint32 nFlags=0, uint32 nDesktopMask=CURRENT_DESKTOP) | |
Initialize the window. More... | |
~Window () | |
Destruct a window. More... | |
virtual void | FrameMoved (const Point &cDelta) |
virtual void | FrameSized (const Point &cDelta) |
virtual void | ScreenModeChanged (const IPoint &cNewRes, color_space eColorSpace) |
virtual void | DesktopActivated (int nDesktop, bool bActive) |
virtual void | DesktopsChanged (uint32 nOldDesktops, uint32 nNewDesktops) |
void | SetFlags (uint32 nFlags) |
uint32 | GetFlags () const |
void | SetSizeLimits (const Point &cMinSize, const Point &cMaxSize) |
Limit the minimum and maximum window size. More... | |
void | SetAlignment (const IPoint &cSize=IPoint(1, 1), const IPoint &cSizeOffset=IPoint(0, 0), const IPoint &cPos=IPoint(1, 1), const IPoint &cPosOffset=IPoint(0, 0)) |
void | AddChild (View *pcChild, bool bAssignTabOrder=false) |
Add a view to the window. More... | |
void | RemoveChild (View *pcChild) |
Remove a view from the window. More... | |
void | MakeFocus (bool bFocus=true) |
Activate/Deactivate the window. More... | |
void | Close () |
void | Show (bool bMakeVisible=true) |
Hide/Unhide the window. More... | |
void | Start () |
Unlock the window and start the looper thread. More... | |
void | SetTitle (const std::string &cTitle) |
Change the window title. More... | |
std::string | GetTitle (void) const |
Obtain the current window title. More... | |
void | Flush () |
Flush the windows render queue. More... | |
void | Sync () |
Flush the render queue, and wait til the rendering is done. More... | |
View* | FindView (const std::string &cName) const |
View* | FindView (const Point &cPos) const |
Find the view covering a given position on the window. More... | |
View* | GetFocusChild (void) const |
View* | SetFocusChild (View *pcChild) |
Activate a view. More... | |
void | SetDefaultButton (View *pcView) |
Assign a default button. More... | |
View* | GetDefaultButton () const |
Return the view assigned as the default button. More... | |
Rect | GetFrame () const |
Get the windows position and size on the current desktop. More... | |
Rect | GetBounds () const |
Get the window boundary. More... | |
void | SetFrame (const Rect &cRect, bool bNotifyServer=true) |
Set the window's position and size. More... | |
void | MoveBy (const Point &cDelta) |
Move the window relative to it's current position. More... | |
void | MoveBy (float vDeltaX, float vDeltaY) |
Move the window relative to it's current position. More... | |
void | MoveTo (const Point &cPos) |
Move the window to an absolute position. More... | |
void | MoveTo (float x, float y) |
Move the window to an absolute position. More... | |
void | ResizeBy (const Point &cDelta) |
Resize the window relative to it's current size. More... | |
void | ResizeBy (float vDeltaW, float vDeltaH) |
Resize the window relative to it's current size. More... | |
void | ResizeTo (const Point &cSize) |
Resize the window to a new absolute size. More... | |
void | ResizeTo (float w, float h) |
Resize the window to a new absolute size. More... | |
bool | IsActive () const |
int | ToggleDepth () |
void | DispatchMessage (Message *pcMessage, Handler *pcHandler) |
The loopers message handling callback. More... | |
Friends | |
class | View |
class | Bitmap |
class | MenuItem |
|
Initialize the window.
|
|
Destruct a window.
|
|
Add a view to the window.
|
|
|
|
|
|
|
|
The loopers message handling callback.
If the message destination however is not fully qualified DispatchMessage() attempts to pass the message on to the Default handler (as set through the Looper::SetDefaultHandler()). If there is no final destination and no default handler, the Looper will handle the message itself by calling its own version of HandleMessage() (The looper is itself a Handler) Not all messages are passed on to a handler. If the message code is M_QUIT the Looper::OkToQuit() member is called instead, and if it return true Looper::Quit() will be called, and the message loop terminated. If you would like to handle certain messages directly by the looper, bypassing the normal scheduling you can overload DispatchMessage() to process messages before they are passed on to any handler. If you do so, you should call the loopers version of DispatchMessage() for each message you don't know how to handle.
Reimplemented from os::Looper. |
|
Find the view covering a given position on the window.
|
|
|
|
Flush the windows render queue.
|
|
|
|
Reimplemented in os::FileRequester. |
|
Get the window boundary.
|
|
Return the view assigned as the default button.
|
|
|
|
|
|
Get the windows position and size on the current desktop.
|
|
Obtain the current window title.
|
|
|
|
Activate/Deactivate the window.
|
|
Move the window relative to it's current position.
|
|
Move the window relative to it's current position.
|
|
Move the window to an absolute position.
|
|
Move the window to an absolute position.
|
|
Remove a view from the window.
|
|
Resize the window relative to it's current size.
|
|
Resize the window relative to it's current size.
|
|
Resize the window to a new absolute size.
|
|
Resize the window to a new absolute size.
|
|
|
|
|
|
Assign a default button.
|
|
|
|
Activate a view.
|
|
Set the window's position and size.
|
|
Limit the minimum and maximum window size.
|
|
Change the window title.
|
|
Hide/Unhide the window.
|
|
Unlock the window and start the looper thread.
|
|
Flush the render queue, and wait til the rendering is done.
|
|
|
|
|
|
|
|
|