ListItemRenderer Class Referenceabstract

#include <Pt/Forms/ListBoxStyler.h>

Renders the visual appearance of a list item.

Inherits Renderer.

Inherited by PlatinumListItemRenderer.

Public Member Functions

void renderHighlight (PaintContext &context, const Gfx::RectF &rect, const ListItemState &state)
 Renders the list item highlight background within rect for state.
 
void reset (const StyleOptions &options)
 Resets with new style options.
 

Protected Member Functions

virtual ListItemRendereronCreate () const =0
 Hook that allocates a new renderer of the same concrete type.
 
virtual void onReset (const StyleOptions &options)=0
 
virtual void onRenderHighlight (PaintContext &context, const Gfx::RectF &rect, const ListItemState &state)=0
 Renders the selected or highlighted list item background.
 

Member Function Documentation

◆ onReset()

virtual void onReset ( const StyleOptions options)
protectedpure virtual