YCLIMP
Yandex Command Line Interface Music Player
Loading...
Searching...
No Matches
ConfirmDialogElement.hpp
1#pragma once
2
3#include "DialogElement.hpp"
4
9class ConfirmDialogElement : public DialogElement
10{
11public:
14 {
15 Recti text;
16 Recti dataText;
17 Recti confirm;
18 };
19
20public:
21 ConfirmDialogElement(
22 const std::string& text, const std::string& confirmText, const Recti& bounds);
23
24 virtual void Draw() const override;
25 virtual void HandleResizeEvent(const Recti& newRect) override;
26 virtual void HandleRawInput(int rawInputChar) override;
27
28 virtual void InputUp() override;
29 virtual void InputDown() override;
30 virtual void InputLeft() override;
31 virtual void InputRight() override;
32 virtual void InputEnter() override;
33 virtual void InputTab() override;
34
35private:
36 Recti mBounds;
37 LocalBounds mLocalBounds;
38 HorizontalOptionChoice mHorizontalChoice;
39 std::string mText;
40 std::string mConfirmText;
41};
The HorizontalOptionChoice class - part of the DialogElement. Most or all of the dialogs has this hor...
Definition DialogElement.hpp:23
bounds for some of the class visual objects
Definition ConfirmDialogElement.hpp:14