bWidgets
Core widget toolkit designed for Blender
bwRadioButton.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5#include "bwAbstractButton.h"
6
7namespace bWidgets {
8
22 public:
23 bwRadioButton(const std::string& text,
24 std::optional<unsigned int> width_hint = std::nullopt,
25 std::optional<unsigned int> height_hint = std::nullopt);
26
27 auto getTypeIdentifier() const -> std::string_view override;
28
29 auto canAlign() const -> bool override;
30
31 auto createHandler() -> std::unique_ptr<bwScreenGraph::EventHandler> override;
32};
33
34} // namespace bWidgets
Base class for button like widgets.
Definition: bwAbstractButton.h:17
std::string text
Definition: bwAbstractButton.h:42
A radio-button like widget retaining a pressed state once pressed.
Definition: bwRadioButton.h:21
auto getTypeIdentifier() const -> std::string_view override
Definition: bwRadioButton.cc:13
auto createHandler() -> std::unique_ptr< bwScreenGraph::EventHandler > override
Definition: bwRadioButton.cc:38
bwRadioButton(const std::string &text, std::optional< unsigned int > width_hint=std::nullopt, std::optional< unsigned int > height_hint=std::nullopt)
Definition: bwRadioButton.cc:6
auto canAlign() const -> bool override
Definition: bwRadioButton.cc:18
unsigned int height_hint
Definition: bwWidget.h:68
unsigned int width_hint
Definition: bwWidget.h:68
Definition: bwContext.h:3