![]() |
DDNet documentation
|
#include <ui_listbox.h>
Public Member Functions | |
| CListBox () | |
| void | Reset () |
| void | DoHeader (const CUIRect *pRect, const char *pTitle, float HeaderHeight=20.0f, float Spacing=2.0f) |
| void | DoAutoSpacing (float Spacing=20.0f) |
| void | DoSpacing (float Spacing=20.0f) |
| void | DoStart (float RowHeight, int NumItems, int ItemsPerRow, int RowsPerScroll, int SelectedIndex, const CUIRect *pRect=nullptr, bool Background=true, int BackgroundCorners=IGraphics::CORNER_ALL, bool ForceShowScrollbar=false) |
| void | ScrollToSelected () |
| CListboxItem | DoNextItem (const void *pId, bool Selected=false, float CornerRadius=5.0f) |
| CListboxItem | DoSubheader () |
| int | DoEnd () |
| bool | Active () const |
| void | SetActive (bool Active) |
| bool | WasItemSelected () const |
| bool | WasItemActivated () const |
| bool | ScrollbarShown () const |
| float | ScrollbarWidth () const |
| float | ScrollbarWidthMax () const |
| void | SetScrollbarWidth (float Width) |
| float | ScrollbarMargin () const |
| void | SetScrollbarMargin (float Margin) |
Protected Member Functions | |
| CListboxItem | DoNextRow () |
Private Attributes | |
| CUIRect | m_ListBoxView |
| CUIRect | m_RowView |
| float | m_ListBoxRowHeight |
| int | m_ListBoxItemIndex |
| int | m_ListBoxSelectedIndex |
| int | m_ListBoxNewSelected |
| int | m_ListBoxNewSelOffset |
| bool | m_ListBoxUpdateScroll |
| int | m_ListBoxNumItems |
| int | m_ListBoxItemsPerRow |
| bool | m_ListBoxItemSelected |
| bool | m_ListBoxItemActivated |
| bool | m_ScrollbarShown |
| float | m_AutoSpacing |
| CScrollRegion | m_ScrollRegion |
| int | m_BackgroundCorners |
| float | m_ScrollbarWidth |
| float | m_ScrollbarMargin |
| bool | m_HasHeader |
| bool | m_Active |
Additional Inherited Members | |
| Private Member Functions inherited from CUIElementBase | |
| IClient * | Client () const |
| IGraphics * | Graphics () const |
| IInput * | Input () const |
| ITextRender * | TextRender () const |
| CUi * | Ui () const |
| Static Private Member Functions inherited from CUIElementBase | |
| static void | Init (CUi *pUI) |
| CListBox::CListBox | ( | ) |
|
inline |
|
inline |
| int CListBox::DoEnd | ( | ) |
| void CListBox::DoHeader | ( | const CUIRect * | pRect, |
| const char * | pTitle, | ||
| float | HeaderHeight = 20.0f, | ||
| float | Spacing = 2.0f ) |
| CListboxItem CListBox::DoNextItem | ( | const void * | pId, |
| bool | Selected = false, | ||
| float | CornerRadius = 5.0f ) |
|
protected |
| void CListBox::DoSpacing | ( | float | Spacing = 20.0f | ) |
| void CListBox::DoStart | ( | float | RowHeight, |
| int | NumItems, | ||
| int | ItemsPerRow, | ||
| int | RowsPerScroll, | ||
| int | SelectedIndex, | ||
| const CUIRect * | pRect = nullptr, | ||
| bool | Background = true, | ||
| int | BackgroundCorners = IGraphics::CORNER_ALL, | ||
| bool | ForceShowScrollbar = false ) |
| CListboxItem CListBox::DoSubheader | ( | ) |
| void CListBox::Reset | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |