2004-03-21 21:01:24 +01:00
|
|
|
<!-- version 2.0
|
2004-01-24 15:25:16 +01:00
|
|
|
-->
|
|
|
|
|
|
|
|
|
2006-04-17 14:46:51 +02:00
|
|
|
<!ELEMENT Theme (ThemeInfo,(Include|IniFile|Bitmap|BitmapFont|Font|PopupMenu|Window)*)>
|
2004-01-24 15:25:16 +01:00
|
|
|
<!ATTLIST Theme
|
2004-03-21 21:01:24 +01:00
|
|
|
version CDATA #REQUIRED
|
|
|
|
tooltipfont CDATA "defaultfont"
|
2004-01-24 15:25:16 +01:00
|
|
|
magnet CDATA "15"
|
|
|
|
alpha CDATA "255"
|
|
|
|
movealpha CDATA "255"
|
|
|
|
>
|
|
|
|
|
|
|
|
<!-- main elements -->
|
2006-04-17 14:46:51 +02:00
|
|
|
<!ELEMENT IniFile EMPTY>
|
|
|
|
<!ATTLIST IniFile
|
|
|
|
id CDATA #REQUIRED
|
|
|
|
file CDATA #REQUIRED
|
|
|
|
>
|
2005-11-09 23:47:18 +01:00
|
|
|
<!ELEMENT Include EMPTY>
|
|
|
|
<!ATTLIST Include
|
|
|
|
file CDATA #REQUIRED
|
|
|
|
>
|
2005-11-06 15:23:16 +01:00
|
|
|
<!ELEMENT Bitmap (SubBitmap)*>
|
2004-01-24 15:25:16 +01:00
|
|
|
<!ATTLIST Bitmap
|
|
|
|
id CDATA #REQUIRED
|
|
|
|
file CDATA #REQUIRED
|
|
|
|
alphacolor CDATA #REQUIRED
|
2006-03-25 12:01:03 +01:00
|
|
|
nbframes CDATA "1"
|
2005-12-03 12:43:35 +01:00
|
|
|
fps CDATA "0"
|
2009-12-27 13:20:08 +01:00
|
|
|
loop CDATA "0"
|
2004-01-24 15:25:16 +01:00
|
|
|
>
|
2005-11-06 15:23:16 +01:00
|
|
|
<!ELEMENT SubBitmap EMPTY>
|
|
|
|
<!ATTLIST SubBitmap
|
|
|
|
id CDATA #REQUIRED
|
|
|
|
x CDATA #REQUIRED
|
|
|
|
y CDATA #REQUIRED
|
|
|
|
width CDATA #REQUIRED
|
|
|
|
height CDATA #REQUIRED
|
2006-03-25 12:01:03 +01:00
|
|
|
nbframes CDATA "1"
|
2005-12-03 12:43:35 +01:00
|
|
|
fps CDATA "0"
|
2009-12-27 13:20:08 +01:00
|
|
|
loop CDATA "0"
|
2005-11-06 15:23:16 +01:00
|
|
|
>
|
2004-01-24 15:25:16 +01:00
|
|
|
<!ELEMENT Font EMPTY>
|
|
|
|
<!ATTLIST Font
|
|
|
|
id CDATA #REQUIRED
|
2004-03-24 23:10:56 +01:00
|
|
|
file CDATA #REQUIRED
|
2004-01-24 15:25:16 +01:00
|
|
|
size CDATA "12"
|
|
|
|
>
|
2004-03-22 21:38:15 +01:00
|
|
|
<!ELEMENT BitmapFont EMPTY>
|
2004-03-23 22:03:20 +01:00
|
|
|
<!ATTLIST BitmapFont
|
2004-03-22 21:38:15 +01:00
|
|
|
id CDATA #REQUIRED
|
|
|
|
file CDATA #REQUIRED
|
|
|
|
type CDATA "digits"
|
|
|
|
>
|
2005-12-04 15:47:26 +01:00
|
|
|
<!ELEMENT PopupMenu (MenuItem|MenuSeparator)+>
|
|
|
|
<!ATTLIST PopupMenu
|
|
|
|
id CDATA #REQUIRED
|
|
|
|
>
|
|
|
|
<!ELEMENT MenuItem EMPTY>
|
|
|
|
<!ATTLIST MenuItem
|
|
|
|
label CDATA #REQUIRED
|
|
|
|
action CDATA "none"
|
|
|
|
>
|
|
|
|
<!ELEMENT MenuSeparator EMPTY>
|
2004-01-24 15:25:16 +01:00
|
|
|
<!ELEMENT ThemeInfo EMPTY>
|
|
|
|
<!ATTLIST ThemeInfo
|
|
|
|
name CDATA #IMPLIED
|
|
|
|
author CDATA #IMPLIED
|
|
|
|
email CDATA #IMPLIED
|
|
|
|
webpage CDATA #IMPLIED
|
|
|
|
>
|
|
|
|
<!ELEMENT Window (Layout)+>
|
|
|
|
<!ATTLIST Window
|
2004-03-01 19:33:31 +01:00
|
|
|
id CDATA "none"
|
2004-01-24 15:25:16 +01:00
|
|
|
visible CDATA "true"
|
2004-01-25 12:44:19 +01:00
|
|
|
x CDATA "0"
|
|
|
|
y CDATA "0"
|
skins2: implement relative positioning
So far in skins2, all x, y, width and height were given in pixels, and
no reference to the screen resolution could be made.
This patch implements the following :
- all x, y, width, height can be given in pixels or in % of their container.
For windows, the container is the screen. For widgets, it can be the
layout or a panel.
- Five new tags eases up positioning
- position : relative position given as "Center", "West", "NorthWest", ...
- x/y-margin : margins to take into account (in px or %) wrt the borders.
- x/y-offset : additional offset to apply (in px or %).
- the image control can now accept a width and a height parameters.
2010-11-22 15:38:56 +01:00
|
|
|
position CDATA "-1"
|
|
|
|
xoffset CDATA "0"
|
|
|
|
yoffset CDATA "0"
|
|
|
|
xmargin CDATA "0"
|
|
|
|
ymargin CDATA "0"
|
2004-01-24 15:25:16 +01:00
|
|
|
dragdrop CDATA "true"
|
|
|
|
playondrop CDATA "true"
|
|
|
|
>
|
2007-09-27 20:04:45 +02:00
|
|
|
<!ELEMENT Layout (Group|Image|Button|Playlist|Slider|RadialSlider|Text|Checkbox|
|
|
|
|
Anchor|Video|Playtree|Panel)+>
|
2004-01-24 15:25:16 +01:00
|
|
|
<!ATTLIST Layout
|
|
|
|
id CDATA "none"
|
|
|
|
width CDATA #REQUIRED
|
|
|
|
height CDATA #REQUIRED
|
|
|
|
minwidth CDATA "-1"
|
|
|
|
maxwidth CDATA "-1"
|
|
|
|
minheight CDATA "-1"
|
|
|
|
maxheight CDATA "-1"
|
|
|
|
>
|
2007-01-28 17:49:30 +01:00
|
|
|
<!-- Grouping elements -->
|
2004-03-24 23:10:56 +01:00
|
|
|
<!ELEMENT Group (Group|Image|Button|Playlist|Slider|RadialSlider|Text|Checkbox|
|
2007-01-28 17:49:30 +01:00
|
|
|
Anchor|Video|Playtree|Panel)+>
|
2004-01-24 15:25:16 +01:00
|
|
|
<!ATTLIST Group
|
2009-02-01 18:19:48 +01:00
|
|
|
id CDATA "none"
|
2004-01-25 12:44:19 +01:00
|
|
|
x CDATA "0"
|
|
|
|
y CDATA "0"
|
2004-01-24 15:25:16 +01:00
|
|
|
>
|
2007-01-28 17:49:30 +01:00
|
|
|
<!ELEMENT Panel (Group|Image|Button|Playlist|Slider|RadialSlider|Text|Checkbox|
|
|
|
|
Anchor|Video|Playtree|Panel)+>
|
|
|
|
<!ATTLIST Panel
|
2009-02-01 18:19:48 +01:00
|
|
|
id CDATA "none"
|
2007-01-28 17:49:30 +01:00
|
|
|
x CDATA "0"
|
|
|
|
y CDATA "0"
|
|
|
|
lefttop CDATA "lefttop"
|
|
|
|
rightbottom CDATA "lefttop"
|
|
|
|
xkeepratio CDATA "false"
|
|
|
|
ykeepratio CDATA "false"
|
|
|
|
width CDATA #REQUIRED
|
|
|
|
height CDATA #REQUIRED
|
skins2: implement relative positioning
So far in skins2, all x, y, width and height were given in pixels, and
no reference to the screen resolution could be made.
This patch implements the following :
- all x, y, width, height can be given in pixels or in % of their container.
For windows, the container is the screen. For widgets, it can be the
layout or a panel.
- Five new tags eases up positioning
- position : relative position given as "Center", "West", "NorthWest", ...
- x/y-margin : margins to take into account (in px or %) wrt the borders.
- x/y-offset : additional offset to apply (in px or %).
- the image control can now accept a width and a height parameters.
2010-11-22 15:38:56 +01:00
|
|
|
position CDATA "-1"
|
|
|
|
xoffset CDATA "0"
|
|
|
|
yoffset CDATA "0"
|
|
|
|
xmargin CDATA "0"
|
|
|
|
ymargin CDATA "0"
|
2007-01-28 17:49:30 +01:00
|
|
|
>
|
2004-01-24 15:25:16 +01:00
|
|
|
|
|
|
|
<!-- Anchors -->
|
|
|
|
<!ELEMENT Anchor EMPTY>
|
|
|
|
<!ATTLIST Anchor
|
2009-02-01 18:19:48 +01:00
|
|
|
id CDATA "none"
|
2004-01-25 12:44:19 +01:00
|
|
|
x CDATA "0"
|
|
|
|
y CDATA "0"
|
2006-06-04 01:57:40 +02:00
|
|
|
lefttop CDATA "lefttop"
|
2004-01-24 15:25:16 +01:00
|
|
|
priority CDATA #REQUIRED
|
2004-03-02 22:45:15 +01:00
|
|
|
points CDATA "(0,0)"
|
2004-01-24 15:25:16 +01:00
|
|
|
range CDATA "10"
|
|
|
|
>
|
|
|
|
|
|
|
|
<!-- Controls -->
|
|
|
|
<!ELEMENT Image EMPTY>
|
|
|
|
<!ATTLIST Image
|
|
|
|
id CDATA "none"
|
|
|
|
visible CDATA "true"
|
2004-01-25 12:44:19 +01:00
|
|
|
x CDATA "0"
|
|
|
|
y CDATA "0"
|
skins2: implement relative positioning
So far in skins2, all x, y, width and height were given in pixels, and
no reference to the screen resolution could be made.
This patch implements the following :
- all x, y, width, height can be given in pixels or in % of their container.
For windows, the container is the screen. For widgets, it can be the
layout or a panel.
- Five new tags eases up positioning
- position : relative position given as "Center", "West", "NorthWest", ...
- x/y-margin : margins to take into account (in px or %) wrt the borders.
- x/y-offset : additional offset to apply (in px or %).
- the image control can now accept a width and a height parameters.
2010-11-22 15:38:56 +01:00
|
|
|
width CDATA "-1"
|
|
|
|
height CDATA "-1"
|
2004-01-24 15:25:16 +01:00
|
|
|
lefttop CDATA "lefttop"
|
|
|
|
rightbottom CDATA "lefttop"
|
2006-08-05 15:37:06 +02:00
|
|
|
xkeepratio CDATA "false"
|
|
|
|
ykeepratio CDATA "false"
|
2004-01-24 15:25:16 +01:00
|
|
|
image CDATA #REQUIRED
|
2004-03-06 17:25:46 +01:00
|
|
|
action CDATA "none"
|
2005-12-03 23:46:33 +01:00
|
|
|
action2 CDATA "none"
|
2005-05-04 22:52:43 +02:00
|
|
|
resize CDATA "mosaic"
|
2004-03-03 23:57:15 +01:00
|
|
|
help CDATA ""
|
2010-05-18 18:35:56 +02:00
|
|
|
art CDATA "false"
|
2004-01-24 15:25:16 +01:00
|
|
|
>
|
|
|
|
<!ELEMENT Button EMPTY>
|
|
|
|
<!ATTLIST Button
|
|
|
|
id CDATA "none"
|
2004-03-24 23:10:56 +01:00
|
|
|
visible CDATA "true"
|
2004-01-25 12:44:19 +01:00
|
|
|
x CDATA "0"
|
|
|
|
y CDATA "0"
|
2004-01-24 15:25:16 +01:00
|
|
|
lefttop CDATA "lefttop"
|
|
|
|
rightbottom CDATA "lefttop"
|
2006-08-05 15:37:06 +02:00
|
|
|
xkeepratio CDATA "false"
|
|
|
|
ykeepratio CDATA "false"
|
2004-01-24 15:25:16 +01:00
|
|
|
up CDATA #REQUIRED
|
|
|
|
down CDATA "none"
|
|
|
|
over CDATA "none"
|
|
|
|
action CDATA "none"
|
2004-03-03 23:57:15 +01:00
|
|
|
tooltiptext CDATA ""
|
|
|
|
help CDATA ""
|
2004-01-24 15:25:16 +01:00
|
|
|
>
|
2004-03-24 23:10:56 +01:00
|
|
|
<!ELEMENT Checkbox EMPTY>
|
|
|
|
<!ATTLIST Checkbox
|
2004-01-24 15:25:16 +01:00
|
|
|
id CDATA "none"
|
2004-03-24 23:10:56 +01:00
|
|
|
visible CDATA "true"
|
2004-01-25 12:44:19 +01:00
|
|
|
x CDATA "0"
|
|
|
|
y CDATA "0"
|
2004-01-24 15:25:16 +01:00
|
|
|
lefttop CDATA "lefttop"
|
|
|
|
rightbottom CDATA "lefttop"
|
2006-08-05 15:37:06 +02:00
|
|
|
xkeepratio CDATA "false"
|
|
|
|
ykeepratio CDATA "false"
|
2004-01-24 15:25:16 +01:00
|
|
|
up1 CDATA #REQUIRED
|
|
|
|
down1 CDATA "none"
|
|
|
|
over1 CDATA "none"
|
|
|
|
up2 CDATA #REQUIRED
|
|
|
|
down2 CDATA "none"
|
|
|
|
over2 CDATA "none"
|
|
|
|
state CDATA #REQUIRED
|
|
|
|
action1 CDATA "none"
|
|
|
|
action2 CDATA "none"
|
2004-03-03 23:57:15 +01:00
|
|
|
tooltiptext1 CDATA ""
|
|
|
|
tooltiptext2 CDATA ""
|
|
|
|
help CDATA ""
|
2004-01-24 15:25:16 +01:00
|
|
|
>
|
2005-11-08 21:26:13 +01:00
|
|
|
<!ELEMENT Slider (SliderBackground)?>
|
2004-01-24 15:25:16 +01:00
|
|
|
<!ATTLIST Slider
|
|
|
|
id CDATA "none"
|
|
|
|
visible CDATA "true"
|
2004-01-25 12:44:19 +01:00
|
|
|
x CDATA "0"
|
|
|
|
y CDATA "0"
|
2013-06-22 17:24:11 +02:00
|
|
|
width CDATA "-1"
|
|
|
|
height CDATA "-1"
|
2004-01-24 15:25:16 +01:00
|
|
|
lefttop CDATA "lefttop"
|
|
|
|
rightbottom CDATA "lefttop"
|
2006-08-05 15:37:06 +02:00
|
|
|
xkeepratio CDATA "false"
|
|
|
|
ykeepratio CDATA "false"
|
2004-01-24 15:25:16 +01:00
|
|
|
up CDATA #REQUIRED
|
|
|
|
down CDATA "none"
|
|
|
|
over CDATA "none"
|
|
|
|
points CDATA #REQUIRED
|
|
|
|
thickness CDATA "10"
|
|
|
|
value CDATA "none"
|
2005-11-08 21:26:13 +01:00
|
|
|
background CDATA "none"
|
2004-03-03 23:57:15 +01:00
|
|
|
tooltiptext CDATA ""
|
|
|
|
help CDATA ""
|
2004-01-24 15:25:16 +01:00
|
|
|
>
|
2005-11-10 23:30:22 +01:00
|
|
|
<!ELEMENT SliderBackground EMPTY>
|
|
|
|
<!ATTLIST SliderBackground
|
|
|
|
id CDATA "none"
|
|
|
|
image CDATA #REQUIRED
|
|
|
|
nbhoriz CDATA "1"
|
|
|
|
nbvert CDATA "1"
|
|
|
|
padhoriz CDATA "0"
|
|
|
|
padvert CDATA "0"
|
|
|
|
>
|
2004-01-24 15:25:16 +01:00
|
|
|
<!ELEMENT RadialSlider EMPTY>
|
|
|
|
<!ATTLIST RadialSlider
|
|
|
|
id CDATA "none"
|
|
|
|
visible CDATA "true"
|
2004-01-25 12:44:19 +01:00
|
|
|
x CDATA "0"
|
|
|
|
y CDATA "0"
|
2004-01-24 15:25:16 +01:00
|
|
|
lefttop CDATA "lefttop"
|
|
|
|
rightbottom CDATA "lefttop"
|
2006-08-05 15:37:06 +02:00
|
|
|
xkeepratio CDATA "false"
|
|
|
|
ykeepratio CDATA "false"
|
2004-01-24 15:25:16 +01:00
|
|
|
sequence CDATA #REQUIRED
|
|
|
|
nbimages CDATA #REQUIRED
|
2004-01-25 12:44:19 +01:00
|
|
|
minangle CDATA "0"
|
2004-01-24 15:25:16 +01:00
|
|
|
maxangle CDATA "360"
|
|
|
|
value CDATA "none"
|
2004-03-03 23:57:15 +01:00
|
|
|
tooltiptext CDATA ""
|
|
|
|
help CDATA ""
|
2004-01-24 15:25:16 +01:00
|
|
|
>
|
|
|
|
<!ELEMENT Text EMPTY>
|
|
|
|
<!ATTLIST Text
|
|
|
|
id CDATA "none"
|
|
|
|
visible CDATA "true"
|
2004-01-25 12:44:19 +01:00
|
|
|
x CDATA "0"
|
|
|
|
y CDATA "0"
|
2005-04-03 14:56:25 +02:00
|
|
|
width CDATA "0"
|
|
|
|
lefttop CDATA "lefttop"
|
|
|
|
rightbottom CDATA "lefttop"
|
2006-08-05 15:37:06 +02:00
|
|
|
xkeepratio CDATA "false"
|
|
|
|
ykeepratio CDATA "false"
|
2004-03-03 23:57:15 +01:00
|
|
|
text CDATA ""
|
2004-01-24 15:25:16 +01:00
|
|
|
font CDATA #REQUIRED
|
2004-02-29 17:49:55 +01:00
|
|
|
color CDATA "#000000"
|
2005-11-15 21:00:04 +01:00
|
|
|
scrolling CDATA "auto"
|
|
|
|
alignment CDATA "left"
|
skins2: implement a new 'focus' attribute for text control
Up to now, text control could but be focusable, and this focus was used
to scroll text, should it be too long for full display.
From a user viewpoint, this behavior is often counterintuitive :
- Most of the time, the control is designed to fit the text anyway, and
scrolling is not expected.
- On the other hand, an underlying control may be used to move the window
(for instance, the title bar), and a text control is expected not to
interact in this endeavor. Same goes for popupmenu, that is expected
to work if one happens to right-click on a text control.
This patch adds a 'focus' attribute to the text control, and leave it to the
skins developper to decide which behavior is most desirable on a per-control
basis. focus still defaults to true to maintain skins current behavior.
2010-12-11 11:56:14 +01:00
|
|
|
focus CDATA "true"
|
2004-03-03 23:57:15 +01:00
|
|
|
help CDATA ""
|
2004-01-24 15:25:16 +01:00
|
|
|
>
|
2004-10-18 23:16:58 +02:00
|
|
|
<!ELEMENT Playlist (Slider)?>
|
2004-01-24 15:25:16 +01:00
|
|
|
<!ATTLIST Playlist
|
|
|
|
id CDATA #REQUIRED
|
|
|
|
visible CDATA "true"
|
2004-01-25 12:44:19 +01:00
|
|
|
x CDATA "0"
|
|
|
|
y CDATA "0"
|
|
|
|
width CDATA "0"
|
|
|
|
height CDATA "0"
|
skins2: implement relative positioning
So far in skins2, all x, y, width and height were given in pixels, and
no reference to the screen resolution could be made.
This patch implements the following :
- all x, y, width, height can be given in pixels or in % of their container.
For windows, the container is the screen. For widgets, it can be the
layout or a panel.
- Five new tags eases up positioning
- position : relative position given as "Center", "West", "NorthWest", ...
- x/y-margin : margins to take into account (in px or %) wrt the borders.
- x/y-offset : additional offset to apply (in px or %).
- the image control can now accept a width and a height parameters.
2010-11-22 15:38:56 +01:00
|
|
|
position CDATA "-1"
|
|
|
|
xoffset CDATA "0"
|
|
|
|
yoffset CDATA "0"
|
|
|
|
xmargin CDATA "0"
|
|
|
|
ymargin CDATA "0"
|
2004-01-24 15:25:16 +01:00
|
|
|
lefttop CDATA "lefttop"
|
|
|
|
rightbottom CDATA "lefttop"
|
2006-08-05 15:37:06 +02:00
|
|
|
xkeepratio CDATA "false"
|
|
|
|
ykeepratio CDATA "false"
|
2004-01-24 15:25:16 +01:00
|
|
|
font CDATA #REQUIRED
|
2005-05-14 16:39:05 +02:00
|
|
|
bgimage CDATA "none"
|
2004-01-24 15:25:16 +01:00
|
|
|
fgcolor CDATA "#000000"
|
|
|
|
playcolor CDATA "#FF0000"
|
|
|
|
bgcolor1 CDATA "#FFFFFF"
|
|
|
|
bgcolor2 CDATA "#FFFFFF"
|
|
|
|
selcolor CDATA "#0000FF"
|
2004-03-03 23:57:15 +01:00
|
|
|
help CDATA ""
|
2004-01-24 15:25:16 +01:00
|
|
|
>
|
2005-08-20 02:20:53 +02:00
|
|
|
<!ELEMENT Playtree (Slider)?>
|
|
|
|
<!ATTLIST Playtree
|
|
|
|
id CDATA #REQUIRED
|
|
|
|
visible CDATA "true"
|
|
|
|
x CDATA "0"
|
|
|
|
y CDATA "0"
|
|
|
|
width CDATA "0"
|
|
|
|
height CDATA "0"
|
skins2: implement relative positioning
So far in skins2, all x, y, width and height were given in pixels, and
no reference to the screen resolution could be made.
This patch implements the following :
- all x, y, width, height can be given in pixels or in % of their container.
For windows, the container is the screen. For widgets, it can be the
layout or a panel.
- Five new tags eases up positioning
- position : relative position given as "Center", "West", "NorthWest", ...
- x/y-margin : margins to take into account (in px or %) wrt the borders.
- x/y-offset : additional offset to apply (in px or %).
- the image control can now accept a width and a height parameters.
2010-11-22 15:38:56 +01:00
|
|
|
position CDATA "-1"
|
|
|
|
xoffset CDATA "0"
|
|
|
|
yoffset CDATA "0"
|
|
|
|
xmargin CDATA "0"
|
|
|
|
ymargin CDATA "0"
|
2005-08-20 02:20:53 +02:00
|
|
|
lefttop CDATA "lefttop"
|
|
|
|
rightbottom CDATA "lefttop"
|
2006-08-05 15:37:06 +02:00
|
|
|
xkeepratio CDATA "false"
|
|
|
|
ykeepratio CDATA "false"
|
2005-08-20 02:20:53 +02:00
|
|
|
font CDATA #REQUIRED
|
|
|
|
bgimage CDATA "none"
|
|
|
|
itemimage CDATA "none"
|
|
|
|
openimage CDATA "none"
|
|
|
|
closedimage CDATA "none"
|
|
|
|
fgcolor CDATA "#000000"
|
|
|
|
playcolor CDATA "#FF0000"
|
|
|
|
bgcolor1 CDATA "#FFFFFF"
|
|
|
|
bgcolor2 CDATA "#FFFFFF"
|
|
|
|
selcolor CDATA "#0000FF"
|
|
|
|
help CDATA ""
|
2006-04-04 23:21:23 +02:00
|
|
|
flat CDATA "false"
|
2005-08-20 02:20:53 +02:00
|
|
|
>
|
2004-03-13 23:11:28 +01:00
|
|
|
<!ELEMENT Video EMPTY>
|
|
|
|
<!ATTLIST Video
|
|
|
|
id CDATA "none"
|
|
|
|
visible CDATA "true"
|
|
|
|
x CDATA "0"
|
|
|
|
y CDATA "0"
|
|
|
|
width CDATA "0"
|
|
|
|
height CDATA "0"
|
skins2: implement relative positioning
So far in skins2, all x, y, width and height were given in pixels, and
no reference to the screen resolution could be made.
This patch implements the following :
- all x, y, width, height can be given in pixels or in % of their container.
For windows, the container is the screen. For widgets, it can be the
layout or a panel.
- Five new tags eases up positioning
- position : relative position given as "Center", "West", "NorthWest", ...
- x/y-margin : margins to take into account (in px or %) wrt the borders.
- x/y-offset : additional offset to apply (in px or %).
- the image control can now accept a width and a height parameters.
2010-11-22 15:38:56 +01:00
|
|
|
position CDATA "-1"
|
|
|
|
xoffset CDATA "0"
|
|
|
|
yoffset CDATA "0"
|
|
|
|
xmargin CDATA "0"
|
|
|
|
ymargin CDATA "0"
|
2004-03-13 23:11:28 +01:00
|
|
|
lefttop CDATA "lefttop"
|
|
|
|
rightbottom CDATA "lefttop"
|
2006-08-05 15:37:06 +02:00
|
|
|
xkeepratio CDATA "false"
|
|
|
|
ykeepratio CDATA "false"
|
2005-12-04 17:54:17 +01:00
|
|
|
autoresize CDATA "true"
|
2004-03-13 23:11:28 +01:00
|
|
|
help CDATA ""
|
|
|
|
>
|