![]() |
Public API Reference |
#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. More... | |
virtual bool | SetRect (int xmin, int ymin, int xmax, int ymax) |
Rescale titlebar, menu etc before passing to original SetRect. More... | |
virtual bool | HandleEvent (iEvent &Event) |
Handle input events. More... | |
virtual void | FixSize (int &newW, int &newH) |
Don't allow too small windows. More... | |
virtual bool | Maximize () |
Maximize window if it is not already and if DragStyle has CS_DRAG_SIZEABLE. More... | |
virtual bool | Restore () |
Restore window if it is maximized and if DragStyle has CS_DRAG_SIZEABLE. More... | |
virtual void | SetText (const char *iText) |
Change titlebar text. More... | |
virtual void | GetText (char *oText, int iTextSize) const |
Query window title text. More... | |
virtual const char * | GetText () const |
Same, but returns a readonly value. More... | |
virtual void | SetState (int mask, bool enable) |
Override SetState method to change titlebar when window focused flag changes. More... | |
void | SetBorderSize (int w, int h) |
Set window border width and height. More... | |
void | GetBorderSize (int &bw, int &bh) |
Get window border width and height. More... | |
void | SetTitlebarHeight (int iHeight) |
Set title bar height and redraws the window. More... | |
int | GetTitlebarHeight () |
Get window titlebar height. More... | |
void | SetMenuBarHeight (int iHeight) |
Set menu bar height and redraws the window. More... | |
int | GetMenuHeight () |
Get window menu height. More... | |
void | ClientToWindow (int &ClientW, int &ClientH) |
Transform client window size into window size. More... | |
void | WindowToClient (int &ClientW, int &ClientH) |
Transform window size into client window size. More... | |
int | GetWindowStyle () |
Query window style bits. More... | |
void | SetFrameStyle (csWindowFrameStyle iFrameStyle) |
Change window frame style. More... | |
csWindowFrameStyle | GetFrameStyle () |
Query window frame style. More... | |
virtual char * | GetSkinName () |
Get the name of the skip slice for this component. More... | |
void | SetAlpha (uint8 iAlpha) |
Set window transparency level (0 - opaque, 255 - fully transparent). More... | |
uint8 | GetAlpha () |
Query window transparency level. More... | |
Protected Attributes | |
int | WindowStyle |
Window style. More... | |
csWindowFrameStyle | FrameStyle |
Window frame style. More... | |
int | BorderWidth |
Window border width/height. More... | |
int | BorderHeight |
Window border width/height. More... | |
int | TitlebarHeight |
Titlebar height (this also defines min/max buttons width and height). More... | |
int | MenuHeight |
Menu height. More... | |
uint8 | Alpha |
Window transparency (if CSS_TRANSPARENT is set). More... |
The client window is the rectangle where the actual window contents (a dialog, a picture etc) are drawn.
Definition at line 125 of file cswindow.h.
|
Create a window object.
|
|
Transform client window size into window size.
|
|
Don't allow too small windows.
Reimplemented from csComponent. |
|
Query window transparency level.
Definition at line 211 of file cswindow.h. References Alpha, CSS_TRANSPARENT, csComponent::GetState, and uint8. |
|
Get window border width and height.
Definition at line 174 of file cswindow.h. References BorderHeight, and BorderWidth. |
|
Query window frame style.
Definition at line 201 of file cswindow.h. References csWindowFrameStyle, and FrameStyle. |
|
Get window menu height.
Definition at line 186 of file cswindow.h. References MenuHeight. |
|
Get the name of the skip slice for this component.
Reimplemented from csComponent. Definition at line 205 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 180 of file cswindow.h. References TitlebarHeight. |
|
Query window style bits.
Definition at line 195 of file cswindow.h. References WindowStyle. |
|
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.
|
|
Window transparency (if CSS_TRANSPARENT is set).
Definition at line 139 of file cswindow.h. Referenced by GetAlpha. |
|
Window border width/height.
Definition at line 133 of file cswindow.h. Referenced by GetBorderSize. |
|
Window border width/height.
Definition at line 133 of file cswindow.h. Referenced by GetBorderSize. |
|
Window frame style.
Definition at line 131 of file cswindow.h. Referenced by GetFrameStyle. |
|
Menu height.
Definition at line 137 of file cswindow.h. Referenced by GetMenuHeight. |
|
Titlebar height (this also defines min/max buttons width and height).
Definition at line 135 of file cswindow.h. Referenced by GetTitlebarHeight. |
|
Window style.
Definition at line 129 of file cswindow.h. Referenced by GetWindowStyle. |