Codebase list dillo / 53924492-2f22-4847-ab09-f572a6041e9a/main dw / listitem.hh
53924492-2f22-4847-ab09-f572a6041e9a/main

Tree @53924492-2f22-4847-ab09-f572a6041e9a/main (Download .tar.gz)

listitem.hh @53924492-2f22-4847-ab09-f572a6041e9a/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__