13 std::optional<unsigned int>
height_hint = std::nullopt);
21 auto
getLabel() const -> const std::
string* override;
25 auto
createHandler() -> std::unique_ptr<bwScreenGraph::EventHandler> override;
43 void onMouseEnter(
bwEvent&)
override;
44 void onMouseLeave(
bwEvent&)
override;
48 void startTextEditing();
49 void endTextEditing();
52 bool is_dragging =
false;
Definition: bwTextBox.h:38
bwTextBox & textbox
Definition: bwTextBox.h:51
virtual ~bwTextBoxHandler()=default
Definition: bwTextBox.h:8
bwTextBox(std::optional< unsigned int > width_hint=std::nullopt, std::optional< unsigned int > height_hint=std::nullopt)
Definition: bwTextBox.cc:9
auto createHandler() -> std::unique_ptr< bwScreenGraph::EventHandler > override
Definition: bwTextBox.cc:65
auto setText(const std::string &value) -> bwTextBox &
Definition: bwTextBox.cc:47
std::string text
Definition: bwTextBox.h:30
bwRectanglePixel selection_rectangle
Definition: bwTextBox.h:27
auto getLabel() const -> const std::string *override
Definition: bwTextBox.cc:53
auto getTypeIdentifier() const -> std::string_view override
Definition: bwTextBox.cc:16
void draw(class bwStyle &style) override
Definition: bwTextBox.cc:21
bool is_text_editing
Definition: bwTextBox.h:31
void registerProperties() override
Definition: bwTextBox.cc:42
bwWidgetBaseStyle base_style
Definition: bwTextBox.h:35
friend class bwTextBoxHandler
Definition: bwTextBox.h:9
bool canAlign() const override
Definition: bwTextBox.cc:58