use drag event objects for toggles. more usable.

SVN revision: 36560
This commit is contained in:
Carsten Haitzler 2008-10-10 01:46:19 +00:00
parent 341805926d
commit f3a9115d1b
2 changed files with 19 additions and 8 deletions

View File

@ -606,7 +606,7 @@ collections {
scale: 1;
clip_to: "clipper";
mouse_events: 1;
dragable {
dragable {
x: 1 1 0;
y: 0 0 0;
confine: "bg";
@ -622,11 +622,24 @@ collections {
color: 0 0 0 0;
}
}
part { name: "button_events";
type: RECT;
dragable {
events: "button";
}
description { state: "default" 0.0;
rel1.to: "bg";
rel1.offset: -8 -8;
rel2.to: "bg";
rel2.offset: 7 7;
color: 0 0 0 0;
}
}
part { name: "onrect";
type: RECT;
scale: 1;
clip_to: "clipper";
mouse_events: 1;
mouse_events: 0;
description { state: "default" 0.0;
rel1.to: "button";
rel1.relative: -3.0 0.0;
@ -639,7 +652,7 @@ collections {
type: RECT;
scale: 1;
clip_to: "clipper";
mouse_events: 1;
mouse_events: 0;
description { state: "default" 0.0;
rel1.to: "button";
rel1.relative: 1.0 0.0;

View File

@ -181,15 +181,13 @@ extern "C" {
*/
// FIXME: fixes to do
// * current sizing inefficient
// * current sizing tree inefficient
// * scroller could do with page up/down/left/right buttons and and idea of
// a page size
// * tab widget focusing (not useful for touchscreen tho...)
// * hover needs a way to animate show/hide (slide out slots) and have some
// graphics for around middle
// * hover needs to be able to use custom hover style
// * frame needs to be able to use custom frame style
// * all widgets need a way to use a custom style
// * button needs to be able to use custom frame style
// * toggle needs to be able to use custom frame style
//
// FIXME: immediate hitlist for widgets:
// POPSEL: a button that when pressed uses a hover to display a h/v box or