bWidgets
Core widget toolkit designed for Blender
bwPushButton.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
9
class
bwPushButton
:
public
bwAbstractButton
{
10
public
:
11
bwPushButton
(
const
std::string&
text
,
12
std::optional<unsigned int>
width_hint
= std::nullopt,
13
std::optional<unsigned int>
height_hint
= std::nullopt);
14
15
auto
getTypeIdentifier
()
const
-> std::string_view
override
;
16
17
auto
getIcon
()
const
->
const
bwIconInterface
*
override
;
18
auto
setIcon
(
const
class
bwIconInterface
&) ->
bwPushButton
&;
19
20
auto
canAlign
()
const
->
bool
override
;
21
22
private
:
23
const
class
bwIconInterface
* icon{
nullptr
};
24
};
25
26
}
// 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::bwIconInterface
Interface to reference icons from within bWidgets.
Definition:
bwIconInterface.h:22
bWidgets::bwPushButton
Definition:
bwPushButton.h:9
bWidgets::bwPushButton::canAlign
auto canAlign() const -> bool override
Definition:
bwPushButton.cc:28
bWidgets::bwPushButton::getTypeIdentifier
auto getTypeIdentifier() const -> std::string_view override
Definition:
bwPushButton.cc:12
bWidgets::bwPushButton::setIcon
auto setIcon(const class bwIconInterface &) -> bwPushButton &
Definition:
bwPushButton.cc:22
bWidgets::bwPushButton::getIcon
auto getIcon() const -> const bwIconInterface *override
Definition:
bwPushButton.cc:17
bWidgets::bwPushButton::bwPushButton
bwPushButton(const std::string &text, std::optional< unsigned int > width_hint=std::nullopt, std::optional< unsigned int > height_hint=std::nullopt)
Definition:
bwPushButton.cc:5
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
bwPushButton.h
Generated by
1.9.3