Public Member Functions | |
FalagardListbox (const String &type) | |
Constructor. | |
void | cacheListboxBaseImagery () |
Perform caching of the widget control frame and other 'static' areas. This method should not render the actual items. Note that the items are typically rendered to layer 3, other layers can be used for rendering imagery behind and infront of the items. | |
void | render () |
Populate render cache. | |
Rect | getListRenderArea (void) const |
Return a Rect object describing, in un-clipped pixels, the window relative area that is to be used for rendering list items. | |
Static Public Attributes | |
static const utf8 | TypeName [] = "Falagard/Listbox" |
type name for this widget. |
This class requires LookNFeel to be assigned. The LookNFeel should provide the following:
States:
Named Areas:
Child Widgets: Scrollbar based widget with name suffix "__auto_vscrollbar__" Scrollbar based widget with name suffix "__auto_hscrollbar__"
void CEGUI::FalagardListbox::cacheListboxBaseImagery | ( | ) |
Perform caching of the widget control frame and other 'static' areas. This method should not render the actual items. Note that the items are typically rendered to layer 3, other layers can be used for rendering imagery behind and infront of the items.
References CEGUI::WindowRenderer::d_window, CEGUI::WindowRenderer::getLookNFeel(), CEGUI::WidgetLookFeel::getStateImagery(), CEGUI::Window::isDisabled(), and CEGUI::StateImagery::render().
Referenced by render().
Rect CEGUI::FalagardListbox::getListRenderArea | ( | void | ) | const [virtual] |
Return a Rect object describing, in un-clipped pixels, the window relative area that is to be used for rendering list items.
Implements CEGUI::ListboxWindowRenderer.
References CEGUI::WindowRenderer::d_window, CEGUI::NamedArea::getArea(), CEGUI::Listbox::getHorzScrollbar(), CEGUI::WindowRenderer::getLookNFeel(), CEGUI::WidgetLookFeel::getNamedArea(), CEGUI::ComponentArea::getPixelRect(), CEGUI::Listbox::getVertScrollbar(), CEGUI::WidgetLookFeel::isNamedAreaDefined(), and CEGUI::Window::isVisible().
Referenced by render().
void CEGUI::FalagardListbox::render | ( | ) | [virtual] |
Populate render cache.
This method must be implemented by all window renderers and should perform the rendering operations needed for this widget. Normally using the Falagard API...
Implements CEGUI::WindowRenderer.
References cacheListboxBaseImagery(), CEGUI::Size::d_height, CEGUI::Rect::d_left, CEGUI::Rect::d_top, CEGUI::Size::d_width, CEGUI::WindowRenderer::d_window, CEGUI::Vector3::d_x, CEGUI::Vector3::d_y, CEGUI::Vector3::d_z, CEGUI::ListboxItem::draw(), CEGUI::Renderer::getCurrentZ(), CEGUI::Window::getEffectiveAlpha(), CEGUI::Listbox::getHorzScrollbar(), CEGUI::Rect::getIntersection(), CEGUI::Listbox::getItemCount(), CEGUI::Listbox::getListboxItemFromIndex(), getListRenderArea(), CEGUI::ListboxItem::getPixelSize(), CEGUI::Window::getRenderCache(), CEGUI::System::getRenderer(), CEGUI::Scrollbar::getScrollPosition(), CEGUI::System::getSingleton(), CEGUI::Listbox::getVertScrollbar(), CEGUI::Listbox::getWidestItemWidth(), CEGUI::Rect::getWidth(), CEGUI::Renderer::getZLayer(), and CEGUI::Rect::setSize().