supertux
Public Member Functions | List of all members
Console Class Referencefinal
Inheritance diagram for Console:
Inheritance graph
[legend]
Collaboration diagram for Console:
Collaboration graph
[legend]

Public Member Functions

 Console (ConsoleBuffer &buffer)
 
void on_buffer_change (int line_count)
 
void input (char c)
 add character to inputBuffer
 
void backspace ()
 delete character left of inputBufferPosition
 
void eraseChar ()
 delete character at inputBufferPosition
 
void enter ()
 process and clear input stream
 
void scroll (int offset)
 scroll console text up or down by offset lines
 
void autocomplete ()
 autocomplete current command
 
void show_history (int offset)
 move offset lines forward through history; Negative offset moves backward
 
void move_cursor (int offset)
 move the cursor offset chars to the right; Negative offset moves backward; 0xFFFF moves to the end
 
void draw (DrawingContext &context) const
 draw the console in a DrawingContext
 
void update (float dt_sec)
 
void show ()
 display the console
 
void open ()
 open the console for viewing for 6 seconds
 
void hide ()
 hide the console
 
void toggle ()
 display the console if hidden, hide otherwise
 
bool hasFocus () const
 true if characters should be sent to the console instead of their normal target
 

Additional Inherited Members

- Static Public Member Functions inherited from Currenton< Console >
static Consolecurrent ()
 

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