eListboxPythonStringContent();
~eListboxPythonStringContent();
- void setList(PyObject *list);
+ void setList(SWIG_PYOBJECT(ePyObject) list);
PyObject *getCurrentSelection();
int getCurrentSelectionIndex() { return m_cursor; }
void invalidateEntry(int index);
virtual void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected);
protected:
- PyObject *m_list;
+ ePyObject m_list;
int m_cursor, m_saved_cursor;
eSize m_itemsize;
#endif
class eListboxPythonMultiContent: public eListboxPythonStringContent
{
+ ePyObject m_buildFunc;
public:
+ eListboxPythonMultiContent();
+ ~eListboxPythonMultiContent();
enum { TYPE_TEXT, TYPE_PROGRESS, TYPE_PIXMAP, TYPE_PIXMAP_ALPHATEST };
void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected);
int currentCursorSelectable();
void setFont(int fnt, gFont *fnt);
+ void setBuildFunc(SWIG_PYOBJECT(ePyObject) func);
private:
std::map<int, ePtr<gFont> > m_font;
};
+#ifdef SWIG
+#define RT_HALIGN_LEFT 0
+#define RT_HALIGN_RIGHT 1
+#define RT_HALIGN_CENTER 2
+#define RT_HALIGN_BLOCK 4
+#define RT_VALIGN_TOP 0
+#define RT_VALIGN_CENTER 8
+#define RT_VALIGN_BOTTOM 16
+#define RT_WRAP 32
+#endif // SWIG
+
#endif