06ecde962bf3f0a9eb1c82f39eb96330f5512a8b
[enigma2.git] / lib / python / Components / MultiContent.py
1 RT_HALIGN_LEFT = 0
2 RT_HALIGN_RIGHT = 1
3 RT_HALIGN_CENTER = 2
4 RT_HALIGN_BLOCK = 4
5
6 RT_VALIGN_TOP = 0
7 RT_VALIGN_CENTER = 8
8 RT_VALIGN_BOTTOM = 16
9
10 RT_WRAP = 32
11
12 from enigma import eListboxPythonMultiContent
13
14 def MultiContentEntryText(pos = (0, 0), size = (0, 0), font = 0, flags = RT_HALIGN_LEFT | RT_VALIGN_TOP, text = "", color = None):
15         add = ()
16         if color is not None:
17                 add = (color, )
18         return (eListboxPythonMultiContent.TYPE_TEXT, pos[0], pos[1], size[0], size[1], font, flags, text) + add
19
20 def MultiContentEntryPixmap(pos = (0, 0), size = (0, 0), png = None):
21         return (eListboxPythonMultiContent.TYPE_PIXMAP, pos[0], pos[1], size[0], size[1], png)
22
23 def MultiContentEntryPixmapAlphaTest(pos = (0, 0), size = (0, 0), png = None):
24         return (eListboxPythonMultiContent.TYPE_PIXMAP_ALPHATEST, pos[0], pos[1], size[0], size[1], png)
25
26