22#ifndef HARVESTER_MENU_RENDER_H
23#define HARVESTER_MENU_RENDER_H
25#include "graphics/font.h"
26#include "harvester/menu/menu.h"
33namespace MenuRendering {
35extern const int kMenuStartY;
36extern const int kMenuLineSpacing;
37extern const byte kTextColorNormal;
38extern const int kOptionsSliderMinX;
39extern const int kOptionsSliderStep;
40extern const int kOptionsIndicatorY;
41extern const int kPasswordEntryWidth;
44 TextLayout(
int x,
int y,
int width) : x(x), y(y), width(width) {}
53 : primary(primary), secondary(secondary) {}
61 : bar(bar), indicator(indicator) {}
71 const byte *palette,
float paletteBrightness)
72 : _engine(engine), _backdrop(backdrop), _palette(palette), _paletteBrightness(paletteBrightness) {}
75 const SliderBitmaps &sliders,
int selectedItem,
bool drawCursor =
true)
const;
77 const Common::String &text,
bool cursorVisible,
bool drawLogo)
const;
88 float _paletteBrightness;
92 const byte *palette,
float brightness);
99int getNativeRoomMenuLineHeight(
const Graphics::Font &selectedFont);
Definition: harvester.h:47
TextAlign
Definition: font.h:48
@ kTextAlignLeft
Align the text to the left.
Definition: font.h:51
Definition: formatinfo.h:28
Definition: atari-screen.h:58