Home2L - C/C++ API v1.4-2-g83f4c (2025-08-23)
Smart Tools for a Private Home
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Attributes | Friends | List of all members
CListboxItem Class Reference

Description

Macro to create a trampoline to another class.

<

The class must define a method:

void CLASS_NAME::METHOD_NAME (CListbox *listbox, int idx, bool longPush)

If the method is protected, the following line may be added to the class:

friend CB_NAME (CButton *, int, bool, void *);

To the list box, the trampoline must be passed by a call like:

CListbox::SetCbPushed (CB_NAME, <class object pointer>)

Listbox item.

Definition at line 389 of file ui_widgets.H.

#include "ui_widgets.H"

Public Member Functions

void SetLabel (const char *_text, const char *_iconName=NULL)
 Set label with a text and icon, both are optional. The icon is recolored as the text.
 
void SetLabel (const char *_text, SDL_Surface *_iconSurf)
 Set label with a text and icon, both are optional. The icon has its own color(s).
 

Public Attributes

bool isSpecial
 Item is special, e.g. a head line.
 
void * data
 Reference to optional user data.
 

Protected Attributes

bool changed
 If set, item will be re-rendered at next occasion.
 

Friends

class CListbox
 

The documentation for this class was generated from the following file: