YCLIMP
Yandex Command Line Interface Music Player
Loading...
Searching...
No Matches
LineEditDialogElement.hpp
1#pragma once
2
3#include "DialogElement.hpp"
4
9class LineEditDialogElement : public DialogElement
10{
11public:
14 {
15 Recti text;
16 Recti lineEdit;
17 Recti confirm;
18 };
19
20public:
21 LineEditDialogElement(const Recti& bounds, std::string text);
22
23 virtual void Draw() const override;
24 virtual void HandleResizeEvent(const Recti& newRect) override;
25 virtual void HandleRawInput(int rawInputChar) override;
26
27 virtual void InputUp() override;
28 virtual void InputDown() override;
29 virtual void InputLeft() override;
30 virtual void InputRight() override;
31 virtual void InputEnter() override;
32 virtual void InputTab() override;
33
34 const std::string& GetLineEditText() const;
35
36private:
37 Recti mBounds;
38 LocalBounds mLocalBounds;
39 std::string mText;
40 HorizontalOptionChoice mHorizontalChoice;
41 std::string mLineEditText;
42};
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 LineEditDialogElement.hpp:14