Public Member Functions |
virtual const std::string & | getTypeName () const |
virtual bool | isType (const std::type_info &_type) const |
template<typename Type > |
bool | isType () const |
| List () |
size_t | getItemCount () const |
| Get number of items.
|
void | insertItemAt (size_t _index, const UString &_name, Any _data=Any::Null) |
| Insert an item into a array at a specified position.
|
void | addItem (const UString &_name, Any _data=Any::Null) |
| Add an item to the end of a array.
|
void | removeItemAt (size_t _index) |
| Remove item at a specified position.
|
void | removeAllItems () |
| Remove all items.
|
void | swapItemsAt (size_t _index1, size_t _index2) |
| Swap items at a specified positions.
|
size_t | findItemIndexWith (const UString &_name) |
| Search item, returns the position of the first occurrence in array or ITEM_NONE if item not found.
|
size_t | getIndexSelected () |
void | setIndexSelected (size_t _index) |
void | clearIndexSelected () |
void | setItemDataAt (size_t _index, Any _data) |
| Replace an item data at a specified position.
|
void | clearItemDataAt (size_t _index) |
| Clear an item data at a specified position.
|
template<typename ValueType > |
ValueType * | getItemDataAt (size_t _index, bool _throw=true) |
| Get item data from specified position.
|
void | setItemNameAt (size_t _index, const UString &_name) |
| Replace an item name at a specified position.
|
const UString & | getItemNameAt (size_t _index) |
| Get item name from specified position.
|
void | beginToItemAt (size_t _index) |
| Move all elements so specified becomes visible.
|
void | beginToItemFirst () |
| Move all elements so first becomes visible.
|
void | beginToItemLast () |
| Move all elements so last becomes visible.
|
void | beginToItemSelected () |
| Move all elements so selected becomes visible.
|
bool | isItemVisibleAt (size_t _index, bool _fill=true) |
bool | isItemSelectedVisible (bool _fill=true) |
| Same as List::isItemVisible for selected item.
|
void | setScrollVisible (bool _visible) |
| Set scroll visible when it needed.
|
void | setScrollPosition (size_t _position) |
| Set scroll position.
|
virtual void | setPosition (const IntPoint &_value) |
|
|
virtual void | setSize (const IntSize &_value) |
|
|
virtual void | setCoord (const IntCoord &_value) |
|
|
void | setPosition (int _left, int _top) |
|
|
void | setSize (int _width, int _height) |
|
|
void | setCoord (int _left, int _top, int _width, int _height) |
|
|
int | getOptimalHeight () |
| Return optimal height to fit all items in List.
|
virtual void | setProperty (const std::string &_key, const std::string &_value) |
|
|
void | _checkAlign () |
void | _setItemFocus (size_t _position, bool _focus) |
void | _sendEventChangeScroll (size_t _position) |
virtual void | _initialise (WidgetStyle _style, const IntCoord &_coord, Align _align, ResourceSkin *_info, Widget *_parent, ICroppedRectangle *_croppedParent, IWidgetCreator *_creator, const std::string &_name) |
void | setPosition (const IntCoord &_coord) |
void | setPosition (int _left, int _top, int _width, int _height) |
size_t | getItemIndexSelected () |
void | setItemSelectedAt (size_t _index) |
void | clearItemSelected () |
void | insertItem (size_t _index, const UString &_item) |
void | setItem (size_t _index, const UString &_item) |
const UString & | getItem (size_t _index) |
void | deleteItem (size_t _index) |
void | deleteAllItems () |
size_t | findItem (const UString &_item) |
size_t | getItemSelect () |
void | resetItemSelect () |
void | setItemSelect (size_t _index) |
void | beginToIndex (size_t _index) |
void | beginToStart () |
void | beginToEnd () |
void | beginToSelect () |
bool | isItemVisible (size_t _index, bool _fill=true) |
bool | isItemSelectVisible (bool _fill=true) |
template<typename Type > |
Type * | castType (bool _throw=true) |
template<typename Type > |
const Type * | castType (bool _throw=true) const |
| Widget () |
Widget * | createWidgetT (const std::string &_type, const std::string &_skin, const IntCoord &_coord, Align _align, const std::string &_name="") |
Widget * | createWidgetT (const std::string &_type, const std::string &_skin, int _left, int _top, int _width, int _height, Align _align, const std::string &_name="") |
Widget * | createWidgetRealT (const std::string &_type, const std::string &_skin, const FloatCoord &_coord, Align _align, const std::string &_name="") |
Widget * | createWidgetRealT (const std::string &_type, const std::string &_skin, float _left, float _top, float _width, float _height, Align _align, const std::string &_name="") |
template<typename T > |
T * | createWidget (const std::string &_skin, const IntCoord &_coord, Align _align, const std::string &_name="") |
template<typename T > |
T * | createWidget (const std::string &_skin, int _left, int _top, int _width, int _height, Align _align, const std::string &_name="") |
template<typename T > |
T * | createWidgetReal (const std::string &_skin, const FloatCoord &_coord, Align _align, const std::string &_name="") |
template<typename T > |
T * | createWidgetReal (const std::string &_skin, float _left, float _top, float _width, float _height, Align _align, const std::string &_name="") |
Widget * | createWidgetT (WidgetStyle _style, const std::string &_type, const std::string &_skin, const IntCoord &_coord, Align _align, const std::string &_layer="", const std::string &_name="") |
template<typename T > |
T * | createWidget (WidgetStyle _style, const std::string &_skin, const IntCoord &_coord, Align _align, const std::string &_layer="", const std::string &_name="") |
const std::string & | getName () const |
| Get name of widget.
|
void | setRealPosition (const FloatPoint &_value) |
void | setRealSize (const FloatSize &_value) |
void | setRealCoord (const FloatCoord &_value) |
void | setRealPosition (float _left, float _top) |
void | setRealSize (float _width, float _height) |
void | setRealCoord (float _left, float _top, float _width, float _height) |
virtual void | setVisible (bool _value) |
virtual void | setAlign (Align _value) |
virtual void | setCaption (const UString &_value) |
virtual const UString & | getCaption () |
void | setAlpha (float _value) |
float | getAlpha () |
void | setInheritsAlpha (bool _value) |
bool | isInheritsAlpha () |
bool | setState (const std::string &_value) |
void | setColour (const Colour &_value) |
bool | isRootWidget () |
Widget * | getParent () |
EnumeratorWidgetPtr | getEnumerator () |
size_t | getChildCount () |
Widget * | getChildAt (size_t _index) |
Widget * | findWidget (const std::string &_name) |
void | setNeedKeyFocus (bool _value) |
bool | isNeedKeyFocus () |
void | setNeedMouseFocus (bool _value) |
bool | isNeedMouseFocus () |
void | setInheritsPick (bool _value) |
bool | isInheritsPick () |
void | setMaskPick (const std::string &_filename) |
virtual void | setEnabled (bool _value) |
void | setEnabledSilent (bool _value) |
bool | isEnabled () |
void | setPointer (const std::string &_value) |
const std::string & | getPointer () |
const std::string & | getLayerName () |
IntCoord | getClientCoord () |
Widget * | getClientWidget () |
ISubWidgetText * | getSubWidgetText () |
ISubWidgetRect * | getSubWidgetMain () |
void | setNeedToolTip (bool _value) |
bool | getNeedToolTip () |
void | setEnableToolTip (bool _value) |
bool | getEnableToolTip () |
void | detachFromWidget (const std::string &_layer="") |
void | attachToWidget (Widget *_parent, WidgetStyle _style=WidgetStyle::Child, const std::string &_layer="") |
void | changeWidgetSkin (const std::string &_skinname) |
void | setWidgetStyle (WidgetStyle _style, const std::string &_layer="") |
WidgetStyle | getWidgetStyle () |
virtual void | _getContainer (Widget *&_container, size_t &_index) |
void | _forcePeek (Widget *_widget) |
void | _setUVSet (const FloatRect &_rect) |
virtual void | _setTextureName (const std::string &_texture) |
virtual const std::string & | _getTextureName () |
IWidgetCreator * | _getIWidgetCreator () |
IntCoord | _getTextRegion () |
IntSize | _getTextSize () |
void | _setFontName (const std::string &_font) |
const std::string & | _getFontName () |
void | _setFontHeight (int _height) |
int | _getFontHeight () |
void | _setTextAlign (Align _align) |
Align | _getTextAlign () |
void | _setTextColour (const Colour &_colour) |
const Colour & | _getTextColour () |
void | setCaptionWithNewLine (const std::string &_value) |
void | enableToolTip (bool _enable) |
void | setInheritsPeek (bool _inherits) |
bool | isInheritsPeek () |
void | setMaskPeek (const std::string &_filename) |
IntCoord | getTextCoord () |
IntSize | getTextSize () |
void | setFontName (const std::string &_font) |
const std::string & | getFontName () |
void | setFontHeight (int _height) |
int | getFontHeight () |
void | setTextAlign (Align _align) |
Align | getTextAlign () |
void | setTextColour (const Colour &_colour) |
const Colour & | getTextColour () |
virtual | ~IObject () |
| ICroppedRectangle () |
virtual | ~ICroppedRectangle () |
ICroppedRectangle * | getCroppedParent () |
const IntCoord & | getCoord () const |
IntPoint | getPosition () const |
IntSize | getSize () const |
bool | isVisible () const |
const IntPoint & | getAbsolutePosition () const |
IntRect | getAbsoluteRect () const |
IntCoord | getAbsoluteCoord () const |
int | getAbsoluteLeft () const |
int | getAbsoluteTop () const |
Align | getAlign () const |
int | getLeft () const |
int | getRight () const |
int | getTop () const |
int | getBottom () const |
int | getWidth () const |
int | getHeight () const |
bool | _isMargin () const |
int | _getViewLeft () const |
int | _getViewRight () const |
int | _getViewTop () const |
int | _getViewBottom () const |
int | _getViewWidth () const |
int | _getViewHeight () const |
virtual void | _correctView () |
void | _setCroppedParent (ICroppedRectangle *_parent) |
const IntRect & | _getMargin () const |
int | _getMarginLeft () const |
int | _getMarginRight () const |
int | _getMarginTop () const |
int | _getMarginBottom () const |
void | show () |
void | hide () |
bool | isShow () |
| LayerItem () |
virtual | ~LayerItem () |
ILayer * | getLayer () |
virtual void | attachItemToNode (ILayer *_layer, ILayerNode *_node) |
virtual void | detachFromLayer () |
virtual void | upLayerItem () |
void | setRenderItemTexture (ITexture *_texture) |
void | addChildItem (LayerItem *_item) |
void | removeChildItem (LayerItem *_item) |
void | addChildNode (LayerItem *_item) |
void | removeChildNode (LayerItem *_item) |
void | addRenderItem (ISubWidget *_item) |
void | removeAllRenderItems () |
void | saveLayerItem () |
void | restoreLayerItem () |
virtual | ~ILayerItem () |
| UserData () |
virtual | ~UserData () |
void | setUserString (const std::string &_key, const std::string &_value) |
const std::string & | getUserString (const std::string &_key) |
bool | clearUserString (const std::string &_key) |
bool | isUserString (const std::string &_key) |
void | clearUserStrings () |
void | setUserData (Any _data) |
template<typename ValueType > |
ValueType * | getUserData (bool _throw=true) |
void | _setInternalData (Any _data) |
template<typename ValueType > |
ValueType * | _getInternalData (bool _throw=true) |
void * | getUserData () |
virtual | ~WidgetEvent () |
virtual | ~IWidgetCreator () |
virtual void | _linkChildWidget (Widget *_widget) |
virtual void | _unlinkChildWidget (Widget *_widget) |
virtual | ~IDelegateUnlink () |
| IDelegateUnlink () |
bool | compare (IDelegateUnlink *_unlink) const |
Protected Member Functions |
virtual | ~List () |
void | baseChangeWidgetSkin (ResourceSkin *_info) |
void | onMouseWheel (int _rel) |
void | onKeyLostFocus (Widget *_new) |
void | onKeySetFocus (Widget *_old) |
void | onKeyButtonPressed (KeyCode _key, Char _char) |
void | notifyScrollChangePosition (VScroll *_sender, size_t _rel) |
void | notifyMousePressed (Widget *_sender, int _left, int _top, MouseButton _id) |
void | notifyMouseDoubleClick (Widget *_sender) |
void | notifyMouseWheel (Widget *_sender, int _rel) |
void | notifyMouseSetFocus (Widget *_sender, Widget *_old) |
void | notifyMouseLostFocus (Widget *_sender, Widget *_new) |
void | updateScroll () |
void | updateLine (bool _reset=false) |
void | _setScrollView (size_t _position) |
void | _redrawItemRange (size_t _start=0) |
void | _redrawItem (size_t _index) |
void | _selectIndex (size_t _index, bool _select) |
void | _updateState () |
| Widget (WidgetStyle _style, const IntCoord &_coord, Align _align, ResourceSkin *_info, Widget *_parent, ICroppedRectangle *_croppedParent, IWidgetCreator *_creator, const std::string &_name) |
virtual | ~Widget () |
void | _updateView () |
void | _setAlign (const IntSize &_oldsize, bool _update) |
void | _setAlign (const IntCoord &_oldcoord, bool _update) |
virtual Widget * | baseCreateWidget (WidgetStyle _style, const std::string &_type, const std::string &_skin, const IntCoord &_coord, Align _align, const std::string &_layer, const std::string &_name) |
virtual void | _destroyChildWidget (Widget *_widget) |
virtual void | _destroyAllChildWidget () |
virtual size_t | _getContainerIndex (const IntPoint &_point) |
virtual void | _resetContainer (bool _update) |
virtual void | baseUpdateEnable () |
virtual ILayerItem * | getLayerItemByPoint (int _left, int _top) |
virtual const IntCoord & | getLayerItemCoord () |
bool | _checkPoint (int _left, int _top) |
bool | _checkMargin () |
bool | _checkOutside () |
void | attachToLayerItemNode (ILayerNode *_node, bool _deep) |
void | detachFromLayerItemNode (bool _deep) |
| WidgetEvent () |
virtual void | onMouseLostFocus (Widget *_new) |
virtual void | onMouseSetFocus (Widget *_old) |
virtual void | onMouseDrag (int _left, int _top) |
virtual void | onMouseMove (int _left, int _top) |
virtual void | onMouseButtonPressed (int _left, int _top, MouseButton _id) |
virtual void | onMouseButtonReleased (int _left, int _top, MouseButton _id) |
virtual void | onMouseButtonClick () |
virtual void | onMouseButtonDoubleClick () |
virtual void | onKeyButtonReleased (KeyCode _key) |
virtual void | onMouseChangeRootFocus (bool _focus) |
virtual void | onKeyChangeRootFocus (bool _focus) |
void | _deleteWidget (Widget *_widget) |