openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
eListbox Class Reference

#include <elistbox.h>

Inheritance diagram for eListbox:
eWidget

Public Types

enum  {
  showOnDemand , showAlways , showNever , showLeftOnDemand ,
  showLeftAlways
}
 
enum  { byPage , byLine }
 
enum  { listVertical , listHorizontal , listGrid }
 
enum  {
  DefaultScrollBarWidth = 10 , DefaultScrollBarOffset = 5 , DefaultScrollBarBorderWidth = 1 , DefaultScrollBarScroll = eListbox::byPage ,
  DefaultScrollBarMode = eListbox::showNever , DefaultWrapAround = true , DefaultPageSize = 0
}
 
enum  ListboxActions {
  moveUp , moveDown , moveTop , moveBottom ,
  movePageUp , movePageDown , justCheck , refresh ,
  moveLeft , moveRight , moveFirst , moveLast ,
  movePageLeft , movePageRight , moveEnd = moveBottom , pageUp = movePageUp ,
  pageDown = movePageDown
}
 
- Public Types inherited from eWidget
enum  eWidgetEvent {
  evtPaint , evtKey , evtChangedPosition , evtChangedSize ,
  evtParentChangedPosition , evtParentVisibilityChanged , evtWillChangePosition , evtWillChangeSize ,
  evtAction , evtFocusGot , evtFocusLost , evtUserWidget
}
 

Public Member Functions

 eListbox (eWidget *parent)
 
 ~eListbox ()
 
void setScrollbarScroll (int scroll)
 
void setScrollbarMode (int mode)
 
void setWrapAround (bool)
 
void setContent (iListboxContent *content)
 
void allowNativeKeys (bool allow)
 
void enableAutoNavigation (bool allow)
 
int getCurrentIndex ()
 
void moveSelection (long how)
 
void moveSelectionTo (int index)
 
void moveToEnd ()
 
bool atBegin ()
 
bool atEnd ()
 
void goTop ()
 
void goBottom ()
 
void goLineUp ()
 
void goLineDown ()
 
void goPageUp ()
 
void goPageDown ()
 
void goLeft ()
 
void goRight ()
 
void goPageLeft ()
 
void goPageRight ()
 
void goFirst ()
 
void goLast ()
 
void setItemHeight (int h)
 
void setItemWidth (int w)
 
void setSelectionEnable (int en)
 
void setBackgroundColor (gRGB &col)
 
void setBackgroundColorSelected (gRGB &col)
 
void setForegroundColor (gRGB &col)
 
void setForegroundColorSelected (gRGB &col)
 
void setBorderColor (const gRGB &col)
 
void setBorderWidth (int size)
 
void setBackgroundPixmap (ePtr< gPixmap > &pixmap)
 
void setSelectionPixmap (ePtr< gPixmap > &pixmap)
 
void setScrollbarForegroundPixmap (ePtr< gPixmap > &pm)
 
void setScrollbarBackgroundPixmap (ePtr< gPixmap > &pm)
 
void setScrollbarBorderWidth (int width)
 
void setScrollbarWidth (int size)
 
void setScrollbarOffset (int size)
 
void setFont (gFont *font)
 
void setEntryFont (gFont *font)
 
void setValueFont (gFont *font)
 
void setVAlign (int align)
 
void setHAlign (int align)
 
void setTextPadding (const eRect &padding)
 
void setUseVTIWorkaround (void)
 
void setScrollbarBorderColor (const gRGB &col)
 
void setScrollbarForegroundColor (gRGB &col)
 
void setScrollbarBackgroundColor (gRGB &col)
 
void setPageSize (int size)
 
void setOrientation (int o)
 
bool getWrapAround ()
 
int getScrollbarScroll ()
 
int getScrollbarMode ()
 
int getScrollbarWidth ()
 
int getScrollbarOffset ()
 
int getScrollbarBorderWidth ()
 
int getPageSize ()
 
int getItemHeight ()
 
int getItemWidth ()
 
int getOrientation ()
 
bool getSelectionEnable ()
 
gFontgetFont ()
 
gFontgetEntryFont ()
 
gFontgetValueFont ()
 
struct eListboxStylegetLocalStyle (void)
 
void entryAdded (int index)
 
void entryRemoved (int index)
 
void entryChanged (int index)
 
void entryReset (bool cursorHome=true)
 
int getEntryTop ()
 
void invalidate (const gRegion &region=gRegion::invalidRegion())
 
- Public Member Functions inherited from eWidget
 eWidget (eWidget *parent)
 
virtual ~eWidget ()
 
void move (ePoint pos)
 
void resize (eSize size)
 
ePoint position () const
 
eSize size () const
 
eSize csize () const
 
void invalidate (const gRegion &region=gRegion::invalidRegion())
 
virtual eWidgetchild ()
 
eWidgetgetParent ()
 
void show ()
 
void hide ()
 
void raise ()
 
void lower ()
 
void destruct ()
 
 SWIG_VOID (int) getStyle(ePtr< eWindowStyle > &SWIG_NAMED_OUTPUT(style))
 
void setStyle (eWindowStyle *style)
 
void setBackgroundColor (const gRGB &col)
 
void clearBackgroundColor ()
 
void setZPosition (int z)
 
void setTransparent (int transp)
 
int isVisible ()
 
int isLowered ()
 
int isTransparent ()
 
ePoint getAbsolutePosition ()
 
void setFocus (eWidget *focus)
 
void setPositionNotifyChild (int n)
 
void notifyShowHide ()
 

Static Public Member Functions

static void setDefaultScrollbarStyle (int width, int offset, int borderwidth, int scroll, int mode, bool enablewraparound, int pageSize)
 
static void setDefaultPadding (const eRect &padding)
 

Public Attributes

PSignal0< void > selectionChanged
 
- Public Attributes inherited from eWidget
eWidgetAnimation m_animation
 
gRegion m_clip_region
 
gRegion m_visible_region
 
gRegion m_visible_with_childs
 
struct eWidgetDesktopCompBufferm_comp_buffer [MAX_LAYER]
 

Protected Member Functions

int event (int event, void *data=0, void *data2=0)
 
void recalcSize ()
 
- Protected Member Functions inherited from eWidget
void mayKillFocus ()
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
showOnDemand 
showAlways 
showNever 
showLeftOnDemand 
showLeftAlways 

◆ anonymous enum

anonymous enum
Enumerator
byPage 
byLine 

◆ anonymous enum

anonymous enum
Enumerator
listVertical 
listHorizontal 
listGrid 

◆ anonymous enum

anonymous enum
Enumerator
DefaultScrollBarWidth 
DefaultScrollBarOffset 
DefaultScrollBarBorderWidth 
DefaultScrollBarScroll 
DefaultScrollBarMode 
DefaultWrapAround 
DefaultPageSize 

◆ ListboxActions

Enumerator
moveUp 
moveDown 
moveTop 
moveBottom 
movePageUp 
movePageDown 
justCheck 
refresh 
moveLeft 
moveRight 
moveFirst 
moveLast 
movePageLeft 
movePageRight 
moveEnd 
pageUp 
pageDown 

Constructor & Destructor Documentation

◆ eListbox()

eListbox::eListbox ( eWidget parent)

◆ ~eListbox()

eListbox::~eListbox ( )

Member Function Documentation

◆ allowNativeKeys()

void eListbox::allowNativeKeys ( bool  allow)

◆ atBegin()

bool eListbox::atBegin ( )

◆ atEnd()

bool eListbox::atEnd ( )

◆ enableAutoNavigation()

void eListbox::enableAutoNavigation ( bool  allow)
inline

◆ entryAdded()

void eListbox::entryAdded ( int  index)

◆ entryChanged()

void eListbox::entryChanged ( int  index)

◆ entryRemoved()

void eListbox::entryRemoved ( int  index)

◆ entryReset()

void eListbox::entryReset ( bool  cursorHome = true)

◆ event()

int eListbox::event ( int  event,
void *  data = 0,
void *  data2 = 0 
)
protectedvirtual

Reimplemented from eWidget.

◆ getCurrentIndex()

int eListbox::getCurrentIndex ( )

◆ getEntryFont()

gFont* eListbox::getEntryFont ( )
inline

◆ getEntryTop()

int eListbox::getEntryTop ( )

◆ getFont()

gFont* eListbox::getFont ( )
inline

◆ getItemHeight()

int eListbox::getItemHeight ( )
inline

◆ getItemWidth()

int eListbox::getItemWidth ( )
inline

◆ getLocalStyle()

struct eListboxStyle * eListbox::getLocalStyle ( void  )

◆ getOrientation()

int eListbox::getOrientation ( )
inline

◆ getPageSize()

int eListbox::getPageSize ( )
inline

◆ getScrollbarBorderWidth()

int eListbox::getScrollbarBorderWidth ( )
inline

◆ getScrollbarMode()

int eListbox::getScrollbarMode ( )
inline

◆ getScrollbarOffset()

int eListbox::getScrollbarOffset ( )
inline

◆ getScrollbarScroll()

int eListbox::getScrollbarScroll ( )
inline

◆ getScrollbarWidth()

int eListbox::getScrollbarWidth ( )
inline

◆ getSelectionEnable()

bool eListbox::getSelectionEnable ( )
inline

◆ getValueFont()

gFont* eListbox::getValueFont ( )
inline

◆ getWrapAround()

bool eListbox::getWrapAround ( )
inline

◆ goBottom()

void eListbox::goBottom ( )
inline

◆ goFirst()

void eListbox::goFirst ( )
inline

◆ goLast()

void eListbox::goLast ( )
inline

◆ goLeft()

void eListbox::goLeft ( )
inline

◆ goLineDown()

void eListbox::goLineDown ( )
inline

◆ goLineUp()

void eListbox::goLineUp ( )
inline

◆ goPageDown()

void eListbox::goPageDown ( )
inline

◆ goPageLeft()

void eListbox::goPageLeft ( )
inline

◆ goPageRight()

void eListbox::goPageRight ( )
inline

◆ goPageUp()

void eListbox::goPageUp ( )
inline

◆ goRight()

void eListbox::goRight ( )
inline

◆ goTop()

void eListbox::goTop ( )
inline

◆ invalidate()

void eListbox::invalidate ( const gRegion region = gRegion::invalidRegion())

◆ moveSelection()

void eListbox::moveSelection ( long  how)

◆ moveSelectionTo()

void eListbox::moveSelectionTo ( int  index)

◆ moveToEnd()

void eListbox::moveToEnd ( )

◆ recalcSize()

void eListbox::recalcSize ( )
protected

◆ setBackgroundColor()

void eListbox::setBackgroundColor ( gRGB col)

◆ setBackgroundColorSelected()

void eListbox::setBackgroundColorSelected ( gRGB col)

◆ setBackgroundPixmap()

void eListbox::setBackgroundPixmap ( ePtr< gPixmap > &  pixmap)

◆ setBorderColor()

void eListbox::setBorderColor ( const gRGB col)

◆ setBorderWidth()

void eListbox::setBorderWidth ( int  size)

◆ setContent()

void eListbox::setContent ( iListboxContent content)

◆ setDefaultPadding()

static void eListbox::setDefaultPadding ( const eRect padding)
inlinestatic

◆ setDefaultScrollbarStyle()

static void eListbox::setDefaultScrollbarStyle ( int  width,
int  offset,
int  borderwidth,
int  scroll,
int  mode,
bool  enablewraparound,
int  pageSize 
)
inlinestatic

◆ setEntryFont()

void eListbox::setEntryFont ( gFont font)

◆ setFont()

void eListbox::setFont ( gFont font)

◆ setForegroundColor()

void eListbox::setForegroundColor ( gRGB col)

◆ setForegroundColorSelected()

void eListbox::setForegroundColorSelected ( gRGB col)

◆ setHAlign()

void eListbox::setHAlign ( int  align)

◆ setItemHeight()

void eListbox::setItemHeight ( int  h)

◆ setItemWidth()

void eListbox::setItemWidth ( int  w)

◆ setOrientation()

void eListbox::setOrientation ( int  o)

◆ setPageSize()

void eListbox::setPageSize ( int  size)
inline

◆ setScrollbarBackgroundColor()

void eListbox::setScrollbarBackgroundColor ( gRGB col)

◆ setScrollbarBackgroundPixmap()

void eListbox::setScrollbarBackgroundPixmap ( ePtr< gPixmap > &  pm)

◆ setScrollbarBorderColor()

void eListbox::setScrollbarBorderColor ( const gRGB col)

◆ setScrollbarBorderWidth()

void eListbox::setScrollbarBorderWidth ( int  width)

◆ setScrollbarForegroundColor()

void eListbox::setScrollbarForegroundColor ( gRGB col)

◆ setScrollbarForegroundPixmap()

void eListbox::setScrollbarForegroundPixmap ( ePtr< gPixmap > &  pm)

◆ setScrollbarMode()

void eListbox::setScrollbarMode ( int  mode)

◆ setScrollbarOffset()

void eListbox::setScrollbarOffset ( int  size)

◆ setScrollbarScroll()

void eListbox::setScrollbarScroll ( int  scroll)

◆ setScrollbarWidth()

void eListbox::setScrollbarWidth ( int  size)

◆ setSelectionEnable()

void eListbox::setSelectionEnable ( int  en)

◆ setSelectionPixmap()

void eListbox::setSelectionPixmap ( ePtr< gPixmap > &  pixmap)

◆ setTextPadding()

void eListbox::setTextPadding ( const eRect padding)

◆ setUseVTIWorkaround()

void eListbox::setUseVTIWorkaround ( void  )

◆ setVAlign()

void eListbox::setVAlign ( int  align)

◆ setValueFont()

void eListbox::setValueFont ( gFont font)

◆ setWrapAround()

void eListbox::setWrapAround ( bool  state)

Member Data Documentation

◆ selectionChanged

PSignal0<void> eListbox::selectionChanged

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