-
Notifications
You must be signed in to change notification settings - Fork 0
/
notes.txt
48 lines (44 loc) · 2.26 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Region Options
**FILL AND OUTLINE**
- *area*: 4-tuple of pixels or screen percent(0.0-1.0),
- *fill*: 3-tuple fill color
- *outline*: 3-typle outline color
- *thickness*: int outline thickness,
- *roundness*: int outline roundness,
- *border*: int border around text x&y
- *borderx*: int left/right border around text
- *bordery*: int top/bottom border around text
**IMAGE RENDERING**
- *image*: filename for image
- *imagesize*: 2-tuple (w,h) scale to this size
- *imagemode*: 'fit', 'stretch', 'repeat', None or ''
- *imagealign*: same options as text align, but for image
- *patch*: 4-tuple - left, top, right, bottom edges for 9-patch rendering
- *pattern*: bool image is a base64 string
- *pimage*: filename or image to use for patch if different than image
**TEXT RENDERING**
- *autoscroll*: int speed of auto scroll or 0 disables
- *font*: filename for font
- *fontsize*: int size of font
- *fontcolor*: 3-tuple font color
- *text*: text string (may be multiline)
- *wrap*: allow multiline text wraping
- *linespace*: int extra space between lines
- *align*: text alignment (topleft, topright, midtop
midleft, center, midright
bottomleft, midbottom, bottomright)
**LIST RENDERING**
- *list*: a list of items to be displayed and selected from
- *itemsize*: the height that each list item is drawn with
- *select*: a 3-tuple rgb color for the selected item, or a Region for rendering it
- *selectable*: a list of the indexes of the list attribute that may be selected by the user
- *scrollable*: bool that allows up/down events to scroll wrapped text when set to True
- *selected*: the currently selected list item, which will be drawn using the color or Region referenced by the select attribute
**BARS** (toolbars)
- *bar: a list of strings, Images, or str names for images in the ImageManager.
A single null value may split the bar into left and right aligned sides
- *barspace*: additional space between each bar item beyone its natural size
- *barwidth*: the minimum width for each bar item
- *selectablex*: TODO a list of the indexes of the bar that may be selected by the user
- *selectedx*: the currently selected list item, or -1 if nothing selected.
The selected item will be drawn in the color of or with the Region referenced by the select attribute.