iAwsComponent Struct Reference
[AWS]
Interface that is the base of ALL components.
More...
#include <iaws/aws.h>
Inheritance diagram for iAwsComponent:

Public Member Functions | |
virtual bool | Create (iAws *mgr, iAwsComponent *parent, iAwsComponentNode *settings)=0 |
This function takes care of the creation tasks required to prepare this component for use. | |
virtual bool | Setup (iAws *wmgr, iAwsComponentNode *settings)=0 |
Sets up a component. | |
virtual bool | HandleEvent (iEvent &Event)=0 |
Event dispatcher, demultiplexes events and sends them off to the proper event handler. | |
virtual bool | GetProperty (const char *name, void **parm)=0 |
Gets a copy of the property, put it in parm. | |
virtual bool | SetProperty (const char *name, void *parm)=0 |
Sets the property specified to whatever is in parm. | |
virtual bool | Execute (const char *action, iAwsParmList *parmlist=0)=0 |
Executes a scriptable action. | |
virtual void | Invalidate ()=0 |
Invalidation routine: allow the component to be redrawn when you call this. | |
virtual void | Invalidate (csRect area)=0 |
Invalidation routine: allow component to be redrawn, but only part of it. | |
virtual csRect | Frame ()=0 |
Get this component's frame. | |
virtual csRect | ClientFrame ()=0 |
Get this component's client area. | |
virtual const char * | Type ()=0 |
Returns the named TYPE of the component, like "Radio Button", etc. | |
virtual void | SetFlag (unsigned int flag)=0 |
Sets the flag (can handle multiple simultaneous sets). | |
virtual void | ClearFlag (unsigned int flag)=0 |
Clears the flag (can handle multiple simultaneous clears). | |
virtual unsigned int | Flags ()=0 |
Returns the current state of the flags. | |
virtual iAws * | WindowManager ()=0 |
Should be used ONLY by this component, or an embedding object. | |
virtual iAwsComponent * | Parent ()=0 |
Gets the parent component of this component. | |
virtual iAwsComponent * | Window ()=0 |
Gets the window this component is in. | |
virtual iAwsLayoutManager * | Layout ()=0 |
Gets the layout manager for this component. | |
virtual void | SetParent (iAwsComponent *parent)=0 |
Sets the parent component of this component. | |
virtual void | SetLayout (iAwsLayoutManager *layout)=0 |
Sets the layout manager for this component. | |
virtual void | AddToLayout (iAwsComponent *cmp, iAwsComponentNode *settings)=0 |
Adds a component to this component's layout. | |
virtual csRect | getPreferredSize ()=0 |
Gets the preferred size of the component. | |
virtual void | setPreferredSize (const csRect &size)=0 |
Set the preferred size of the component. | |
virtual void | clearPreferredSize ()=0 |
Clear the manually set preferred size. | |
virtual csRect | getMinimumSize ()=0 |
Gets the minimum size that the component can be. | |
virtual csRect | getInsets ()=0 |
Gets the inset amounts that are needed to fit components properly. | |
virtual bool | Overlaps (csRect &r)=0 |
Returns true if this window overlaps the given rect. | |
virtual bool | isHidden ()=0 |
Returns the state of the hidden flag. | |
virtual void | SetFocusable (bool _focusable)=0 |
Sets focusable flag. | |
virtual bool | Focusable ()=0 |
Returns focusable flag. | |
virtual bool | isFocused ()=0 |
Returns the state of the focused flag. | |
virtual bool | IsMaximized ()=0 |
Returns true if the component is maximized. | |
virtual void | Hide ()=0 |
Hides a component. | |
virtual void | Show ()=0 |
Shows a component. | |
virtual void | SetFocus ()=0 |
Focus a component. | |
virtual void | UnsetFocus ()=0 |
Unfocus a component. | |
virtual void | Move (int delta_x, int delta_y)=0 |
Moves a component. | |
virtual void | MoveTo (int x, int y)=0 |
Moves a component to an absolute location. | |
virtual void | Resize (int width, int height)=0 |
Resizes a component. | |
virtual void | ResizeTo (csRect newFrame)=0 |
Resizes a component to an absolute rect. | |
virtual void | Maximize ()=0 |
Maximizes this component. | |
virtual void | UnMaximize ()=0 |
Returns the component to its unmaximized size. | |
virtual void | LayoutChildren ()=0 |
Resizes all the children of this component using the current layout. | |
virtual bool | isDeaf ()=0 |
Returns the state of the DEAF flag. | |
virtual void | SetDeaf (bool bDeaf)=0 |
set deaf/not deaf | |
virtual unsigned long | GetID ()=0 |
Get's the unique id of this component. | |
virtual void | SetID (unsigned long _id)=0 |
Set's the unique id of this component. | |
virtual iAwsComponent * | FindChild (const char *name)=0 |
Gets a child component by name, returns 0 on failure. | |
virtual iAwsComponent * | DoFindChild (unsigned id)=0 |
Gets a child component by id, returns 0 on failure. | |
virtual iAwsComponent * | ChildAt (int x, int y)=0 |
Returns the highest child (if any) whose frame contains (x,y). | |
virtual void | AddChild (iAwsComponent *child)=0 |
Adds a child into this component. | |
virtual void | RemoveChild (iAwsComponent *child)=0 |
Removes a child from this component. | |
virtual int | GetChildCount ()=0 |
Get's the number of children. | |
virtual iAwsComponent * | GetTopChild ()=0 |
Get's a specific child. | |
virtual iAwsComponent * | ComponentAbove ()=0 |
Get's the component above this one, 0 if there is none. | |
virtual iAwsComponent * | ComponentBelow ()=0 |
Get's the component below this one, 0 if there is none. | |
virtual void | SetComponentAbove (iAwsComponent *comp)=0 |
Set's the component above this one. | |
virtual void | SetComponentBelow (iAwsComponent *comp)=0 |
Set's the component below this one. | |
virtual bool | AddToTabOrder (iAwsComponent *child)=0 |
Add child to TabOrder Actually at this moment TabOrder is an array that contains all children of component ordered by their creation. | |
virtual iAwsComponent * | TabNext (iAwsComponent *child)=0 |
Get's next child component in parent TabOrder, First if there is none, 0, if child not belongs to this component. | |
virtual iAwsComponent * | TabPrev (iAwsComponent *child)=0 |
Get's previous child component in parent TabOrder, Last if there is none, 0, if child not belongs to this component. | |
virtual int | GetTabLength ()=0 |
Returns TabOrder length. | |
virtual iAwsComponent * | GetTabComponent (int index)=0 |
Returns component from TabOrder, 0 if there is none or index is invalid. | |
virtual iAwsComponent * | GetFirstFocusableChild (iAwsComponent *comp)=0 |
Returns first focusable component on this window. | |
virtual void | Raise ()=0 |
Moves this component above all its siblings. | |
virtual void | Lower ()=0 |
Moves this component below all its siblings. | |
virtual bool | HasChildren ()=0 |
Returns true if this component has children. | |
virtual void | SetRedrawTag (unsigned int tag)=0 |
Sets the value of the redraw tag. | |
virtual unsigned int | RedrawTag ()=0 |
Gets the value of the redraw tag. | |
virtual void | OnDraw (csRect clip)=0 |
Triggered when the component needs to draw. | |
virtual bool | OnMouseDown (int button, int x, int y)=0 |
Triggered when the user presses a mouse button down. | |
virtual bool | OnMouseUp (int button, int x, int y)=0 |
Triggered when the user unpresses a mouse button. | |
virtual bool | OnMouseMove (int button, int x, int y)=0 |
Triggered when the user moves the mouse. | |
virtual bool | OnMouseClick (int button, int x, int y)=0 |
Triggered when the user clicks the mouse. | |
virtual bool | OnMouseDoubleClick (int button, int x, int y)=0 |
Triggered when the user double clicks the mouse. | |
virtual bool | OnMouseExit ()=0 |
Triggered when this component loses mouse focus. | |
virtual bool | OnMouseEnter ()=0 |
Triggered when this component gains mouse focus. | |
virtual bool | OnKeyboard (const csKeyEventData &eventData)=0 |
Triggered when the user presses a key. | |
virtual bool | OnLostFocus ()=0 |
Triggered when the keyboard focus is lost. | |
virtual bool | OnGainFocus ()=0 |
Triggered when the keyboard focus is gained. | |
virtual bool | OnFrame ()=0 |
Triggered at the start of each frame. | |
virtual void | OnAdded ()=0 |
Triggered when a child is added to the parent (triggered on the child). | |
virtual void | OnResized ()=0 |
Triggered when a component is resized by the layout manager. | |
virtual void | OnChildMoved ()=0 |
Triggered when a child component has been moved. | |
virtual void | OnRaise ()=0 |
Triggered when the Raise function is called. | |
virtual void | OnLower ()=0 |
Triggered when the Lower function is called. | |
virtual void | OnChildHide ()=0 |
Triggered when a child becomes hidden. | |
virtual void | OnChildShow ()=0 |
Triggered when a child becomes shown. | |
virtual void | OnSetFocus ()=0 |
Triggered when a child becomes focused. | |
virtual void | OnUnsetFocus ()=0 |
Triggered when a child becomes unfocused. | |
virtual void | Unlink ()=0 |
Removes a component from the hierarchy. | |
virtual void | LinkAbove (iAwsComponent *comp)=0 |
Links a component into the hierarchy as a sibling above comp. | |
virtual void | LinkBelow (iAwsComponent *comp)=0 |
Links a component into the hierarchy as a sibling below comp. | |
virtual void | SetTopChild (iAwsComponent *child)=0 |
Sets the top child. |
Detailed Description
Interface that is the base of ALL components.
Definition at line 716 of file aws.h.
Member Function Documentation
|
Adds a child into this component.
Implemented in awsEmbeddedComponent. |
|
Adds a component to this component's layout.
Implemented in awsEmbeddedComponent. |
|
Add child to TabOrder Actually at this moment TabOrder is an array that contains all children of component ordered by their creation.
Implemented in awsEmbeddedComponent. |
|
Returns the highest child (if any) whose frame contains (x,y).
Implemented in awsEmbeddedComponent. |
|
Clears the flag (can handle multiple simultaneous clears).
Implemented in awsEmbeddedComponent. |
|
Clear the manually set preferred size.
Implemented in awsEmbeddedComponent. |
|
Get this component's client area.
Implemented in awsEmbeddedComponent. |
|
Get's the component above this one, 0 if there is none.
Implemented in awsEmbeddedComponent. |
|
Get's the component below this one, 0 if there is none.
Implemented in awsEmbeddedComponent. |
|
This function takes care of the creation tasks required to prepare this component for use. If you create a component via the window manager's creation functions then you should not call this, the window manager has done it for you. If you create components programatically then you are encouraged to call this func to make setup easier. For component developers, you should not need to override Create but rather do your setup work in Setup. If it returns false then the component was not able to initialize properly and shouldn't be used. Implemented in awsEmbeddedComponent. |
|
Gets a child component by id, returns 0 on failure.
|
|
Executes a scriptable action.
Implemented in awsEmbeddedComponent. |
|
Gets a child component by name, returns 0 on failure.
Implemented in awsEmbeddedComponent. |
|
Returns the current state of the flags.
Implemented in awsEmbeddedComponent. |
|
Returns focusable flag.
Implemented in awsEmbeddedComponent. |
|
Get this component's frame.
Implemented in awsEmbeddedComponent. |
|
Get's the number of children.
Implemented in awsEmbeddedComponent. |
|
Returns first focusable component on this window.
Implemented in awsEmbeddedComponent. Referenced by awsEmbeddedComponent::GetFirstFocusableChild(). |
|
Get's the unique id of this component.
Implemented in awsEmbeddedComponent. |
|
Gets the inset amounts that are needed to fit components properly.
Implemented in awsEmbeddedComponent. |
|
Gets the minimum size that the component can be.
Implemented in awsEmbeddedComponent. |
|
Gets the preferred size of the component.
Implemented in awsEmbeddedComponent. |
|
Gets a copy of the property, put it in parm. Returns false if the property does not exist. Implemented in awsEmbeddedComponent. |
|
Returns component from TabOrder, 0 if there is none or index is invalid.
Implemented in awsEmbeddedComponent. |
|
Returns TabOrder length.
Implemented in awsEmbeddedComponent. |
|
Get's a specific child.
Implemented in awsEmbeddedComponent. |
|
Event dispatcher, demultiplexes events and sends them off to the proper event handler.
Implemented in awsEmbeddedComponent. |
|
Returns true if this component has children.
Implemented in awsEmbeddedComponent. |
|
Hides a component.
Implemented in awsEmbeddedComponent. |
|
Invalidation routine: allow component to be redrawn, but only part of it.
Implemented in awsEmbeddedComponent. |
|
Invalidation routine: allow the component to be redrawn when you call this.
Implemented in awsEmbeddedComponent. |
|
Returns the state of the DEAF flag.
Implemented in awsEmbeddedComponent. |
|
Returns the state of the focused flag.
Implemented in awsEmbeddedComponent. |
|
Returns the state of the hidden flag.
Implemented in awsEmbeddedComponent. |
|
Returns true if the component is maximized.
Implemented in awsEmbeddedComponent. |
|
Gets the layout manager for this component.
Implemented in awsEmbeddedComponent. |
|
Resizes all the children of this component using the current layout.
Implemented in awsEmbeddedComponent. |
|
Links a component into the hierarchy as a sibling above comp.
Implemented in awsEmbeddedComponent. |
|
Links a component into the hierarchy as a sibling below comp.
Implemented in awsEmbeddedComponent. |
|
Moves this component below all its siblings.
Implemented in awsEmbeddedComponent. |
|
Maximizes this component.
Implemented in awsEmbeddedComponent. |
|
Moves a component.
Implemented in awsEmbeddedComponent. |
|
Moves a component to an absolute location.
Implemented in awsEmbeddedComponent. |
|
Triggered when a child is added to the parent (triggered on the child).
Implemented in awsEmbeddedComponent. |
|
Triggered when a child becomes hidden.
Implemented in awsEmbeddedComponent. |
|
Triggered when a child component has been moved.
Implemented in awsEmbeddedComponent. |
|
Triggered when a child becomes shown.
Implemented in awsEmbeddedComponent. |
|
Triggered when the component needs to draw.
Implemented in awsEmbeddedComponent. |
|
Triggered at the start of each frame.
Implemented in awsEmbeddedComponent. |
|
Triggered when the keyboard focus is gained.
Implemented in awsEmbeddedComponent. |
|
Triggered when the user presses a key.
Implemented in awsEmbeddedComponent. |
|
Triggered when the keyboard focus is lost.
Implemented in awsEmbeddedComponent. |
|
Triggered when the Lower function is called.
Implemented in awsEmbeddedComponent. |
|
Triggered when the user clicks the mouse.
Implemented in awsEmbeddedComponent. |
|
Triggered when the user double clicks the mouse.
Implemented in awsEmbeddedComponent. |
|
Triggered when the user presses a mouse button down.
Implemented in awsEmbeddedComponent. |
|
Triggered when this component gains mouse focus.
Implemented in awsEmbeddedComponent. |
|
Triggered when this component loses mouse focus.
Implemented in awsEmbeddedComponent. |
|
Triggered when the user moves the mouse.
Implemented in awsEmbeddedComponent. |
|
Triggered when the user unpresses a mouse button.
Implemented in awsEmbeddedComponent. |
|
Triggered when the Raise function is called.
Implemented in awsEmbeddedComponent. |
|
Triggered when a component is resized by the layout manager.
Implemented in awsEmbeddedComponent. |
|
Triggered when a child becomes focused.
Implemented in awsEmbeddedComponent. |
|
Triggered when a child becomes unfocused.
Implemented in awsEmbeddedComponent. |
|
Returns true if this window overlaps the given rect.
Implemented in awsEmbeddedComponent. |
|
Gets the parent component of this component.
Implemented in awsEmbeddedComponent. |
|
Moves this component above all its siblings.
Implemented in awsEmbeddedComponent. |
|
Gets the value of the redraw tag.
Implemented in awsEmbeddedComponent. |
|
Removes a child from this component.
Implemented in awsEmbeddedComponent. |
|
Resizes a component.
Implemented in awsEmbeddedComponent. |
|
Resizes a component to an absolute rect.
Implemented in awsEmbeddedComponent. |
|
Set's the component above this one.
Implemented in awsEmbeddedComponent. |
|
Set's the component below this one.
Implemented in awsEmbeddedComponent. |
|
set deaf/not deaf
Implemented in awsEmbeddedComponent. |
|
Sets the flag (can handle multiple simultaneous sets).
Implemented in awsEmbeddedComponent. |
|
Focus a component.
Implemented in awsEmbeddedComponent. |
|
Sets focusable flag.
Implemented in awsEmbeddedComponent. |
|
Set's the unique id of this component. Note: only to be used by window manager. Implemented in awsEmbeddedComponent. |
|
Sets the layout manager for this component.
Implemented in awsEmbeddedComponent. |
|
Sets the parent component of this component.
Implemented in awsEmbeddedComponent. |
|
Set the preferred size of the component.
Implemented in awsEmbeddedComponent. |
|
Sets the property specified to whatever is in parm. Returns false if there's no such property. Implemented in awsEmbeddedComponent. |
|
Sets the value of the redraw tag.
Implemented in awsEmbeddedComponent. |
|
Sets the top child.
Implemented in awsEmbeddedComponent. |
|
Sets up a component.
Implemented in awsEmbeddedComponent. |
|
Shows a component.
Implemented in awsEmbeddedComponent. |
|
Get's next child component in parent TabOrder, First if there is none, 0, if child not belongs to this component.
Implemented in awsEmbeddedComponent. |
|
Get's previous child component in parent TabOrder, Last if there is none, 0, if child not belongs to this component.
Implemented in awsEmbeddedComponent. |
|
Returns the named TYPE of the component, like "Radio Button", etc.
Implemented in awsEmbeddedComponent. |
|
Removes a component from the hierarchy.
Implemented in awsEmbeddedComponent. |
|
Returns the component to its unmaximized size.
Implemented in awsEmbeddedComponent. |
|
Unfocus a component.
Implemented in awsEmbeddedComponent. |
|
Gets the window this component is in.
Implemented in awsEmbeddedComponent. |
|
Should be used ONLY by this component, or an embedding object.
Implemented in awsEmbeddedComponent. |
The documentation for this struct was generated from the following file:
- iaws/aws.h
Generated for Crystal Space by doxygen 1.3.9.1