MyGUI::EditText Class Reference

#include <MyGUI_EditText.h>

Inheritance diagram for MyGUI::EditText:

Inheritance graph
[legend]

Public Types

typedef RTTIBase Base
typedef EditText RTTIBase

Public Member Functions

virtual const std::string & getTypeName () const
virtual bool isType (const std::type_info &_type) const
template<typename Type >
bool isType () const
 EditText ()
virtual ~EditText ()
virtual void setVisible (bool _value)
virtual void updateRawData ()
virtual void doRender ()
void setCaption (const UString &_value)
const UString & getCaption ()
void setTextColour (const Colour &_value)
const Colour & getTextColour ()
void setAlpha (float _value)
float getAlpha ()
virtual void setFontName (const std::string &_value)
virtual const std::string & getFontName ()
virtual void setFontHeight (int _value)
virtual int getFontHeight ()
virtual void createDrawItem (ITexture *_texture, ILayerNode *_node)
virtual void destroyDrawItem ()
virtual void setTextAlign (Align _value)
virtual Align getTextAlign ()
virtual size_t getTextSelectionStart ()
virtual size_t getTextSelectionEnd ()
virtual void setTextSelection (size_t _start, size_t _end)
virtual bool getSelectBackground ()
virtual void setSelectBackground (bool _normal)
virtual bool isVisibleCursor ()
virtual void setVisibleCursor (bool _value)
virtual bool getInvertSelected ()
virtual void setInvertSelected (bool _value)
virtual size_t getCursorPosition ()
virtual void setCursorPosition (size_t _index)
virtual IntSize getTextSize ()
virtual void setViewOffset (const IntPoint &_point)
virtual IntPoint getViewOffset ()
virtual size_t getCursorPosition (const IntPoint &_point)
virtual IntCoord getCursorCoord (size_t _position)
void setShiftText (bool _shift)
void setWordWrap (bool _value)
virtual void setStateData (IStateInfo *_data)
void _updateView ()
void _correctView ()
void _setAlign (const IntSize &_oldsize, bool _update)
void _setAlign (const IntCoord &_oldcoord, bool _update)

Static Public Member Functions

static const std::string & getClassTypeName ()

Protected Attributes

bool mEmptyView
uint32 mCurrentColour
uint32 mInverseColour
uint32 mCurrentAlpha
IntCoord mCurrentCoord
UString mCaption
bool mTextOutDate
Align mTextAlign
Colour mColour
float mAlpha
VertexColourType mVertexFormat
IFont * mFont
ITexture * mTexture
int mFontHeight
bool mBackgroundNormal
size_t mStartSelect
size_t mEndSelect
size_t mCursorPosition
bool mVisibleCursor
bool mInvertSelect
IntPoint mViewOffset
ILayerNode * mNode
RenderItem * mRenderItem
size_t mCountVertex
bool mIsAddCursorWidth
bool mShiftText
bool mWordWrap
bool mManualColour
int mOldWidth
TextView mTextView

Detailed Description

Definition at line 40 of file MyGUI_EditText.h.


Member Typedef Documentation

Reimplemented from MyGUI::ISubWidgetText.

Reimplemented in MyGUI::SimpleText.

Definition at line 42 of file MyGUI_EditText.h.

Reimplemented from MyGUI::ISubWidgetText.

Reimplemented in MyGUI::SimpleText.

Definition at line 42 of file MyGUI_EditText.h.


Constructor & Destructor Documentation

MyGUI::EditText::EditText (  ) 

Definition at line 100 of file MyGUI_EditText.cpp.

MyGUI::EditText::~EditText (  )  [virtual]

Definition at line 137 of file MyGUI_EditText.cpp.


Member Function Documentation

void MyGUI::EditText::_correctView (  )  [virtual]

Reimplemented from MyGUI::ICroppedRectangle.

Definition at line 149 of file MyGUI_EditText.cpp.

void MyGUI::EditText::_setAlign ( const IntCoord &  _oldcoord,
bool  _update 
) [virtual]

Reimplemented from MyGUI::ICroppedRectangle.

Definition at line 154 of file MyGUI_EditText.cpp.

void MyGUI::EditText::_setAlign ( const IntSize &  _oldsize,
bool  _update 
) [virtual]

Reimplemented from MyGUI::ICroppedRectangle.

Definition at line 159 of file MyGUI_EditText.cpp.

void MyGUI::EditText::_updateView (  )  [virtual]

Reimplemented from MyGUI::ICroppedRectangle.

Definition at line 225 of file MyGUI_EditText.cpp.

void MyGUI::EditText::createDrawItem ( ITexture *  _texture,
ILayerNode *  _node 
) [virtual]

Implements MyGUI::ISubWidget.

Definition at line 376 of file MyGUI_EditText.cpp.

void MyGUI::EditText::destroyDrawItem (  )  [virtual]

Implements MyGUI::ISubWidget.

Definition at line 389 of file MyGUI_EditText.cpp.

void MyGUI::EditText::doRender (  )  [virtual]

Implements MyGUI::ISubWidget.

Reimplemented in MyGUI::SimpleText.

Definition at line 552 of file MyGUI_EditText.cpp.

float MyGUI::EditText::getAlpha (  ) 

Definition at line 320 of file MyGUI_EditText.cpp.

const UString & MyGUI::EditText::getCaption (  )  [virtual]

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 277 of file MyGUI_EditText.cpp.

static const std::string& MyGUI::EditText::getClassTypeName (  )  [inline, static]

Reimplemented from MyGUI::ISubWidgetText.

Reimplemented in MyGUI::SimpleText.

Definition at line 42 of file MyGUI_EditText.h.

IntCoord MyGUI::EditText::getCursorCoord ( size_t  _position  )  [virtual]

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 499 of file MyGUI_EditText.cpp.

size_t MyGUI::EditText::getCursorPosition ( const IntPoint &  _point  )  [virtual]

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 486 of file MyGUI_EditText.cpp.

size_t MyGUI::EditText::getCursorPosition (  )  [virtual]

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 440 of file MyGUI_EditText.cpp.

int MyGUI::EditText::getFontHeight (  )  [virtual]

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 371 of file MyGUI_EditText.cpp.

const std::string & MyGUI::EditText::getFontName (  )  [virtual]

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 359 of file MyGUI_EditText.cpp.

virtual bool MyGUI::EditText::getInvertSelected (  )  [inline, virtual]

Get invert selected text color property

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 88 of file MyGUI_EditText.h.

bool MyGUI::EditText::getSelectBackground (  )  [virtual]

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 416 of file MyGUI_EditText.cpp.

Align MyGUI::EditText::getTextAlign (  )  [virtual]

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 458 of file MyGUI_EditText.cpp.

const Colour & MyGUI::EditText::getTextColour (  )  [virtual]

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 304 of file MyGUI_EditText.cpp.

size_t MyGUI::EditText::getTextSelectionEnd (  )  [virtual]

Get index of end of selection

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 404 of file MyGUI_EditText.cpp.

size_t MyGUI::EditText::getTextSelectionStart (  )  [virtual]

Get index of start of selection

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 399 of file MyGUI_EditText.cpp.

IntSize MyGUI::EditText::getTextSize (  )  [virtual]

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 463 of file MyGUI_EditText.cpp.

virtual const std::string& MyGUI::EditText::getTypeName (  )  const [inline, virtual]

Get type name as string

Reimplemented from MyGUI::ISubWidgetText.

Reimplemented in MyGUI::SimpleText.

Definition at line 42 of file MyGUI_EditText.h.

IntPoint MyGUI::EditText::getViewOffset (  )  [virtual]

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 481 of file MyGUI_EditText.cpp.

template<typename Type >
bool MyGUI::EditText::isType (  )  const [inline]

Compare with selected type

Reimplemented from MyGUI::ISubWidgetText.

Reimplemented in MyGUI::SimpleText.

Definition at line 42 of file MyGUI_EditText.h.

virtual bool MyGUI::EditText::isType ( const std::type_info &  _type  )  const [inline, virtual]

Compare with selected type

Reimplemented from MyGUI::ISubWidgetText.

Reimplemented in MyGUI::SimpleText.

Definition at line 42 of file MyGUI_EditText.h.

bool MyGUI::EditText::isVisibleCursor (  )  [virtual]

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 428 of file MyGUI_EditText.cpp.

void MyGUI::EditText::setAlpha ( float  _value  )  [virtual]

Reimplemented from MyGUI::ISubWidget.

Definition at line 309 of file MyGUI_EditText.cpp.

void MyGUI::EditText::setCaption ( const UString &  _value  )  [virtual]

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 262 of file MyGUI_EditText.cpp.

void MyGUI::EditText::setCursorPosition ( size_t  _index  )  [virtual]

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 445 of file MyGUI_EditText.cpp.

void MyGUI::EditText::setFontHeight ( int  _value  )  [virtual]

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 364 of file MyGUI_EditText.cpp.

void MyGUI::EditText::setFontName ( const std::string &  _value  )  [virtual]

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 325 of file MyGUI_EditText.cpp.

void MyGUI::EditText::setInvertSelected ( bool  _value  )  [virtual]

Enable or disable inverting color of selected text
Enabled (true) by default

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 837 of file MyGUI_EditText.cpp.

void MyGUI::EditText::setSelectBackground ( bool  _normal  )  [virtual]

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 421 of file MyGUI_EditText.cpp.

void MyGUI::EditText::setShiftText ( bool  _shift  )  [virtual]

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 512 of file MyGUI_EditText.cpp.

void MyGUI::EditText::setStateData ( IStateInfo *  _data  )  [virtual]

Reimplemented from MyGUI::ISubWidget.

Definition at line 544 of file MyGUI_EditText.cpp.

void MyGUI::EditText::setTextAlign ( Align  _value  )  [virtual]

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 452 of file MyGUI_EditText.cpp.

void MyGUI::EditText::setTextColour ( const Colour &  _value  )  [virtual]

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 282 of file MyGUI_EditText.cpp.

void MyGUI::EditText::setTextSelection ( size_t  _start,
size_t  _end 
) [virtual]

Set text selection

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 409 of file MyGUI_EditText.cpp.

void MyGUI::EditText::setViewOffset ( const IntPoint &  _point  )  [virtual]

Reimplemented from MyGUI::ISubWidgetText.

Reimplemented in MyGUI::SimpleText.

Definition at line 475 of file MyGUI_EditText.cpp.

void MyGUI::EditText::setVisible ( bool  _value  )  [virtual]

Hide or show

Reimplemented from MyGUI::ICroppedRectangle.

Definition at line 141 of file MyGUI_EditText.cpp.

void MyGUI::EditText::setVisibleCursor ( bool  _value  )  [virtual]

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 433 of file MyGUI_EditText.cpp.

void MyGUI::EditText::setWordWrap ( bool  _value  )  [virtual]

Reimplemented from MyGUI::ISubWidgetText.

Definition at line 519 of file MyGUI_EditText.cpp.

void MyGUI::EditText::updateRawData (  )  [virtual]

Definition at line 526 of file MyGUI_EditText.cpp.


Field Documentation

float MyGUI::EditText::mAlpha [protected]

Definition at line 137 of file MyGUI_EditText.h.

Definition at line 144 of file MyGUI_EditText.h.

Definition at line 132 of file MyGUI_EditText.h.

Definition at line 136 of file MyGUI_EditText.h.

size_t MyGUI::EditText::mCountVertex [protected]

Definition at line 155 of file MyGUI_EditText.h.

Definition at line 129 of file MyGUI_EditText.h.

Definition at line 127 of file MyGUI_EditText.h.

Definition at line 130 of file MyGUI_EditText.h.

Definition at line 147 of file MyGUI_EditText.h.

bool MyGUI::EditText::mEmptyView [protected]

Definition at line 126 of file MyGUI_EditText.h.

size_t MyGUI::EditText::mEndSelect [protected]

Definition at line 146 of file MyGUI_EditText.h.

Definition at line 140 of file MyGUI_EditText.h.

Definition at line 142 of file MyGUI_EditText.h.

Definition at line 128 of file MyGUI_EditText.h.

Definition at line 149 of file MyGUI_EditText.h.

Definition at line 156 of file MyGUI_EditText.h.

Definition at line 160 of file MyGUI_EditText.h.

Definition at line 153 of file MyGUI_EditText.h.

int MyGUI::EditText::mOldWidth [protected]

Definition at line 161 of file MyGUI_EditText.h.

Definition at line 154 of file MyGUI_EditText.h.

bool MyGUI::EditText::mShiftText [protected]

Definition at line 158 of file MyGUI_EditText.h.

size_t MyGUI::EditText::mStartSelect [protected]

Definition at line 145 of file MyGUI_EditText.h.

Definition at line 134 of file MyGUI_EditText.h.

Definition at line 133 of file MyGUI_EditText.h.

Definition at line 141 of file MyGUI_EditText.h.

Definition at line 163 of file MyGUI_EditText.h.

Definition at line 138 of file MyGUI_EditText.h.

Definition at line 151 of file MyGUI_EditText.h.

Definition at line 148 of file MyGUI_EditText.h.

bool MyGUI::EditText::mWordWrap [protected]

Definition at line 159 of file MyGUI_EditText.h.


The documentation for this class was generated from the following files:

Generated on Thu Dec 9 14:44:44 2010 for MyGUI by  doxygen 1.5.9