class ui.ToolBar

class ToolBar: ui.Widget {
    // enums

    enum {
        Def_Spacing = 6,
    };

    // properties

    ui.ToolButtonStyle autoget property m_toolButtonStyle;
    ui.InsertActionPos autoget property m_insertActionPos;

    // construction

    construct();
    destruct();

    // methods

    void setIconSize(
        int width,
        int height
    );

    void addAction(ui.Action* action);
    void addWidget(ui.Widget* widget);
    void addSpacing(int size = Def_Spacing);
    void addStretch(int stretch = 0);
    void addSeparator();

    ui.Label* addLabel(
        string_t text,
        int spacing = Def_Spacing
    );

    ui.ComboBox* addComboBox(uint_t width = 0);

    ui.ComboBox* addComboBox(
        string_t labelText,
        ui.ComboItem const* itemArray,
        size_t itemCount
    );
};

Inherited Members

public:
    // properties

    int autoget property m_minimumWidth;
    int autoget property m_minimumHeight;
    int autoget property m_maximumWidth;
    int autoget property m_maximumHeight;
    ui.SizePolicy autoget property m_horizontalSizePolicy;
    ui.SizePolicy autoget property m_verticalSizePolicy;
    int autoget property m_horizontalStretch;
    int autoget property m_verticalStretch;
    bool autoget property m_isVisible;
    bool autoget property m_isEnabled;
    string_t autoget property m_toolTip;
    string_t autoget property m_styleSheet;

    // methods

    void setFocus();