ScummVM API documentation
Ultima::Ultima3::Views::LineInput Class Reference

#include <menu_input.h>

Inheritance diagram for Ultima::Ultima3::Views::LineInput:
Ultima::Ultima3::Views::NumberInput

Public Member Functions

void setup (uint maxLength, int col, int row)
 
void reset ()
 
const Common::String & text () const
 
virtual bool handleKey (const KeypressMessage &msg)
 
void draw (GfxSurface &s, bool active) const
 

Protected Attributes

Common::String _text
 
uint _maxLength = 0
 
int _col = 0
 
int _row = 0
 

Detailed Description

A line of text being typed at a cell position, with the cursor following it

Member Function Documentation

◆ handleKey()

virtual bool Ultima::Ultima3::Views::LineInput::handleKey ( const KeypressMessage &  msg)
virtual

Handles a keypress, returning true once the entry has been accepted

Reimplemented in Ultima::Ultima3::Views::NumberInput.


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