22 #ifndef SCI_GRAPHICS_CONTROLS32_H 23 #define SCI_GRAPHICS_CONTROLS32_H 25 #include "sci/graphics/text32.h" 33 enum MessageBoxStyle {
35 kMessageBoxYesNo = 0x4
147 ScrollWindow(
SegManager *segMan,
const Common::Rect &gameRect,
const Common::Point &position,
const reg_t planeObj,
const uint8 defaultForeColor,
const uint8 defaultBackColor,
const GuiResourceId defaultFontId,
const TextAlign defaultAlignment,
const int16 defaultBorderColor,
const uint16 maxNumEntries);
161 reg_t modify(
const reg_t id,
const Common::String &text,
const GuiResourceId fontId,
const int16 foreColor,
const TextAlign alignment,
const bool scrollTo);
182 void go(
const Ratio location);
238 void computeLineIndices();
247 void update(
const bool doFrameOut);
257 EntriesList _entries;
283 int _firstVisibleChar;
294 int _lastVisibleChar;
300 int _bottomVisibleLine;
312 int _numVisibleLines;
338 GuiResourceId _fontId;
343 TextAlign _alignment;
400 #pragma mark Text input control 402 reg_t kernelEditText(
const reg_t controlObject);
403 reg_t kernelInputText(
const reg_t textObject,
const reg_t titleTextObject,
const int16 maxTextLength);
415 uint32 _nextCursorFlashTick;
440 #pragma mark Scrollable window control 446 reg_t makeScrollWindow(
const Common::Rect &gameRect,
const Common::Point &position,
const reg_t plane,
const uint8 defaultForeColor,
const uint8 defaultBackColor,
const GuiResourceId defaultFontId,
const TextAlign defaultAlignment,
const int16 defaultBorderColor,
const uint16 maxNumEntries);
456 void destroyScrollWindow(
const reg_t id);
464 uint16 _nextScrollWindowId;
469 ScrollWindowMap _scrollWindows;
472 #pragma mark Message box 488 #endif // SCI_GRAPHICS_CONTROLS32_H Definition: controls32.h:38
uint8 backColor
Definition: controls32.h:73
Common::Rect cursorRect
Definition: controls32.h:98
uint8 skipColor
Definition: controls32.h:78
Definition: rational.h:40
int16 width
Definition: controls32.h:47
reg_t bitmap
Definition: controls32.h:42
Common::String text
Definition: controls32.h:52
bool cursorIsDrawn
Definition: controls32.h:93
int16 foreColor
Definition: controls32.h:126
GuiResourceId fontId
Definition: controls32.h:83
Common::String text
Definition: controls32.h:137
GuiResourceId fontId
Definition: controls32.h:132
Common::Rect textRect
Definition: controls32.h:58
Definition: controls32.h:109
uint16 maxLength
Definition: controls32.h:103
Definition: seg_manager.h:48
Definition: controls32.h:389
Definition: screen_item32.h:53
uint8 foreColor
Definition: controls32.h:68
int16 borderColor
Definition: controls32.h:63
Definition: vm_types.h:39
uint16 cursorCharPosition
Definition: controls32.h:88
reg_t id
Definition: controls32.h:114
TextAlign alignment
Definition: controls32.h:120