Codebase list dillo / 43904ef5-d922-424d-a8e2-7c3b4a30e580/main dw / listitem.hh
43904ef5-d922-424d-a8e2-7c3b4a30e580/main

Tree @43904ef5-d922-424d-a8e2-7c3b4a30e580/main (Download .tar.gz)

listitem.hh @43904ef5-d922-424d-a8e2-7c3b4a30e580/mainraw · history · blame

#ifndef __DW_LISTITEM_HH__
#define __DW_LISTITEM_HH__

#include "core.hh"
#include "alignedtextblock.hh"

namespace dw {

class ListItem: public AlignedTextblock
{
protected:
   int getValue ();
   void setMaxValue (int maxValue, int value);

public:
   static int CLASS_ID;

   ListItem(ListItem *ref, bool limitTextWidth);
   ~ListItem();

   void initWithWidget (core::Widget *widget, core::style::Style *style);
   void initWithText (const char *text, core::style::Style *style);
};

} // namespace dw

#endif // __DW_LISTITEM_HH__