8#ifndef DESIGNLAB_SIMPLE_BUTTON_H_
9#define DESIGNLAB_SIMPLE_BUTTON_H_
38 int x_pos,
int y_pos,
int x_size,
int y_size,
39 bool fit_size =
false);
47 click_function_ = func;
73 void Draw()
const override;
87 bool CursorOnGui(
int cursor_x,
int cursor_y)
const noexcept override;
90 int GetFitButtonSizeX(
int now_size_x)
const noexcept;
91 int GetFitButtonSizeY(
int now_size_y)
const noexcept;
93 const int kFontSize{ 16 };
94 const std::string kFontPath{
"font/Yu_Gothic_UI.dft" };
97 std::vector<std::string> text_;
100 int now_color_blue_{ 0 };
101 int target_color_blue_{ 0 };
103 bool visible_{
true };
105 int pos_middle_x, pos_middle_y;
106 const int kSizeX, kSizeY;
109 std::function<void()> click_function_;
Dxlibの画面に表示するGUIのインターフェース.
constexpr unsigned int kDxlibGuiAnchorLeftTop