# class hiro::gui::Checkbox

## Overview

Selectable checkbox that can be linked to a boolean variable. More…

    #include <GuiTypes.h>

    class Checkbox: public hiro::gui::LinkedElement {
    public:
        // methods

        virtual hiro::gui::Checkbox* Set(bool state);
        virtual bool Get() const;
    };

### Inherited Members

    public:
        // methods

        bool TestCondition() const;
        uint32_t GetId() const;
        C* SetConditionFunc(std::function<bool(void)> condition_func);
        C* SetConditionBool(bool* var, hiro::BoolFunc func = hiro::BoolFunc::equals_true);
        C* Subscribe(std::function<void(const C*)> callback_func);
        virtual C* Set(const T new_value) = 0;
        virtual T Get() const = 0;
        C* SetLink(T* pointer);

    protected:
        // methods

        void SetConditionFuncImpl(std::function<bool(void)> condition_func);
        virtual void NotifyChange() const;
        virtual void NotifyChange() const;

## Detailed Documentation

Selectable checkbox that can be linked to a boolean variable.

### Methods

    virtual hiro::gui::Checkbox* Set(bool state)

Set the state of the checkbox. Default false.

    virtual bool Get() const

Get current state of the checkbox.