在EDC文件从C代码定义一个滑块
这个代码片段展示了如何定义一个滑块。 edc文件并从C代码读取它的价值。//part definition in .edc file
part {
name: "slider";
type: EXTERNAL;
source: "elm/slider";
description { state: "default" 0;
align: 0 0;
rel1.relative: 0.1 0.4;
rel2.relative: 0.9 0.5;
params {
string: "style" "default";
}
}
}
//reading slider's value from C code
Evas_Object *slider = edje_object_part_external_object_get(elm_layout_edje_get(ad->layout), "slider");
double value = elm_slider_value_get(slider);
页:
[1]