view dw/listitem.hh @ 1733:f39cfc38ea10

rework nonCssHints API of StyleEngine * Instead of passing the nonCssHints as a CssPropertyList, set the hints separately and create the list in StyleEngine. * The CssPropertyList holding the nonCssHints is now completely managed by StyleEngine and kept on the stack. * Replace the table_cell_props mechanic in with a new method inheritNonCssHints() in StyleEngine.
author Johannes Hofmann <>
date Mon, 11 Oct 2010 21:35:53 +0200
parents b04673615946
line wrap: on
line source
#ifndef __DW_LISTITEM_HH__
#define __DW_LISTITEM_HH__

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

namespace dw {

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

   static int CLASS_ID;

   ListItem(ListItem *ref, bool limitTextWidth);

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

} // namespace dw

#endif // __DW_LISTITEM_HH__