![]() |
Public API Reference |
#include <cscomp.h>
Inheritance diagram for csComponent:
Public Methods | |
csComponent (csComponent *iParent) | |
Create a component and insert it into parent's child list if parent != NULL. More... | |
virtual | ~csComponent () |
Destroy component and remove it from parent't child list. More... | |
virtual void | Insert (csComponent *comp) |
Insert a child component. More... | |
virtual void | Delete (csComponent *comp) |
Delete a child component. More... | |
void | DeleteAll () |
Delete all children components. More... | |
void | InsertClipChild (csComponent *clipchild) |
Insert a 'clip child'. More... | |
void | DeleteClipChild (csComponent *clipchild) |
Remove a 'clip child'. More... | |
csComponent * | GetClipParent () |
Return the 'clip parent' component. More... | |
virtual bool | SetFocused (csComponent *comp) |
Focus a child component. More... | |
csComponent * | GetFocused () |
Get the focused child window. More... | |
bool | Select () |
Select (focus) this component and return true if successful. More... | |
virtual csComponent * | NextChild (csComponent *start=NULL, bool disabled=false) |
Return next visible selectable child window after 'start'. More... | |
virtual csComponent * | PrevChild (csComponent *start=NULL, bool disabled=false) |
Return previous visible selectable child window before 'start'. More... | |
virtual csComponent * | NextControl (csComponent *start=NULL) |
Return next control after 'start', looping through groups. More... | |
virtual csComponent * | PrevControl (csComponent *start=NULL) |
Return previous control before 'start', looping through groups. More... | |
virtual csComponent * | NextGroup (csComponent *start=NULL) |
Return control in next group after 'start'. More... | |
virtual csComponent * | PrevGroup (csComponent *start=NULL) |
Return control in previous group before 'start'. More... | |
bool | FixFocused () |
Fix the focused child if it is not selectable (find another). More... | |
bool | SetZorder (csComponent *comp, csComponent *below) |
Change Z-order of a child component above 'below' (can be NULL for lowest Z-order) neightbour. More... | |
csComponent * | GetTop () |
Get the top Z-order child window. More... | |
void | SetPalette (int *iPalette, int iPaletteSize) |
Set component logical palette. More... | |
void | SetPalette (int iPaletteID) |
Same, but accepts the index into cswsPalette[] array. More... | |
void | ResetPalette () |
Reset the palette of the component to the palette it had at startup. More... | |
void | SetColor (int Index, int Color) |
Set a color value in palette (makes a copy of *palette if not already). More... | |
int | GetColor (int Index) |
Get a color from logical palette. More... | |
virtual void | SetText (const char *iText) |
Most components have a text string field. More... | |
virtual void | GetText (char *oText, int iTextSize) const |
Query component text. More... | |
virtual const char * | GetText () const |
Same, but you cannot change returned value. More... | |
csComponent * | ForEach (bool(*func)(csComponent *child, void *param), void *param=NULL, bool Zorder=false) |
For each child component call a function with a optional arg Function returns the first child on which func returnes 'true' Function can scan from top-Z child (Zorder == true) or from focused child (Zorder == false). More... | |
csComponent * | GetChild (int find_id) const |
Find a child component by its ID. More... | |
void | SetApp (csApp *newapp) |
Set the application for this object and all its children. More... | |
virtual bool | HandleEvent (iEvent &Event) |
Handle a event and return true if processed. More... | |
virtual bool | PreHandleEvent (iEvent &Event) |
Handle a event BEFORE all others. More... | |
virtual bool | PostHandleEvent (iEvent &Event) |
Handle a event if nobody eaten it. More... | |
void * | SendCommand (int CommandCode, void *Info=NULL) |
Send a command to this window and returns the Info field of iEvent object. More... | |
void * | SendBroadcast (int CommandCode, void *Info=NULL) |
Send a broadcast to this window and returns the Info field of iEvent object. More... | |
csComponent * | GetDefault () |
Find the 'default' child. More... | |
void | Redraw () |
Redraw the component if it has a dirty area. More... | |
virtual void | Draw () |
Draw the component (only dirty rectangle should be redrawn). More... | |
virtual void | Show (bool focused=false) |
Show the component (and activate it if focused == true). More... | |
virtual void | Hide () |
Hide the component. More... | |
virtual bool | SetRect (int xmin, int ymin, int xmax, int ymax) |
Set component rectangle to given. Return false if not changed. More... | |
bool | SetRect (csRect &rect) |
Same, but with csRect argument. More... | |
bool | SetDragRect (int xmin, int ymin, int xmax, int ymax) |
Calls SetRect after calling FixPosition and FixSize (used when dragging). More... | |
void | SetPos (int x, int y) |
Set component position to given X and Y. More... | |
void | SetSize (int w, int h) |
Set component size to given Width and Height. More... | |
void | Center (bool iHoriz=true, bool iVert=true) |
Center window inside parent. 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... | |
void | Invalidate (csRect &area, bool IncludeChildren=false, csComponent *below=NULL) |
Invalidate a area of component (force a redraw of this area). More... | |
void | Invalidate (int xmin, int ymin, int xmax, int ymax, bool IncludeChildren=false, csComponent *below=NULL) |
Same, but with coordinates instead of rectangle. More... | |
void | Invalidate (bool IncludeChildren=false, csComponent *below=NULL) |
Same, but invalidates entire component (and possibly all children). More... | |
virtual void | SetState (int mask, bool enable) |
Set/clear given component state flags. More... | |
int | GetState (int mask) |
Return component state flags. More... | |
void | SetDragStyle (int iDragStyle) |
Set drag style flags. More... | |
int | GetDragStyle () |
Query drag style flags. More... | |
void | SetResizeMode (int iResizeMode) |
Set resize mode flags. More... | |
int | GetResizeMode () |
Query resize mode flags. More... | |
void | LocalToGlobal (int &x, int &y) |
Convert a pair of X,Y coordinates from local to global coordinate system. More... | |
void | GlobalToLocal (int &x, int &y) |
Convert a pair of X,Y coordinates from global to local coordinate system. More... | |
void | OtherToThis (csComponent *from, int &x, int &y) |
Convert a X,Y pair from coordinate system of another window to this one. More... | |
void | Drag (int x, int y, int DragMode) |
Drag a window with mouse located at (x,y) window-local coordinates. More... | |
void | SetMouse (csMouseCursorID Cursor) |
Set mouse cursor pointer. More... | |
virtual void | Close () |
Destroy this component. More... | |
csComponent * | GetChildAt (int x, int y, bool(*func)(csComponent *, void *)=NULL, void *data=NULL) |
Get the (possibly child) component that is topmost at given x,y location. More... | |
void | SetSizingCursor (int dragtype) |
Set mouse cursor to one of sizing cursors depending on drag mode flags (dragtype should be any combination of CS_DRAG_XXX bits). More... | |
bool | GetMousePosition (int &x, int &y) |
Query current mouse location (returns true if mouse is inside this component). More... | |
bool | HandleDragEvent (iEvent &Event, int BorderW, int BorderH) |
Handle a mouse drag event. More... | |
virtual void | FixPosition (int &newX, int &newY) |
Fix new window position before assigning to component. More... | |
virtual void | FixSize (int &newW, int &newH) |
Fix new window size before assigning to component. More... | |
virtual void | SuggestSize (int &w, int &h) |
Return the recommended minimal size of component. More... | |
virtual void | SetSuggestedSize (int dw, int dh) |
Set the size of component to minimal possible plus delta. More... | |
void | FindMaxFreeRect (csRect &area) |
Find the maximal rectangle uncovered by child windows. More... | |
virtual char * | GetSkinName () |
Get the name of the skip slice for this component (if not NULL). More... | |
virtual csSkin * | GetSkin () |
Get the closest in window hierarchy skin object. More... | |
void | SetClipRect (int xmin, int ymin, int xmax, int ymax) |
Set clipping rectangle. More... | |
void | SetClipRect () |
Disable clipping. More... | |
void | SetFont (iFont *iNewFont, int iSize=-1) |
Set font for this component and the size (-1 - leave as-is, 0 - from parent). More... | |
virtual void | GetFont (iFont *&oFont, int &oFontSize) |
Query current text font and his size for this component. More... | |
void | Box (int xmin, int ymin, int xmax, int ymax, int colindx) |
Draw a box. More... | |
void | Line (float x1, float y1, float x2, float y2, int colindx) |
Draw a line. More... | |
void | Pixel (int x, int y, int colindx) |
Draw a pixel. More... | |
void | Text (int x, int y, int fgindx, int bgindx, const char *s) |
Draw a text string: if bg < 0 background is not drawn. More... | |
void | Pixmap (csPixmap *s2d, int x, int y, int w, int h, uint8 Alpha=0) |
Draw a (scaled) 2D sprite. More... | |
void | Pixmap (csPixmap *s2d, int x, int y, uint8 Alpha=0) |
Draw a (non-scaled) 2D sprite. More... | |
void | Pixmap (csPixmap *s2d, int x, int y, int w, int h, int orgx, int orgy, uint8 Alpha=0) |
Draw a (tiled) pixmap (orgy stands for "origin y", not what you though of - shame!). More... | |
void | Texture (iTextureHandle *tex, int x, int y, int w, int h, int orgx, int orgy, uint8 Alpha=0) |
Draw a (possibly tiled) texture, possibly semi-transparent. More... | |
int | GetTextSize (const char *text, int *oHeight=NULL) |
Return the width of given text using current font (and possibly height). More... | |
int | GetTextChars (const char *text, int iWidth) |
Return how many letters from given string fits in this number of pixels. More... | |
void | Rect3D (int xmin, int ymin, int xmax, int ymax, int darkindx, int lightindx) |
Draw a 3D-looking thin rectangle. More... | |
void | ObliqueRect3D (int xmin, int ymin, int xmax, int ymax, int cornersize, int darkindx, int lightindx) |
Draw a 3D rectangle with two oblique corners (used for buttons, for example). More... | |
void | Clear (int colindx) |
Clear the entire component with given color. More... | |
void | ClearZbuffer (int xmin, int ymin, int xmax, int ymax) |
Clear the Z-buffer in the given rectangle. More... | |
void | ClearZbuffer () |
Clear the Z-buffer in the area covered by this component. More... | |
void | Polygon3D (G3DPolygonDPFX &poly, uint mode) |
Draw a 3D polygon. More... | |
void | DrawUnderline (int iX, int iY, const char *iText, int iUnderlinePos, int iColor) |
-------------------------------------- Utility drawing functions ---------- Draw a underline under iText drawn at iX,iY with iColor. More... | |
Public Attributes | |
csComponent * | focused |
The focused child window. More... | |
csComponent * | top |
The top-Z child window. More... | |
csComponent * | next |
Next and previous neightbours. More... | |
csComponent * | prev |
Next and previous neightbours. More... | |
csComponent * | parent |
Parent component or NULL. More... | |
csApp * | app |
Top-level application object. More... | |
csSkinSlice * | skinslice |
Component skin slice. More... | |
void ** | skindata |
Abstract pointer for internal use by skin slice. More... | |
unsigned int | id |
Component ID, unique within its parrent's child ring. More... | |
csRect | bound |
Component size/position rectangle. More... | |
Protected Methods | |
void | Clip (cswsRectVector &rect, csComponent *last, bool forchild=false) |
Clip a set of rectangles so that they will contain only rectangles uncovered by other windows. More... | |
void | ClipChild (cswsRectVector &rect, csComponent *child) |
Clip the rectangle set against given child. More... | |
void | FastClip (cswsRectVector &rect) |
Perform fast clipping by using the pre-cached visible region initialized at start of Redraw(). More... | |
bool | CheckHotKey (iEvent &iEvent, char iHotKey) |
Check if the keyboard event fits given hot key. More... | |
bool | ApplySkin (csSkin *Skin) |
Apply a skin only to this component: returns true on success. More... | |
void | CheckDirtyTD (csRect &ioR) |
Perform a check of this component and all dirty children' dirty areas: if child component is transparent, unify his dirty area with this component's dirty area. More... | |
void | CheckDirtyBU (csRect &ioR) |
Same as CheckDirtyTD but the check is performed in the inverse direction - from bottom up (`BU'). More... | |
Static Protected Methods | |
void | PrepareLabel (const char *iLabel, char *&oLabel, int &oUnderlinePos) |
Prepare a label. More... | |
int | WordLeft (const char *iText, int StartPos) |
Utility functions: return position one word left from StartPos. More... | |
int | WordRight (const char *iText, int StartPos) |
Return position one word right from StartPos. More... | |
Protected Attributes | |
int | state |
Object state flags (see CSS_XXX flags). More... | |
csRect | dirty |
Rectangle that should be redrawn. More... | |
csRect | clip |
Clipping rectangle (if not empty). More... | |
int * | palette |
Component palette and palette length. More... | |
int | palettesize |
Component palette and palette length. More... | |
int * | originalpalette |
Original component palette. More... | |
csRect | OrgBound |
Original bound when window is maximized. More... | |
char | DragStyle |
Window drag style (see CS_DRAG_XXX above). More... | |
char | ResizeMode |
What to do when parent size changes (see CS_LOCK_XXX flags). More... | |
csComponent * | clipparent |
Component against which this component is clipped
. More... | |
char * | text |
Most components contain a text string. Unify the interface. More... | |
iFont * | Font |
Current font (or NULL if should use parent font). More... | |
int | FontSize |
Current font size. More... | |
csVector | clipchildren |
An array of 'clip children', i.e. components which are clipped inside our bounds. More... | |
Static Protected Attributes | |
int | dragX |
Used on drag operations. More... | |
int | dragY |
Used on drag operations. More... | |
int | dragMode |
Used on drag operations. More... | |
csRect * | dragBound |
The component bound before drag started. More... | |
cswsRectVector * | visregion |
This field is used to cache current clipping region during every Redraw(). More... |
This is an abstract base class: all windowing system classes should be subclassed from csComponent. Each component can have a number of child components. Child components are chained together in a ring list; the only case when a NULL can be encountered in this list is when component has no children. When a component has at least one child and if you traverse the child list you should take care to avoid looping forever through them.
A csComponent object is a rectangle area of screen which can contain absolutely any content. The object is responsible for filling all pixels within that rectangle, i.e. underlying windows will never touch other window's area. If the component's `state' field has the CSS_TRANSPARENT bit set, the component can have partially transparent parts (those are filled by underlying component(s)). In this case the underlying components are painted before this component, and then anything you draw inside the Draw() method is overlayed onto parent component's image.
Definition at line 349 of file cscomp.h.
|
Create a component and insert it into parent's child list if parent != NULL.
|
|
Destroy component and remove it from parent't child list.
|
|
Apply a skin only to this component: returns true on success.
|
|
Draw a box.
Referenced by Clear. |
|
Center window inside parent.
|
|
Same as CheckDirtyTD but the check is performed in the inverse direction - from bottom up (`BU'). This routine checks if the transparent child components are covered by this component's dirty area; if so, the respective areas of child windows are marked as dirty as well. |
|
Perform a check of this component and all dirty children' dirty areas: if child component is transparent, unify his dirty area with this component's dirty area. You will never need to call this function manually; this is done automatically. The `TD' prefix stands for `top-doen', that is the Z-order in which the check is performed. |
|
Check if the keyboard event fits given hot key.
|
|
Clear the entire component with given color.
Definition at line 791 of file cscomp.h. References Box, csRect::Height, and csRect::Width. |
|
Clear the Z-buffer in the area covered by this component.
Definition at line 798 of file cscomp.h. References csRect::Height, and csRect::Width. |
|
Clear the Z-buffer in the given rectangle.
|
|
Clip a set of rectangles so that they will contain only rectangles uncovered by other windows. Initial rectangles are in local coordinates, final rectangles are in global coordinates. |
|
Clip the rectangle set against given child.
|
|
Destroy this component.
You should not call any methods or use any variables after this! When this function returns, the object is already destroyed. |
|
Delete a child component.
Reimplemented in csApp. |
|
Delete all children components.
|
|
Remove a 'clip child'.
|
|
Drag a window with mouse located at (x,y) window-local coordinates.
|
|
Draw the component (only dirty rectangle should be redrawn).
Reimplemented in csApp. |
|
-------------------------------------- Utility drawing functions ---------- Draw a underline under iText drawn at iX,iY with iColor.
|
|
Perform fast clipping by using the pre-cached visible region initialized at start of Redraw(). This has the side effect that any drawing operation that happens outside the Draw() method is effectively clipped away. |
|
Find the maximal rectangle uncovered by child windows.
|
|
Fix the focused child if it is not selectable (find another).
|
|
Fix new window position before assigning to component.
|
|
Fix new window size before assigning to component.
Reimplemented in csDialog. |
|
For each child component call a function with a optional arg Function returns the first child on which func returnes 'true' Function can scan from top-Z child (Zorder == true) or from focused child (Zorder == false).
|
|
Find a child component by its ID.
|
|
Get the (possibly child) component that is topmost at given x,y location. This is useful, for example, to get the component under mouse cursor. You can provide a test function that will be called for "transparent" childs; if the child has the CSS_TRANSPARENT flag set, this routine will be called to determine whenever we should go further below this child. If the routine is NULL, it will stop at the first transparent child. If the routine returns true, GetChildAt() will return given child component. |
|
Return the 'clip parent' component.
|
|
Get a color from logical palette.
Definition at line 493 of file cscomp.h. References cs_Color_Red_L, palette, and palettesize. |
|
Find the 'default' child.
|
|
Query drag style flags.
Definition at line 620 of file cscomp.h. References DragStyle. |
|
Get the focused child window.
|
|
Query current text font and his size for this component.
Reimplemented in csApp. |
|
Query current mouse location (returns true if mouse is inside this component).
|
|
Query resize mode flags.
Definition at line 628 of file cscomp.h. References ResizeMode. |
|
Get the closest in window hierarchy skin object.
Reimplemented in csApp. |
|
Get the name of the skip slice for this component (if not NULL).
Reimplemented in csButton. |
|
Return component state flags.
Definition at line 612 of file cscomp.h. References state. Referenced by csWindow::GetAlpha, csDialog::GetAlpha, and csDialog::GetOverlayAlpha. |
|
Same, but you cannot change returned value.
Reimplemented in csWindow. Definition at line 507 of file cscomp.h. References text. |
|
Query component text.
Reimplemented in csWindow. |
|
Return how many letters from given string fits in this number of pixels.
|
|
Return the width of given text using current font (and possibly height).
|
|
Get the top Z-order child window.
|
|
Convert a pair of X,Y coordinates from global to local coordinate system.
|
|
Handle a mouse drag event. Check if mouse cursor is within BorderW/BorderH distance from window border; for mouse move events just sets the corresponding mouse shape (if DragMode has CS_DRAG_SIZEABLE bit set). If event is a mouse down event and mouse cursor falls within that distance from window border either resize or move window mode is entered. The function returns "true" if event has been processed, and false if it can be processed by other handlers. This function is handy to call from event handlers of all windows that can be resized and/or moved, example: switch (Event.Type) { case csevMouseDown: case csevMouseMove: if (HandleDragEvent (Event, BorderWidth, BorderHeight)) return true; return csComponent::HandleEvent (Event); ... } |
|
Handle a event and return true if processed.
Reimplemented in csApp. |
|
Hide the component.
|
|
Insert a child component.
Reimplemented in csApp. |
|
Insert a 'clip child'.
|
|
Same, but invalidates entire component (and possibly all children).
Definition at line 605 of file cscomp.h. References Invalidate. |
|
Same, but with coordinates instead of rectangle.
Definition at line 597 of file cscomp.h. References Invalidate. |
|
Invalidate a area of component (force a redraw of this area). If fIncludeChildren is true, all child components that covers this area of parent will be partially invalidated as well. Additionaly, if 'below' is not NULL, only the child components that are below 'below' in Z-order or CSS_TRANSPARENT components that are 'above' in Z-order will be invalidated. Referenced by Invalidate, csListBoxItem::SetOffset, and csButton::SetText. |
|
Draw a line.
|
|
Convert a pair of X,Y coordinates from local to global coordinate system.
|
|
Maximize window if it is not already and if DragStyle has CS_DRAG_SIZEABLE.
Reimplemented in csWindow. |
|
Return next visible selectable child window after 'start'.
|
|
Return next control after 'start', looping through groups.
|
|
Return control in next group after 'start'.
|
|
Draw a 3D rectangle with two oblique corners (used for buttons, for example).
|
|
Convert a X,Y pair from coordinate system of another window to this one. This works faster than GlobalToLocal/LocalToGlobal pair in the case when this component is a N-th level parent for the 'from' component. |
|
Draw a pixel.
|
|
Draw a (tiled) pixmap (orgy stands for "origin y", not what you though of - shame!).
|
|
Draw a (non-scaled) 2D sprite.
Definition at line 769 of file cscomp.h. References csPixmap::Height, Pixmap, uint8, and csPixmap::Width. |
|
Draw a (scaled) 2D sprite.
Referenced by Pixmap. |
|
Draw a 3D polygon.
|
|
Handle a event if nobody eaten it.
Reimplemented in csApp. |
|
Handle a event BEFORE all others. You will receive ALL events including focused events. For example, a object will receive mouse events even if object is not visible. A object should take care not to block events expected by other objects. Reimplemented in csApp. |
|
Prepare a label. Search for '~' in iLabel, and copy text without '~' into oLabel. Former underline position is stored into oUnderlinePos. This is used by labels, menuitems, static components etc. Referenced by csButton::SetText. |
|
Return previous visible selectable child window before 'start'.
|
|
Return previous control before 'start', looping through groups.
|
|
Return control in previous group before 'start'.
|
|
Draw a 3D-looking thin rectangle.
|
|
Redraw the component if it has a dirty area.
|
|
Reset the palette of the component to the palette it had at startup.
|
|
Restore window if it is maximized and if DragStyle has CS_DRAG_SIZEABLE.
Reimplemented in csWindow. |
|
Select (focus) this component and return true if successful.
|
|
Send a broadcast to this window and returns the Info field of iEvent object.
|
|
Send a command to this window and returns the Info field of iEvent object.
Referenced by csTreeItem::ResetButton. |
|
Set the application for this object and all its children.
|
|
Disable clipping.
Definition at line 745 of file cscomp.h. References csRect::MakeEmpty. |
|
Set clipping rectangle. All following drawing will be clipped against given rectangle. Setting w=0 or h=0 will disable clipping (although it will be anyway performed relative to component bound). Definition at line 741 of file cscomp.h. References csRect::Set. |
|
Set a color value in palette (makes a copy of *palette if not already).
|
|
Calls SetRect after calling FixPosition and FixSize (used when dragging).
|
|
Set drag style flags.
Definition at line 616 of file cscomp.h. References DragStyle. |
|
Focus a child component.
Reimplemented in csListBox. |
|
Set font for this component and the size (-1 - leave as-is, 0 - from parent).
|
|
Set mouse cursor pointer.
|
|
Same, but accepts the index into cswsPalette[] array.
Definition at line 483 of file cscomp.h. References cswsPalette, and SetPalette. |
|
Set component logical palette.
Each component has its own logical palette. A logical palette component is a index into a global table which resides in csApp object. The table in csApp maps a color (such as cs_Color_White) to a real index into the physical palette. It is highly desirable for components to contain in their 1st element their background color. This is sometimes used (for example by irregularily-shaped buttons). Referenced by SetPalette. |
|
Set component position to given X and Y.
Definition at line 569 of file cscomp.h. References SetRect, csRect::xmax, csRect::xmin, csRect::ymax, and csRect::ymin. |
|
Same, but with csRect argument.
Definition at line 562 of file cscomp.h. References SetRect, csRect::xmax, csRect::xmin, csRect::ymax, and csRect::ymin. |
|
Set component rectangle to given. Return false if not changed.
Reimplemented in csDialog. Referenced by csTreeItem::ResetButton, SetPos, SetRect, and SetSize. |
|
Set resize mode flags.
Definition at line 624 of file cscomp.h. References ResizeMode. |
|
Set component size to given Width and Height.
Definition at line 573 of file cscomp.h. References SetRect, csRect::xmin, and csRect::ymin. |
|
Set mouse cursor to one of sizing cursors depending on drag mode flags (dragtype should be any combination of CS_DRAG_XXX bits).
|
|
Set/clear given component state flags.
Reimplemented in csButton. |
|
Set the size of component to minimal possible plus delta.
|
|
Most components have a text string field. For example, titlebars, buttons, input lines, static components etc etc etc. The following routines are used to access this field in a component-independent manner. Reimplemented in csButton. |
|
Change Z-order of a child component above 'below' (can be NULL for lowest Z-order) neightbour.
|
|
Show the component (and activate it if focused == true).
|
|
Return the recommended minimal size of component.
Reimplemented in csAbsoluteLayout. |
|
Draw a text string: if bg < 0 background is not drawn.
|
|
Draw a (possibly tiled) texture, possibly semi-transparent.
|
|
Utility functions: return position one word left from StartPos.
|
|
Return position one word right from StartPos.
|
|
Top-level application object.
|
|
Component size/position rectangle.
|
|
Clipping rectangle (if not empty).
|
|
An array of 'clip children', i.e. components which are clipped inside our bounds.
|
|
Component against which this component is clipped .
|
|
Rectangle that should be redrawn.
|
|
The component bound before drag started.
|
|
Used on drag operations.
|
|
Window drag style (see CS_DRAG_XXX above).
Definition at line 365 of file cscomp.h. Referenced by GetDragStyle, and SetDragStyle. |
|
Used on drag operations.
|
|
Used on drag operations.
|
|
The focused child window.
|
|
Current font (or NULL if should use parent font).
|
|
Current font size.
Definition at line 379 of file cscomp.h. Referenced by csApp::pplText. |
|
Component ID, unique within its parrent's child ring.
|
|
Next and previous neightbours.
|
|
Original bound when window is maximized.
|
|
Original component palette.
|
|
Component palette and palette length.
Definition at line 359 of file cscomp.h. Referenced by GetColor. |
|
Component palette and palette length.
Definition at line 359 of file cscomp.h. Referenced by GetColor. |
|
Parent component or NULL.
Definition at line 393 of file cscomp.h. Referenced by csTreeItem::ResetButton. |
|
Next and previous neightbours.
|
|
What to do when parent size changes (see CS_LOCK_XXX flags).
Definition at line 367 of file cscomp.h. Referenced by GetResizeMode, and SetResizeMode. |
|
Abstract pointer for internal use by skin slice.
|
|
Component skin slice.
|
|
Object state flags (see CSS_XXX flags).
Definition at line 353 of file cscomp.h. Referenced by GetState. |
|
Most components contain a text string. Unify the interface.
Definition at line 375 of file cscomp.h. Referenced by GetText, and csButton::SetText. |
|
The top-Z child window.
|
|
This field is used to cache current clipping region during every Redraw().
|