edje: add threshold to draggable part.

This commit is contained in:
Cedric Bail 2013-07-19 15:39:49 +09:00
parent d204e20afc
commit 072501c882
2 changed files with 88 additions and 0 deletions

View File

@ -11,6 +11,7 @@ endif
#put here all EDCs one needs to the examples
EDCS = \
edje-threshold.edc \
animations2.edc \
animations.edc \
basic2.edc \

View File

@ -0,0 +1,87 @@
collections {
group {
name: "main";
parts {
part {
type: RECT;
name: background;
mouse_events: 0;
description {
color: 0 0 0 255;
}
}
part {
type: RECT;
name: "area/vertical";
mouse_events: 0;
description {
color: 255 0 0 255;
align: 0.5 0;
min: 20 30;
max: 20 -1;
}
}
part {
type: RECT;
name: "area/horizontal";
mouse_events: 0;
description {
color: 255 0 0 255;
align: 0 0.5;
min: 30 20;
max: -1 20;
}
}
part {
type: RECT;
name: "threshold/horizontal";
mouse_events: 0;
description {
color: 0 0 255 255;
rel1 {
to: "drag/horizontal";
offset: -13 -13;
}
rel2 {
to: "drag/horizontal";
offset: +12 +12;
}
}
}
part {
type: RECT;
name: "drag/horizontal";
mouse_events: 1;
dragable {
confine: "area/horizontal";
threshold: "threshold/horizontal";
x: 1 1 0;
y: 0 0 0;
}
description {
aspect: 1 1;
color: 0 255 0 255;
min: 20 20;
max: 20 20;
}
}
part {
type: RECT;
name: "drag/vertical";
mouse_events: 1;
dragable {
confine: "area/vertical";
threshold: "threshold/horizontal";
x: 0 0 0;
y: 1 1 0;
}
description {
aspect: 1 1;
color: 0 255 255 255;
min: 20 20;
max: 20 20;
}
}
}
}
}