void handle_mousemove( object_t *obj, event_t *event ) { mouse_endx = event_get_int( event, "x" ); mouse_endy = event_get_int( event, "y" ); canvas_redraw( c ); }
Etk_Bool _image_BorderMiddleCheck_toggled_cb(Etk_Toggle_Button *button, void *data) { edje_edit_state_image_border_fill_set(edje_o, Cur.part->string, Cur.state->string, etk_toggle_button_active_get(button)); canvas_redraw(); return ETK_TRUE; }
void handle_mousedown( object_t *obj, event_t *event ) { mouse_sel = 1; mouse_startx = event_get_int( event, "x" ); mouse_starty = event_get_int( event, "y" ); mouse_endx = mouse_startx; mouse_endy = mouse_starty; canvas_redraw( c ); }
Etk_Bool _gradient_RelSpinners_value_changed_cb(Etk_Range *range, double value, void *data) { printf("Value Changed Signal on Gradient RelSpinner EMITTED (value: %f)\n",etk_range_value_get(range)); if (!etk_string_length_get(Cur.state) || !etk_string_length_get(Cur.part)) return ETK_TRUE; switch ((int)(long)data) { case REL1X_SPINNER: edje_edit_state_gradient_rel1_relative_x_set(edje_o, Cur.part->string, Cur.state->string, etk_range_value_get(range)); break; case REL1Y_SPINNER: edje_edit_state_gradient_rel1_relative_y_set(edje_o, Cur.part->string, Cur.state->string, etk_range_value_get(range)); break; case REL2X_SPINNER: edje_edit_state_gradient_rel2_relative_x_set(edje_o, Cur.part->string, Cur.state->string, etk_range_value_get(range)); break; case REL2Y_SPINNER: edje_edit_state_gradient_rel2_relative_y_set(edje_o, Cur.part->string, Cur.state->string, etk_range_value_get(range)); break; case REL1XO_SPINNER: edje_edit_state_gradient_rel1_offset_x_set(edje_o, Cur.part->string, Cur.state->string, etk_range_value_get(range)); break; case REL1YO_SPINNER: edje_edit_state_gradient_rel1_offset_y_set(edje_o, Cur.part->string, Cur.state->string, etk_range_value_get(range)); break; case REL2XO_SPINNER: edje_edit_state_gradient_rel2_offset_x_set(edje_o, Cur.part->string, Cur.state->string, etk_range_value_get(range)); break; case REL2YO_SPINNER: edje_edit_state_gradient_rel2_offset_y_set(edje_o, Cur.part->string, Cur.state->string, etk_range_value_get(range)); break; } canvas_redraw(); return ETK_TRUE; }
Etk_Bool _image_AlphaSlider_value_changed_cb(Etk_Object *object, double va, void *data) { printf("ImageSlieder value_changed signale EMIT: %.2f\n",va); if (!etk_string_length_get(Cur.state)) return ETK_TRUE; if (!etk_string_length_get(Cur.part)) return ETK_TRUE; edje_edit_state_color_set(edje_o, Cur.part->string, Cur.state->string, -1, -1, -1, (int)va); canvas_redraw(); return ETK_TRUE; }
void handle_main( object_t *obj, event_t *event ) { static int last_update = 0; int t; t = time( 0 ); if ( t > last_update ) { canvas_redraw( c ); last_update = t; } }
Etk_Bool _gradient_type_combo_activated_cb(Etk_Combobox *combobox, Etk_Combobox_Item *item, void *data) { char *type; type = etk_combobox_item_field_get(item, 1); if (!type) return ETK_TRUE; printf("SET %s\n", type); edje_edit_state_gradient_type_set(edje_o, Cur.part->string, Cur.state->string, type); canvas_redraw(); return ETK_TRUE; }
Etk_Bool _image_border_spinners_value_changed_cb(Etk_Range *range, double value, void *data) { printf("Value Changed signal on BorderSpinner EMITTED (value: %f)\n",etk_range_value_get(range)); if (!etk_string_length_get(Cur.state)) return ETK_TRUE; if (!etk_string_length_get(Cur.part)) return ETK_TRUE; edje_edit_state_image_border_set(edje_o, Cur.part->string, Cur.state->string, (int)etk_range_value_get(ETK_RANGE(UI_BorderLeftSpinner)), (int)etk_range_value_get(ETK_RANGE(UI_BorderRightSpinner)), (int)etk_range_value_get(ETK_RANGE(UI_BorderTopSpinner)), (int)etk_range_value_get(ETK_RANGE(UI_BorderBottomSpinner))); canvas_redraw(); return ETK_TRUE; }
Etk_Bool _state_MinMaxSpinner_value_changed_cb(Etk_Range *range, double value, void *data) { printf("Active Item Changed Signal on MinMaxSpinners EMITTED\n"); edje_edit_state_min_w_set(edje_o, Cur.part->string, Cur.state->string, etk_range_value_get(ETK_RANGE(UI_StateMinWSpinner))); edje_edit_state_min_h_set(edje_o, Cur.part->string, Cur.state->string, etk_range_value_get(ETK_RANGE(UI_StateMinHSpinner))); edje_edit_state_max_w_set(edje_o, Cur.part->string, Cur.state->string, etk_range_value_get(ETK_RANGE(UI_StateMaxWSpinner))); edje_edit_state_max_h_set(edje_o, Cur.part->string, Cur.state->string, etk_range_value_get(ETK_RANGE(UI_StateMaxHSpinner))); canvas_redraw(); return ETK_TRUE; }
void handle_mouseup( object_t *obj, event_t *event ) { mouse_sel = 0; canvas_redraw( c ); }