22#ifndef MM1_VIEWS_ENH_SCROLL_VIEW_H
23#define MM1_VIEWS_ENH_SCROLL_VIEW_H
25#include "mm/mm1/views_enh/text_view.h"
31#define FRAME_BORDER_SIZE 8
36constexpr int SCROLL_BG_COLOR = 0;
38constexpr int SCROLL_BG_COLOR = 153;
47 KeybindingAction _action = KEYBIND_NONE;
49 bool _halfSize =
false;
54 _sprites(sprites), _frame(
frame), _key(key), _halfSize(halfSize),
56 pos.
x + (halfSize ? GLYPH_W / 2 : GLYPH_W),
57 pos.
y + (halfSize ? GLYPH_H / 2 : GLYPH_H))
62 KeybindingAction action,
bool halfSize =
false) :
63 _sprites(sprites), _frame(
frame), _action(action), _halfSize(halfSize),
65 pos.
x + (halfSize ? GLYPH_W / 2 : GLYPH_W),
66 pos.
y + (halfSize ? GLYPH_H / 2 : GLYPH_H))
70 _sprites(
nullptr), _bounds(r), _key(key) {
72 Button(
const Common::Rect &r,
const KeybindingAction action) :
73 _sprites(
nullptr), _bounds(r), _action(action) {
79 int _selectedButton = -1;
106 return _buttons.
size();
138 bool halfSize =
false);
154 _buttons[buttonNum]._enabled = enabled;
161 return _buttons[buttonNum]._enabled;
168 _buttons[buttonNum]._bounds.moveTo(pos);
size_type size() const
Definition: array.h:316
void clear()
Definition: array.h:321
Definition: text_view.h:42
Definition: detection.h:27
Definition: keyboard.h:294
Definition: messages.h:41
Definition: messages.h:72
Definition: messages.h:79