Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

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

Inner Classes, Typedefs, and Enums
struct CInput::SRow
          
 
Field Summary
protected std::list< CInput::SRow > m_CharacterPositions
          
protected float m_HorizontalScroll
          
protected int m_iBufferPos
          
protected int m_iBufferPos_Tail
          
protected bool m_SelectingText
          
protected float m_WantedX
          
 
Constructor Summary
CInput()
          
virtual ~CInput()
          
 
Method Summary
protected void DeleteCurSelection()
          
protected virtual void Draw()
          Draws the Text
 int GetMouseHoveringTextPosition()
          
protected float GetTextAreaWidth()
          
 int GetXTextPosition( const list< CInput::SRow >::iterator& current, const float& x, float& wanted )
          
 int GetXTextPosition( const std::list< CInput::SRow >::iterator& c, const float& x, float& wanted )
          
protected virtual void HandleMessage( const SGUIMessage& Message )
          Handle Messages
protected virtual InReaction ManuallyHandleEvent( const SDL_Event_* ev )
          Handle events manually to catch keyboard inputting.
 virtual void ResetStates()
          
protected bool SelectingText() const
          
protected void UpdateAutoScroll()
          
protected void UpdateText( int from = 0, int to_before =-1, int to_after =-1 )
          
   
Methods inherited from IGUIScrollBarOwner
ResetStates, AddScrollBar, GetScrollBarStyle, HandleMessage, Draw
 

Field Detail

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;


Constructor Detail

CInput

public CInput();

~CInput

public virtual ~CInput();


Method Detail

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 );

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:13
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD