cio.h File Reference

#include "enum.h"
#include "externs.h"
#include "defines.h"
#include "directn.h"
#include <cctype>
#include <string>
#include <vector>

Include dependency graph for cio.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  input_history
struct  c_mouse_event
class  cursor_control
class  line_reader

Defines

#define cancelable_get_line_autohist(buf, len)   cancelable_get_line_autohist_temp<__LINE__>(buf, len)

Typedefs

typedef int keycode_type

Enumerations

enum  KEYS {
  CK_ENTER = '\r', CK_BKSP = 8, CK_ESCAPE = ESCAPE, CK_DELETE = 129,
  CK_UP, CK_DOWN, CK_LEFT, CK_RIGHT,
  CK_INSERT, CK_HOME, CK_END, CK_CLEAR,
  CK_PGUP, CK_PGDN, CK_SHIFT_UP, CK_SHIFT_DOWN,
  CK_SHIFT_LEFT, CK_SHIFT_RIGHT, CK_SHIFT_INSERT, CK_SHIFT_HOME,
  CK_SHIFT_END, CK_SHIFT_CLEAR, CK_SHIFT_PGUP, CK_SHIFT_PGDN,
  CK_CTRL_UP, CK_CTRL_DOWN, CK_CTRL_LEFT, CK_CTRL_RIGHT,
  CK_CTRL_INSERT, CK_CTRL_HOME, CK_CTRL_END, CK_CTRL_CLEAR,
  CK_CTRL_PGUP, CK_CTRL_PGDN, CK_MOUSE_MOVE = 10001, CK_MOUSE_CMD,
  CK_MOUSE_B1, CK_MOUSE_B2, CK_MOUSE_B3, CK_MOUSE_B4,
  CK_MOUSE_B5, CK_MOUSE_CLICK
}

Functions

void cursorxy (int x, int y)
void cursorxy (const coord_def &p)
int m_getch ()
int unmangle_direction_keys (int keyin, KeymapContext keymap=KMC_DEFAULT, bool fake_ctrl=true, bool fake_shift=true)
int nowrapcprintf (int wrapcol, const char *s,...)
int nowrap_eol_cprintf (const char *s,...)
int cancelable_get_line (char *buf, int len, input_history *mh=NULL, int(*keyproc)(int &c)=NULL)
coord_def get_mouse_pos ()
c_mouse_event get_mouse_event ()
void new_mouse_event (const c_mouse_event &ce)
void c_input_reset (bool enable_mouse, bool flush=false)


Define Documentation

#define cancelable_get_line_autohist ( buf,
len   )     cancelable_get_line_autohist_temp<__LINE__>(buf, len)


Typedef Documentation

typedef int keycode_type


Enumeration Type Documentation

enum KEYS

Enumerator:
CK_ENTER 
CK_BKSP 
CK_ESCAPE 
CK_DELETE 
CK_UP 
CK_DOWN 
CK_LEFT 
CK_RIGHT 
CK_INSERT 
CK_HOME 
CK_END 
CK_CLEAR 
CK_PGUP 
CK_PGDN 
CK_SHIFT_UP 
CK_SHIFT_DOWN 
CK_SHIFT_LEFT 
CK_SHIFT_RIGHT 
CK_SHIFT_INSERT 
CK_SHIFT_HOME 
CK_SHIFT_END 
CK_SHIFT_CLEAR 
CK_SHIFT_PGUP 
CK_SHIFT_PGDN 
CK_CTRL_UP 
CK_CTRL_DOWN 
CK_CTRL_LEFT 
CK_CTRL_RIGHT 
CK_CTRL_INSERT 
CK_CTRL_HOME 
CK_CTRL_END 
CK_CTRL_CLEAR 
CK_CTRL_PGUP 
CK_CTRL_PGDN 
CK_MOUSE_MOVE 
CK_MOUSE_CMD 
CK_MOUSE_B1 
CK_MOUSE_B2 
CK_MOUSE_B3 
CK_MOUSE_B4 
CK_MOUSE_B5 
CK_MOUSE_CLICK 


Function Documentation

void c_input_reset ( bool  enable_mouse,
bool  flush = false 
)

Here is the call graph for this function:

int cancelable_get_line ( char *  buf,
int  len,
input_history mh = NULL,
int(*)(int &c)  keyproc = NULL 
)

void cursorxy ( const coord_def p  )  [inline]

Here is the call graph for this function:

void cursorxy ( int  x,
int  y 
)

Here is the call graph for this function:

c_mouse_event get_mouse_event (  ) 

coord_def get_mouse_pos (  ) 

int m_getch (  ) 

void new_mouse_event ( const c_mouse_event ce  ) 

int nowrap_eol_cprintf ( const char *  s,
  ... 
)

Here is the call graph for this function:

int nowrapcprintf ( int  wrapcol,
const char *  s,
  ... 
)

Here is the call graph for this function:

int unmangle_direction_keys ( int  keyin,
KeymapContext  keymap = KMC_DEFAULT,
bool  fake_ctrl = true,
bool  fake_shift = true 
)

Here is the call graph for this function:


Generated on Thu Jan 13 13:03:26 2011 by  doxygen 1.5.6