Inheritance diagram for os::Window:

Public Member Functions | |
| Window (const Rect &cFrame, const String &cName, const String &cTitle, uint32 nFlags=0, uint32 nDesktopMask=CURRENT_DESKTOP) | |
| Initialize the window. | |
| ~Window () | |
| Destruct a window. | |
| virtual void | FrameMoved (const Point &cDelta) |
| virtual void | FrameSized (const Point &cDelta) |
| virtual void | ScreenModeChanged (const IPoint &cNewRes, color_space eColorSpace) |
| Called whenever the screenmode changes. | |
| virtual void | DesktopActivated (int nDesktop, bool bActive) |
| Called whenever the desktop displaying the window will be activated or deactivated. | |
| virtual void | DesktopsChanged (uint32 nOldDesktops, uint32 nNewDesktops) |
| virtual void | WindowsChanged () |
| Called whenever the currently shown windows change. | |
| void | SetFlags (uint32 nFlags) |
| uint32 | GetFlags () const |
| void | SetSizeLimits (const Point &cMinSize, const Point &cMaxSize) |
| Limit the minimum and maximum window size. | |
| 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. | |
| void | RemoveChild (View *pcChild) |
| Remove a view from the window. | |
| void | MakeFocus (bool bFocus=true) |
| Activate/Deactivate the window. | |
| void | Close () |
| void | Show (bool bMakeVisible=true) |
| Hide/Unhide the window. | |
| void | Hide () |
| bool | IsVisible () const |
| void | Start () |
| Unlock the window and start the looper thread. | |
| void | SetTitle (const String &cTitle) |
| Change the window title. | |
| String | GetTitle (void) const |
| Obtain the current window title. | |
| void | SetIcon (Bitmap *pcIcon) |
| Change the window icon. | |
| Bitmap * | GetIcon (void) const |
| Not longer supported. | |
| void | Flush () |
| Flush the windows render queue. | |
| void | Sync () |
| Flush the render queue, and wait til the rendering is done. | |
| View * | FindView (const String &cName) const |
| View * | FindView (const Point &cPos) const |
| Find the view covering a given position on the window. | |
| View * | GetFocusChild (void) const |
| View * | SetFocusChild (View *pcChild) |
| Activate a view. | |
| void | SetDefaultButton (View *pcView) |
| Assign a default button. | |
| View * | GetDefaultButton () const |
| Return the view assigned as the default button. | |
| void | SetDefaultWheelView (View *pcView) |
| View * | GetDefaultWheelView () const |
| Rect | GetFrame () const |
| Get the windows position and size on the current desktop. | |
| Rect | GetBounds () const |
| Get the window boundary. | |
| void | SetFrame (const Rect &cRect, bool bNotifyServer=true) |
| Set the window's position and size. | |
| void | MoveBy (const Point &cDelta) |
| Move the window relative to it's current position. | |
| void | MoveBy (float vDeltaX, float vDeltaY) |
| Move the window relative to it's current position. | |
| void | MoveTo (const Point &cPos) |
| Move the window to an absolute position. | |
| void | MoveTo (float x, float y) |
| Move the window to an absolute position. | |
| void | CenterInWindow (Window *pcWin) |
| Move the window to the centre of another window. | |
| void | CenterInScreen () |
| Move the window to the center of the screen. | |
| void | ResizeBy (const Point &cDelta) |
| Resize the window relative to it's current size. | |
| void | ResizeBy (float vDeltaW, float vDeltaH) |
| Resize the window relative to it's current size. | |
| void | ResizeTo (const Point &cSize) |
| Resize the window to a new absolute size. | |
| void | ResizeTo (float w, float h) |
| Resize the window to a new absolute size. | |
| void | SetShapeRegion (const Region &cReg) |
| |
| void | ClearShapeRegion () |
| |
| bool | IsActive () const |
| int | ToggleDepth () |
| void | AddShortcut (const ShortcutKey &cKey, Message *pcMsg) |
| Add a keyboard shortcut. | |
| void | AddShortcut (const ShortcutKey &cKey, View *pcView) |
| Add a keyboard shortcut. | |
| void | RemoveShortcut (const ShortcutKey &cKey) |
| Remove a keyboard shortcut. | |
| void | DispatchMessage (Message *pcMessage, Handler *pcHandler) |
| The loopers message handling callback. | |
Friends | |
| class | View |
| class | Bitmap |
| class | MenuItem |
| class | ScreenOutput |
Classes | |
| class | Private |
| Window::Window | ( | const Rect & | cFrame, | |
| const String & | cName, | |||
| const String & | cTitle, | |||
| uint32 | nFlags = 0, |
|||
| uint32 | nDesktopMask = CURRENT_DESKTOP | |||
| ) |
| cFrame | - The size and position of the window. |
| Window::~Window | ( | ) |
| void Window::FrameMoved | ( | const Point & | cDelta | ) | [virtual] |
| void Window::FrameSized | ( | const Point & | cDelta | ) | [virtual] |
Reimplemented in os::FileRequester.
| void Window::ScreenModeChanged | ( | const IPoint & | cNewRes, | |
| color_space | eColorSpace | |||
| ) | [virtual] |
| cNewRes | - New resolution. | |
| eColorSpace | - New colorspace. |
| void Window::DesktopActivated | ( | int | nDesktop, | |
| bool | bActive | |||
| ) | [virtual] |
| nDesktop | - Now activated desktop if bActive is true. Otherwise the old desktop. | |
| bActive | - True if the desktop is activated. |
| void Window::DesktopsChanged | ( | uint32 | nOldDesktops, | |
| uint32 | nNewDesktops | |||
| ) | [virtual] |
| void Window::WindowsChanged | ( | ) | [virtual] |
| void Window::SetFlags | ( | uint32 | nFlags | ) |
| uint32 Window::GetFlags | ( | ) | const |
| cMinSize | Minimum size in pixels. | |
| cMaxSize | Maximum size in pixels. |
| void Window::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 Window::AddChild | ( | View * | pcChild, | |
| bool | bAssignTabOrder = false | |||
| ) |
| pcChild | - The View to add to the window. | |
| bAssignTabOrder | - If true the view will be assigned a tab-order one higher than the previously added view. |
| void Window::RemoveChild | ( | View * | pcChild | ) |
| pcChild | - The view to remove. |
| void Window::MakeFocus | ( | bool | bFocus = true |
) |
| bFocus | - True to activate the window, false to deactivate it. |
| void os::Window::Close | ( | ) | [inline] |
| void Window::Show | ( | bool | bMakeVisible = true |
) |
You can nest calls to Show(false). It will then require the same numbers of Show(true) calls to make the window visible.
| bMakeVisible | - Set to true to make the window visible, and false to hide it. |
Reimplemented in os::FileRequester.
| void os::Window::Hide | ( | ) | [inline] |
| bool Window::IsVisible | ( | ) | const |
| void Window::Start | ( | void | ) |
| void Window::SetTitle | ( | const String & | cTitle | ) |
| pzTitle | The new window title. |
| String Window::GetTitle | ( | void | ) | const |
| void Window::SetIcon | ( | Bitmap * | pcIcon | ) |
| pcIcon | The new window icon. |
| Bitmap * Window::GetIcon | ( | void | ) | const |
| void Window::Flush | ( | void | ) |
| void Window::Sync | ( | void | ) |
| View* os::Window::GetFocusChild | ( | void | ) | const [inline] |
| pcView | - The View that should receive focus, or a NULL pointer to remove focus from the currently active view. |
| void Window::SetDefaultButton | ( | View * | pcView | ) |
| pcView | - Pointer to the View that should receive all events generated by the <ENTER> key. This will typically be an instance of the os::Button class. |
| View * Window::GetDefaultButton | ( | ) | const |
| void Window::SetDefaultWheelView | ( | View * | pcView | ) |
| View * Window::GetDefaultWheelView | ( | ) | const |
| Rect Window::GetFrame | ( | ) | const |
| Rect Window::GetBounds | ( | void | ) | const |
| void Window::SetFrame | ( | const Rect & | cRect, | |
| bool | bNotifyServer = true | |||
| ) |
| cRect | - The new frame rectangle of the window's client area. |
| void Window::MoveBy | ( | const Point & | cDelta | ) |
| cDelta | - The distance to move the window. |
| void Window::MoveBy | ( | float | vDeltaX, | |
| float | vDeltaY | |||
| ) |
| nDeltaX | - The horizontal distance to move the window. | |
| nDeltaY | - The vertical distance to move the window. |
| void Window::MoveTo | ( | const Point & | cPos | ) |
| cPos | - The new position |
| void Window::MoveTo | ( | float | x, | |
| float | y | |||
| ) |
| x | - The new horizontal position. | |
| y | - The new vertical position. |
| void Window::CenterInWindow | ( | Window * | pcWin | ) |
| pcWin | - The Window to center in. |
| void Window::CenterInScreen | ( | ) |
| void Window::ResizeBy | ( | const Point & | cDelta | ) |
| cDelta | - The distance to move the lower-right corner of the window. |
| void Window::ResizeBy | ( | float | vDeltaW, | |
| float | vDeltaH | |||
| ) |
| nDeltaW | - The horizontal distance to move the lower-right corner of the window. | |
| nDeltaH | - The vertical distance to move the lower-right corner of the window. |
| void Window::ResizeTo | ( | const Point & | cSize | ) |
| cSize | - The new size of the windows client area. |
| void Window::ResizeTo | ( | float | w, | |
| float | h | |||
| ) |
| W | - The new width of the windows client area. | |
| W | - The new heigth of the windows client area. |
| void Window::SetShapeRegion | ( | const Region & | cReg | ) |
| \return |
| void Window::ClearShapeRegion | ( | ) |
| \return |
| bool Window::IsActive | ( | ) | const |
| int Window::ToggleDepth | ( | ) |
| void Window::AddShortcut | ( | const ShortcutKey & | cKey, | |
| Message * | pcMsg | |||
| ) |
| cKey | - The keyboard event that triggers the shortcut. | |
| pcMsg | - Message to send to this window (automatically deleted). |
| void Window::AddShortcut | ( | const ShortcutKey & | cKey, | |
| View * | pcView | |||
| ) |
| cKey | - The keyboard event that triggers the shortcut. | |
| pcView | - View to send the shortcut to. |
| void Window::RemoveShortcut | ( | const ShortcutKey & | cKey | ) |
| cKey | - The keyboard event that triggers the shortcut. |
Never do any lengthy operations in any hook members that are called from the looper thread if the looper is involved with the GUI (for example if the looper is a os::Window). The looper will not be able to dispatch messages until the hook returns so spending a long time in this member will make the GUI feel unresponsive.
| pcMsg | - Pointer to the received messge. Note that this message will be deleted when DispatchMessage() returns, unless detatched from the looper through DetachCurrentMessage(). | |
| pcHandler | - Pointer to the handler targeted by this message. If the message was not targeted at any spesific handler this argument is NULL. |
Reimplemented from os::Looper.
friend class View [friend] |
friend class Bitmap [friend] |
friend class MenuItem [friend] |
friend class ScreenOutput [friend] |
1.5.1