gui
Class CInput
IGUIScrollBarOwner
|
+--CInput
in CInput.h
in CInput.cpp
- class CInput
- extends IGUIScrollBarOwner
Text field where you can input and edit the text.
It doesn't use IGUITextOwner, because we don't need
any other features than word-wrapping, and we need to be
able to rapidly change the string.
- See Also:
IGUIObject
m_CharacterPositions
protected std::list< CInput::SRow > m_CharacterPositions;
m_HorizontalScroll
protected float m_HorizontalScroll;
m_iBufferPos
protected int m_iBufferPos;
m_iBufferPos_Tail
protected int m_iBufferPos_Tail;
m_SelectingText
protected bool m_SelectingText;
m_WantedX
protected float m_WantedX;
CInput
public CInput();
~CInput
public virtual ~CInput();
DeleteCurSelection
protected void DeleteCurSelection();
Draw
protected virtual void Draw();
- Draws the Text
GetMouseHoveringTextPosition
public int GetMouseHoveringTextPosition();
GetTextAreaWidth
protected float GetTextAreaWidth();
GetXTextPosition
int GetXTextPosition( const list< CInput::SRow >::iterator& current, const float& x, float& wanted );
GetXTextPosition
public int GetXTextPosition( const std::list< CInput::SRow >::iterator& c, const float& x, float& wanted );
HandleMessage
protected virtual void HandleMessage( const SGUIMessage& Message );
- Handle Messages
- Parameters:
Message
- GUI Message
ManuallyHandleEvent
protected virtual InReaction ManuallyHandleEvent( const SDL_Event_* ev );
- Handle events manually to catch keyboard inputting.
ResetStates
public virtual void ResetStates();
SelectingText
protected bool SelectingText() const;
UpdateAutoScroll
protected void UpdateAutoScroll();
UpdateText
protected void UpdateText( int from = 0, int to_before =-1, int to_after =-1 );