class iListboxContent: public iObject
{
public:
+ virtual ~iListboxContent()=0;
+
/* indices go from 0 to size().
the end is reached when the cursor is on size(),
i.e. one after the last entry (this mimics
to stay on the same data, however when the current
item is removed, this won't work. you'll be notified
anyway. */
-
+#ifndef SWIG
+protected:
+ friend class eListbox;
virtual void cursorHome()=0;
virtual void cursorEnd()=0;
virtual int cursorMove(int count=1)=0;
/* the following functions always refer to the selected item */
virtual void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected)=0;
+#endif
};
class eListbox: public eWidget
ePtr<iListboxContent> m_content;
};
-
#endif