#include <pglistboxitem.h>
Inheritance diagram for PG_ListBoxItem:

Public Member Functions | |
| PG_ListBoxItem (PG_Widget *parent, int height, const std::string &text=PG_NULLSTR, SDL_Surface *icon=NULL, void *userdata=NULL, const std::string &style="ListBox") | |
| ~PG_ListBoxItem () | |
| void | LoadThemeStyle (const std::string &widgettype, const std::string &objectname) |
| Load a style from the theme definition. | |
Protected Member Functions | |
| void | eventBlit (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst) |
| overridable eventhandler to blit the widget contents to the screen | |
| void | eventSizeWidget (Uint16 w, Uint16 h) |
| Callback for the SizeWidget event. | |
Protected Attributes | |
| PG_Gradient * | my_gradient [3] |
| SDL_Surface * | my_background [3] |
| SDL_Surface * | my_srfHover |
| SDL_Surface * | my_srfSelected |
| PG_Draw::BkMode | my_bkmode [3] |
| Uint8 | my_blend [3] |
|
||||||||||||||||||||||||||||
|
Definition at line 36 of file pglistboxitem.cpp. References PG_PropStr::ListBoxItem, LoadThemeStyle(), my_background, my_bkmode, my_blend, my_gradient, my_srfHover, PG_Label::my_srfIcon, my_srfSelected, PG_Widget::SetText(), and PG_Draw::TILE. |
|
|
Definition at line 54 of file pglistboxitem.cpp. References PG_ThemeWidget::DeleteThemedSurface(), my_srfHover, and my_srfSelected. |
|
||||||||||||||||
|
overridable eventhandler to blit the widget contents to the screen
Reimplemented from PG_Label. Reimplemented in PG_ColumnItem. Definition at line 68 of file pglistboxitem.cpp. References PG_ThemeWidget::CreateThemedSurface(), PG_Label::eventBlit(), PG_Widget::eventBlit(), my_background, my_bkmode, my_blend, my_gradient, PG_Rect::my_height, PG_ListBoxBaseItem::my_hover, PG_ListBoxBaseItem::my_selected, my_srfHover, my_srfSelected, PG_Rect::my_width, and PG_Rect::PG_Rect(). Referenced by PG_ColumnItem::eventBlit(). |
|
||||||||||||
|
Callback for the SizeWidget event.
Reimplemented from PG_ListBoxBaseItem. Definition at line 59 of file pglistboxitem.cpp. References PG_ThemeWidget::DeleteThemedSurface(), my_srfHover, and my_srfSelected. |
|
||||||||||||
|
Load a style from the theme definition.
Reimplemented from PG_Label. Definition at line 101 of file pglistboxitem.cpp. References PG_PropStr::background0, PG_PropStr::background1, PG_PropStr::background2, PG_PropStr::backmode0, PG_PropStr::backmode1, PG_PropStr::backmode2, PG_PropStr::blend0, PG_PropStr::blend1, PG_PropStr::blend2, PG_Theme::FindGradient(), PG_Theme::FindSurface(), PG_Theme::GetColor(), PG_Theme::GetProperty(), PG_Application::GetTheme(), PG_PropStr::gradient0, PG_PropStr::gradient1, PG_PropStr::gradient2, my_background, my_bkmode, my_blend, my_gradient, PG_Widget::SetFontColor(), and PG_PropStr::textcolor. Referenced by PG_ListBoxItem(). |
|
|
Definition at line 63 of file pglistboxitem.h. Referenced by eventBlit(), LoadThemeStyle(), and PG_ListBoxItem(). |
|
|
Definition at line 69 of file pglistboxitem.h. Referenced by eventBlit(), LoadThemeStyle(), and PG_ListBoxItem(). |
|
|
Definition at line 71 of file pglistboxitem.h. Referenced by eventBlit(), LoadThemeStyle(), and PG_ListBoxItem(). |
|
|
Definition at line 61 of file pglistboxitem.h. Referenced by eventBlit(), LoadThemeStyle(), and PG_ListBoxItem(). |
|
|
Definition at line 65 of file pglistboxitem.h. Referenced by eventBlit(), eventSizeWidget(), PG_ListBoxItem(), and ~PG_ListBoxItem(). |
|
|
Definition at line 67 of file pglistboxitem.h. Referenced by eventBlit(), eventSizeWidget(), PG_ListBoxItem(), and ~PG_ListBoxItem(). |
1.4.2