csWindow Class Reference
[Windows]
A csWindow object is a rectangular area of screen with border which optionally contains a titlebar, a menubar and a client component.
More...
#include <cswindow.h>
Inheritance diagram for csWindow:

Public Methods | |
| csWindow (csComponent *iParent, const char *iTitle, int iWindowStyle=CSWS_DEFAULTVALUE, csWindowFrameStyle iFrameStyle=cswfs3D) | |
| Create a window object. | |
| virtual bool | SetRect (int xmin, int ymin, int xmax, int ymax) |
| Rescale titlebar, menu etc before passing to original SetRect. | |
| virtual bool | HandleEvent (iEvent &Event) |
| Handle input events. | |
| virtual void | FixSize (int &newW, int &newH) |
| Don't allow too small windows. | |
| virtual bool | Maximize () |
| Maximize window if it is not already and if DragStyle has CS_DRAG_SIZEABLE. | |
| virtual bool | Restore () |
| Restore window if it is maximized and if DragStyle has CS_DRAG_SIZEABLE. | |
| virtual void | SetText (const char *iText) |
| Change titlebar text. | |
| virtual void | GetText (char *oText, int iTextSize) const |
| Query window title text. | |
| virtual const char * | GetText () const |
| Same, but returns a readonly value. | |
| virtual void | SetState (int mask, bool enable) |
| Override SetState method to change titlebar when window focused flag changes. | |
| void | SetBorderSize (int w, int h) |
| Set window border width and height. | |
| void | GetBorderSize (int &bw, int &bh) |
| Get window border width and height. | |
| void | SetTitlebarHeight (int iHeight) |
| Set title bar height and redraws the window. | |
| int | GetTitlebarHeight () |
| Get window titlebar height. | |
| void | SetMenuBarHeight (int iHeight) |
| Set menu bar height and redraws the window. | |
| int | GetMenuHeight () |
| Get window menu height. | |
| void | ClientToWindow (int &ClientW, int &ClientH) |
| Transform client window size into window size. | |
| void | WindowToClient (int &ClientW, int &ClientH) |
| Transform window size into client window size. | |
| int | GetWindowStyle () |
| Query window style bits. | |
| void | SetFrameStyle (csWindowFrameStyle iFrameStyle) |
| Change window frame style. | |
| csWindowFrameStyle | GetFrameStyle () |
| Query window frame style. | |
| virtual char * | GetSkinName () |
| Get the name of the skip slice for this component. | |
| void | SetAlpha (uint8 iAlpha) |
| Set window transparency level (0 - opaque, 255 - fully transparent). | |
| uint8 | GetAlpha () |
| Query window transparency level. | |
Protected Attributes | |
| int | WindowStyle |
| Window style. | |
| csWindowFrameStyle | FrameStyle |
| Window frame style. | |
| int | BorderWidth |
| Window border width/height. | |
| int | BorderHeight |
| Window border width/height. | |
| int | TitlebarHeight |
| Titlebar height (this also defines min/max buttons width and height). | |
| int | MenuHeight |
| Menu height. | |
| uint8 | Alpha |
| Window transparency (if CSS_TRANSPARENT is set). | |
Detailed Description
A csWindow object is a rectangular area of screen with border which optionally contains a titlebar, a menubar and a client component.The client window is the rectangle where the actual window contents (a dialog, a picture etc) are drawn.
Definition at line 127 of file cswindow.h.
Constructor & Destructor Documentation
|
||||||||||||||||||||
|
Create a window object.
|
Member Function Documentation
|
||||||||||||
|
Transform client window size into window size.
|
|
||||||||||||
|
Don't allow too small windows.
Reimplemented from csComponent. |
|
|
Query window transparency level.
Definition at line 213 of file cswindow.h. References CSS_TRANSPARENT, and csComponent::GetState(). |
|
||||||||||||
|
Get window border width and height.
Definition at line 176 of file cswindow.h. |
|
|
Query window frame style.
Definition at line 203 of file cswindow.h. References csWindowFrameStyle. |
|
|
Get window menu height.
Definition at line 188 of file cswindow.h. |
|
|
Get the name of the skip slice for this component.
Reimplemented from csComponent. Definition at line 207 of file cswindow.h. |
|
|
Same, but returns a readonly value.
Reimplemented from csComponent. |
|
||||||||||||
|
Query window title text.
Reimplemented from csComponent. |
|
|
Get window titlebar height.
Definition at line 182 of file cswindow.h. |
|
|
Query window style bits.
Definition at line 197 of file cswindow.h. |
|
|
Handle input events.
Reimplemented from csComponent. Reimplemented in csWindowList. |
|
|
Maximize window if it is not already and if DragStyle has CS_DRAG_SIZEABLE.
Reimplemented from csComponent. |
|
|
Restore window if it is maximized and if DragStyle has CS_DRAG_SIZEABLE.
Reimplemented from csComponent. |
|
|
Set window transparency level (0 - opaque, 255 - fully transparent).
|
|
||||||||||||
|
Set window border width and height.
|
|
|
Change window frame style.
|
|
|
Set menu bar height and redraws the window.
|
|
||||||||||||||||||||
|
Rescale titlebar, menu etc before passing to original SetRect.
Reimplemented from csComponent. Reimplemented in csWindowList. |
|
||||||||||||
|
Override SetState method to change titlebar when window focused flag changes.
Reimplemented from csComponent. Reimplemented in csWindowList. |
|
|
Change titlebar text.
Reimplemented from csComponent. |
|
|
Set title bar height and redraws the window.
|
|
||||||||||||
|
Transform window size into client window size.
|
Member Data Documentation
|
|
Window transparency (if CSS_TRANSPARENT is set).
Definition at line 141 of file cswindow.h. |
|
|
Window border width/height.
Definition at line 135 of file cswindow.h. |
|
|
Window border width/height.
Definition at line 135 of file cswindow.h. |
|
|
Window frame style.
Definition at line 133 of file cswindow.h. |
|
|
Menu height.
Definition at line 139 of file cswindow.h. |
|
|
Titlebar height (this also defines min/max buttons width and height).
Definition at line 137 of file cswindow.h. |
|
|
Window style.
Definition at line 131 of file cswindow.h. |
The documentation for this class was generated from the following file:
- csws/cswindow.h
Generated for Crystal Space by doxygen 1.2.18
