iConsoleInput Struct Reference
This is a plugin that can handle keyboard input and display it on an associated console. More...
#include <ivaria/conin.h>
Inheritance diagram for iConsoleInput:

Public Member Functions | |
virtual void | Bind (iConsoleOutput *console)=0 |
Bind to an output console. | |
virtual void | Clear ()=0 |
Clear the history buffer. | |
virtual int | GetBufferSize () const =0 |
Retrieve the size of the history buffer. | |
virtual int | GetCurLine () const =0 |
Return the current input line number. | |
virtual iConsoleExecCallback * | GetExecuteCallback ()=0 |
Get the command execution callback. | |
virtual const char * | GetText (int line=-1) const =0 |
Return a line from the input buffer. | |
virtual bool | HandleEvent (iEvent &)=0 |
Handle a console-related event. | |
virtual void | SetBufferSize (int size)=0 |
Set the size of the history buffer. | |
virtual void | SetExecuteCallback (iConsoleExecCallback *callback)=0 |
Set the command execution callback. | |
virtual void | SetPrompt (const char *prompt)=0 |
Set the prompt string. |
Detailed Description
This is a plugin that can handle keyboard input and display it on an associated console.The plugin has a command history and when user presses 'Enter' can call some callback function to execute the entered command.
WARNING Do NOT use the event handler that may (or may not) be implemented by the console and register that to the event queue. This doesn't work properly. Instead register your own event handler and call HandleEvent() from that.
Main creators of instances implementing this interface:
- Standard input console plugin (crystalspace.console.input.standard)
Main ways to get pointers to this interface:
Definition at line 63 of file conin.h.
Member Function Documentation
|
Bind to an output console.
|
|
Clear the history buffer.
|
|
Retrieve the size of the history buffer.
|
|
Return the current input line number.
|
|
Get the command execution callback.
|
|
Return a line from the input buffer.
|
|
Handle a console-related event. Do NOT use the event handler that may (or may not) be implemented by the console and register that to the event queue. This doesn't work properly. Instead register your own event handler and call HandleEvent() from that. |
|
Set the size of the history buffer.
|
|
Set the command execution callback.
|
|
Set the prompt string.
|
The documentation for this struct was generated from the following file:
- ivaria/conin.h
Generated for Crystal Space by doxygen 1.4.6