HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Data Structures | Namespaces | Enumerations | Functions
button_delegate.hpp File Reference

Defines button_delegate and some default button delegates. More...

#include "../notifier.hpp"
#include "../observer.hpp"
#include <type_traits>
#include <memory>

Go to the source code of this file.

Data Structures

class  hi::v1::button_delegate
 A button delegate controls the state of a button widget. More...
 
class  hi::v1::default_radio_button_delegate< T >
 A default radio button delegate. More...
 
class  hi::v1::default_toggle_button_delegate< T >
 A default toggle button delegate. More...
 

Namespaces

namespace  hi
 geometry/margins.hpp
 
namespace  hi::v1
 The HikoGUI API version 1.
 

Enumerations

enum class  hi::v1::button_state { hi::v1::button_state::off , hi::v1::button_state::on , hi::v1::button_state::other }
 The state of a button. More...
 

Functions

std::shared_ptr< button_delegatehi::v1::make_default_radio_button_delegate (auto &&value, auto &&on_value) noexcept
 Make a shared pointer to a radio-button delegate.
 
std::shared_ptr< button_delegatehi::v1::make_default_toggle_button_delegate (auto &&value, auto &&...args) noexcept
 Make a shared pointer to a toggle-button delegate.
 

Detailed Description

Defines button_delegate and some default button delegates.