InputBox Class Reference

#include <InputBox.h>

Description

Allows a user to type inside of it.

Functions

void Resize (int, int)
 
void SetText (const std::string &)
 
std::string GetText ()
 
void Activate (bool act=true)
 
- Functions inherited from Entity
const std::vector< Entity::ID > & GetChildren () const
 
std::vector< Entity::IDGetAllSubEntities () const
 
bool Contains (Entity::ID)
 
std::vector< Entity::IDFindChildByName (const std::string &)
 
void Step ()
 
void Draw ()
 
void Attach (Entity::ID)
 
void Detach (Entity::ID)
 
template<typename T >
T * CreateChild ()
 
int GetNumChildren ()
 
double StepDuration ()
 
double DrawDuration ()
 
void SetPriority (Priority p)
 
void SetPriorityLast ()
 
void SetPriorityFirst ()
 
Priority GetPriority ()
 
EntityGetParent ()
 
bool HasParent ()
 
void Remove ()
 
void SetName (const std::string &name)
 
ID GetID ()
 
std::string GetName ()
 
void Watch (Variable v)
 
Variable GetWatched (const std::string &name)
 
std::vector< VariableGetWatchedVars ()
 
void Unwatch (const std::string &varName)
 
template<typename T >
T * AddComponent (UpdateClass when=UpdateClass::Before)
 
template<typename T >
T * QueryComponent ()
 
const std::vector< Component * > & GetComponents () const
 
void RemoveComponent (const std::string &tag)
 
void RemoveComponent (const Component *)
 
bool IsStepping ()
 
bool IsDrawing ()
 

Protected Member Functions

void OnStep ()
 
void OnDraw ()
 
- Protected Member Functions inherited from Entity
virtual void OnEnter ()
 
virtual void OnDepart ()
 
virtual void OnRemove ()
 
virtual void OnPreStep ()
 
virtual void OnPreDraw ()
 

Additional Inherited Members

- Public Types inherited from Entity
enum  UpdateClass {
  Before,
  After
}
 
- Static Functions inherited from Entity
template<typename T >
static Entity::ID Create ()
 
static Entity::ID Create ()
 
template<typename T >
static T * CreateReference ()
 
static std::vector< Entity::IDGetAll ()
 
- Properties inherited from Entity
bool step
 
bool draw
 

Member Function Documentation

void Resize ( int  ,
int   
)

Resizes the InputBox region.

void SetText ( const std::string &  )

Sets the text within the InputBox.

std::string GetText ( )

Reutrns the text currently within the InputBox.

void Activate ( bool  act = true)

Sets whether to activate the InputBox. When activated, the InputBox will accept input.

void OnStep ( )
protectedvirtual

Called when Step() is called.

Reimplemented from Entity.

void OnDraw ( )
protectedvirtual

Called when Draw() is called.

Reimplemented from Entity.


The documentation for this class was generated from the following file:
  • /home/jc/git/Dynacoe/DynacoeSrc/includes/Dynacoe/BuiltIn/InputBox.h