Gump_text Class Reference

Inheritance diagram for Gump_text:

Inheritance graph
[legend]
Collaboration diagram for Gump_text:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Gump_text (Gump *par, int shnum, int px, int py, int maxsz, int tx, int ty)
 ~Gump_text ()
int get_length ()
char * get_text ()
void set_text (char *newtxt)
int get_cursor ()
void set_cursor (int pos)
void paint ()
int mouse_clicked (int mx, int my)
void insert (int chr)
int delete_left ()
int delete_right ()
void lose_focus ()

Protected Member Functions

void refresh ()

Private Attributes

char * text
int max_size
int length
int textx
int texty
int cursor

Detailed Description

Definition at line 139 of file File_gump.cc.


Constructor & Destructor Documentation

Gump_text::Gump_text ( Gump par,
int  shnum,
int  px,
int  py,
int  maxsz,
int  tx,
int  ty 
) [inline]

Definition at line 147 of file File_gump.cc.

References Shape_frame::get_xleft(), Shape_frame::get_yabove(), SF_GUMPS_VGA, ShapeID::shape, ShapeID::ShapeID(), text, textx, and texty.

Here is the call graph for this function:

Gump_text::~Gump_text (  )  [inline]

Definition at line 160 of file File_gump.cc.

References text.


Member Function Documentation

int Gump_text::get_length (  )  [inline]

Definition at line 162 of file File_gump.cc.

References length.

Referenced by File_gump::text_input().

char* Gump_text::get_text (  )  [inline]

Definition at line 164 of file File_gump.cc.

References text.

void Gump_text::set_text ( char *  newtxt  )  [inline]

Definition at line 166 of file File_gump.cc.

References length, max_size, and text.

int Gump_text::get_cursor (  )  [inline]

Definition at line 171 of file File_gump.cc.

References cursor.

Referenced by File_gump::text_input().

void Gump_text::set_cursor ( int  pos  )  [inline]

Definition at line 173 of file File_gump.cc.

References cursor, length, and refresh().

Referenced by File_gump::text_input().

Here is the call graph for this function:

void Gump_text::paint (  )  [virtual]

Reimplemented from Gump_widget.

Definition at line 201 of file File_gump.cc.

References Image_window8::fill8(), Game_window::get_win(), gwin, and Game_window::set_painted().

Referenced by refresh().

Here is the call graph for this function:

int Gump_text::mouse_clicked ( int  mx,
int  my 
)

Definition at line 223 of file File_gump.cc.

void Gump_text::insert ( int  chr  ) 

Definition at line 255 of file File_gump.cc.

Referenced by File_gump::text_input().

int Gump_text::delete_left (  ) 

Definition at line 276 of file File_gump.cc.

Referenced by File_gump::text_input().

int Gump_text::delete_right (  ) 

Definition at line 296 of file File_gump.cc.

Referenced by File_gump::text_input().

void Gump_text::lose_focus (  ) 

Definition at line 310 of file File_gump.cc.

void Gump_text::refresh (  )  [inline, protected]

Definition at line 190 of file File_gump.cc.

References paint().

Referenced by set_cursor().

Here is the call graph for this function:


Member Data Documentation

char* Gump_text::text [private]

Definition at line 141 of file File_gump.cc.

Referenced by get_text(), Gump_text(), set_text(), and ~Gump_text().

int Gump_text::max_size [private]

Definition at line 142 of file File_gump.cc.

Referenced by set_text().

int Gump_text::length [private]

Definition at line 143 of file File_gump.cc.

Referenced by get_length(), set_cursor(), and set_text().

int Gump_text::textx [private]

Definition at line 144 of file File_gump.cc.

Referenced by Gump_text().

int Gump_text::texty [private]

Definition at line 144 of file File_gump.cc.

Referenced by Gump_text().

int Gump_text::cursor [private]

Definition at line 145 of file File_gump.cc.

Referenced by get_cursor(), and set_cursor().


The documentation for this class was generated from the following file:
Generated on Mon Jul 9 14:55:21 2007 for ExultEngine by  doxygen 1.5.1