class hiro::gui::Label — HIRO 0.7.0 documentation

# class hiro::gui::Label

## Overview

Non-editable text element. More…

    #include <GuiTypes.h>

    class Label: public hiro::gui::TElement {
    public:
        // methods

        hiro::gui::Label* Set(const std::string& text);
        std::string 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);

    protected:
        // methods

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

## Detailed Documentation

Non-editable text element.

### Methods

    hiro::gui::Label* Set(const std::string& text)

Set the text of the label.

    std::string Get() const

Get the text of the label.