class guip::ListboxTextItem — HIRO 0.7.0 documentation

# class guip::ListboxTextItem

## Overview

A single item of a combobox drop list. More…

    #include <ListboxTextItem.h>

    class ListboxTextItem: public ListboxTextItem {
    public:
        // fields

        static CEGUI::String WidgetTypeName;

        // construction

        ListboxTextItem(const std::string& text, uint32_t item_id = 0);

        // methods

        void SetVertPadding(float padding);
        float GetVertPadding();
        CEGUI::Sizef getPixelSize(void) const;
        void draw(CEGUI::GeometryBuffer& buffer, const CEGUI::Rectf& targetRect, float alpha, const CEGUI::Rectf* clipper) const;

    protected:
        // fields

        float padding_ = 0.0f;
    };

## Detailed Documentation

A single item of a combobox drop list.

### Fields

    static CEGUI::String WidgetTypeName

Unique gui system identifier.

### Methods

    void SetVertPadding(float padding)

Sets padding on top and bottom of the item.

    float GetVertPadding()

Returns padding on top and bottom of the item.

    CEGUI::Sizef getPixelSize(void) const

Returns size of item in pixels.

    void draw(CEGUI::GeometryBuffer& buffer, const CEGUI::Rectf& targetRect, float alpha, const CEGUI::Rectf* clipper) const

Draws an item. This function is called automatically by a gui system.