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
7
namespace
bWidgets
{
8
21
class
bwRadioButton
:
public
bwAbstractButton
{
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
bwAbstractButton.h
bWidgets::bwAbstractButton
Base class for button like widgets.
Definition:
bwAbstractButton.h:17
bWidgets::bwAbstractButton::text
std::string text
Definition:
bwAbstractButton.h:42
bWidgets::bwRadioButton
A radio-button like widget retaining a pressed state once pressed.
Definition:
bwRadioButton.h:21
bWidgets::bwRadioButton::getTypeIdentifier
auto getTypeIdentifier() const -> std::string_view override
Definition:
bwRadioButton.cc:13
bWidgets::bwRadioButton::createHandler
auto createHandler() -> std::unique_ptr< bwScreenGraph::EventHandler > override
Definition:
bwRadioButton.cc:38
bWidgets::bwRadioButton::bwRadioButton
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
bWidgets::bwRadioButton::canAlign
auto canAlign() const -> bool override
Definition:
bwRadioButton.cc:18
bWidgets::bwWidget::height_hint
unsigned int height_hint
Definition:
bwWidget.h:68
bWidgets::bwWidget::width_hint
unsigned int width_hint
Definition:
bwWidget.h:68
bWidgets
Definition:
bwContext.h:3
bwidgets
widgets
bwRadioButton.h
Generated by
1.9.3