}
fill.smooth : 0;
}
+ description { state: "collapsed" 0.0;
+ inherit: "default" 0.0;
+ rel2.to_y: "elm.text";
+ rel2.offset: 9 0;
+ }
}
part { name: "elm.text";
type: TEXT;
+ mouse_events: 0;
scale: 1;
description { state: "default" 0.0;
align: 0.0 0.0;
}
}
}
+ part {
+ name: "clip";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ min: 1 1;
+ rel1.to: "over";
+ rel2.to: "over";
+ }
+ }
part { name: "over";
mouse_events: 0;
description { state: "default" 0.0;
+ min: 2 2;
rel1.offset: 4 4;
rel2.to: "elm.swallow.content";
rel2.offset: 5 5;
}
fill.smooth : 0;
}
+ description { state: "collapsed" 0.0;
+ inherit: "default" 0.0;
+ rel2.to_y: "elm.text";
+ rel2.offset: 5 0;
+ }
}
part { name: "elm.swallow.content";
type: SWALLOW;
+ clip_to: "clip";
description { state: "default" 0.0;
align: 0.0 0.0;
rel1 {
programs {
program { name: "click";
signal: "mouse,up,1";
- source: "events";
+ source: "event";
action: SIGNAL_EMIT "elm,action,click" "elm";
+ after: "toggle";
+ }
+ program { name: "toggle";
+ signal: "elm,action,collapse";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"over", st, 30, vl);
+ if (!strcmp(st, "default"))
+ run_program(PROGRAM:"collapse");
+ else
+ run_program(PROGRAM:"expand");
+ }
+ }
+ program { name: "collapse";
+ action: STATE_SET "collapsed" 0.0;
+ target: "over";
+ target: "base";
+ transition: LINEAR 0.1;
+ }
+ program { name: "expand";
+ action: STATE_SET "default" 0.0;
+ target: "over";
+ target: "base";
+ transition: LINEAR 0.1;
}
}
}