From 5418695f94c5065494f5f7d74d1506e7a5267c06 Mon Sep 17 00:00:00 2001 From: jaehyun0cho Date: Mon, 2 Sep 2019 17:28:29 +0900 Subject: [PATCH] [EflSharp] Update Circle and efl cs files (#995) Circle and efl cs files are updated based on the latest efl. Clickable and Selectable interfaces are updated. All Popup classes are merged to Popup and AlertPopup. SliderInterval class is no longer used. Temporarily, List item's HintSizeMin should be set in app code for now. The HintSizeMin code will be removed when the internal size calculation logic is fixed. --- .../EflSharp/EflSharp/Circle/CircleSpinner.cs | 27 +- .../EflSharp/Circle/RotarySelectorItem.cs | 17 + internals/src/EflSharp/EflSharp/efl/Bind.cs | 128 + .../src/EflSharp/EflSharp/efl/EoWrapper.cs | 0 .../src/EflSharp/EflSharp/efl/Factory.cs | 31 + .../EflSharp/EflSharp/efl/FunctionWrapper.cs | 2 +- .../EflSharp/efl/FunctionWrapper_Unix.cs | 0 .../src/EflSharp/EflSharp/efl/GenericModel.cs | 175 + .../src/EflSharp/EflSharp/efl/NativeModule.cs | 0 .../EflSharp/efl/NativeModule_Unix.cs | 0 .../src/EflSharp/EflSharp/efl/UserModel.cs | 105 + .../EflSharp/efl/WrapperSupervisor.cs | 0 .../EflSharp/EflSharp/efl/edje_types.eot.cs | 0 .../efl/efl_accelerate_interpolator.eo.cs | 17 +- .../EflSharp/efl/efl_access_action.eo.cs | 22 +- .../EflSharp/efl/efl_access_component.eo.cs | 99 +- .../efl/efl_access_editable_text.eo.cs | 22 +- .../EflSharp/efl/efl_access_object.eo.cs | 823 +- .../EflSharp/efl/efl_access_selection.eo.cs | 22 +- .../EflSharp/efl/efl_access_text.eo.cs | 118 +- .../EflSharp/efl/efl_access_value.eo.cs | 54 +- .../efl/efl_access_widget_action.eo.cs | 25 +- .../EflSharp/efl/efl_access_window.eo.cs | 30 +- .../src/EflSharp/EflSharp/efl/efl_all.cs | 4 +- .../src/EflSharp/EflSharp/efl/efl_app.eo.cs | 38 +- .../EflSharp/EflSharp/efl/efl_appthread.eo.cs | 85 +- .../EflSharp/efl/efl_boolean_model.eo.cs | 13 +- .../efl/efl_bounce_interpolator.eo.cs | 25 +- .../EflSharp/efl/efl_cached_item.eo.cs | 19 +- .../EflSharp/efl/efl_canvas_animation.eo.cs | 40 +- .../efl/efl_canvas_animation_alpha.eo.cs | 25 +- .../efl/efl_canvas_animation_group.eo.cs | 13 +- .../efl_canvas_animation_group_parallel.eo.cs | 13 +- ...fl_canvas_animation_group_sequential.eo.cs | 13 +- .../efl/efl_canvas_animation_player.eo.cs | 61 +- .../efl/efl_canvas_animation_rotate.eo.cs | 42 +- .../efl/efl_canvas_animation_scale.eo.cs | 46 +- .../efl/efl_canvas_animation_translate.eo.cs | 41 +- .../efl/efl_canvas_animation_types.eot.cs | 12 +- .../efl/efl_canvas_event_grabber.eo.cs | 17 +- .../efl/efl_canvas_filter_internal.eo.cs | 152 +- .../EflSharp/efl/efl_canvas_gesture.eo.cs | 25 +- .../efl/efl_canvas_gesture_double_tap.eo.cs | 13 +- .../efl/efl_canvas_gesture_flick.eo.cs | 13 +- .../efl/efl_canvas_gesture_long_tap.eo.cs | 13 +- .../efl/efl_canvas_gesture_manager.eo.cs | 14 +- .../efl/efl_canvas_gesture_momentum.eo.cs | 13 +- .../efl/efl_canvas_gesture_recognizer.eo.cs | 14 +- ...canvas_gesture_recognizer_double_tap.eo.cs | 17 +- .../efl_canvas_gesture_recognizer_flick.eo.cs | 13 +- ...l_canvas_gesture_recognizer_long_tap.eo.cs | 17 +- ...l_canvas_gesture_recognizer_momentum.eo.cs | 13 +- .../efl_canvas_gesture_recognizer_tap.eo.cs | 13 +- ...canvas_gesture_recognizer_triple_tap.eo.cs | 17 +- .../efl_canvas_gesture_recognizer_zoom.eo.cs | 13 +- .../EflSharp/efl/efl_canvas_gesture_tap.eo.cs | 13 +- .../efl/efl_canvas_gesture_touch.eo.cs | 18 +- .../efl/efl_canvas_gesture_triple_tap.eo.cs | 13 +- .../efl/efl_canvas_gesture_types.eot.cs | 0 .../efl/efl_canvas_gesture_zoom.eo.cs | 13 +- .../EflSharp/efl/efl_canvas_group.eo.cs | 33 +- .../EflSharp/efl/efl_canvas_image.eo.cs | 65 +- .../efl/efl_canvas_image_internal.eo.cs | 420 +- .../EflSharp/efl/efl_canvas_layout.eo.cs | 487 +- .../EflSharp/efl/efl_canvas_layout_part.eo.cs | 123 +- .../efl/efl_canvas_layout_part_box.eo.cs | 23 +- .../efl/efl_canvas_layout_part_external.eo.cs | 20 +- .../efl/efl_canvas_layout_part_invalid.eo.cs | 260 +- .../efl/efl_canvas_layout_part_swallow.eo.cs | 20 +- .../efl/efl_canvas_layout_part_table.eo.cs | 239 +- .../efl/efl_canvas_layout_part_text.eo.cs | 292 +- .../EflSharp/efl/efl_canvas_object.eo.cs | 1104 ++- .../EflSharp/efl/efl_canvas_pointer.eo.cs | 23 +- .../EflSharp/efl/efl_canvas_polygon.eo.cs | 13 +- .../EflSharp/efl/efl_canvas_proxy.eo.cs | 25 +- .../EflSharp/efl/efl_canvas_rectangle.eo.cs | 13 +- .../EflSharp/efl/efl_canvas_scene.eo.cs | 154 +- .../EflSharp/efl/efl_canvas_snapshot.eo.cs | 13 +- .../EflSharp/efl/efl_canvas_surface.eo.cs | 17 +- .../EflSharp/efl/efl_canvas_surface_tbm.eo.cs | 13 +- .../efl/efl_canvas_surface_wayland.eo.cs | 13 +- .../EflSharp/efl/efl_canvas_surface_x11.eo.cs | 39 +- .../EflSharp/efl/efl_canvas_text.eo.cs | 783 +- .../efl/efl_canvas_text_factory.eo.cs | 16 +- .../efl/efl_canvas_vg_container.eo.cs | 13 +- .../EflSharp/efl/efl_canvas_vg_gradient.eo.cs | 29 +- .../efl/efl_canvas_vg_gradient_linear.eo.cs | 37 +- .../efl/efl_canvas_vg_gradient_radial.eo.cs | 41 +- .../EflSharp/efl/efl_canvas_vg_image.eo.cs | 1804 +++++ .../EflSharp/efl/efl_canvas_vg_node.eo.cs | 139 +- .../EflSharp/efl/efl_canvas_vg_object.eo.cs | 60 +- .../EflSharp/efl/efl_canvas_vg_shape.eo.cs | 190 +- .../EflSharp/efl/efl_composite_model.eo.cs | 101 +- .../EflSharp/EflSharp/efl/efl_config.eo.cs | 17 +- .../EflSharp/efl/efl_config_global.eo.cs | 18 +- .../EflSharp/EflSharp/efl/efl_container.eo.cs | 32 +- .../EflSharp/efl/efl_container_model.eo.cs | 29 +- .../EflSharp/EflSharp/efl/efl_content.eo.cs | 31 +- .../EflSharp/EflSharp/efl/efl_control.eo.cs | 32 +- .../EflSharp/efl/efl_core_command_line.eo.cs | 31 +- .../EflSharp/EflSharp/efl/efl_core_env.eo.cs | 63 +- .../EflSharp/efl/efl_core_proc_env.eo.cs | 13 +- .../EflSharp/efl/efl_csharp_application.cs | 3 + .../efl/efl_cubic_bezier_interpolator.eo.cs | 27 +- .../efl/efl_decelerate_interpolator.eo.cs | 17 +- .../efl/efl_divisor_interpolator.eo.cs | 25 +- .../EflSharp/EflSharp/efl/efl_duplicate.eo.cs | 16 +- .../src/EflSharp/EflSharp/efl/efl_exe.eo.cs | 64 +- .../src/EflSharp/EflSharp/efl/efl_file.eo.cs | 41 +- .../EflSharp/EflSharp/efl/efl_file_save.eo.cs | 31 +- .../EflSharp/efl/efl_filter_model.eo.cs | 13 +- .../EflSharp/efl/efl_generic_model.eo.cs | 13 +- .../EflSharp/efl/efl_gesture_events.eo.cs | 79 +- .../EflSharp/efl/efl_gfx_arrangement.eo.cs | 55 +- .../EflSharp/EflSharp/efl/efl_gfx_blur.eo.cs | 64 +- .../EflSharp/efl/efl_gfx_buffer.eo.cs | 56 +- .../EflSharp/EflSharp/efl/efl_gfx_color.eo.cs | 58 +- .../EflSharp/efl/efl_gfx_color_class.eo.cs | 19 +- .../EflSharp/efl/efl_gfx_entity.eo.cs | 81 +- .../EflSharp/EflSharp/efl/efl_gfx_fill.eo.cs | 32 +- .../EflSharp/efl/efl_gfx_filter.eo.cs | 83 +- .../efl/efl_gfx_frame_controller.eo.cs | 37 +- .../EflSharp/efl/efl_gfx_gradient.eo.cs | 44 +- .../efl/efl_gfx_gradient_linear.eo.cs | 70 +- .../efl/efl_gfx_gradient_radial.eo.cs | 78 +- .../EflSharp/EflSharp/efl/efl_gfx_hint.eo.cs | 517 +- .../EflSharp/EflSharp/efl/efl_gfx_image.eo.cs | 468 +- .../efl/efl_gfx_image_load_controller.eo.cs | 78 +- .../efl/efl_gfx_image_orientable.eo.cs | 22 +- .../EflSharp/efl/efl_gfx_mapping.eo.cs | 44 +- .../EflSharp/EflSharp/efl/efl_gfx_path.eo.cs | 78 +- .../EflSharp/EflSharp/efl/efl_gfx_shape.eo.cs | 274 +- .../EflSharp/efl/efl_gfx_size_class.eo.cs | 17 +- .../EflSharp/EflSharp/efl/efl_gfx_stack.eo.cs | 30 +- .../EflSharp/efl/efl_gfx_text_class.eo.cs | 17 +- .../EflSharp/efl/efl_gfx_types.eot.cs | 109 +- .../EflSharp/EflSharp/efl/efl_gfx_view.eo.cs | 24 +- .../EflSharp/efl/efl_input_clickable.eo.cs | 815 ++ .../EflSharp/efl/efl_input_device.eo.cs | 27 +- .../EflSharp/efl/efl_input_event.eo.cs | 57 +- .../EflSharp/efl/efl_input_focus.eo.cs | 37 +- .../EflSharp/efl/efl_input_hold.eo.cs | 63 +- .../EflSharp/efl/efl_input_interface.eo.cs | 175 +- .../EflSharp/EflSharp/efl/efl_input_key.eo.cs | 208 +- .../EflSharp/efl/efl_input_pointer.eo.cs | 106 +- .../EflSharp/efl/efl_input_state.eo.cs | 32 +- .../EflSharp/efl/efl_input_types.eot.cs | 0 .../EflSharp/efl/efl_interpolator.eo.cs | 16 +- .../EflSharp/EflSharp/efl/efl_io_closer.eo.cs | 35 +- .../EflSharp/efl/efl_io_positioner.eo.cs | 26 +- .../EflSharp/EflSharp/efl/efl_io_reader.eo.cs | 41 +- .../EflSharp/EflSharp/efl/efl_io_writer.eo.cs | 31 +- .../EflSharp/efl/efl_layout_calc.eo.cs | 33 +- .../EflSharp/efl/efl_layout_group.eo.cs | 22 +- .../EflSharp/efl/efl_layout_signal.eo.cs | 18 +- .../src/EflSharp/EflSharp/efl/efl_libs.cs | 0 .../efl/efl_linear_interpolator.eo.cs | 13 +- .../src/EflSharp/EflSharp/efl/efl_loop.eo.cs | 170 +- .../EflSharp/efl/efl_loop_consumer.eo.cs | 19 +- .../EflSharp/EflSharp/efl/efl_loop_fd.eo.cs | 27 +- .../EflSharp/efl/efl_loop_handler.eo.cs | 39 +- .../EflSharp/efl/efl_loop_message.eo.cs | 21 +- .../efl/efl_loop_message_future.eo.cs | 17 +- .../efl/efl_loop_message_future_handler.eo.cs | 21 +- .../efl/efl_loop_message_handler.eo.cs | 21 +- .../EflSharp/efl/efl_loop_model.eo.cs | 27 +- .../EflSharp/efl/efl_loop_timer.eo.cs | 19 +- .../src/EflSharp/EflSharp/efl/efl_model.eo.cs | 82 +- .../EflSharp/efl/efl_model_provider.eo.cs | 282 + .../efl/efl_mono_model_internal.eo.cs | 902 +++ .../efl/efl_mono_model_internal_child.eo.cs | 852 ++ .../EflSharp/EflSharp/efl/efl_object.eo.cs | 241 +- .../EflSharp/efl/efl_observable.eo.cs | 29 +- .../EflSharp/EflSharp/efl/efl_observer.eo.cs | 16 +- .../src/EflSharp/EflSharp/efl/efl_pack.eo.cs | 20 +- .../EflSharp/efl/efl_pack_layout.eo.cs | 18 +- .../EflSharp/efl/efl_pack_linear.eo.cs | 20 +- .../EflSharp/efl/efl_pack_table.eo.cs | 278 +- .../src/EflSharp/EflSharp/efl/efl_part.eo.cs | 14 +- .../EflSharp/EflSharp/efl/efl_playable.eo.cs | 25 +- .../EflSharp/EflSharp/efl/efl_player.eo.cs | 68 +- .../EflSharp/EflSharp/efl/efl_screen.eo.cs | 39 +- .../EflSharp/efl/efl_select_model.eo.cs | 33 +- .../efl/efl_sinusoidal_interpolator.eo.cs | 17 +- .../efl/efl_spring_interpolator.eo.cs | 25 +- .../src/EflSharp/EflSharp/efl/efl_task.eo.cs | 29 +- .../src/EflSharp/EflSharp/efl/efl_text.eo.cs | 15 +- .../EflSharp/efl/efl_text_annotate.eo.cs | 18 +- .../EflSharp/efl/efl_text_cursor.eo.cs | 20 +- .../EflSharp/EflSharp/efl/efl_text_font.eo.cs | 102 +- .../EflSharp/efl/efl_text_format.eo.cs | 104 +- .../EflSharp/efl/efl_text_interactive.eo.cs | 320 +- .../EflSharp/efl/efl_text_markup.eo.cs | 24 +- .../efl/efl_text_markup_interactive.eo.cs | 21 +- .../EflSharp/efl/efl_text_markup_util.eo.cs | 13 +- .../EflSharp/efl/efl_text_style.eo.cs | 290 +- .../EflSharp/efl/efl_text_types.eot.cs | 25 +- .../EflSharp/EflSharp/efl/efl_thread.eo.cs | 85 +- .../EflSharp/EflSharp/efl/efl_threadio.eo.cs | 124 +- .../EflSharp/EflSharp/efl/efl_types.eot.cs | 43 +- .../src/EflSharp/EflSharp/efl/efl_ui.eot.cs | 0 ...il.eo.cs => efl_ui_action_connector.eo.cs} | 85 +- .../EflSharp/efl/efl_ui_alert_popup.eo.cs | 41 +- .../efl/efl_ui_alert_popup_part.eo.cs | 13 +- .../EflSharp/efl/efl_ui_anchor_popup.eo.cs | 325 - .../EflSharp/efl/efl_ui_autorepeat.eo.cs | 40 +- .../src/EflSharp/EflSharp/efl/efl_ui_bg.eo.cs | 370 +- .../EflSharp/EflSharp/efl/efl_ui_box.eo.cs | 53 +- .../EflSharp/efl/efl_ui_box_flow.eo.cs | 13 +- .../EflSharp/efl/efl_ui_box_stack.eo.cs | 13 +- .../EflSharp/EflSharp/efl/efl_ui_button.eo.cs | 535 +- .../efl/efl_ui_button_legacy_part.eo.cs | 13 +- .../EflSharp/efl/efl_ui_caching_factory.eo.cs | 21 +- .../EflSharp/efl/efl_ui_calendar.eo.cs | 66 +- .../EflSharp/efl/efl_ui_calendar_item.eo.cs | 43 +- .../EflSharp/EflSharp/efl/efl_ui_check.eo.cs | 944 ++- .../efl/efl_ui_check_legacy_part.eo.cs | 13 +- .../EflSharp/efl/efl_ui_clickable.eo.cs | 671 -- .../EflSharp/EflSharp/efl/efl_ui_clock.eo.cs | 41 +- .../EflSharp/efl/efl_ui_collection.eo.cs | 6292 +++++++++++++++ .../efl/efl_ui_container_selectable.eo.cs | 227 + .../EflSharp/efl/efl_ui_datepicker.eo.cs | 69 +- ...p_part.eo.cs => efl_ui_default_item.eo.cs} | 230 +- .../EflSharp/EflSharp/efl/efl_ui_dnd.eo.cs | 49 +- .../EflSharp/efl/efl_ui_dnd_container.eo.cs | 24 +- .../EflSharp/efl/efl_ui_dnd_types.eot.cs | 55 +- .../EflSharp/EflSharp/efl/efl_ui_drag.eo.cs | 133 +- .../EflSharp/efl/efl_ui_draggable.eo.cs | 82 +- .../EflSharp/efl/efl_ui_factory.eo.cs | 147 +- .../EflSharp/efl/efl_ui_factory_bind.eo.cs | 16 +- .../EflSharp/EflSharp/efl/efl_ui_flip.eo.cs | 28 +- .../EflSharp/efl/efl_ui_flip_part.eo.cs | 20 +- .../efl/efl_ui_focus_composition.eo.cs | 32 +- .../EflSharp/efl/efl_ui_focus_layer.eo.cs | 73 +- .../EflSharp/efl/efl_ui_focus_manager.eo.cs | 134 +- .../efl/efl_ui_focus_manager_calc.eo.cs | 44 +- .../efl/efl_ui_focus_manager_root_focus.eo.cs | 17 +- .../efl/efl_ui_focus_manager_sub.eo.cs | 47 +- .../efl_ui_focus_manager_window_root.eo.cs | 14 +- .../EflSharp/efl/efl_ui_focus_object.eo.cs | 84 +- .../EflSharp/efl/efl_ui_focus_util.eo.cs | 13 +- .../EflSharp/EflSharp/efl/efl_ui_format.eo.cs | 80 +- .../EflSharp/EflSharp/efl/efl_ui_frame.eo.cs | 278 +- .../EflSharp/EflSharp/efl/efl_ui_grid.eo.cs | 4683 +---------- .../efl/efl_ui_grid_default_item.eo.cs | 494 +- .../EflSharp/efl/efl_ui_grid_item.eo.cs | 108 - .../EflSharp/efl/efl_ui_group_item.eo.cs | 786 ++ .../EflSharp/EflSharp/efl/efl_ui_i18n.eo.cs | 40 +- .../EflSharp/EflSharp/efl/efl_ui_image.eo.cs | 1667 ++-- .../EflSharp/efl/efl_ui_image_factory.eo.cs | 13 +- .../EflSharp/efl/efl_ui_image_zoomable.eo.cs | 259 +- .../efl/efl_ui_image_zoomable_pan.eo.cs | 13 +- .../EflSharp/EflSharp/efl/efl_ui_item.eo.cs | 932 +-- .../efl/efl_ui_item_part_content.eo.cs | 327 - .../EflSharp/efl/efl_ui_item_part_extra.eo.cs | 327 - .../EflSharp/efl/efl_ui_item_part_icon.eo.cs | 327 - .../EflSharp/efl/efl_ui_item_part_text.eo.cs | 483 -- .../EflSharp/EflSharp/efl/efl_ui_l10n.eo.cs | 17 +- .../EflSharp/EflSharp/efl/efl_ui_layout.eo.cs | 27 +- .../EflSharp/efl/efl_ui_layout_base.eo.cs | 204 +- .../EflSharp/efl/efl_ui_layout_factory.eo.cs | 13 +- .../efl/efl_ui_layout_orientable.eo.cs | 22 +- .../efl_ui_layout_orientable_readonly.eo.cs | 20 +- .../EflSharp/efl/efl_ui_layout_part.eo.cs | 13 +- .../EflSharp/efl/efl_ui_layout_part_bg.eo.cs | 13 +- .../EflSharp/efl/efl_ui_layout_part_box.eo.cs | 32 +- .../efl/efl_ui_layout_part_content.eo.cs | 20 +- .../efl/efl_ui_layout_part_legacy.eo.cs | 26 +- .../efl/efl_ui_layout_part_table.eo.cs | 251 +- .../efl/efl_ui_layout_part_text.eo.cs | 22 +- .../EflSharp/EflSharp/efl/efl_ui_legacy.eo.cs | 16 +- .../EflSharp/EflSharp/efl/efl_ui_list.eo.cs | 4452 +---------- .../efl/efl_ui_list_default_item.eo.cs | 494 +- .../EflSharp/efl/efl_ui_list_item.eo.cs | 108 - .../efl/efl_ui_list_placeholder_item.eo.cs | 33 +- .../EflSharp/efl/efl_ui_list_view.eo.cs | 1056 ++- .../EflSharp/efl/efl_ui_list_view_model.eo.cs | 36 +- .../EflSharp/efl/efl_ui_list_view_pan.eo.cs | 13 +- .../efl/efl_ui_list_view_types.eot.cs | 39 +- .../efl/efl_ui_multi_selectable.eo.cs | 546 +- .../EflSharp/efl/efl_ui_navigation_bar.eo.cs | 19 +- .../efl/efl_ui_navigation_bar_part.eo.cs | 13 +- ...l_ui_navigation_bar_part_back_button.eo.cs | 50 +- .../efl/efl_ui_navigation_layout.eo.cs | 24 +- .../EflSharp/EflSharp/efl/efl_ui_pan.eo.cs | 74 +- .../EflSharp/EflSharp/efl/efl_ui_panel.eo.cs | 5423 +++---------- .../EflSharp/EflSharp/efl/efl_ui_panes.eo.cs | 284 +- .../EflSharp/efl/efl_ui_panes_part.eo.cs | 21 +- .../EflSharp/EflSharp/efl/efl_ui_popup.eo.cs | 670 +- .../efl/efl_ui_popup_part_backwall.eo.cs | 42 +- ...l_ui_position_manager_data_access_v1.eo.cs | 854 ++ .../efl/efl_ui_position_manager_entity.eo.cs | 998 +++ .../efl/efl_ui_position_manager_grid.eo.cs | 934 +++ .../efl/efl_ui_position_manager_list.eo.cs | 934 +++ .../EflSharp/efl/efl_ui_progressbar.eo.cs | 289 +- .../efl/efl_ui_progressbar_legacy_part.eo.cs | 13 +- .../efl/efl_ui_progressbar_part.eo.cs | 233 +- .../EflSharp/efl/efl_ui_property_bind.eo.cs | 47 +- .../efl/efl_ui_property_bind_part.eo.cs | 288 + .../EflSharp/EflSharp/efl/efl_ui_radio.eo.cs | 17 +- .../EflSharp/efl/efl_ui_radio_box.eo.cs | 24 +- .../EflSharp/efl/efl_ui_radio_group.eo.cs | 41 +- .../efl/efl_ui_radio_group_impl.eo.cs | 24 +- .../efl/efl_ui_radio_legacy_part.eo.cs | 13 +- .../EflSharp/efl/efl_ui_range_display.eo.cs | 300 +- .../efl/efl_ui_range_interactive.eo.cs | 297 +- .../EflSharp/efl/efl_ui_relative_layout.eo.cs | 25 +- .../efl/efl_ui_scroll_alert_popup.eo.cs | 220 - .../efl/efl_ui_scroll_alert_popup_part.eo.cs | 437 - .../EflSharp/efl/efl_ui_scroll_manager.eo.cs | 195 +- .../EflSharp/efl/efl_ui_scrollable.eo.cs | 46 +- .../efl/efl_ui_scrollable_interactive.eo.cs | 175 +- .../EflSharp/efl/efl_ui_scrollbar.eo.cs | 155 +- .../EflSharp/efl/efl_ui_scroller.eo.cs | 217 +- .../EflSharp/efl/efl_ui_selectable.eo.cs | 547 +- .../EflSharp/efl/efl_ui_selection.eo.cs | 25 +- .../efl/efl_ui_selection_types.eot.cs | 44 +- .../efl/efl_ui_single_selectable.eo.cs | 361 + .../EflSharp/EflSharp/efl/efl_ui_slider.eo.cs | 262 +- .../EflSharp/efl/efl_ui_slider_interval.eo.cs | 210 - .../EflSharp/EflSharp/efl/efl_ui_spin.eo.cs | 274 +- .../EflSharp/efl/efl_ui_spin_button.eo.cs | 304 +- .../efl/efl_ui_spotlight_container.eo.cs | 59 +- .../efl/efl_ui_spotlight_indicator.eo.cs | 13 +- .../efl/efl_ui_spotlight_indicator_icon.eo.cs | 13 +- .../efl/efl_ui_spotlight_manager.eo.cs | 29 +- .../efl/efl_ui_spotlight_manager_scroll.eo.cs | 133 +- .../efl/efl_ui_spotlight_manager_stack.eo.cs | 13 +- .../EflSharp/efl/efl_ui_spotlight_util.eo.cs | 13 +- .../EflSharp/efl/efl_ui_tab_bar.eo.cs | 17 +- .../EflSharp/efl/efl_ui_tab_page.eo.cs | 47 +- .../efl/efl_ui_tab_page_part_tab.eo.cs | 21 +- .../EflSharp/efl/efl_ui_tab_pager.eo.cs | 17 +- .../EflSharp/EflSharp/efl/efl_ui_table.eo.cs | 282 +- .../EflSharp/efl/efl_ui_table_static.eo.cs | 13 +- .../EflSharp/EflSharp/efl/efl_ui_tags.eo.cs | 105 +- .../EflSharp/EflSharp/efl/efl_ui_text.eo.cs | 875 +- .../efl/efl_ui_text_alert_popup.eo.cs | 275 - .../EflSharp/efl/efl_ui_text_async.eo.cs | 13 +- .../EflSharp/efl/efl_ui_text_editable.eo.cs | 13 +- .../efl/efl_ui_text_factory_emoticons.eo.cs | 13 +- .../efl/efl_ui_text_factory_fallback.eo.cs | 13 +- .../efl/efl_ui_text_factory_images.eo.cs | 13 +- .../EflSharp/efl/efl_ui_text_part.eo.cs | 13 +- .../EflSharp/efl/efl_ui_text_selectable.eo.cs | 421 + .../EflSharp/efl/efl_ui_textpath.eo.cs | 118 +- .../EflSharp/efl/efl_ui_textpath_part.eo.cs | 13 +- .../EflSharp/EflSharp/efl/efl_ui_theme.eo.cs | 14 +- .../EflSharp/efl/efl_ui_timepicker.eo.cs | 34 +- .../EflSharp/EflSharp/efl/efl_ui_types.eot.cs | 0 .../EflSharp/EflSharp/efl/efl_ui_video.eo.cs | 56 +- .../EflSharp/EflSharp/efl/efl_ui_view.eo.cs | 167 +- .../EflSharp/efl/efl_ui_view_factory.eo.cs | 152 + .../EflSharp/EflSharp/efl/efl_ui_widget.eo.cs | 1287 ++- .../EflSharp/efl/efl_ui_widget_factory.eo.cs | 164 +- .../efl/efl_ui_widget_focus_manager.eo.cs | 45 +- .../EflSharp/efl/efl_ui_widget_part.eo.cs | 198 +- .../EflSharp/efl/efl_ui_widget_part_bg.eo.cs | 365 +- .../efl/efl_ui_widget_part_shadow.eo.cs | 112 +- .../efl_ui_widget_scrollable_content.eo.cs | 544 ++ .../EflSharp/EflSharp/efl/efl_ui_win.eo.cs | 373 +- .../EflSharp/efl/efl_ui_win_inlined.eo.cs | 14 +- .../EflSharp/efl/efl_ui_win_part.eo.cs | 58 +- .../EflSharp/efl/efl_ui_win_socket.eo.cs | 13 +- .../EflSharp/EflSharp/efl/efl_ui_zoom.eo.cs | 46 +- .../EflSharp/efl/efl_view_model.eo.cs | 17 +- .../EflSharp/EflSharp/efl/eina_accessor.cs | 0 .../src/EflSharp/EflSharp/efl/eina_array.cs | 2 +- .../src/EflSharp/EflSharp/efl/eina_binbuf.cs | 0 .../src/EflSharp/EflSharp/efl/eina_common.cs | 0 .../src/EflSharp/EflSharp/efl/eina_config.cs | 0 .../EflSharp/efl/eina_container_common.cs | 0 .../src/EflSharp/EflSharp/efl/eina_error.cs | 0 .../src/EflSharp/EflSharp/efl/eina_hash.cs | 0 .../src/EflSharp/EflSharp/efl/eina_inarray.cs | 0 .../src/EflSharp/EflSharp/efl/eina_inlist.cs | 0 .../EflSharp/EflSharp/efl/eina_iterator.cs | 0 .../src/EflSharp/EflSharp/efl/eina_list.cs | 2 +- .../src/EflSharp/EflSharp/efl/eina_log.cs | 0 .../EflSharp/EflSharp/efl/eina_promises.cs | 0 .../src/EflSharp/EflSharp/efl/eina_slice.cs | 0 .../src/EflSharp/EflSharp/efl/eina_strbuf.cs | 0 .../EflSharp/EflSharp/efl/eina_stringshare.cs | 0 .../EflSharp/EflSharp/efl/eina_types.eot.cs | 131 +- .../src/EflSharp/EflSharp/efl/eina_value.cs | 85 + .../EflSharp/EflSharp/efl/elm_general.eot.cs | 36 +- .../efl/elm_interface_scrollable.eo.cs | 7090 ----------------- .../src/EflSharp/EflSharp/efl/iwrapper.cs | 7 +- .../src/EflSharp/EflSharp/efl/workaround.cs | 82 + 389 files changed, 44792 insertions(+), 32243 deletions(-) create mode 100755 internals/src/EflSharp/EflSharp/efl/Bind.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/EoWrapper.cs create mode 100755 internals/src/EflSharp/EflSharp/efl/Factory.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/FunctionWrapper.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/FunctionWrapper_Unix.cs create mode 100755 internals/src/EflSharp/EflSharp/efl/GenericModel.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/NativeModule.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/NativeModule_Unix.cs create mode 100755 internals/src/EflSharp/EflSharp/efl/UserModel.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/WrapperSupervisor.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/edje_types.eot.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_accelerate_interpolator.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_access_action.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_access_component.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_access_editable_text.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_access_object.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_access_selection.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_access_text.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_access_value.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_access_widget_action.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_access_window.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_all.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_app.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_appthread.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_boolean_model.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_bounce_interpolator.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_cached_item.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_animation.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_alpha.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group_parallel.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group_sequential.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_player.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_rotate.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_scale.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_translate.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_types.eot.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_event_grabber.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_filter_internal.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_double_tap.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_flick.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_long_tap.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_manager.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_momentum.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_double_tap.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_flick.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_long_tap.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_momentum.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_tap.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_triple_tap.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_zoom.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_tap.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_touch.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_triple_tap.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_types.eot.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_zoom.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_group.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_image.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_image_internal.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_layout.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_box.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_external.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_invalid.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_swallow.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_table.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_text.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_object.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_pointer.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_polygon.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_proxy.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_rectangle.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_scene.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_snapshot.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_surface.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_tbm.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_wayland.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_x11.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_text.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_text_factory.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_container.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient_linear.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient_radial.eo.cs create mode 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_image.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_node.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_object.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_shape.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_composite_model.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_config.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_config_global.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_container.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_container_model.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_content.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_control.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_core_command_line.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_core_env.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_core_proc_env.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_csharp_application.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_cubic_bezier_interpolator.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_decelerate_interpolator.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_divisor_interpolator.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_duplicate.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_exe.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_file.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_file_save.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_filter_model.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_generic_model.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_gesture_events.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_gfx_arrangement.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_gfx_blur.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_gfx_buffer.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_gfx_color.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_gfx_color_class.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_gfx_entity.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_gfx_fill.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_gfx_filter.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_gfx_frame_controller.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient_linear.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient_radial.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_gfx_hint.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_gfx_image.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_gfx_image_load_controller.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_gfx_image_orientable.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_gfx_mapping.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_gfx_path.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_gfx_shape.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_gfx_size_class.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_gfx_stack.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_gfx_text_class.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_gfx_types.eot.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_gfx_view.eo.cs create mode 100755 internals/src/EflSharp/EflSharp/efl/efl_input_clickable.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_input_device.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_input_event.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_input_focus.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_input_hold.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_input_interface.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_input_key.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_input_pointer.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_input_state.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_input_types.eot.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_interpolator.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_io_closer.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_io_positioner.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_io_reader.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_io_writer.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_layout_calc.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_layout_group.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_layout_signal.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_libs.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_linear_interpolator.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_loop.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_loop_consumer.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_loop_fd.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_loop_handler.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_loop_message.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_loop_message_future.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_loop_message_future_handler.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_loop_message_handler.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_loop_model.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_loop_timer.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_model.eo.cs create mode 100755 internals/src/EflSharp/EflSharp/efl/efl_model_provider.eo.cs create mode 100755 internals/src/EflSharp/EflSharp/efl/efl_mono_model_internal.eo.cs create mode 100755 internals/src/EflSharp/EflSharp/efl/efl_mono_model_internal_child.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_object.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_observable.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_observer.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_pack.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_pack_layout.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_pack_linear.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_pack_table.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_part.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_playable.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_player.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_screen.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_select_model.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_sinusoidal_interpolator.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_spring_interpolator.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_task.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_text.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_text_annotate.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_text_cursor.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_text_font.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_text_format.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_text_interactive.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_text_markup.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_text_markup_interactive.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_text_markup_util.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_text_style.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_text_types.eot.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_thread.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_threadio.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_types.eot.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui.eot.cs rename internals/src/EflSharp/EflSharp/efl/{efl_ui_clickable_util.eo.cs => efl_ui_action_connector.eo.cs} (51%) mode change 100644 => 100755 mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_alert_popup.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_alert_popup_part.eo.cs delete mode 100644 internals/src/EflSharp/EflSharp/efl/efl_ui_anchor_popup.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_autorepeat.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_bg.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_box.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_box_flow.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_box_stack.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_button.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_button_legacy_part.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_caching_factory.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_calendar.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_calendar_item.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_check.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_check_legacy_part.eo.cs delete mode 100644 internals/src/EflSharp/EflSharp/efl/efl_ui_clickable.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_clock.eo.cs create mode 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_collection.eo.cs create mode 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_container_selectable.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_datepicker.eo.cs rename internals/src/EflSharp/EflSharp/efl/{efl_ui_text_alert_popup_part.eo.cs => efl_ui_default_item.eo.cs} (63%) mode change 100644 => 100755 mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_dnd.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_dnd_container.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_dnd_types.eot.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_drag.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_draggable.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_factory.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_factory_bind.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_flip.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_flip_part.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_focus_composition.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_focus_layer.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_calc.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_root_focus.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_sub.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_window_root.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_focus_object.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_focus_util.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_format.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_frame.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_grid.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_grid_default_item.eo.cs delete mode 100644 internals/src/EflSharp/EflSharp/efl/efl_ui_grid_item.eo.cs create mode 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_group_item.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_i18n.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_image.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_image_factory.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_image_zoomable.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_image_zoomable_pan.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_item.eo.cs delete mode 100644 internals/src/EflSharp/EflSharp/efl/efl_ui_item_part_content.eo.cs delete mode 100644 internals/src/EflSharp/EflSharp/efl/efl_ui_item_part_extra.eo.cs delete mode 100644 internals/src/EflSharp/EflSharp/efl/efl_ui_item_part_icon.eo.cs delete mode 100644 internals/src/EflSharp/EflSharp/efl/efl_ui_item_part_text.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_l10n.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_layout.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_layout_base.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_layout_factory.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_layout_orientable.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_layout_orientable_readonly.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_bg.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_box.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_content.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_legacy.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_table.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_text.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_legacy.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_list.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_list_default_item.eo.cs delete mode 100644 internals/src/EflSharp/EflSharp/efl/efl_ui_list_item.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_list_placeholder_item.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_list_view.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_model.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_pan.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_types.eot.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_multi_selectable.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar_part.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar_part_back_button.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_layout.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_pan.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_panel.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_panes.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_panes_part.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_popup.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_popup_part_backwall.eo.cs create mode 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_position_manager_data_access_v1.eo.cs create mode 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_position_manager_entity.eo.cs create mode 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_position_manager_grid.eo.cs create mode 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_position_manager_list.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar_legacy_part.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar_part.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_property_bind.eo.cs create mode 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_property_bind_part.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_radio.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_radio_box.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_radio_group.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_radio_group_impl.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_radio_legacy_part.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_range_display.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_range_interactive.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_relative_layout.eo.cs delete mode 100644 internals/src/EflSharp/EflSharp/efl/efl_ui_scroll_alert_popup.eo.cs delete mode 100644 internals/src/EflSharp/EflSharp/efl/efl_ui_scroll_alert_popup_part.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_scroll_manager.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_scrollable.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_scrollable_interactive.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_scrollbar.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_scroller.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_selectable.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_selection.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_selection_types.eot.cs create mode 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_single_selectable.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_slider.eo.cs delete mode 100644 internals/src/EflSharp/EflSharp/efl/efl_ui_slider_interval.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_spin.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_spin_button.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_container.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_indicator.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_indicator_icon.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_manager.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_manager_scroll.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_manager_stack.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_util.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_tab_bar.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_tab_page.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_tab_page_part_tab.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_tab_pager.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_table.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_table_static.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_tags.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_text.eo.cs delete mode 100644 internals/src/EflSharp/EflSharp/efl/efl_ui_text_alert_popup.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_text_async.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_text_editable.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_emoticons.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_fallback.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_images.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_text_part.eo.cs create mode 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_text_selectable.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_textpath.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_textpath_part.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_theme.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_timepicker.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_types.eot.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_video.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_view.eo.cs create mode 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_view_factory.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_widget.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_widget_factory.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_widget_focus_manager.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part_bg.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part_shadow.eo.cs create mode 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_widget_scrollable_content.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_win.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_win_inlined.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_win_part.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_win_socket.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_ui_zoom.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/efl_view_model.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/eina_accessor.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/eina_array.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/eina_binbuf.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/eina_common.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/eina_config.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/eina_container_common.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/eina_error.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/eina_hash.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/eina_inarray.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/eina_inlist.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/eina_iterator.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/eina_list.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/eina_log.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/eina_promises.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/eina_slice.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/eina_strbuf.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/eina_stringshare.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/eina_types.eot.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/eina_value.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/elm_general.eot.cs delete mode 100644 internals/src/EflSharp/EflSharp/efl/elm_interface_scrollable.eo.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/iwrapper.cs mode change 100644 => 100755 internals/src/EflSharp/EflSharp/efl/workaround.cs diff --git a/internals/src/EflSharp/EflSharp/Circle/CircleSpinner.cs b/internals/src/EflSharp/EflSharp/Circle/CircleSpinner.cs index 79f9b336d..4a580df81 100755 --- a/internals/src/EflSharp/EflSharp/Circle/CircleSpinner.cs +++ b/internals/src/EflSharp/EflSharp/Circle/CircleSpinner.cs @@ -43,9 +43,10 @@ namespace Efl /// The CircleSpinner is a widget to display and handle the spinner value by the rotary event. /// /// 6 - public class CircleSpinner : Efl.Ui.Spin, ICircleWidget + public class CircleSpinner : Efl.Ui.Spin, Efl.Ui.IRangeInteractive, ICircleWidget { double _angleRatio = -1.0; + double _step = 1.0; IntPtr _handle; public virtual IntPtr CircleHandle => _handle; @@ -56,6 +57,8 @@ namespace Efl /// 6 public CircleSpinnerMarker Marker; + public event EventHandler SteadyEvt; + /// /// Creates and initializes a new instance of the CircleSpinner class. /// @@ -168,6 +171,28 @@ namespace Efl Interop.Eext.eext_circle_object_item_radius_set(CircleHandle, "default", value); } } + + public double GetRangeStep() + { + return _step; + } + + public void SetRangeStep(double step) + { + _step = step; + } + + public double RangeStep + { + get + { + return GetRangeStep(); + } + set + { + SetRangeStep(value); + } + } } } } diff --git a/internals/src/EflSharp/EflSharp/Circle/RotarySelectorItem.cs b/internals/src/EflSharp/EflSharp/Circle/RotarySelectorItem.cs index d04a3c1cf..bf55c6783 100755 --- a/internals/src/EflSharp/EflSharp/Circle/RotarySelectorItem.cs +++ b/internals/src/EflSharp/EflSharp/Circle/RotarySelectorItem.cs @@ -60,6 +60,23 @@ namespace Efl get { return null; } set { } } + + public (int, int, int, int) Color + { + get + { + int _out_r = default(int); + int _out_g = default(int); + int _out_b = default(int); + int _out_a = default(int); + GetColor(out _out_r, out _out_g, out _out_b, out _out_a); + return (_out_r, _out_g, _out_b, _out_a); + } + set + { + SetColor(value.Item1, value.Item2, value.Item3, value.Item4); + } + } } /// diff --git a/internals/src/EflSharp/EflSharp/efl/Bind.cs b/internals/src/EflSharp/EflSharp/efl/Bind.cs new file mode 100755 index 000000000..5255e0163 --- /dev/null +++ b/internals/src/EflSharp/EflSharp/efl/Bind.cs @@ -0,0 +1,128 @@ +#define EFL_BETA +#if EFL_BETA + +using System; +using System.Runtime.InteropServices; +using System.Collections.Generic; +using System.Linq; +using System.ComponentModel; + +namespace Efl { + +/// Represents a bindable property as used by instances. +/// +/// It is internally instantiated and returned by generated extension methods. +/// +public class BindableProperty +{ + + /// Creates a new bindable property with the source name name. + public BindableProperty(string name, Efl.Ui.IPropertyBind binder) + { + this.propertyName = name; + this.partName = null; + this.binder = binder; + } + + /// Creates a new bindable property for part part. + public BindableProperty(string partName, string partProperty, Efl.Ui.IPropertyBind binder) + { + this.partName = partName; + this.propertyName = partProperty; + this.binder = binder; + } + + /// Binds the model property modelProperty to the property name set in the constructor. + public Eina.Error Bind(string modelProperty) + { + if (this.partName == null) + { + return this.binder.PropertyBind(this.propertyName, modelProperty); + } + else + { + var partHolder = this.binder as Efl.IPart; + + if (partHolder == null) + { + throw new InvalidOperationException($"Failed to cast binder {binder} to IPart"); + } + + var partBinder = partHolder.GetPart(this.partName) as Efl.Ui.IPropertyBind; + + if (partBinder != null) + { + return partBinder.PropertyBind(this.propertyName, modelProperty); + } + else + { + throw new InvalidOperationException($"Failed to get part {this.partName}"); + } + } + } + + string propertyName; + string partName; + Efl.Ui.IPropertyBind binder; +} + +/// Represents bindable parts as used by instances. +/// +/// It is internally instantiated and returned by generated extension methods. +/// +public class BindablePart +{ + /// Creates a new bindable property with the binder binder. + public BindablePart(string partName, Efl.Ui.IPropertyBind binder) + { + this.PartName = partName; + this.Binder = binder; + } + + /// The name of the part this instance wraps. + public string PartName { get; private set; } + /// The binder that will be used to bind the properties. + public Efl.Ui.IPropertyBind Binder { get; private set; } + +} + +/// Represents bindable factory parts as used by instances. +/// +public class BindableFactoryPart +{ + /// Creates a new bindable factory part with the binder binder. + public BindableFactoryPart(string partName, Efl.Ui.IFactoryBind binder) + { + this.PartName = partName; + this.Binder = binder; + } + + /// The name of the part this instance wraps. + public string PartName { get; private set; } + /// The binder that will be used to bind the properties. + public Efl.Ui.IFactoryBind Binder { get; private set; } + + /// Binds the given factory to this part. + public Eina.Error BindFactory(Efl.Ui.IFactory factory) + { + this.Binder.FactoryBind(this.PartName, factory); + return Eina.Error.NO_ERROR; + } +} + +namespace Csharp +{ + +/// Helper class to differentiate between factory extension methods. +/// +/// For internal use only. +public class ExtensionTag + where TInherited : TBase +{ +} + +} + +} + +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/EoWrapper.cs b/internals/src/EflSharp/EflSharp/efl/EoWrapper.cs old mode 100644 new mode 100755 diff --git a/internals/src/EflSharp/EflSharp/efl/Factory.cs b/internals/src/EflSharp/EflSharp/efl/Factory.cs new file mode 100755 index 000000000..185f9846b --- /dev/null +++ b/internals/src/EflSharp/EflSharp/efl/Factory.cs @@ -0,0 +1,31 @@ +#define EFL_BETA +#if EFL_BETA + +using System; +using System.Runtime.InteropServices; +using System.Collections.Generic; +using System.Linq; +using System.ComponentModel; + +namespace Efl { namespace Ui { + +/// Helper factory class. Makes use of C# extension methods for easier property binding. +/// +/// +/// var factory = Efl.Ui.Factory<Efl.Ui.Button>(); +/// factory.Style().Bind("Name"); // The factory Style property is bound to the Name property for the given model. +/// +/// +/// +public class ItemFactory : Efl.Ui.CachingFactory, IDisposable +{ + /// Creates a new factory. + public ItemFactory(Efl.Object parent = null) + : base (parent, typeof(T)) + { + } +} + +} } + +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/FunctionWrapper.cs b/internals/src/EflSharp/EflSharp/efl/FunctionWrapper.cs old mode 100644 new mode 100755 index bdbca77d9..04a5f0561 --- a/internals/src/EflSharp/EflSharp/efl/FunctionWrapper.cs +++ b/internals/src/EflSharp/EflSharp/efl/FunctionWrapper.cs @@ -131,7 +131,7 @@ public class FunctionLoadResult { if (_Delegate == null) { - throw new InvalidOperationException($"Trying to get Delegate while not loaded. Load result: {Kind}"); + throw new InvalidOperationException($"Trying to get Delegate of type {typeof(T).FullName} while not loaded. Load result: {Kind}"); } return _Delegate; diff --git a/internals/src/EflSharp/EflSharp/efl/FunctionWrapper_Unix.cs b/internals/src/EflSharp/EflSharp/efl/FunctionWrapper_Unix.cs old mode 100644 new mode 100755 diff --git a/internals/src/EflSharp/EflSharp/efl/GenericModel.cs b/internals/src/EflSharp/EflSharp/efl/GenericModel.cs new file mode 100755 index 000000000..ad04a52ab --- /dev/null +++ b/internals/src/EflSharp/EflSharp/efl/GenericModel.cs @@ -0,0 +1,175 @@ +#define EFL_BETA +using System; +using System.Runtime.InteropServices; +using System.Collections.Generic; +using System.Linq; +using System.ComponentModel; +using Eina; + +#if EFL_BETA + +namespace Efl { + +/// Generic implementation for MVVM models based on +public class GenericModel : Efl.Object, Efl.IModel, IDisposable +{ + private Efl.IModel model; + + /// Creates a new model wrapping model. + public GenericModel (Efl.IModel model, Efl.Object parent = null) : base(parent) + { + this.model = model; + } + + /// The list of properties available in the wrapped model. + public Eina.Iterator< System.String> Properties + { + get { return GetProperties(); } + } + + /// The number of children in the wrapped model. + public uint ChildrenCount + { + get { return GetChildrenCount(); } + } + + /// The list of properties available in the wrapped model. + public Eina.Iterator GetProperties() + { + return model.GetProperties(); + } + + /// Gets the value of the given property in the wrapped model. + public Eina.Value GetProperty( System.String property) + { + return model.GetProperty(property); + } + + /// Sets the value of the given property in the given model. + public Eina.Future SetProperty( System.String property, Eina.Value value) + { + return model.SetProperty(property, value); + } + + /// Returns the number of children in the wrapped model. + public uint GetChildrenCount() + { + return model.GetChildrenCount(); + } + + /// Returns an that will resolve when the property is ready to be read. + public Eina.Future GetPropertyReady( System.String property) + { + return model.GetPropertyReady(property); + } + + /// Gets a number of children from the wrapped model. + public Eina.Future GetChildrenSlice( uint start, uint count) + { + return model.GetChildrenSlice(start, count); + } + + /// Adds a new object to the wrapper model. + public void Add(T o) + { + Efl.IModel child = (Efl.IModel)this.AddChild(); + ModelHelper.SetProperties(o, child); + } + + /// Adds a new childs to the model and returns it. + public Efl.Object AddChild() + { + return model.AddChild(); + } + + /// Deletes the given child from the wrapped model. + public void DelChild( Efl.Object child) + { + model.DelChild(child); + } + + /// Gets the element at the specified index. + async public System.Threading.Tasks.Task GetAtAsync(uint index) + { + using (Eina.Value v = await GetChildrenSliceAsync(index, 1)) + { + if (v.GetValueType().IsContainer()) + { + var child = (Efl.IModel)v[0]; + T obj = (T)Activator.CreateInstance(typeof(T), new System.Object[] {}); + ModelHelper.GetProperties(obj, child); + return obj; + } + else + { + throw new System.InvalidOperationException("GetChildrenSlice must have returned a container"); + } + } + } + + /// Async wrapper around . + public System.Threading.Tasks.Task SetPropertyAsync( System.String property, Eina.Value value, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)) + { + return model.SetPropertyAsync(property, value, token); + } + + /// Async wrapper around . + public System.Threading.Tasks.Task GetPropertyReadyAsync( System.String property, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)) + { + return model.GetPropertyReadyAsync(property, token); + } + + /// Async wrapper around . + public System.Threading.Tasks.Task GetChildrenSliceAsync( uint start, uint count, System.Threading.CancellationToken token=default(System.Threading.CancellationToken)) + { + return model.GetChildrenSliceAsync(start, count, token); + } + + /// Event triggered when properties on the wrapped model changes. + public event EventHandler PropertiesChangedEvt + { + add { + model.PropertiesChangedEvt += value; + } + remove { + model.PropertiesChangedEvt -= value; + } + } + + /// Event triggered when a child is added from the wrapped model. + public event EventHandler ChildAddedEvt + { + add { + model.ChildAddedEvt += value; + } + remove { + model.ChildAddedEvt -= value; + } + } + + /// Event triggered when a child is removed from the wrapped model. + public event EventHandler ChildRemovedEvt + { + add { + model.ChildRemovedEvt += value; + } + remove { + model.ChildRemovedEvt -= value; + } + } + + /// Event triggered when the number of children changes. + public event EventHandler ChildrenCountChangedEvt + { + add { + model.ChildrenCountChangedEvt += value; + } + remove { + model.ChildrenCountChangedEvt -= value; + } + } +} + +} + +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/NativeModule.cs b/internals/src/EflSharp/EflSharp/efl/NativeModule.cs old mode 100644 new mode 100755 diff --git a/internals/src/EflSharp/EflSharp/efl/NativeModule_Unix.cs b/internals/src/EflSharp/EflSharp/efl/NativeModule_Unix.cs old mode 100644 new mode 100755 diff --git a/internals/src/EflSharp/EflSharp/efl/UserModel.cs b/internals/src/EflSharp/EflSharp/efl/UserModel.cs new file mode 100755 index 000000000..bf8f8b3da --- /dev/null +++ b/internals/src/EflSharp/EflSharp/efl/UserModel.cs @@ -0,0 +1,105 @@ +#define EFL_BETA +using System; +using System.Runtime.InteropServices; +using System.Collections.Generic; +using System.Linq; +using System.ComponentModel; +using System.Reflection; + +namespace Efl { + +#if EFL_BETA + +internal class ModelHelper +{ + /// FIXME Move this to eina_value.cs and be a static method of Value? + static internal Eina.Value ValueFromProperty(T source, PropertyInfo property) + { + return new Eina.Value(property.GetValue(source)); + } + + static internal void SetPropertyFromValue(T target, PropertyInfo property, Eina.Value v) + { + property.SetValue(target, v.Unwrap()); + } + + /// Sets the properties of the from the properties of the given object + /// . + static internal void SetProperties(T o, Efl.IModel child) + { + var properties = typeof(T).GetProperties(); + foreach(var prop in properties) + { + child.SetProperty(prop.Name, ValueFromProperty(o, prop)); + } + } + + /// Sets the properties of from the properties of . + static internal void GetProperties(T o, Efl.IModel child) + { + var properties = typeof(T).GetProperties(); + foreach(var prop in properties) + { + using (var v = child.GetProperty(prop.Name)) + { + SetPropertyFromValue(o, prop, v); + } + } + } +} + +/// Helper class to simplify the creation of MVVM Models based on . +/// +/// This class works together with to wrap user defined classes as MVVM models. +/// Example: +/// +/// +/// public class PersonModel +/// { +/// public string Name { get; set; } +/// public int Age { get; set; } +/// } +/// // Instantiating the model +/// var modelData = new Efl.UserModel<PersonModel>(parent); +/// modelData.Add(new PersonModel { Name = "John", Age = 30 }; +/// var model = new Efl.GenericModel<PersonModel>(modelData, parent); +/// PersonModel p = await model.GetAtAsync(0); +/// +/// +[Efl.Eo.BindingEntity] +public class UserModel : Efl.MonoModelInternal, IDisposable +{ + /// Creates a new model. + /// The parent of the model. + public UserModel (Efl.Object parent = null) : base(Efl.MonoModelInternal.efl_mono_model_internal_class_get(), parent) + { + var properties = typeof(T).GetProperties(); + foreach(var prop in properties) + { + AddProperty(prop.Name, Eina.ValueTypeBridge.GetManaged(prop.PropertyType)); + } + } + + /// Disposes of this instance. + ~UserModel() + { + Dispose(false); + } + + /// Adds a new child to the model wrapping the properites of o + /// + /// Reflection is used to instantiate a new for this child and + /// set the mirroring properties correctly. + /// + /// + /// The user model instance to be added to this model. + public void Add (T o) + { + Efl.IModel child = (Efl.IModel) this.AddChild(); + ModelHelper.SetProperties(o, child); + } +} + +#endif + +} diff --git a/internals/src/EflSharp/EflSharp/efl/WrapperSupervisor.cs b/internals/src/EflSharp/EflSharp/efl/WrapperSupervisor.cs old mode 100644 new mode 100755 diff --git a/internals/src/EflSharp/EflSharp/efl/edje_types.eot.cs b/internals/src/EflSharp/EflSharp/efl/edje_types.eot.cs old mode 100644 new mode 100755 diff --git a/internals/src/EflSharp/EflSharp/efl/efl_accelerate_interpolator.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_accelerate_interpolator.eo.cs old mode 100644 new mode 100755 index e49603a75..4cc7ba838 --- a/internals/src/EflSharp/EflSharp/efl/efl_accelerate_interpolator.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_accelerate_interpolator.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,11 +10,12 @@ namespace Efl { /// Efl accelerate interpolator class /// output = 1 - sin(Pi / 2 + input * Pi / 2); +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.AccelerateInterpolator.NativeMethods] [Efl.Eo.BindingEntity] public class AccelerateInterpolator : Efl.Object, Efl.IInterpolator { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -39,7 +41,8 @@ public class AccelerateInterpolator : Efl.Object, Efl.IInterpolator FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected AccelerateInterpolator(ConstructingHandle ch) : base(ch) { @@ -258,3 +261,13 @@ public class AccelerateInterpolator : Efl.Object, Efl.IInterpolator } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflAccelerateInterpolator_ExtensionMethods { + public static Efl.BindableProperty Factor(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.AccelerateInterpolator { + return new Efl.BindableProperty("factor", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_access_action.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_access_action.eo.cs old mode 100644 new mode 100755 index 38fde2afb..c6a3ef2c3 --- a/internals/src/EflSharp/EflSharp/efl/efl_access_action.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_access_action.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Access { /// Accessible action mixin +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Access.IActionConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IAction : @@ -37,16 +39,17 @@ System.String GetActionKeybinding(int id); /// Get list of available widget actions /// Contains statically allocated strings. Eina.List Actions { - get ; + get; } } /// Accessible action mixin -sealed public class IActionConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IActionConcrete : Efl.Eo.EoWrapper , IAction { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -62,7 +65,8 @@ sealed public class IActionConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IActionConcrete(ConstructingHandle ch) : base(ch) { @@ -386,3 +390,13 @@ sealed public class IActionConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_AccessIActionConcrete_ExtensionMethods { + + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_access_component.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_access_component.eo.cs old mode 100644 new mode 100755 index 848aac10c..74828f0ef --- a/internals/src/EflSharp/EflSharp/efl/efl_access_component.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_access_component.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Access { /// AT-SPI component mixin +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Access.IComponentConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IComponent : @@ -58,24 +60,36 @@ bool GrabFocus(); /// Top component object at given coordinate Efl.Object GetAccessibleAtPoint(bool screen_coords, int x, int y); /// Highlights accessible widget. returns true if highlight grab has successed, false otherwise. -/// @if MOBILE @since_tizen 4.0 @elseif WEARABLE @since_tizen 3.0 @endif +/// if MOBILE since_tizen 4.0 elseif WEARABLE since_tizen 3.0 endif bool GrabHighlight(); /// Clears highlight of accessible widget. returns true if clear has successed, false otherwise. -/// @if MOBILE @since_tizen 4.0 @elseif WEARABLE @since_tizen 3.0 @endif +/// if MOBILE since_tizen 4.0 elseif WEARABLE since_tizen 3.0 endif bool ClearHighlight(); /// Gets the depth at which the component is shown in relation to other components in the same container. /// Z order of component int ZOrder { - get ; + get; + } + /// Position of accessible widget. + /// X coordinate + (int, int) ScreenPosition { + get; + set; + } + /// Gets position of socket offset. + (int, int) SocketOffset { + get; + set; } } /// AT-SPI component mixin -sealed public class IComponentConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IComponentConcrete : Efl.Eo.EoWrapper , IComponent , Efl.Gfx.IEntity, Efl.Gfx.IStack { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -91,7 +105,8 @@ sealed public class IComponentConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IComponentConcrete(ConstructingHandle ch) : base(ch) { @@ -108,6 +123,7 @@ sealed public class IComponentConcrete : /// Object's visibility state changed, the event value is the new state. /// (Since EFL 1.22) + /// public event EventHandler VisibilityChangedEvt { add @@ -147,7 +163,7 @@ sealed public class IComponentConcrete : } } } - ///Method to raise event VisibilityChangedEvt. + /// Method to raise event VisibilityChangedEvt. public void OnVisibilityChangedEvt(Efl.Gfx.IEntityVisibilityChangedEvt_Args e) { var key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; @@ -170,6 +186,7 @@ sealed public class IComponentConcrete : } /// Object was moved, its position during the event is the new one. /// (Since EFL 1.22) + /// public event EventHandler PositionChangedEvt { add @@ -209,7 +226,7 @@ sealed public class IComponentConcrete : } } } - ///Method to raise event PositionChangedEvt. + /// Method to raise event PositionChangedEvt. public void OnPositionChangedEvt(Efl.Gfx.IEntityPositionChangedEvt_Args e) { var key = "_EFL_GFX_ENTITY_EVENT_POSITION_CHANGED"; @@ -233,6 +250,7 @@ sealed public class IComponentConcrete : } /// Object was resized, its size during the event is the new one. /// (Since EFL 1.22) + /// public event EventHandler SizeChangedEvt { add @@ -272,7 +290,7 @@ sealed public class IComponentConcrete : } } } - ///Method to raise event SizeChangedEvt. + /// Method to raise event SizeChangedEvt. public void OnSizeChangedEvt(Efl.Gfx.IEntitySizeChangedEvt_Args e) { var key = "_EFL_GFX_ENTITY_EVENT_SIZE_CHANGED"; @@ -334,7 +352,7 @@ sealed public class IComponentConcrete : } } } - ///Method to raise event StackingChangedEvt. + /// Method to raise event StackingChangedEvt. public void OnStackingChangedEvt(EventArgs e) { var key = "_EFL_GFX_ENTITY_EVENT_STACKING_CHANGED"; @@ -426,14 +444,14 @@ sealed public class IComponentConcrete : return _ret_var; } /// Highlights accessible widget. returns true if highlight grab has successed, false otherwise. - /// @if MOBILE @since_tizen 4.0 @elseif WEARABLE @since_tizen 3.0 @endif + /// if MOBILE since_tizen 4.0 elseif WEARABLE since_tizen 3.0 endif public bool GrabHighlight() { var _ret_var = Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_highlight_grab_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Clears highlight of accessible widget. returns true if clear has successed, false otherwise. - /// @if MOBILE @since_tizen 4.0 @elseif WEARABLE @since_tizen 3.0 @endif + /// if MOBILE since_tizen 4.0 elseif WEARABLE since_tizen 3.0 endif public bool ClearHighlight() { var _ret_var = Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_highlight_clear_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); @@ -618,6 +636,27 @@ sealed public class IComponentConcrete : public int ZOrder { get { return GetZOrder(); } } + /// Position of accessible widget. + /// X coordinate + public (int, int) ScreenPosition { + get { + int _out_x = default(int); + int _out_y = default(int); + GetScreenPosition(out _out_x,out _out_y); + return (_out_x,_out_y); + } + set { SetScreenPosition( value.Item1, value.Item2); } + } + /// Gets position of socket offset. + public (int, int) SocketOffset { + get { + int _out_x = default(int); + int _out_y = default(int); + GetSocketOffset(out _out_x,out _out_y); + return (_out_x,_out_y); + } + set { SetSocketOffset( value.Item1, value.Item2); } + } /// The 2D position of a canvas object. /// The position is absolute, in pixels, relative to the top-left corner of the window, within its border decorations (application space). /// (Since EFL 1.22) @@ -2092,3 +2131,39 @@ sealed public class IComponentConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_AccessIComponentConcrete_ExtensionMethods { + + + + + public static Efl.BindableProperty Position(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Access.IComponent { + return new Efl.BindableProperty("position", fac); + } + + public static Efl.BindableProperty Size(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Access.IComponent { + return new Efl.BindableProperty("size", fac); + } + + public static Efl.BindableProperty Geometry(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Access.IComponent { + return new Efl.BindableProperty("geometry", fac); + } + + public static Efl.BindableProperty Visible(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Access.IComponent { + return new Efl.BindableProperty("visible", fac); + } + + public static Efl.BindableProperty Scale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Access.IComponent { + return new Efl.BindableProperty("scale", fac); + } + + public static Efl.BindableProperty Layer(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Access.IComponent { + return new Efl.BindableProperty("layer", fac); + } + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_access_editable_text.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_access_editable_text.eo.cs old mode 100644 new mode 100755 index f311b1078..d956d44b0 --- a/internals/src/EflSharp/EflSharp/efl/efl_access_editable_text.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_access_editable_text.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -12,6 +13,7 @@ namespace Access { namespace Editable { /// Elementary editable text interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Access.Editable.ITextConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IText : @@ -48,16 +50,17 @@ bool Paste(int position); /// Editable content property /// Content System.String TextContent { - set ; + set; } } /// Elementary editable text interface -sealed public class ITextConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class ITextConcrete : Efl.Eo.EoWrapper , IText { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -73,7 +76,8 @@ sealed public class ITextConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ITextConcrete(ConstructingHandle ch) : base(ch) { @@ -458,3 +462,13 @@ sealed public class ITextConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Access_EditableITextConcrete_ExtensionMethods { + public static Efl.BindableProperty TextContent(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Access.Editable.IText { + return new Efl.BindableProperty("text_content", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_access_object.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_access_object.eo.cs old mode 100644 new mode 100755 index 264676a49..ee8886c21 --- a/internals/src/EflSharp/EflSharp/efl/efl_access_object.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_access_object.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -77,26 +78,40 @@ namespace Access { public interface IObject : Efl.Eo.IWrapper, IDisposable { - /// Gets an localized string describing accessible object role name. + /// Gets an localized string describing accessible object role name. +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Localized accessible object role name System.String GetLocalizedRoleName(); - /// Accessible name of the object. + /// Accessible name of the object. +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible name System.String GetI18nName(); - /// Accessible name of the object. + /// Accessible name of the object. +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible name void SetI18nName(System.String i18n_name); /// Sets name information callback about widget. -/// @if WEARABLE @since_tizen 3.0 @endif +/// if WEARABLE since_tizen 3.0 endif +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// reading information callback void SetNameCb(Efl.Access.ReadingInfoCb name_cb, System.IntPtr data); - /// Gets an all relations between accessible object and other accessible objects. + /// Gets an all relations between accessible object and other accessible objects. +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible relation set Efl.Access.RelationSet GetRelationSet(); - /// The role of the object in accessibility domain. + /// The role of the object in accessibility domain. +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible role Efl.Access.Role GetRole(); - /// Sets the role of the object in accessibility domain. + /// Sets the role of the object in accessibility domain. +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible role void SetRole(Efl.Access.Role role); /// Gets object's accessible parent. @@ -106,58 +121,70 @@ Efl.Access.IObject GetAccessParent(); /// Accessible parent void SetAccessParent(Efl.Access.IObject parent); /// Sets contextual information callback about widget. -/// @if WEARABLE @since_tizen 3.0 @endif +/// if WEARABLE since_tizen 3.0 endif +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The function called to provide the accessible description. -/// The data passed to @c description_cb. +/// The data passed to c description_cb. void SetDescriptionCb(Efl.Access.ReadingInfoCb description_cb, System.IntPtr data); /// Sets gesture callback to give widget. /// Warning: Please do not abuse this API. The purpose of this API is to support special application such as screen-reader guidance. Before using this API, please check if there is another way. /// -/// @if WEARABLE @since_tizen 3.0 @endif +/// if WEARABLE since_tizen 3.0 endif +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. void SetGestureCb(Efl.Access.GestureCb gesture_cb, System.IntPtr data); - /// Gets object's accessible children. + /// Gets object's accessible children. +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// List of widget's children Eina.List GetAccessChildren(); - /// Gets human-readable string indentifying object accessibility role. + /// Gets human-readable string indentifying object accessibility role. +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible role name System.String GetRoleName(); - /// Gets key-value pairs indentifying object extra attributes. Must be free by a user. + /// Gets key-value pairs indentifying object extra attributes. Must be free by a user. +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// List of object attributes, Must be freed by the user Eina.List GetAttributes(); /// Gets reading information types of an accessible object. if no reading information is set, 0 is returned which means all four reading information types will be read on object highlight -/// @if WEARABLE @since_tizen 3.0 @endif +/// if WEARABLE since_tizen 3.0 endif /// Reading information types Efl.Access.ReadingInfoTypeMask GetReadingInfoType(); /// Sets reading information of an accessible object. If set as 0, existing reading info will be deleted and by default all four reading information types like name, role, state and description will be read on object highlight -/// @if WEARABLE @since_tizen 3.0 @endif +/// if WEARABLE since_tizen 3.0 endif /// Reading information types void SetReadingInfoType(Efl.Access.ReadingInfoTypeMask reading_info); - /// Gets index of the child in parent's children list. + /// Gets index of the child in parent's children list. +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Index in children list int GetIndexInParent(); - /// Gets contextual information about object. + /// Gets contextual information about object. +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible contextual information System.String GetDescription(); - /// Sets widget contextual information. + /// Sets widget contextual information. +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible contextual information void SetDescription(System.String description); - /// Gets set describing object accessible states. + /// Gets set describing object accessible states. +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible state set Efl.Access.StateSet GetStateSet(); - /// Gets highlightable of given widget. -/// @if WEARABLE @since_tizen 3.0 @endif -/// If @c true, the object is highlightable. -bool GetCanHighlight(); - /// Sets highlightable to given widget. -/// @if WEARABLE @since_tizen 3.0 @endif -/// If @c true, the object is highlightable. -void SetCanHighlight(bool can_highlight); /// The translation domain of "name" and "description" properties. /// Translation domain should be set if the application wants to support i18n for accessibility "name" and "description" properties. /// /// When translation domain is set, values of "name" and "description" properties will be translated with the dgettext function using the current translation domain as the "domainname" parameter. /// -/// It is the application developer's responsibility to ensure that translation files are loaded and bound to the translation domain when accessibility is enabled. +/// It is the application developer's responsibility to ensure that translation files are loaded and bound to the translation domain when accessibility is enabled. +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Translation domain System.String GetTranslationDomain(); /// The translation domain of "name" and "description" properties. @@ -165,13 +192,23 @@ System.String GetTranslationDomain(); /// /// When translation domain is set, values of "name" and "description" properties will be translated with the dgettext function using the current translation domain as the "domainname" parameter. /// -/// It is the application developer's responsibility to ensure that translation files are loaded and bound to the translation domain when accessibility is enabled. +/// It is the application developer's responsibility to ensure that translation files are loaded and bound to the translation domain when accessibility is enabled. +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Translation domain void SetTranslationDomain(System.String domain); - /// Handles gesture on given widget. + /// Gets highlightable of given widget. +/// if WEARABLE since_tizen 3.0 endif +/// If c true, the object is highlightable. +bool GetCanHighlight(); + /// Sets highlightable to given widget. +/// if WEARABLE since_tizen 3.0 endif +/// If c true, the object is highlightable. +void SetCanHighlight(bool can_highlight); + /// Handles gesture on given widget. bool GestureDo(Efl.Access.GestureInfo gesture_info); /// Add key-value pair identifying object extra attribute -/// @if WEARABLE @since_tizen 3.0 @endif +/// if WEARABLE since_tizen 3.0 endif /// The string key to give extra information /// The string value to give extra information void AppendAttribute(System.String key, System.String value); @@ -185,17 +222,23 @@ void ClearAttributes(); /// /// Relationships can be queried by Assistive Technology clients to provide customized feedback, improving overall user experience. /// -/// Relationship_append API is asymmetric, which means that appending, for example, relation EFL_ACCESS_RELATION_TYPE_FLOWS_TO from object A to B, do NOT append relation EFL_ACCESS_RELATION_TYPE_FLOWS_FROM from object B to object A. +/// Relationship_append API is asymmetric, which means that appending, for example, relation EFL_ACCESS_RELATION_TYPE_FLOWS_TO from object A to B, do NOT append relation EFL_ACCESS_RELATION_TYPE_FLOWS_FROM from object B to object A. +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Relation type /// Object to relate to /// true if relationship was successfully appended, false otherwise bool AppendRelationship(Efl.Access.RelationType type, Efl.Access.IObject relation_object); /// Removes the relationship between two accessible objects. -/// If relation_object is NULL function removes all relations of the given type. +/// If relation_object is NULL function removes all relations of the given type. +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Relation type /// Object to remove relation from void RelationshipRemove(Efl.Access.RelationType type, Efl.Access.IObject relation_object); - /// Removes all relationships in accessible object. + /// Removes all relationships in accessible object. +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. void ClearRelationships(); /// Notifies accessibility clients about current state of the accessible object. /// Function limits information broadcast to clients to types specified by state_types_mask parameter. @@ -203,144 +246,201 @@ void ClearRelationships(); /// if recursive parameter is set, function will traverse all accessible children and call state_notify function on them. void StateNotify(Efl.Access.StateSet state_types_mask, bool recursive); /// Called when property has changed + /// event EventHandler PropertyChangedEvt; /// Called when children have changed + /// event EventHandler ChildrenChangedEvt; /// Called when state has changed + /// event EventHandler StateChangedEvt; /// Called when boundaries have changed + /// event EventHandler BoundsChangedEvt; /// Called when visibility has changed event EventHandler VisibleDataChangedEvt; /// Called when active state of descendant has changed + /// event EventHandler ActiveDescendantChangedEvt; /// Called when item is added event EventHandler AddedEvt; /// Called when item is removed event EventHandler RemovedEvt; event EventHandler MoveOutedEvt; - /// Gets an localized string describing accessible object role name. + /// Gets an localized string describing accessible object role name. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Localized accessible object role name System.String LocalizedRoleName { - get ; + get; } - /// Accessible name of the object. + /// Accessible name of the object. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Accessible name System.String I18nName { - get ; - set ; + get; + set; } - /// Gets an all relations between accessible object and other accessible objects. + /// Sets name information callback about widget. + /// if WEARABLE since_tizen 3.0 endif + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. + /// reading information callback + (Efl.Access.ReadingInfoCb, System.IntPtr) NameCb { + set; + } + /// Gets an all relations between accessible object and other accessible objects. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Accessible relation set Efl.Access.RelationSet RelationSet { - get ; + get; } - /// The role of the object in accessibility domain. + /// The role of the object in accessibility domain. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Accessible role Efl.Access.Role Role { - get ; - set ; + get; + set; } /// Gets object's accessible parent. /// Accessible parent Efl.Access.IObject AccessParent { - get ; - set ; + get; + set; + } + /// Sets contextual information callback about widget. + /// if WEARABLE since_tizen 3.0 endif + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. + /// The function called to provide the accessible description. + (Efl.Access.ReadingInfoCb, System.IntPtr) DescriptionCb { + set; } - /// Gets object's accessible children. + /// Sets gesture callback to give widget. + /// Warning: Please do not abuse this API. The purpose of this API is to support special application such as screen-reader guidance. Before using this API, please check if there is another way. + /// + /// if WEARABLE since_tizen 3.0 endif + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. + (Efl.Access.GestureCb, System.IntPtr) GestureCb { + set; + } + /// Gets object's accessible children. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// List of widget's children Eina.List AccessChildren { - get ; + get; } - /// Gets human-readable string indentifying object accessibility role. + /// Gets human-readable string indentifying object accessibility role. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Accessible role name System.String RoleName { - get ; + get; } - /// Gets key-value pairs indentifying object extra attributes. Must be free by a user. + /// Gets key-value pairs indentifying object extra attributes. Must be free by a user. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// List of object attributes, Must be freed by the user Eina.List Attributes { - get ; + get; } /// Gets reading information types of an accessible object. if no reading information is set, 0 is returned which means all four reading information types will be read on object highlight - /// @if WEARABLE @since_tizen 3.0 @endif + /// if WEARABLE since_tizen 3.0 endif /// Reading information types Efl.Access.ReadingInfoTypeMask ReadingInfoType { - get ; - set ; + get; + set; } - /// Gets index of the child in parent's children list. + /// Gets index of the child in parent's children list. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Index in children list int IndexInParent { - get ; + get; } - /// Gets contextual information about object. + /// Gets contextual information about object. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Accessible contextual information System.String Description { - get ; - set ; + get; + set; } - /// Gets set describing object accessible states. + /// Gets set describing object accessible states. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Accessible state set Efl.Access.StateSet StateSet { - get ; - } - /// Gets highlightable of given widget. - /// @if WEARABLE @since_tizen 3.0 @endif - /// If @c true, the object is highlightable. - bool CanHighlight { - get ; - set ; + get; } /// The translation domain of "name" and "description" properties. /// Translation domain should be set if the application wants to support i18n for accessibility "name" and "description" properties. /// /// When translation domain is set, values of "name" and "description" properties will be translated with the dgettext function using the current translation domain as the "domainname" parameter. /// - /// It is the application developer's responsibility to ensure that translation files are loaded and bound to the translation domain when accessibility is enabled. + /// It is the application developer's responsibility to ensure that translation files are loaded and bound to the translation domain when accessibility is enabled. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Translation domain System.String TranslationDomain { - get ; - set ; + get; + set; + } + /// Gets highlightable of given widget. + /// if WEARABLE since_tizen 3.0 endif + /// If c true, the object is highlightable. + bool CanHighlight { + get; + set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IObjectPropertyChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when property has changed public System.String arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IObjectChildrenChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when children have changed public Efl.Access.Event.ChildrenChanged.Data arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IObjectStateChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when state has changed public Efl.Access.Event.StateChanged.Data arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IObjectBoundsChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when boundaries have changed public Efl.Access.Event.GeometryChanged.Data arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IObjectActiveDescendantChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when active state of descendant has changed public Efl.Object arg { get; set; } } /// Accessibility accessible mixin -sealed public class IObjectConcrete : +sealed public class IObjectConcrete : Efl.Eo.EoWrapper , IObject { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -356,7 +456,8 @@ sealed public class IObjectConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IObjectConcrete(ConstructingHandle ch) : base(ch) { @@ -372,6 +473,7 @@ sealed public class IObjectConcrete : } /// Called when property has changed + /// public event EventHandler PropertyChangedEvt { add @@ -411,7 +513,7 @@ sealed public class IObjectConcrete : } } } - ///Method to raise event PropertyChangedEvt. + /// Method to raise event PropertyChangedEvt. public void OnPropertyChangedEvt(Efl.Access.IObjectPropertyChangedEvt_Args e) { var key = "_EFL_ACCESS_OBJECT_EVENT_PROPERTY_CHANGED"; @@ -433,6 +535,7 @@ sealed public class IObjectConcrete : } } /// Called when children have changed + /// public event EventHandler ChildrenChangedEvt { add @@ -472,7 +575,7 @@ sealed public class IObjectConcrete : } } } - ///Method to raise event ChildrenChangedEvt. + /// Method to raise event ChildrenChangedEvt. public void OnChildrenChangedEvt(Efl.Access.IObjectChildrenChangedEvt_Args e) { var key = "_EFL_ACCESS_OBJECT_EVENT_CHILDREN_CHANGED"; @@ -495,6 +598,7 @@ sealed public class IObjectConcrete : } } /// Called when state has changed + /// public event EventHandler StateChangedEvt { add @@ -534,7 +638,7 @@ sealed public class IObjectConcrete : } } } - ///Method to raise event StateChangedEvt. + /// Method to raise event StateChangedEvt. public void OnStateChangedEvt(Efl.Access.IObjectStateChangedEvt_Args e) { var key = "_EFL_ACCESS_OBJECT_EVENT_STATE_CHANGED"; @@ -557,6 +661,7 @@ sealed public class IObjectConcrete : } } /// Called when boundaries have changed + /// public event EventHandler BoundsChangedEvt { add @@ -596,7 +701,7 @@ sealed public class IObjectConcrete : } } } - ///Method to raise event BoundsChangedEvt. + /// Method to raise event BoundsChangedEvt. public void OnBoundsChangedEvt(Efl.Access.IObjectBoundsChangedEvt_Args e) { var key = "_EFL_ACCESS_OBJECT_EVENT_BOUNDS_CHANGED"; @@ -657,7 +762,7 @@ sealed public class IObjectConcrete : } } } - ///Method to raise event VisibleDataChangedEvt. + /// Method to raise event VisibleDataChangedEvt. public void OnVisibleDataChangedEvt(EventArgs e) { var key = "_EFL_ACCESS_OBJECT_EVENT_VISIBLE_DATA_CHANGED"; @@ -671,6 +776,7 @@ sealed public class IObjectConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when active state of descendant has changed + /// public event EventHandler ActiveDescendantChangedEvt { add @@ -710,7 +816,7 @@ sealed public class IObjectConcrete : } } } - ///Method to raise event ActiveDescendantChangedEvt. + /// Method to raise event ActiveDescendantChangedEvt. public void OnActiveDescendantChangedEvt(Efl.Access.IObjectActiveDescendantChangedEvt_Args e) { var key = "_EFL_ACCESS_OBJECT_EVENT_ACTIVE_DESCENDANT_CHANGED"; @@ -763,7 +869,7 @@ sealed public class IObjectConcrete : } } } - ///Method to raise event AddedEvt. + /// Method to raise event AddedEvt. public void OnAddedEvt(EventArgs e) { var key = "_EFL_ACCESS_OBJECT_EVENT_ADDED"; @@ -815,7 +921,7 @@ sealed public class IObjectConcrete : } } } - ///Method to raise event RemovedEvt. + /// Method to raise event RemovedEvt. public void OnRemovedEvt(EventArgs e) { var key = "_EFL_ACCESS_OBJECT_EVENT_REMOVED"; @@ -866,7 +972,7 @@ sealed public class IObjectConcrete : } } } - ///Method to raise event MoveOutedEvt. + /// Method to raise event MoveOutedEvt. public void OnMoveOutedEvt(EventArgs e) { var key = "_EFL_ACCESS_OBJECT_EVENT_MOVE_OUTED"; @@ -879,48 +985,62 @@ sealed public class IObjectConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Gets an localized string describing accessible object role name. + /// Gets an localized string describing accessible object role name. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Localized accessible object role name public System.String GetLocalizedRoleName() { var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_localized_role_name_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Accessible name of the object. + /// Accessible name of the object. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible name public System.String GetI18nName() { var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_i18n_name_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Accessible name of the object. + /// Accessible name of the object. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible name public void SetI18nName(System.String i18n_name) { Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_i18n_name_set_ptr.Value.Delegate(this.NativeHandle,i18n_name); Eina.Error.RaiseIfUnhandledException(); } /// Sets name information callback about widget. - /// @if WEARABLE @since_tizen 3.0 @endif + /// if WEARABLE since_tizen 3.0 endif + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// reading information callback public void SetNameCb(Efl.Access.ReadingInfoCb name_cb, System.IntPtr data) { Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_name_cb_set_ptr.Value.Delegate(this.NativeHandle,name_cb, data); Eina.Error.RaiseIfUnhandledException(); } - /// Gets an all relations between accessible object and other accessible objects. + /// Gets an all relations between accessible object and other accessible objects. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible relation set public Efl.Access.RelationSet GetRelationSet() { var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_relation_set_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// The role of the object in accessibility domain. + /// The role of the object in accessibility domain. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible role public Efl.Access.Role GetRole() { var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_role_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Sets the role of the object in accessibility domain. + /// Sets the role of the object in accessibility domain. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible role public void SetRole(Efl.Access.Role role) { Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_role_set_ptr.Value.Delegate(this.NativeHandle,role); @@ -940,9 +1060,11 @@ sealed public class IObjectConcrete : Eina.Error.RaiseIfUnhandledException(); } /// Sets contextual information callback about widget. - /// @if WEARABLE @since_tizen 3.0 @endif + /// if WEARABLE since_tizen 3.0 endif + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The function called to provide the accessible description. - /// The data passed to @c description_cb. + /// The data passed to c description_cb. public void SetDescriptionCb(Efl.Access.ReadingInfoCb description_cb, System.IntPtr data) { Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_description_cb_set_ptr.Value.Delegate(this.NativeHandle,description_cb, data); Eina.Error.RaiseIfUnhandledException(); @@ -950,26 +1072,34 @@ sealed public class IObjectConcrete : /// Sets gesture callback to give widget. /// Warning: Please do not abuse this API. The purpose of this API is to support special application such as screen-reader guidance. Before using this API, please check if there is another way. /// - /// @if WEARABLE @since_tizen 3.0 @endif + /// if WEARABLE since_tizen 3.0 endif + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. public void SetGestureCb(Efl.Access.GestureCb gesture_cb, System.IntPtr data) { Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_gesture_cb_set_ptr.Value.Delegate(this.NativeHandle,gesture_cb, data); Eina.Error.RaiseIfUnhandledException(); } - /// Gets object's accessible children. + /// Gets object's accessible children. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// List of widget's children public Eina.List GetAccessChildren() { var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_access_children_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return new Eina.List(_ret_var, true, false); } - /// Gets human-readable string indentifying object accessibility role. + /// Gets human-readable string indentifying object accessibility role. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible role name public System.String GetRoleName() { var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_role_name_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Gets key-value pairs indentifying object extra attributes. Must be free by a user. + /// Gets key-value pairs indentifying object extra attributes. Must be free by a user. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// List of object attributes, Must be freed by the user public Eina.List GetAttributes() { var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_attributes_get_ptr.Value.Delegate(this.NativeHandle); @@ -977,7 +1107,7 @@ sealed public class IObjectConcrete : return new Eina.List(_ret_var, true, true); } /// Gets reading information types of an accessible object. if no reading information is set, 0 is returned which means all four reading information types will be read on object highlight - /// @if WEARABLE @since_tizen 3.0 @endif + /// if WEARABLE since_tizen 3.0 endif /// Reading information types public Efl.Access.ReadingInfoTypeMask GetReadingInfoType() { var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_reading_info_type_get_ptr.Value.Delegate(this.NativeHandle); @@ -985,60 +1115,55 @@ sealed public class IObjectConcrete : return _ret_var; } /// Sets reading information of an accessible object. If set as 0, existing reading info will be deleted and by default all four reading information types like name, role, state and description will be read on object highlight - /// @if WEARABLE @since_tizen 3.0 @endif + /// if WEARABLE since_tizen 3.0 endif /// Reading information types public void SetReadingInfoType(Efl.Access.ReadingInfoTypeMask reading_info) { Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_reading_info_type_set_ptr.Value.Delegate(this.NativeHandle,reading_info); Eina.Error.RaiseIfUnhandledException(); } - /// Gets index of the child in parent's children list. + /// Gets index of the child in parent's children list. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Index in children list public int GetIndexInParent() { var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_index_in_parent_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Gets contextual information about object. + /// Gets contextual information about object. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible contextual information public System.String GetDescription() { var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_description_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Sets widget contextual information. + /// Sets widget contextual information. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible contextual information public void SetDescription(System.String description) { Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_description_set_ptr.Value.Delegate(this.NativeHandle,description); Eina.Error.RaiseIfUnhandledException(); } - /// Gets set describing object accessible states. + /// Gets set describing object accessible states. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible state set public Efl.Access.StateSet GetStateSet() { var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_state_set_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Gets highlightable of given widget. - /// @if WEARABLE @since_tizen 3.0 @endif - /// If @c true, the object is highlightable. - public bool GetCanHighlight() { - var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_can_highlight_get_ptr.Value.Delegate(this.NativeHandle); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Sets highlightable to given widget. - /// @if WEARABLE @since_tizen 3.0 @endif - /// If @c true, the object is highlightable. - public void SetCanHighlight(bool can_highlight) { - Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_can_highlight_set_ptr.Value.Delegate(this.NativeHandle,can_highlight); - Eina.Error.RaiseIfUnhandledException(); - } /// The translation domain of "name" and "description" properties. /// Translation domain should be set if the application wants to support i18n for accessibility "name" and "description" properties. /// /// When translation domain is set, values of "name" and "description" properties will be translated with the dgettext function using the current translation domain as the "domainname" parameter. /// - /// It is the application developer's responsibility to ensure that translation files are loaded and bound to the translation domain when accessibility is enabled. + /// It is the application developer's responsibility to ensure that translation files are loaded and bound to the translation domain when accessibility is enabled. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Translation domain public System.String GetTranslationDomain() { var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_translation_domain_get_ptr.Value.Delegate(this.NativeHandle); @@ -1050,19 +1175,38 @@ sealed public class IObjectConcrete : /// /// When translation domain is set, values of "name" and "description" properties will be translated with the dgettext function using the current translation domain as the "domainname" parameter. /// - /// It is the application developer's responsibility to ensure that translation files are loaded and bound to the translation domain when accessibility is enabled. + /// It is the application developer's responsibility to ensure that translation files are loaded and bound to the translation domain when accessibility is enabled. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Translation domain public void SetTranslationDomain(System.String domain) { Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_translation_domain_set_ptr.Value.Delegate(this.NativeHandle,domain); Eina.Error.RaiseIfUnhandledException(); } - /// Get root object of accessible object hierarchy + /// Get root object of accessible object hierarchy + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Root object public static Efl.Object GetAccessRoot() { var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_access_root_get_ptr.Value.Delegate(); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } + /// Gets highlightable of given widget. + /// if WEARABLE since_tizen 3.0 endif + /// If c true, the object is highlightable. + public bool GetCanHighlight() { + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_can_highlight_get_ptr.Value.Delegate(this.NativeHandle); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Sets highlightable to given widget. + /// if WEARABLE since_tizen 3.0 endif + /// If c true, the object is highlightable. + public void SetCanHighlight(bool can_highlight) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_can_highlight_set_ptr.Value.Delegate(this.NativeHandle,can_highlight); + Eina.Error.RaiseIfUnhandledException(); + } /// Handles gesture on given widget. public bool GestureDo(Efl.Access.GestureInfo gesture_info) { Efl.Access.GestureInfo.NativeStruct _in_gesture_info = gesture_info; @@ -1071,7 +1215,7 @@ sealed public class IObjectConcrete : return _ret_var; } /// Add key-value pair identifying object extra attribute - /// @if WEARABLE @since_tizen 3.0 @endif + /// if WEARABLE since_tizen 3.0 endif /// The string key to give extra information /// The string value to give extra information public void AppendAttribute(System.String key, System.String value) { @@ -1089,7 +1233,9 @@ sealed public class IObjectConcrete : Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_attributes_clear_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } - /// Register accessibility event listener + /// Register accessibility event listener + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Callback /// Data /// Event handler @@ -1098,13 +1244,17 @@ sealed public class IObjectConcrete : Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Deregister accessibility event listener + /// Deregister accessibility event listener + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Event handler public static void DelEventHandler(Efl.Access.Event.Handler handler) { Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_event_handler_del_ptr.Value.Delegate(handler); Eina.Error.RaiseIfUnhandledException(); } - /// Emit event + /// Emit event + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessibility object. /// Accessibility event type. /// Accessibility event details. @@ -1118,7 +1268,9 @@ sealed public class IObjectConcrete : /// /// Relationships can be queried by Assistive Technology clients to provide customized feedback, improving overall user experience. /// - /// Relationship_append API is asymmetric, which means that appending, for example, relation EFL_ACCESS_RELATION_TYPE_FLOWS_TO from object A to B, do NOT append relation EFL_ACCESS_RELATION_TYPE_FLOWS_FROM from object B to object A. + /// Relationship_append API is asymmetric, which means that appending, for example, relation EFL_ACCESS_RELATION_TYPE_FLOWS_TO from object A to B, do NOT append relation EFL_ACCESS_RELATION_TYPE_FLOWS_FROM from object B to object A. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Relation type /// Object to relate to /// true if relationship was successfully appended, false otherwise @@ -1128,14 +1280,18 @@ sealed public class IObjectConcrete : return _ret_var; } /// Removes the relationship between two accessible objects. - /// If relation_object is NULL function removes all relations of the given type. + /// If relation_object is NULL function removes all relations of the given type. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Relation type /// Object to remove relation from public void RelationshipRemove(Efl.Access.RelationType type, Efl.Access.IObject relation_object) { Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_relationship_remove_ptr.Value.Delegate(this.NativeHandle,type, relation_object); Eina.Error.RaiseIfUnhandledException(); } - /// Removes all relationships in accessible object. + /// Removes all relationships in accessible object. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. public void ClearRelationships() { Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_relationships_clear_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); @@ -1148,23 +1304,39 @@ sealed public class IObjectConcrete : Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_state_notify_ptr.Value.Delegate(this.NativeHandle,state_types_mask, recursive); Eina.Error.RaiseIfUnhandledException(); } - /// Gets an localized string describing accessible object role name. + /// Gets an localized string describing accessible object role name. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Localized accessible object role name public System.String LocalizedRoleName { get { return GetLocalizedRoleName(); } } - /// Accessible name of the object. + /// Accessible name of the object. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Accessible name public System.String I18nName { get { return GetI18nName(); } set { SetI18nName(value); } } - /// Gets an all relations between accessible object and other accessible objects. + /// Sets name information callback about widget. + /// if WEARABLE since_tizen 3.0 endif + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. + /// reading information callback + public (Efl.Access.ReadingInfoCb, System.IntPtr) NameCb { + set { SetNameCb( value.Item1, value.Item2); } + } + /// Gets an all relations between accessible object and other accessible objects. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Accessible relation set public Efl.Access.RelationSet RelationSet { get { return GetRelationSet(); } } - /// The role of the object in accessibility domain. + /// The role of the object in accessibility domain. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Accessible role public Efl.Access.Role Role { get { return GetRole(); } @@ -1176,67 +1348,100 @@ sealed public class IObjectConcrete : get { return GetAccessParent(); } set { SetAccessParent(value); } } - /// Gets object's accessible children. + /// Sets contextual information callback about widget. + /// if WEARABLE since_tizen 3.0 endif + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. + /// The function called to provide the accessible description. + public (Efl.Access.ReadingInfoCb, System.IntPtr) DescriptionCb { + set { SetDescriptionCb( value.Item1, value.Item2); } + } + /// Sets gesture callback to give widget. + /// Warning: Please do not abuse this API. The purpose of this API is to support special application such as screen-reader guidance. Before using this API, please check if there is another way. + /// + /// if WEARABLE since_tizen 3.0 endif + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. + public (Efl.Access.GestureCb, System.IntPtr) GestureCb { + set { SetGestureCb( value.Item1, value.Item2); } + } + /// Gets object's accessible children. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// List of widget's children public Eina.List AccessChildren { get { return GetAccessChildren(); } } - /// Gets human-readable string indentifying object accessibility role. + /// Gets human-readable string indentifying object accessibility role. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Accessible role name public System.String RoleName { get { return GetRoleName(); } } - /// Gets key-value pairs indentifying object extra attributes. Must be free by a user. + /// Gets key-value pairs indentifying object extra attributes. Must be free by a user. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// List of object attributes, Must be freed by the user public Eina.List Attributes { get { return GetAttributes(); } } /// Gets reading information types of an accessible object. if no reading information is set, 0 is returned which means all four reading information types will be read on object highlight - /// @if WEARABLE @since_tizen 3.0 @endif + /// if WEARABLE since_tizen 3.0 endif /// Reading information types public Efl.Access.ReadingInfoTypeMask ReadingInfoType { get { return GetReadingInfoType(); } set { SetReadingInfoType(value); } } - /// Gets index of the child in parent's children list. + /// Gets index of the child in parent's children list. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Index in children list public int IndexInParent { get { return GetIndexInParent(); } } - /// Gets contextual information about object. + /// Gets contextual information about object. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Accessible contextual information public System.String Description { get { return GetDescription(); } set { SetDescription(value); } } - /// Gets set describing object accessible states. + /// Gets set describing object accessible states. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Accessible state set public Efl.Access.StateSet StateSet { get { return GetStateSet(); } } - /// Gets highlightable of given widget. - /// @if WEARABLE @since_tizen 3.0 @endif - /// If @c true, the object is highlightable. - public bool CanHighlight { - get { return GetCanHighlight(); } - set { SetCanHighlight(value); } - } /// The translation domain of "name" and "description" properties. /// Translation domain should be set if the application wants to support i18n for accessibility "name" and "description" properties. /// /// When translation domain is set, values of "name" and "description" properties will be translated with the dgettext function using the current translation domain as the "domainname" parameter. /// - /// It is the application developer's responsibility to ensure that translation files are loaded and bound to the translation domain when accessibility is enabled. + /// It is the application developer's responsibility to ensure that translation files are loaded and bound to the translation domain when accessibility is enabled. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Translation domain public System.String TranslationDomain { get { return GetTranslationDomain(); } set { SetTranslationDomain(value); } } - /// Get root object of accessible object hierarchy + /// Get root object of accessible object hierarchy + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Root object public static Efl.Object AccessRoot { get { return GetAccessRoot(); } } + /// Gets highlightable of given widget. + /// if WEARABLE since_tizen 3.0 endif + /// If c true, the object is highlightable. + public bool CanHighlight { + get { return GetCanHighlight(); } + set { SetCanHighlight(value); } + } private static IntPtr GetEflClassStatic() { return Efl.Access.IObjectConcrete.efl_access_object_mixin_get(); @@ -1453,44 +1658,44 @@ sealed public class IObjectConcrete : descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_state_set_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_state_set_get_static_delegate) }); } - if (efl_access_object_can_highlight_get_static_delegate == null) + if (efl_access_object_translation_domain_get_static_delegate == null) { - efl_access_object_can_highlight_get_static_delegate = new efl_access_object_can_highlight_get_delegate(can_highlight_get); + efl_access_object_translation_domain_get_static_delegate = new efl_access_object_translation_domain_get_delegate(translation_domain_get); } - if (methods.FirstOrDefault(m => m.Name == "GetCanHighlight") != null) + if (methods.FirstOrDefault(m => m.Name == "GetTranslationDomain") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_can_highlight_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_can_highlight_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_translation_domain_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_translation_domain_get_static_delegate) }); } - if (efl_access_object_can_highlight_set_static_delegate == null) + if (efl_access_object_translation_domain_set_static_delegate == null) { - efl_access_object_can_highlight_set_static_delegate = new efl_access_object_can_highlight_set_delegate(can_highlight_set); + efl_access_object_translation_domain_set_static_delegate = new efl_access_object_translation_domain_set_delegate(translation_domain_set); } - if (methods.FirstOrDefault(m => m.Name == "SetCanHighlight") != null) + if (methods.FirstOrDefault(m => m.Name == "SetTranslationDomain") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_can_highlight_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_can_highlight_set_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_translation_domain_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_translation_domain_set_static_delegate) }); } - if (efl_access_object_translation_domain_get_static_delegate == null) + if (efl_access_object_can_highlight_get_static_delegate == null) { - efl_access_object_translation_domain_get_static_delegate = new efl_access_object_translation_domain_get_delegate(translation_domain_get); + efl_access_object_can_highlight_get_static_delegate = new efl_access_object_can_highlight_get_delegate(can_highlight_get); } - if (methods.FirstOrDefault(m => m.Name == "GetTranslationDomain") != null) + if (methods.FirstOrDefault(m => m.Name == "GetCanHighlight") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_translation_domain_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_translation_domain_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_can_highlight_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_can_highlight_get_static_delegate) }); } - if (efl_access_object_translation_domain_set_static_delegate == null) + if (efl_access_object_can_highlight_set_static_delegate == null) { - efl_access_object_translation_domain_set_static_delegate = new efl_access_object_translation_domain_set_delegate(translation_domain_set); + efl_access_object_can_highlight_set_static_delegate = new efl_access_object_can_highlight_set_delegate(can_highlight_set); } - if (methods.FirstOrDefault(m => m.Name == "SetTranslationDomain") != null) + if (methods.FirstOrDefault(m => m.Name == "SetCanHighlight") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_translation_domain_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_translation_domain_set_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_can_highlight_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_can_highlight_set_static_delegate) }); } if (efl_access_object_gesture_do_static_delegate == null) @@ -2296,24 +2501,24 @@ sealed public class IObjectConcrete : private static efl_access_object_state_set_get_delegate efl_access_object_state_set_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_access_object_can_highlight_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_access_object_translation_domain_get_delegate(System.IntPtr obj, System.IntPtr pd); - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_access_object_can_highlight_get_api_delegate(System.IntPtr obj); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_access_object_translation_domain_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_can_highlight_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_can_highlight_get"); + public static Efl.Eo.FunctionWrapper efl_access_object_translation_domain_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_translation_domain_get"); - private static bool can_highlight_get(System.IntPtr obj, System.IntPtr pd) + private static System.String translation_domain_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function efl_access_object_can_highlight_get was called"); + Eina.Log.Debug("function efl_access_object_translation_domain_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - bool _ret_var = default(bool); + System.String _ret_var = default(System.String); try { - _ret_var = ((IObject)ws.Target).GetCanHighlight(); + _ret_var = ((IObject)ws.Target).GetTranslationDomain(); } catch (Exception e) { @@ -2326,30 +2531,30 @@ sealed public class IObjectConcrete : } else { - return efl_access_object_can_highlight_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + return efl_access_object_translation_domain_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static efl_access_object_can_highlight_get_delegate efl_access_object_can_highlight_get_static_delegate; + private static efl_access_object_translation_domain_get_delegate efl_access_object_translation_domain_get_static_delegate; - private delegate void efl_access_object_can_highlight_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_highlight); + private delegate void efl_access_object_translation_domain_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); - public delegate void efl_access_object_can_highlight_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_highlight); + public delegate void efl_access_object_translation_domain_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); - public static Efl.Eo.FunctionWrapper efl_access_object_can_highlight_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_can_highlight_set"); + public static Efl.Eo.FunctionWrapper efl_access_object_translation_domain_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_translation_domain_set"); - private static void can_highlight_set(System.IntPtr obj, System.IntPtr pd, bool can_highlight) + private static void translation_domain_set(System.IntPtr obj, System.IntPtr pd, System.String domain) { - Eina.Log.Debug("function efl_access_object_can_highlight_set was called"); + Eina.Log.Debug("function efl_access_object_translation_domain_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ((IObject)ws.Target).SetCanHighlight(can_highlight); + ((IObject)ws.Target).SetTranslationDomain(domain); } catch (Exception e) { @@ -2361,30 +2566,30 @@ sealed public class IObjectConcrete : } else { - efl_access_object_can_highlight_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_highlight); + efl_access_object_translation_domain_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), domain); } } - private static efl_access_object_can_highlight_set_delegate efl_access_object_can_highlight_set_static_delegate; + private static efl_access_object_translation_domain_set_delegate efl_access_object_translation_domain_set_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - private delegate System.String efl_access_object_translation_domain_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Object efl_access_object_access_root_get_delegate(); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - public delegate System.String efl_access_object_translation_domain_get_api_delegate(System.IntPtr obj); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Object efl_access_object_access_root_get_api_delegate(); - public static Efl.Eo.FunctionWrapper efl_access_object_translation_domain_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_translation_domain_get"); + public static Efl.Eo.FunctionWrapper efl_access_object_access_root_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_access_root_get"); - private static System.String translation_domain_get(System.IntPtr obj, System.IntPtr pd) + private static Efl.Object access_root_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function efl_access_object_translation_domain_get was called"); + Eina.Log.Debug("function efl_access_object_access_root_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - System.String _ret_var = default(System.String); + Efl.Object _ret_var = default(Efl.Object); try { - _ret_var = ((IObject)ws.Target).GetTranslationDomain(); + _ret_var = IObjectConcrete.GetAccessRoot(); } catch (Exception e) { @@ -2397,30 +2602,28 @@ sealed public class IObjectConcrete : } else { - return efl_access_object_translation_domain_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + return efl_access_object_access_root_get_ptr.Value.Delegate(); } } - private static efl_access_object_translation_domain_get_delegate efl_access_object_translation_domain_get_static_delegate; - - - private delegate void efl_access_object_translation_domain_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_object_can_highlight_get_delegate(System.IntPtr obj, System.IntPtr pd); - - public delegate void efl_access_object_translation_domain_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_object_can_highlight_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_translation_domain_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_translation_domain_set"); + public static Efl.Eo.FunctionWrapper efl_access_object_can_highlight_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_can_highlight_get"); - private static void translation_domain_set(System.IntPtr obj, System.IntPtr pd, System.String domain) + private static bool can_highlight_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function efl_access_object_translation_domain_set was called"); + Eina.Log.Debug("function efl_access_object_can_highlight_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + bool _ret_var = default(bool); try { - ((IObject)ws.Target).SetTranslationDomain(domain); + _ret_var = ((IObject)ws.Target).GetCanHighlight(); } catch (Exception e) { @@ -2428,34 +2631,35 @@ sealed public class IObjectConcrete : Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + return _ret_var; + } else { - efl_access_object_translation_domain_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), domain); + return efl_access_object_can_highlight_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static efl_access_object_translation_domain_set_delegate efl_access_object_translation_domain_set_static_delegate; + private static efl_access_object_can_highlight_get_delegate efl_access_object_can_highlight_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Object efl_access_object_access_root_get_delegate(); + + private delegate void efl_access_object_can_highlight_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_highlight); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Object efl_access_object_access_root_get_api_delegate(); + + public delegate void efl_access_object_can_highlight_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_highlight); - public static Efl.Eo.FunctionWrapper efl_access_object_access_root_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_access_root_get"); + public static Efl.Eo.FunctionWrapper efl_access_object_can_highlight_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_can_highlight_set"); - private static Efl.Object access_root_get(System.IntPtr obj, System.IntPtr pd) + private static void can_highlight_set(System.IntPtr obj, System.IntPtr pd, bool can_highlight) { - Eina.Log.Debug("function efl_access_object_access_root_get was called"); + Eina.Log.Debug("function efl_access_object_can_highlight_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - Efl.Object _ret_var = default(Efl.Object); + try { - _ret_var = IObjectConcrete.GetAccessRoot(); + ((IObject)ws.Target).SetCanHighlight(can_highlight); } catch (Exception e) { @@ -2463,15 +2667,16 @@ sealed public class IObjectConcrete : Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - + } else { - return efl_access_object_access_root_get_ptr.Value.Delegate(); + efl_access_object_can_highlight_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_highlight); } } + private static efl_access_object_can_highlight_set_delegate efl_access_object_can_highlight_set_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_object_gesture_do_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.GestureInfo.NativeStruct gesture_info); @@ -2864,6 +3069,51 @@ sealed public class IObjectConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_AccessIObjectConcrete_ExtensionMethods { + + public static Efl.BindableProperty I18nName(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Access.IObject { + return new Efl.BindableProperty("i18n_name", fac); + } + + + + public static Efl.BindableProperty Role(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Access.IObject { + return new Efl.BindableProperty("role", fac); + } + + public static Efl.BindableProperty AccessParent(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Access.IObject { + return new Efl.BindableProperty("access_parent", fac); + } + + + + + + + public static Efl.BindableProperty ReadingInfoType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Access.IObject { + return new Efl.BindableProperty("reading_info_type", fac); + } + + + public static Efl.BindableProperty Description(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Access.IObject { + return new Efl.BindableProperty("description", fac); + } + + + public static Efl.BindableProperty TranslationDomain(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Access.IObject { + return new Efl.BindableProperty("translation_domain", fac); + } + + + public static Efl.BindableProperty CanHighlight(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Access.IObject { + return new Efl.BindableProperty("can_highlight", fac); + } + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Access { @@ -3375,10 +3625,10 @@ namespace Event { [Efl.Eo.BindingEntity] public struct Handler { - ///Placeholder field + /// Placeholder field public IntPtr field; - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator Handler(IntPtr ptr) { var tmp = (Handler.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Handler.NativeStruct)); @@ -3387,19 +3637,19 @@ public struct Handler #pragma warning disable CS1591 - ///Internal wrapper for struct Handler. + /// Internal wrapper for struct Handler. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { internal IntPtr field; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator Handler.NativeStruct(Handler _external_struct) { var _internal_struct = new Handler.NativeStruct(); return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator Handler(Handler.NativeStruct _internal_struct) { var _external_struct = new Handler(); @@ -3432,10 +3682,13 @@ namespace StateChanged { public struct Data { /// Type of the state changed event + /// Describes the possible states for an object visible to accessibility clients. public Efl.Access.StateType Type; /// New value public bool New_value; - ///Constructor for Data. + /// Constructor for Data. + /// Type of the state changed event; + /// New value; public Data( Efl.Access.StateType Type = default(Efl.Access.StateType), bool New_value = default(bool) ) @@ -3444,8 +3697,8 @@ public struct Data this.New_value = New_value; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator Data(IntPtr ptr) { var tmp = (Data.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Data.NativeStruct)); @@ -3454,15 +3707,15 @@ public struct Data #pragma warning disable CS1591 - ///Internal wrapper for struct Data. + /// Internal wrapper for struct Data. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { public Efl.Access.StateType Type; - ///Internal wrapper for field New_value + /// Internal wrapper for field New_value public System.Byte New_value; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator Data.NativeStruct(Data _external_struct) { var _internal_struct = new Data.NativeStruct(); @@ -3471,7 +3724,7 @@ public struct Data return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator Data(Data.NativeStruct _internal_struct) { var _external_struct = new Data(); @@ -3515,7 +3768,11 @@ public struct Data public int Width; /// Height public int Height; - ///Constructor for Data. + /// Constructor for Data. + /// X coordinate; + /// Y coordinate; + /// Width; + /// Height; public Data( int X = default(int), int Y = default(int), @@ -3528,8 +3785,8 @@ public struct Data this.Height = Height; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator Data(IntPtr ptr) { var tmp = (Data.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Data.NativeStruct)); @@ -3538,7 +3795,7 @@ public struct Data #pragma warning disable CS1591 - ///Internal wrapper for struct Data. + /// Internal wrapper for struct Data. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -3550,7 +3807,7 @@ public struct Data public int Width; public int Height; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator Data.NativeStruct(Data _external_struct) { var _internal_struct = new Data.NativeStruct(); @@ -3561,7 +3818,7 @@ public struct Data return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator Data(Data.NativeStruct _internal_struct) { var _external_struct = new Data(); @@ -3603,7 +3860,9 @@ public struct Data public bool Is_added; /// Child object public Efl.Object Child; - ///Constructor for Data. + /// Constructor for Data. + /// Child is added or not; + /// Child object; public Data( bool Is_added = default(bool), Efl.Object Child = default(Efl.Object) ) @@ -3612,8 +3871,8 @@ public struct Data this.Child = Child; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator Data(IntPtr ptr) { var tmp = (Data.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Data.NativeStruct)); @@ -3622,15 +3881,15 @@ public struct Data #pragma warning disable CS1591 - ///Internal wrapper for struct Data. + /// Internal wrapper for struct Data. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { - ///Internal wrapper for field Is_added + /// Internal wrapper for field Is_added public System.Byte Is_added; - ///Internal wrapper for field Child + /// Internal wrapper for field Child public System.IntPtr Child; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator Data.NativeStruct(Data _external_struct) { var _internal_struct = new Data.NativeStruct(); @@ -3639,7 +3898,7 @@ public struct Data return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator Data(Data.NativeStruct _internal_struct) { var _external_struct = new Data(); @@ -3676,7 +3935,9 @@ public struct Attribute public System.String Key; /// Attribute value public System.String Value; - ///Constructor for Attribute. + /// Constructor for Attribute. + /// Attribute key; + /// Attribute value; public Attribute( System.String Key = default(System.String), System.String Value = default(System.String) ) @@ -3685,8 +3946,8 @@ public struct Attribute this.Value = Value; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator Attribute(IntPtr ptr) { var tmp = (Attribute.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Attribute.NativeStruct)); @@ -3695,15 +3956,15 @@ public struct Attribute #pragma warning disable CS1591 - ///Internal wrapper for struct Attribute. + /// Internal wrapper for struct Attribute. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { - ///Internal wrapper for field Key + /// Internal wrapper for field Key public System.IntPtr Key; - ///Internal wrapper for field Value + /// Internal wrapper for field Value public System.IntPtr Value; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator Attribute.NativeStruct(Attribute _external_struct) { var _internal_struct = new Attribute.NativeStruct(); @@ -3712,7 +3973,7 @@ public struct Attribute return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator Attribute(Attribute.NativeStruct _internal_struct) { var _external_struct = new Attribute(); @@ -3741,10 +4002,13 @@ namespace Access { public struct Relation { /// Relation type + /// Describes the relationship between two objects. public Efl.Access.RelationType Type; /// List with relation objects public Eina.List Objects; - ///Constructor for Relation. + /// Constructor for Relation. + /// Relation type; + /// List with relation objects; public Relation( Efl.Access.RelationType Type = default(Efl.Access.RelationType), Eina.List Objects = default(Eina.List) ) @@ -3753,8 +4017,8 @@ public struct Relation this.Objects = Objects; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator Relation(IntPtr ptr) { var tmp = (Relation.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Relation.NativeStruct)); @@ -3763,7 +4027,7 @@ public struct Relation #pragma warning disable CS1591 - ///Internal wrapper for struct Relation. + /// Internal wrapper for struct Relation. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -3771,7 +4035,7 @@ public struct Relation public Efl.Access.RelationType Type; public System.IntPtr Objects; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator Relation.NativeStruct(Relation _external_struct) { var _internal_struct = new Relation.NativeStruct(); @@ -3780,7 +4044,7 @@ public struct Relation return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator Relation(Relation.NativeStruct _internal_struct) { var _external_struct = new Relation(); @@ -3821,7 +4085,14 @@ public struct GestureInfo public Efl.Access.GestureState State; /// gesture occurance time public uint Event_time; - ///Constructor for GestureInfo. + /// Constructor for GestureInfo. + /// Gesture type; + /// start gesture x co-ordinate; + /// start gesture y co-ordinate; + /// end gesture x co-ordinate; + /// end gesture y co-ordinate; + /// state of gesture; + /// gesture occurance time; public GestureInfo( Efl.Access.Gesture Type = default(Efl.Access.Gesture), int X_beg = default(int), @@ -3840,8 +4111,8 @@ public struct GestureInfo this.Event_time = Event_time; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator GestureInfo(IntPtr ptr) { var tmp = (GestureInfo.NativeStruct)Marshal.PtrToStructure(ptr, typeof(GestureInfo.NativeStruct)); @@ -3850,7 +4121,7 @@ public struct GestureInfo #pragma warning disable CS1591 - ///Internal wrapper for struct GestureInfo. + /// Internal wrapper for struct GestureInfo. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -3868,7 +4139,7 @@ public struct GestureInfo public Efl.Access.GestureState State; public uint Event_time; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator GestureInfo.NativeStruct(GestureInfo _external_struct) { var _internal_struct = new GestureInfo.NativeStruct(); @@ -3882,7 +4153,7 @@ public struct GestureInfo return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator GestureInfo(GestureInfo.NativeStruct _internal_struct) { var _external_struct = new GestureInfo(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_access_selection.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_access_selection.eo.cs old mode 100644 new mode 100755 index c366d2de9..6fbc66abb --- a/internals/src/EflSharp/EflSharp/efl/efl_access_selection.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_access_selection.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Access { /// Elementary access selection interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Access.ISelectionConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface ISelection : @@ -49,16 +51,17 @@ bool ChildDeselect(int child_index); /// Gets the number of currently selected children /// Number of currently selected children int SelectedChildrenCount { - get ; + get; } } /// Elementary access selection interface -sealed public class ISelectionConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class ISelectionConcrete : Efl.Eo.EoWrapper , ISelection { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -74,7 +77,8 @@ sealed public class ISelectionConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ISelectionConcrete(ConstructingHandle ch) : base(ch) { @@ -128,7 +132,7 @@ sealed public class ISelectionConcrete : } } } - ///Method to raise event AccessSelectionChangedEvt. + /// Method to raise event AccessSelectionChangedEvt. public void OnAccessSelectionChangedEvt(EventArgs e) { var key = "_EFL_ACCESS_SELECTION_EVENT_ACCESS_SELECTION_CHANGED"; @@ -610,3 +614,11 @@ sealed public class ISelectionConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_AccessISelectionConcrete_ExtensionMethods { + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_access_text.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_access_text.eo.cs old mode 100644 new mode 100755 index 4052e7696..09e986ae7 --- a/internals/src/EflSharp/EflSharp/efl/efl_access_text.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_access_text.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Access { /// Elementary accessible text interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Access.ITextConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IText : @@ -107,52 +109,57 @@ bool SelectionRemove(int selection_number); /// Caret moved event EventHandler AccessTextCaretMovedEvt; /// Text was inserted + /// event EventHandler AccessTextInsertedEvt; /// Text was removed + /// event EventHandler AccessTextRemovedEvt; /// Text selection has changed event EventHandler AccessTextSelectionChangedEvt; /// Caret offset property /// Offset int CaretOffset { - get ; - set ; + get; + set; } /// Default attributes /// List of default attributes Eina.List DefaultAttributes { - get ; + get; } /// Character count /// Character count int CharacterCount { - get ; + get; } /// Selection count property /// Selection counter int SelectionsCount { - get ; + get; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ITextAccessTextInsertedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Text was inserted public Efl.Access.TextChangeInfo arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ITextAccessTextRemovedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Text was removed public Efl.Access.TextChangeInfo arg { get; set; } } /// Elementary accessible text interface -sealed public class ITextConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class ITextConcrete : Efl.Eo.EoWrapper , IText { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -168,7 +175,8 @@ sealed public class ITextConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ITextConcrete(ConstructingHandle ch) : base(ch) { @@ -222,7 +230,7 @@ sealed public class ITextConcrete : } } } - ///Method to raise event AccessTextCaretMovedEvt. + /// Method to raise event AccessTextCaretMovedEvt. public void OnAccessTextCaretMovedEvt(EventArgs e) { var key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_CARET_MOVED"; @@ -236,6 +244,7 @@ sealed public class ITextConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Text was inserted + /// public event EventHandler AccessTextInsertedEvt { add @@ -275,7 +284,7 @@ sealed public class ITextConcrete : } } } - ///Method to raise event AccessTextInsertedEvt. + /// Method to raise event AccessTextInsertedEvt. public void OnAccessTextInsertedEvt(Efl.Access.ITextAccessTextInsertedEvt_Args e) { var key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_INSERTED"; @@ -298,6 +307,7 @@ sealed public class ITextConcrete : } } /// Text was removed + /// public event EventHandler AccessTextRemovedEvt { add @@ -337,7 +347,7 @@ sealed public class ITextConcrete : } } } - ///Method to raise event AccessTextRemovedEvt. + /// Method to raise event AccessTextRemovedEvt. public void OnAccessTextRemovedEvt(Efl.Access.ITextAccessTextRemovedEvt_Args e) { var key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_REMOVED"; @@ -398,7 +408,7 @@ sealed public class ITextConcrete : } } } - ///Method to raise event AccessTextSelectionChangedEvt. + /// Method to raise event AccessTextSelectionChangedEvt. public void OnAccessTextSelectionChangedEvt(EventArgs e) { var key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_SELECTION_CHANGED"; @@ -1476,6 +1486,29 @@ sealed public class ITextConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_AccessITextConcrete_ExtensionMethods { + + + + public static Efl.BindableProperty CaretOffset(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Access.IText { + return new Efl.BindableProperty("caret_offset", fac); + } + + + + + + + + + + + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Access { @@ -1535,7 +1568,9 @@ public struct TextAttribute public System.String Name; /// Text attribute value public System.String Value; - ///Constructor for TextAttribute. + /// Constructor for TextAttribute. + /// Text attribute name; + /// Text attribute value; public TextAttribute( System.String Name = default(System.String), System.String Value = default(System.String) ) @@ -1544,8 +1579,8 @@ public struct TextAttribute this.Value = Value; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator TextAttribute(IntPtr ptr) { var tmp = (TextAttribute.NativeStruct)Marshal.PtrToStructure(ptr, typeof(TextAttribute.NativeStruct)); @@ -1554,15 +1589,15 @@ public struct TextAttribute #pragma warning disable CS1591 - ///Internal wrapper for struct TextAttribute. + /// Internal wrapper for struct TextAttribute. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { - ///Internal wrapper for field Name + /// Internal wrapper for field Name public System.IntPtr Name; - ///Internal wrapper for field Value + /// Internal wrapper for field Value public System.IntPtr Value; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator TextAttribute.NativeStruct(TextAttribute _external_struct) { var _internal_struct = new TextAttribute.NativeStruct(); @@ -1571,7 +1606,7 @@ public struct TextAttribute return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator TextAttribute(TextAttribute.NativeStruct _internal_struct) { var _external_struct = new TextAttribute(); @@ -1605,7 +1640,10 @@ public struct TextRange public int End_offset; /// Range content public char Content; - ///Constructor for TextRange. + /// Constructor for TextRange. + /// Range start offset; + /// Range end offset; + /// Range content; public TextRange( int Start_offset = default(int), int End_offset = default(int), @@ -1616,8 +1654,8 @@ public struct TextRange this.Content = Content; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator TextRange(IntPtr ptr) { var tmp = (TextRange.NativeStruct)Marshal.PtrToStructure(ptr, typeof(TextRange.NativeStruct)); @@ -1626,7 +1664,7 @@ public struct TextRange #pragma warning disable CS1591 - ///Internal wrapper for struct TextRange. + /// Internal wrapper for struct TextRange. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -1636,7 +1674,7 @@ public struct TextRange public int End_offset; public System.IntPtr Content; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator TextRange.NativeStruct(TextRange _external_struct) { var _internal_struct = new TextRange.NativeStruct(); @@ -1646,7 +1684,7 @@ public struct TextRange return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator TextRange(TextRange.NativeStruct _internal_struct) { var _external_struct = new TextRange(); @@ -1683,7 +1721,11 @@ public struct TextChangeInfo public uint Pos; /// Change length public uint Len; - ///Constructor for TextChangeInfo. + /// Constructor for TextChangeInfo. + /// Change content; + /// true if text got inserted; + /// Change position; + /// Change length; public TextChangeInfo( System.String Content = default(System.String), bool Inserted = default(bool), @@ -1696,8 +1738,8 @@ public struct TextChangeInfo this.Len = Len; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator TextChangeInfo(IntPtr ptr) { var tmp = (TextChangeInfo.NativeStruct)Marshal.PtrToStructure(ptr, typeof(TextChangeInfo.NativeStruct)); @@ -1706,19 +1748,19 @@ public struct TextChangeInfo #pragma warning disable CS1591 - ///Internal wrapper for struct TextChangeInfo. + /// Internal wrapper for struct TextChangeInfo. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { - ///Internal wrapper for field Content + /// Internal wrapper for field Content public System.IntPtr Content; - ///Internal wrapper for field Inserted + /// Internal wrapper for field Inserted public System.Byte Inserted; public uint Pos; public uint Len; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator TextChangeInfo.NativeStruct(TextChangeInfo _external_struct) { var _internal_struct = new TextChangeInfo.NativeStruct(); @@ -1729,7 +1771,7 @@ public struct TextChangeInfo return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator TextChangeInfo(TextChangeInfo.NativeStruct _internal_struct) { var _external_struct = new TextChangeInfo(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_access_value.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_access_value.eo.cs old mode 100644 new mode 100755 index 80f0bc83b..d3fb215ab --- a/internals/src/EflSharp/EflSharp/efl/efl_access_value.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_access_value.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Access { /// Elementary Access value interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Access.IValueConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IValue : @@ -32,19 +34,30 @@ void GetRange(out double lower_limit, out double upper_limit, out System.String /// Gets an minimal incrementation value /// Minimal incrementation value double GetIncrement(); - /// Gets an minimal incrementation value + /// Value and text property + /// Value of widget casted to floating point number. + (double, System.String) ValueAndText { + get; + set; + } + /// Gets a range of all possible values and its description + (double, double, System.String) Range { + get; + } + /// Gets an minimal incrementation value /// Minimal incrementation value double Increment { - get ; + get; } } /// Elementary Access value interface -sealed public class IValueConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IValueConcrete : Efl.Eo.EoWrapper , IValue { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -60,7 +73,8 @@ sealed public class IValueConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IValueConcrete(ConstructingHandle ch) : base(ch) { @@ -106,6 +120,27 @@ sealed public class IValueConcrete : Eina.Error.RaiseIfUnhandledException(); return _ret_var; } + /// Value and text property + /// Value of widget casted to floating point number. + public (double, System.String) ValueAndText { + get { + double _out_value = default(double); + System.String _out_text = default(System.String); + GetValueAndText(out _out_value,out _out_text); + return (_out_value,_out_text); + } + set { SetValueAndText( value.Item1, value.Item2); } + } + /// Gets a range of all possible values and its description + public (double, double, System.String) Range { + get { + double _out_lower_limit = default(double); + double _out_upper_limit = default(double); + System.String _out_description = default(System.String); + GetRange(out _out_lower_limit,out _out_upper_limit,out _out_description); + return (_out_lower_limit,_out_upper_limit,_out_description); + } + } /// Gets an minimal incrementation value /// Minimal incrementation value public double Increment { @@ -332,3 +367,12 @@ sealed public class IValueConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_AccessIValueConcrete_ExtensionMethods { + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_access_widget_action.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_access_widget_action.eo.cs old mode 100644 new mode 100755 index ffa818efd..c2dd258ea --- a/internals/src/EflSharp/EflSharp/efl/efl_access_widget_action.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_access_widget_action.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -12,6 +13,7 @@ namespace Access { namespace Widget { /// Access widget action mixin +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Access.Widget.IActionConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IAction : @@ -25,16 +27,17 @@ Efl.Access.ActionData GetElmActions(); /// Elementary actions /// NULL-terminated array of Efl.Access.Action_Data. Efl.Access.ActionData ElmActions { - get ; + get; } } /// Access widget action mixin -sealed public class IActionConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IActionConcrete : Efl.Eo.EoWrapper , IAction , Efl.Access.IAction { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -50,7 +53,8 @@ sealed public class IActionConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IActionConcrete(ConstructingHandle ch) : base(ch) { @@ -103,7 +107,7 @@ sealed public class IActionConcrete : } } } - ///Method to raise event ReadingStateChangedEvt. + /// Method to raise event ReadingStateChangedEvt. public void OnReadingStateChangedEvt(EventArgs e) { var key = "_EFL_ACCESS_WIDGET_ACTION_EVENT_READING_STATE_CHANGED"; @@ -485,3 +489,14 @@ sealed public class IActionConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Access_WidgetIActionConcrete_ExtensionMethods { + + + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_access_window.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_access_window.eo.cs old mode 100644 new mode 100755 index 5eff2b236..583effc6f --- a/internals/src/EflSharp/EflSharp/efl/efl_access_window.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_access_window.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Access { /// Elementary accessible window interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Access.IWindowConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IWindow : @@ -31,12 +33,13 @@ public interface IWindow : event EventHandler WindowRestoredEvt; } /// Elementary accessible window interface -sealed public class IWindowConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IWindowConcrete : Efl.Eo.EoWrapper , IWindow { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -52,7 +55,8 @@ sealed public class IWindowConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IWindowConcrete(ConstructingHandle ch) : base(ch) { @@ -106,7 +110,7 @@ sealed public class IWindowConcrete : } } } - ///Method to raise event WindowCreatedEvt. + /// Method to raise event WindowCreatedEvt. public void OnWindowCreatedEvt(EventArgs e) { var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_CREATED"; @@ -158,7 +162,7 @@ sealed public class IWindowConcrete : } } } - ///Method to raise event WindowDestroyedEvt. + /// Method to raise event WindowDestroyedEvt. public void OnWindowDestroyedEvt(EventArgs e) { var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_DESTROYED"; @@ -210,7 +214,7 @@ sealed public class IWindowConcrete : } } } - ///Method to raise event WindowActivatedEvt. + /// Method to raise event WindowActivatedEvt. public void OnWindowActivatedEvt(EventArgs e) { var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_ACTIVATED"; @@ -262,7 +266,7 @@ sealed public class IWindowConcrete : } } } - ///Method to raise event WindowDeactivatedEvt. + /// Method to raise event WindowDeactivatedEvt. public void OnWindowDeactivatedEvt(EventArgs e) { var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_DEACTIVATED"; @@ -314,7 +318,7 @@ sealed public class IWindowConcrete : } } } - ///Method to raise event WindowMaximizedEvt. + /// Method to raise event WindowMaximizedEvt. public void OnWindowMaximizedEvt(EventArgs e) { var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_MAXIMIZED"; @@ -366,7 +370,7 @@ sealed public class IWindowConcrete : } } } - ///Method to raise event WindowMinimizedEvt. + /// Method to raise event WindowMinimizedEvt. public void OnWindowMinimizedEvt(EventArgs e) { var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_MINIMIZED"; @@ -418,7 +422,7 @@ sealed public class IWindowConcrete : } } } - ///Method to raise event WindowRestoredEvt. + /// Method to raise event WindowRestoredEvt. public void OnWindowRestoredEvt(EventArgs e) { var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_RESTORED"; @@ -463,3 +467,9 @@ sealed public class IWindowConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_AccessIWindowConcrete_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_all.cs b/internals/src/EflSharp/EflSharp/efl/efl_all.cs old mode 100644 new mode 100755 index dfe53e691..8cba9a574 --- a/internals/src/EflSharp/EflSharp/efl/efl_all.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_all.cs @@ -55,6 +55,7 @@ public static class All Efl.Eo.Config.Init(); ecore_init(); evas_init(); + //eldbus.Config.Init(); if (components == Efl.Csharp.Components.Ui) { @@ -88,7 +89,8 @@ public static class All Efl.Ui.Config.Shutdown(); } - Eina.Log.Debug("Shutting down Eldbus"); + //Eina.Log.Debug("Shutting down Eldbus"); + //eldbus.Config.Shutdown(); Eina.Log.Debug("Shutting down Evas"); evas_shutdown(); Eina.Log.Debug("Shutting down Ecore"); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_app.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_app.eo.cs old mode 100644 new mode 100755 index 2638bef7a..02d09fc83 --- a/internals/src/EflSharp/EflSharp/efl/efl_app.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_app.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -13,7 +14,7 @@ namespace Efl { [Efl.Eo.BindingEntity] public abstract class App : Efl.Loop, Efl.Core.ICommandLine { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -39,7 +40,8 @@ public abstract class App : Efl.Loop, Efl.Core.ICommandLine FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected App(ConstructingHandle ch) : base(ch) { @@ -107,7 +109,7 @@ public abstract class App : Efl.Loop, Efl.Core.ICommandLine } } } - ///Method to raise event PauseEvt. + /// Method to raise event PauseEvt. public void OnPauseEvt(EventArgs e) { var key = "_EFL_APP_EVENT_PAUSE"; @@ -160,7 +162,7 @@ public abstract class App : Efl.Loop, Efl.Core.ICommandLine } } } - ///Method to raise event ResumeEvt. + /// Method to raise event ResumeEvt. public void OnResumeEvt(EventArgs e) { var key = "_EFL_APP_EVENT_RESUME"; @@ -213,7 +215,7 @@ public abstract class App : Efl.Loop, Efl.Core.ICommandLine } } } - ///Method to raise event StandbyEvt. + /// Method to raise event StandbyEvt. public void OnStandbyEvt(EventArgs e) { var key = "_EFL_APP_EVENT_STANDBY"; @@ -266,7 +268,7 @@ public abstract class App : Efl.Loop, Efl.Core.ICommandLine } } } - ///Method to raise event TerminateEvt. + /// Method to raise event TerminateEvt. public void OnTerminateEvt(EventArgs e) { var key = "_EFL_APP_EVENT_TERMINATE"; @@ -319,7 +321,7 @@ public abstract class App : Efl.Loop, Efl.Core.ICommandLine } } } - ///Method to raise event SignalUsr1Evt. + /// Method to raise event SignalUsr1Evt. public void OnSignalUsr1Evt(EventArgs e) { var key = "_EFL_APP_EVENT_SIGNAL_USR1"; @@ -372,7 +374,7 @@ public abstract class App : Efl.Loop, Efl.Core.ICommandLine } } } - ///Method to raise event SignalUsr2Evt. + /// Method to raise event SignalUsr2Evt. public void OnSignalUsr2Evt(EventArgs e) { var key = "_EFL_APP_EVENT_SIGNAL_USR2"; @@ -425,7 +427,7 @@ public abstract class App : Efl.Loop, Efl.Core.ICommandLine } } } - ///Method to raise event SignalHupEvt. + /// Method to raise event SignalHupEvt. public void OnSignalHupEvt(EventArgs e) { var key = "_EFL_APP_EVENT_SIGNAL_HUP"; @@ -898,3 +900,21 @@ array.OwnContent = false; } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflApp_ExtensionMethods { + + + + + public static Efl.BindableProperty> CommandArray(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.App { + return new Efl.BindableProperty>("command_array", fac); + } + + public static Efl.BindableProperty CommandString(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.App { + return new Efl.BindableProperty("command_string", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_appthread.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_appthread.eo.cs old mode 100644 new mode 100755 index 1a1e5c09f..e5407659a --- a/internals/src/EflSharp/EflSharp/efl/efl_appthread.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_appthread.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,11 +9,12 @@ using System.ComponentModel; namespace Efl { /// No description supplied. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Appthread.NativeMethods] [Efl.Eo.BindingEntity] public class Appthread : Efl.Loop, Efl.IThreadIO, Efl.Core.ICommandLine, Efl.Io.ICloser, Efl.Io.IReader, Efl.Io.IWriter { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -38,7 +40,8 @@ public class Appthread : Efl.Loop, Efl.IThreadIO, Efl.Core.ICommandLine, Efl.Io. FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Appthread(ConstructingHandle ch) : base(ch) { @@ -99,7 +102,7 @@ public class Appthread : Efl.Loop, Efl.IThreadIO, Efl.Core.ICommandLine, Efl.Io. } } } - ///Method to raise event ClosedEvt. + /// Method to raise event ClosedEvt. public void OnClosedEvt(EventArgs e) { var key = "_EFL_IO_CLOSER_EVENT_CLOSED"; @@ -117,6 +120,7 @@ public class Appthread : Efl.Loop, Efl.IThreadIO, Efl.Core.ICommandLine, Efl.Io. /// /// Note that usually this event is dispatched from inside , thus before it returns. /// (Since EFL 1.22) + /// public event EventHandler CanReadChangedEvt { add @@ -156,7 +160,7 @@ public class Appthread : Efl.Loop, Efl.IThreadIO, Efl.Core.ICommandLine, Efl.Io. } } } - ///Method to raise event CanReadChangedEvt. + /// Method to raise event CanReadChangedEvt. public void OnCanReadChangedEvt(Efl.Io.IReaderCanReadChangedEvt_Args e) { var key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED"; @@ -222,7 +226,7 @@ public class Appthread : Efl.Loop, Efl.IThreadIO, Efl.Core.ICommandLine, Efl.Io. } } } - ///Method to raise event EosEvt. + /// Method to raise event EosEvt. public void OnEosEvt(EventArgs e) { var key = "_EFL_IO_READER_EVENT_EOS"; @@ -240,6 +244,7 @@ public class Appthread : Efl.Loop, Efl.IThreadIO, Efl.Core.ICommandLine, Efl.Io. /// /// Note that usually this event is dispatched from inside , thus before it returns. /// (Since EFL 1.22) + /// public event EventHandler CanWriteChangedEvt { add @@ -279,7 +284,7 @@ public class Appthread : Efl.Loop, Efl.IThreadIO, Efl.Core.ICommandLine, Efl.Io. } } } - ///Method to raise event CanWriteChangedEvt. + /// Method to raise event CanWriteChangedEvt. public void OnCanWriteChangedEvt(Efl.Io.IWriterCanWriteChangedEvt_Args e) { var key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED"; @@ -323,16 +328,16 @@ public class Appthread : Efl.Loop, Efl.IThreadIO, Efl.Core.ICommandLine, Efl.Io. Eina.Error.RaiseIfUnhandledException(); } /// No description supplied. - virtual public void Call(EFlThreadIOCall func) { + virtual public void Call(EflThreadIOCall func) { GCHandle func_handle = GCHandle.Alloc(func); - Efl.IThreadIOConcrete.NativeMethods.efl_threadio_call_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),GCHandle.ToIntPtr(func_handle), EFlThreadIOCallWrapper.Cb, Efl.Eo.Globals.free_gchandle); + Efl.IThreadIOConcrete.NativeMethods.efl_threadio_call_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),GCHandle.ToIntPtr(func_handle), EflThreadIOCallWrapper.Cb, Efl.Eo.Globals.free_gchandle); Eina.Error.RaiseIfUnhandledException(); } /// No description supplied. /// No description supplied. - virtual public System.IntPtr CallSync(EFlThreadIOCallSync func) { + virtual public System.IntPtr CallSync(EflThreadIOCallSync func) { GCHandle func_handle = GCHandle.Alloc(func); - var _ret_var = Efl.IThreadIOConcrete.NativeMethods.efl_threadio_call_sync_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),GCHandle.ToIntPtr(func_handle), EFlThreadIOCallSyncWrapper.Cb, Efl.Eo.Globals.free_gchandle); + var _ret_var = Efl.IThreadIOConcrete.NativeMethods.efl_threadio_call_sync_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),GCHandle.ToIntPtr(func_handle), EflThreadIOCallSyncWrapper.Cb, Efl.Eo.Globals.free_gchandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -987,20 +992,20 @@ array.OwnContent = false; private static efl_threadio_outdata_set_delegate efl_threadio_outdata_set_static_delegate; - private delegate void efl_threadio_call_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb); + private delegate void efl_threadio_call_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EflThreadIOCallInternal func, EinaFreeCb func_free_cb); - public delegate void efl_threadio_call_api_delegate(System.IntPtr obj, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb); + public delegate void efl_threadio_call_api_delegate(System.IntPtr obj, IntPtr func_data, EflThreadIOCallInternal func, EinaFreeCb func_free_cb); public static Efl.Eo.FunctionWrapper efl_threadio_call_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_threadio_call"); - private static void call(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb) + private static void call(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EflThreadIOCallInternal func, EinaFreeCb func_free_cb) { Eina.Log.Debug("function efl_threadio_call was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - EFlThreadIOCallWrapper func_wrapper = new EFlThreadIOCallWrapper(func, func_data, func_free_cb); + EflThreadIOCallWrapper func_wrapper = new EflThreadIOCallWrapper(func, func_data, func_free_cb); try { @@ -1023,20 +1028,20 @@ array.OwnContent = false; private static efl_threadio_call_delegate efl_threadio_call_static_delegate; - private delegate System.IntPtr efl_threadio_call_sync_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb); + private delegate System.IntPtr efl_threadio_call_sync_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EflThreadIOCallSyncInternal func, EinaFreeCb func_free_cb); - public delegate System.IntPtr efl_threadio_call_sync_api_delegate(System.IntPtr obj, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb); + public delegate System.IntPtr efl_threadio_call_sync_api_delegate(System.IntPtr obj, IntPtr func_data, EflThreadIOCallSyncInternal func, EinaFreeCb func_free_cb); public static Efl.Eo.FunctionWrapper efl_threadio_call_sync_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_threadio_call_sync"); - private static System.IntPtr call_sync(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb) + private static System.IntPtr call_sync(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EflThreadIOCallSyncInternal func, EinaFreeCb func_free_cb) { Eina.Log.Debug("function efl_threadio_call_sync was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - EFlThreadIOCallSyncWrapper func_wrapper = new EFlThreadIOCallSyncWrapper(func, func_data, func_free_cb); + EflThreadIOCallSyncWrapper func_wrapper = new EflThreadIOCallSyncWrapper(func, func_data, func_free_cb); System.IntPtr _ret_var = default(System.IntPtr); try { @@ -1710,3 +1715,47 @@ array.OwnContent = false; } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflAppthread_ExtensionMethods { + public static Efl.BindableProperty Indata(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Appthread { + return new Efl.BindableProperty("indata", fac); + } + + public static Efl.BindableProperty Outdata(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Appthread { + return new Efl.BindableProperty("outdata", fac); + } + + + public static Efl.BindableProperty> CommandArray(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Appthread { + return new Efl.BindableProperty>("command_array", fac); + } + + public static Efl.BindableProperty CommandString(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Appthread { + return new Efl.BindableProperty("command_string", fac); + } + + + public static Efl.BindableProperty CloseOnExec(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Appthread { + return new Efl.BindableProperty("close_on_exec", fac); + } + + public static Efl.BindableProperty CloseOnInvalidate(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Appthread { + return new Efl.BindableProperty("close_on_invalidate", fac); + } + + public static Efl.BindableProperty CanRead(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Appthread { + return new Efl.BindableProperty("can_read", fac); + } + + public static Efl.BindableProperty Eos(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Appthread { + return new Efl.BindableProperty("eos", fac); + } + + public static Efl.BindableProperty CanWrite(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Appthread { + return new Efl.BindableProperty("can_write", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_boolean_model.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_boolean_model.eo.cs old mode 100644 new mode 100755 index 0056348bc..3f7c960cc --- a/internals/src/EflSharp/EflSharp/efl/efl_boolean_model.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_boolean_model.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,11 +9,12 @@ using System.ComponentModel; namespace Efl { /// Efl boolean model class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.BooleanModel.NativeMethods] [Efl.Eo.BindingEntity] public class BooleanModel : Efl.CompositeModel { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -50,7 +52,8 @@ public class BooleanModel : Efl.CompositeModel FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected BooleanModel(ConstructingHandle ch) : base(ch) { @@ -258,3 +261,9 @@ public class BooleanModel : Efl.CompositeModel } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflBooleanModel_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_bounce_interpolator.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_bounce_interpolator.eo.cs old mode 100644 new mode 100755 index 1e5e8ebaf..216ce17cf --- a/internals/src/EflSharp/EflSharp/efl/efl_bounce_interpolator.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_bounce_interpolator.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,11 +9,12 @@ using System.ComponentModel; namespace Efl { /// Efl bounce interpolator class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.BounceInterpolator.NativeMethods] [Efl.Eo.BindingEntity] public class BounceInterpolator : Efl.Object, Efl.IInterpolator { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -38,7 +40,8 @@ public class BounceInterpolator : Efl.Object, Efl.IInterpolator FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected BounceInterpolator(ConstructingHandle ch) : base(ch) { @@ -81,6 +84,17 @@ public class BounceInterpolator : Efl.Object, Efl.IInterpolator Eina.Error.RaiseIfUnhandledException(); return _ret_var; } + /// Factors property + /// First factor of the interpolation function. + public (double, double) Factors { + get { + double _out_factor1 = default(double); + double _out_factor2 = default(double); + GetFactors(out _out_factor1,out _out_factor2); + return (_out_factor1,_out_factor2); + } + set { SetFactors( value.Item1, value.Item2); } + } private static IntPtr GetEflClassStatic() { return Efl.BounceInterpolator.efl_bounce_interpolator_class_get(); @@ -251,3 +265,10 @@ public class BounceInterpolator : Efl.Object, Efl.IInterpolator } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflBounceInterpolator_ExtensionMethods { + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_cached_item.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_cached_item.eo.cs old mode 100644 new mode 100755 index 4f8faccdb..0dfc20751 --- a/internals/src/EflSharp/EflSharp/efl/efl_cached_item.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_cached_item.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Cached { /// Efl Cached Item interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Cached.IItemConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IItem : @@ -21,16 +23,17 @@ uint GetMemorySize(); /// Get the memory size associated with an object. /// Bytes of memory consumed by this object. uint MemorySize { - get ; + get; } } /// Efl Cached Item interface -sealed public class IItemConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IItemConcrete : Efl.Eo.EoWrapper , IItem { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +49,8 @@ sealed public class IItemConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IItemConcrete(ConstructingHandle ch) : base(ch) { @@ -154,3 +158,10 @@ sealed public class IItemConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CachedIItemConcrete_ExtensionMethods { + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation.eo.cs old mode 100644 new mode 100755 index a5a290ade..7f833fd1d --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// Efl animation class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.Animation.NativeMethods] [Efl.Eo.BindingEntity] public class Animation : Efl.Object, Efl.IPlayable { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class Animation : Efl.Object, Efl.IPlayable FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Animation(ConstructingHandle ch) : base(ch) { @@ -979,3 +982,36 @@ public class Animation : Efl.Object, Efl.IPlayable } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasAnimation_ExtensionMethods { + public static Efl.BindableProperty FinalStateKeep(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Animation { + return new Efl.BindableProperty("final_state_keep", fac); + } + + public static Efl.BindableProperty Duration(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Animation { + return new Efl.BindableProperty("duration", fac); + } + + public static Efl.BindableProperty RepeatMode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Animation { + return new Efl.BindableProperty("repeat_mode", fac); + } + + public static Efl.BindableProperty RepeatCount(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Animation { + return new Efl.BindableProperty("repeat_count", fac); + } + + public static Efl.BindableProperty StartDelay(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Animation { + return new Efl.BindableProperty("start_delay", fac); + } + + public static Efl.BindableProperty Interpolator(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Animation { + return new Efl.BindableProperty("interpolator", fac); + } + + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_alpha.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_alpha.eo.cs old mode 100644 new mode 100755 index 6ea24e24e..de4928480 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_alpha.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_alpha.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// Efl alpha animation class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.AnimationAlpha.NativeMethods] [Efl.Eo.BindingEntity] public class AnimationAlpha : Efl.Canvas.Animation { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class AnimationAlpha : Efl.Canvas.Animation FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected AnimationAlpha(ConstructingHandle ch) : base(ch) { @@ -75,6 +78,17 @@ public class AnimationAlpha : Efl.Canvas.Animation Efl.Canvas.AnimationAlpha.NativeMethods.efl_animation_alpha_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),from_alpha, to_alpha); Eina.Error.RaiseIfUnhandledException(); } + /// Alpha property + /// Alpha value when animation starts + public (double, double) Alpha { + get { + double _out_from_alpha = default(double); + double _out_to_alpha = default(double); + GetAlpha(out _out_from_alpha,out _out_to_alpha); + return (_out_from_alpha,_out_to_alpha); + } + set { SetAlpha( value.Item1, value.Item2); } + } private static IntPtr GetEflClassStatic() { return Efl.Canvas.AnimationAlpha.efl_canvas_animation_alpha_class_get(); @@ -201,3 +215,10 @@ public class AnimationAlpha : Efl.Canvas.Animation } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasAnimationAlpha_ExtensionMethods { + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group.eo.cs old mode 100644 new mode 100755 index 8c110dfe6..10939a9ff --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// Efl group animation abstract class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.AnimationGroup.NativeMethods] [Efl.Eo.BindingEntity] public abstract class AnimationGroup : Efl.Canvas.Animation { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public abstract class AnimationGroup : Efl.Canvas.Animation FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected AnimationGroup(ConstructingHandle ch) : base(ch) { @@ -259,3 +262,9 @@ public abstract class AnimationGroup : Efl.Canvas.Animation } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasAnimationGroup_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group_parallel.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group_parallel.eo.cs old mode 100644 new mode 100755 index 882ce6665..95ee6425c --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group_parallel.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group_parallel.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// Efl group parallel animation class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.AnimationGroupParallel.NativeMethods] [Efl.Eo.BindingEntity] public class AnimationGroupParallel : Efl.Canvas.AnimationGroup { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class AnimationGroupParallel : Efl.Canvas.AnimationGroup FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected AnimationGroupParallel(ConstructingHandle ch) : base(ch) { @@ -94,3 +97,9 @@ public class AnimationGroupParallel : Efl.Canvas.AnimationGroup } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasAnimationGroupParallel_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group_sequential.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group_sequential.eo.cs old mode 100644 new mode 100755 index 9290078f6..b856a2fd4 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group_sequential.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_group_sequential.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// Efl group sequential animation class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.AnimationGroupSequential.NativeMethods] [Efl.Eo.BindingEntity] public class AnimationGroupSequential : Efl.Canvas.AnimationGroup { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class AnimationGroupSequential : Efl.Canvas.AnimationGroup FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected AnimationGroupSequential(ConstructingHandle ch) : base(ch) { @@ -94,3 +97,9 @@ public class AnimationGroupSequential : Efl.Canvas.AnimationGroup } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasAnimationGroupSequential_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_player.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_player.eo.cs old mode 100644 new mode 100755 index c1294ba6a..e2ed073a5 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_player.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_player.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,18 +10,20 @@ namespace Efl { namespace Canvas { -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class AnimationPlayerRunningEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Animation is running. public Efl.Canvas.ObjectAnimationEvent arg { get; set; } } /// Efl animation object class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.AnimationPlayer.NativeMethods] [Efl.Eo.BindingEntity] public class AnimationPlayer : Efl.Object, Efl.IPlayer { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +49,8 @@ public class AnimationPlayer : Efl.Object, Efl.IPlayer FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected AnimationPlayer(ConstructingHandle ch) : base(ch) { @@ -106,7 +110,7 @@ public class AnimationPlayer : Efl.Object, Efl.IPlayer } } } - ///Method to raise event StartedEvt. + /// Method to raise event StartedEvt. public void OnStartedEvt(EventArgs e) { var key = "_EFL_ANIMATION_PLAYER_EVENT_STARTED"; @@ -120,6 +124,7 @@ public class AnimationPlayer : Efl.Object, Efl.IPlayer Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Animation is running. + /// public event EventHandler RunningEvt { add @@ -159,7 +164,7 @@ public class AnimationPlayer : Efl.Object, Efl.IPlayer } } } - ///Method to raise event RunningEvt. + /// Method to raise event RunningEvt. public void OnRunningEvt(Efl.Canvas.AnimationPlayerRunningEvt_Args e) { var key = "_EFL_ANIMATION_PLAYER_EVENT_RUNNING"; @@ -219,7 +224,7 @@ public class AnimationPlayer : Efl.Object, Efl.IPlayer } } } - ///Method to raise event EndedEvt. + /// Method to raise event EndedEvt. public void OnEndedEvt(EventArgs e) { var key = "_EFL_ANIMATION_PLAYER_EVENT_ENDED"; @@ -1486,3 +1491,45 @@ public class AnimationPlayer : Efl.Object, Efl.IPlayer } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasAnimationPlayer_ExtensionMethods { + public static Efl.BindableProperty Animation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.AnimationPlayer { + return new Efl.BindableProperty("animation", fac); + } + + public static Efl.BindableProperty AutoDel(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.AnimationPlayer { + return new Efl.BindableProperty("auto_del", fac); + } + + public static Efl.BindableProperty Target(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.AnimationPlayer { + return new Efl.BindableProperty("target", fac); + } + + + public static Efl.BindableProperty Play(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.AnimationPlayer { + return new Efl.BindableProperty("play", fac); + } + + public static Efl.BindableProperty Pos(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.AnimationPlayer { + return new Efl.BindableProperty("pos", fac); + } + + + public static Efl.BindableProperty PlaySpeed(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.AnimationPlayer { + return new Efl.BindableProperty("play_speed", fac); + } + + public static Efl.BindableProperty Volume(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.AnimationPlayer { + return new Efl.BindableProperty("volume", fac); + } + + public static Efl.BindableProperty Mute(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.AnimationPlayer { + return new Efl.BindableProperty("mute", fac); + } + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_rotate.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_rotate.eo.cs old mode 100644 new mode 100755 index d7270d739..64f5b8283 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_rotate.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_rotate.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// Efl rotate animation class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.AnimationRotate.NativeMethods] [Efl.Eo.BindingEntity] public class AnimationRotate : Efl.Canvas.Animation { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class AnimationRotate : Efl.Canvas.Animation FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected AnimationRotate(ConstructingHandle ch) : base(ch) { @@ -99,6 +102,33 @@ public class AnimationRotate : Efl.Canvas.Animation Efl.Canvas.AnimationRotate.NativeMethods.efl_animation_rotate_absolute_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),from_degree, to_degree, cx, cy); Eina.Error.RaiseIfUnhandledException(); } + /// Rotate property + /// Rotation degree when animation starts + public (double, double, Efl.Canvas.Object, double, double) Rotate { + get { + double _out_from_degree = default(double); + double _out_to_degree = default(double); + Efl.Canvas.Object _out_pivot = default(Efl.Canvas.Object); + double _out_cx = default(double); + double _out_cy = default(double); + GetRotate(out _out_from_degree,out _out_to_degree,out _out_pivot,out _out_cx,out _out_cy); + return (_out_from_degree,_out_to_degree,_out_pivot,_out_cx,_out_cy); + } + set { SetRotate( value.Item1, value.Item2, value.Item3, value.Item4, value.Item5); } + } + /// Rotate absolute property + /// Rotation degree when animation starts + public (double, double, int, int) RotateAbsolute { + get { + double _out_from_degree = default(double); + double _out_to_degree = default(double); + int _out_cx = default(int); + int _out_cy = default(int); + GetRotateAbsolute(out _out_from_degree,out _out_to_degree,out _out_cx,out _out_cy); + return (_out_from_degree,_out_to_degree,_out_cx,_out_cy); + } + set { SetRotateAbsolute( value.Item1, value.Item2, value.Item3, value.Item4); } + } private static IntPtr GetEflClassStatic() { return Efl.Canvas.AnimationRotate.efl_canvas_animation_rotate_class_get(); @@ -315,3 +345,11 @@ public class AnimationRotate : Efl.Canvas.Animation } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasAnimationRotate_ExtensionMethods { + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_scale.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_scale.eo.cs old mode 100644 new mode 100755 index 8992e30ac..986d67035 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_scale.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_scale.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// Efl scale animation class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.AnimationScale.NativeMethods] [Efl.Eo.BindingEntity] public class AnimationScale : Efl.Canvas.Animation { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class AnimationScale : Efl.Canvas.Animation FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected AnimationScale(ConstructingHandle ch) : base(ch) { @@ -107,6 +110,37 @@ public class AnimationScale : Efl.Canvas.Animation Efl.Canvas.AnimationScale.NativeMethods.efl_animation_scale_absolute_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),from_scale_x, from_scale_y, to_scale_x, to_scale_y, cx, cy); Eina.Error.RaiseIfUnhandledException(); } + /// Scale property + /// Scale factor along x axis when animation starts + public (double, double, double, double, Efl.Canvas.Object, double, double) Scale { + get { + double _out_from_scale_x = default(double); + double _out_from_scale_y = default(double); + double _out_to_scale_x = default(double); + double _out_to_scale_y = default(double); + Efl.Canvas.Object _out_pivot = default(Efl.Canvas.Object); + double _out_cx = default(double); + double _out_cy = default(double); + GetScale(out _out_from_scale_x,out _out_from_scale_y,out _out_to_scale_x,out _out_to_scale_y,out _out_pivot,out _out_cx,out _out_cy); + return (_out_from_scale_x,_out_from_scale_y,_out_to_scale_x,_out_to_scale_y,_out_pivot,_out_cx,_out_cy); + } + set { SetScale( value.Item1, value.Item2, value.Item3, value.Item4, value.Item5, value.Item6, value.Item7); } + } + /// Scale absolute property + /// Scale factor along x axis when animation starts + public (double, double, double, double, int, int) ScaleAbsolute { + get { + double _out_from_scale_x = default(double); + double _out_from_scale_y = default(double); + double _out_to_scale_x = default(double); + double _out_to_scale_y = default(double); + int _out_cx = default(int); + int _out_cy = default(int); + GetScaleAbsolute(out _out_from_scale_x,out _out_from_scale_y,out _out_to_scale_x,out _out_to_scale_y,out _out_cx,out _out_cy); + return (_out_from_scale_x,_out_from_scale_y,_out_to_scale_x,_out_to_scale_y,_out_cx,_out_cy); + } + set { SetScaleAbsolute( value.Item1, value.Item2, value.Item3, value.Item4, value.Item5, value.Item6); } + } private static IntPtr GetEflClassStatic() { return Efl.Canvas.AnimationScale.efl_canvas_animation_scale_class_get(); @@ -323,3 +357,11 @@ public class AnimationScale : Efl.Canvas.Animation } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasAnimationScale_ExtensionMethods { + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_translate.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_translate.eo.cs old mode 100644 new mode 100755 index fc26f5fbb..e814836c0 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_translate.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_translate.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// Efl translate animation class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.AnimationTranslate.NativeMethods] [Efl.Eo.BindingEntity] public class AnimationTranslate : Efl.Canvas.Animation { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class AnimationTranslate : Efl.Canvas.Animation FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected AnimationTranslate(ConstructingHandle ch) : base(ch) { @@ -97,6 +100,32 @@ public class AnimationTranslate : Efl.Canvas.Animation Efl.Canvas.AnimationTranslate.NativeMethods.efl_animation_translate_absolute_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),from_x, from_y, to_x, to_y); Eina.Error.RaiseIfUnhandledException(); } + /// Translate property + /// Distance moved along x axis when animation starts + public (int, int, int, int) Translate { + get { + int _out_from_x = default(int); + int _out_from_y = default(int); + int _out_to_x = default(int); + int _out_to_y = default(int); + GetTranslate(out _out_from_x,out _out_from_y,out _out_to_x,out _out_to_y); + return (_out_from_x,_out_from_y,_out_to_x,_out_to_y); + } + set { SetTranslate( value.Item1, value.Item2, value.Item3, value.Item4); } + } + /// Translate absolute property + /// X coordinate when animation starts + public (int, int, int, int) TranslateAbsolute { + get { + int _out_from_x = default(int); + int _out_from_y = default(int); + int _out_to_x = default(int); + int _out_to_y = default(int); + GetTranslateAbsolute(out _out_from_x,out _out_from_y,out _out_to_x,out _out_to_y); + return (_out_from_x,_out_from_y,_out_to_x,_out_to_y); + } + set { SetTranslateAbsolute( value.Item1, value.Item2, value.Item3, value.Item4); } + } private static IntPtr GetEflClassStatic() { return Efl.Canvas.AnimationTranslate.efl_canvas_animation_translate_class_get(); @@ -313,3 +342,11 @@ public class AnimationTranslate : Efl.Canvas.Animation } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasAnimationTranslate_ExtensionMethods { + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_types.eot.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_types.eot.cs old mode 100644 new mode 100755 index 9cb199105..66979fb37 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_types.eot.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_types.eot.cs @@ -32,10 +32,10 @@ namespace Canvas { [Efl.Eo.BindingEntity] public struct AnimationPlayerEventRunning { - ///Placeholder field + /// Placeholder field public IntPtr field; - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator AnimationPlayerEventRunning(IntPtr ptr) { var tmp = (AnimationPlayerEventRunning.NativeStruct)Marshal.PtrToStructure(ptr, typeof(AnimationPlayerEventRunning.NativeStruct)); @@ -44,19 +44,19 @@ public struct AnimationPlayerEventRunning #pragma warning disable CS1591 - ///Internal wrapper for struct AnimationPlayerEventRunning. + /// Internal wrapper for struct AnimationPlayerEventRunning. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { internal IntPtr field; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator AnimationPlayerEventRunning.NativeStruct(AnimationPlayerEventRunning _external_struct) { var _internal_struct = new AnimationPlayerEventRunning.NativeStruct(); return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator AnimationPlayerEventRunning(AnimationPlayerEventRunning.NativeStruct _internal_struct) { var _external_struct = new AnimationPlayerEventRunning(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_event_grabber.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_event_grabber.eo.cs old mode 100644 new mode 100755 index c1a094455..999fff53c --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_event_grabber.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_event_grabber.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -17,11 +18,12 @@ namespace Canvas { /// Child objects are not modified in any way, unlike other types of smart objects. /// /// No child objects should be stacked above the event grabber parent while the grabber is visible. A critical error will be raised if this is detected. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.EventGrabber.NativeMethods] [Efl.Eo.BindingEntity] public class EventGrabber : Efl.Canvas.Group { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -47,7 +49,8 @@ public class EventGrabber : Efl.Canvas.Group FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected EventGrabber(ConstructingHandle ch) : base(ch) { @@ -214,3 +217,13 @@ public class EventGrabber : Efl.Canvas.Group } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasEventGrabber_ExtensionMethods { + public static Efl.BindableProperty FreezeWhenVisible(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.EventGrabber { + return new Efl.BindableProperty("freeze_when_visible", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_filter_internal.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_filter_internal.eo.cs old mode 100644 new mode 100755 index fff0e769b..ec5dfe386 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_filter_internal.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_filter_internal.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -12,6 +13,7 @@ namespace Canvas { namespace Filter { /// Evas internal implementation of filters. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.Filter.IInternalConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IInternal : @@ -56,27 +58,28 @@ void FilterDirty(); /// Marks this filter as changed. /// true if filter changed, false otherwise bool FilterChanged { - set ; + set; } /// Marks this filter as invalid. /// true if filter is invalid, false otherwise bool FilterInvalid { - set ; + set; } /// Retrieve cached output buffer, if any. /// Does not increment the reference count. /// Output buffer System.IntPtr FilterOutputBuffer { - get ; + get; } } /// Evas internal implementation of filters. -sealed public class IInternalConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IInternalConcrete : Efl.Eo.EoWrapper , IInternal , Efl.Gfx.IFilter { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -92,7 +95,8 @@ sealed public class IInternalConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IInternalConcrete(ConstructingHandle ch) : base(ch) { @@ -277,6 +281,46 @@ sealed public class IInternalConcrete : public System.IntPtr FilterOutputBuffer { get { return GetFilterOutputBuffer(); } } + /// Gets the code of the filter program set on this object. May be null. + /// The Lua program source code. + public (System.String, System.String) FilterProgram { + get { + System.String _out_code = default(System.String); + System.String _out_name = default(System.String); + GetFilterProgram(out _out_code,out _out_name); + return (_out_code,_out_name); + } + set { SetFilterProgram( value.Item1, value.Item2); } + } + /// Set the current state of the filter. + /// This should be used by Edje (EFL's internal layout engine), but could also be used when implementing animations programmatically. + /// + /// A full state is defined by two states (name + value): origin state and target state of an ongoing animation, as well as the pos progress (from 0 to 1) of that animation timeline. The second state can be omitted if there is no ongoing animation. + /// Current state of the filter + public (System.String, double, System.String, double, double) FilterState { + get { + System.String _out_cur_state = default(System.String); + double _out_cur_val = default(double); + System.String _out_next_state = default(System.String); + double _out_next_val = default(double); + double _out_pos = default(double); + GetFilterState(out _out_cur_state,out _out_cur_val,out _out_next_state,out _out_next_val,out _out_pos); + return (_out_cur_state,_out_cur_val,_out_next_state,_out_next_val,_out_pos); + } + set { SetFilterState( value.Item1, value.Item2, value.Item3, value.Item4, value.Item5); } + } + /// Required padding to apply this filter without cropping. + /// Read-only property that can be used to calculate the object's final geometry. This can be overridden (set) from inside the filter program by using the function 'padding_set' in the Lua program. + public (int, int, int, int) FilterPadding { + get { + int _out_l = default(int); + int _out_r = default(int); + int _out_t = default(int); + int _out_b = default(int); + GetFilterPadding(out _out_l,out _out_r,out _out_t,out _out_b); + return (_out_l,_out_r,_out_t,_out_b); + } + } private static IntPtr GetEflClassStatic() { return Efl.Canvas.Filter.IInternalConcrete.efl_canvas_filter_internal_mixin_get(); @@ -1050,6 +1094,26 @@ sealed public class IInternalConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Canvas_FilterIInternalConcrete_ExtensionMethods { + public static Efl.BindableProperty FilterChanged(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Filter.IInternal { + return new Efl.BindableProperty("filter_changed", fac); + } + + public static Efl.BindableProperty FilterInvalid(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Filter.IInternal { + return new Efl.BindableProperty("filter_invalid", fac); + } + + + + + + + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Gfx { @@ -1067,7 +1131,11 @@ public struct Color32 public byte B; /// Translucent component of the color public byte A; - ///Constructor for Color32. + /// Constructor for Color32. + /// Red component of the color; + /// Green component of the color; + /// Blue component of the color; + /// Translucent component of the color; public Color32( byte R = default(byte), byte G = default(byte), @@ -1080,8 +1148,8 @@ public struct Color32 this.A = A; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator Color32(IntPtr ptr) { var tmp = (Color32.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Color32.NativeStruct)); @@ -1090,7 +1158,7 @@ public struct Color32 #pragma warning disable CS1591 - ///Internal wrapper for struct Color32. + /// Internal wrapper for struct Color32. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -1102,7 +1170,7 @@ public struct Color32 public byte B; public byte A; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator Color32.NativeStruct(Color32 _external_struct) { var _internal_struct = new Color32.NativeStruct(); @@ -1113,7 +1181,7 @@ public struct Color32 return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator Color32(Color32.NativeStruct _internal_struct) { var _external_struct = new Color32(); @@ -1149,7 +1217,9 @@ public struct StateName public System.String Name; /// Filter state value public double Value; - ///Constructor for StateName. + /// Constructor for StateName. + /// Filter state name; + /// Filter state value; public StateName( System.String Name = default(System.String), double Value = default(double) ) @@ -1158,8 +1228,8 @@ public struct StateName this.Value = Value; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator StateName(IntPtr ptr) { var tmp = (StateName.NativeStruct)Marshal.PtrToStructure(ptr, typeof(StateName.NativeStruct)); @@ -1168,15 +1238,15 @@ public struct StateName #pragma warning disable CS1591 - ///Internal wrapper for struct StateName. + /// Internal wrapper for struct StateName. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { - ///Internal wrapper for field Name + /// Internal wrapper for field Name public System.IntPtr Name; public double Value; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator StateName.NativeStruct(StateName _external_struct) { var _internal_struct = new StateName.NativeStruct(); @@ -1185,7 +1255,7 @@ public struct StateName return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator StateName(StateName.NativeStruct _internal_struct) { var _external_struct = new StateName(); @@ -1218,14 +1288,22 @@ namespace Filter { public struct StateText { /// Text outline color + /// 32 bit color data structure public Efl.Gfx.Color32 Outline; /// Text shadow color + /// 32 bit color data structure public Efl.Gfx.Color32 Shadow; /// Text glow color + /// 32 bit color data structure public Efl.Gfx.Color32 Glow; /// Text glow2 color + /// 32 bit color data structure public Efl.Gfx.Color32 Glow2; - ///Constructor for StateText. + /// Constructor for StateText. + /// Text outline color; + /// Text shadow color; + /// Text glow color; + /// Text glow2 color; public StateText( Efl.Gfx.Color32 Outline = default(Efl.Gfx.Color32), Efl.Gfx.Color32 Shadow = default(Efl.Gfx.Color32), @@ -1238,8 +1316,8 @@ public struct StateText this.Glow2 = Glow2; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator StateText(IntPtr ptr) { var tmp = (StateText.NativeStruct)Marshal.PtrToStructure(ptr, typeof(StateText.NativeStruct)); @@ -1248,7 +1326,7 @@ public struct StateText #pragma warning disable CS1591 - ///Internal wrapper for struct StateText. + /// Internal wrapper for struct StateText. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -1260,7 +1338,7 @@ public struct StateText public Efl.Gfx.Color32.NativeStruct Glow; public Efl.Gfx.Color32.NativeStruct Glow2; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator StateText.NativeStruct(StateText _external_struct) { var _internal_struct = new StateText.NativeStruct(); @@ -1271,7 +1349,7 @@ public struct StateText return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator StateText(StateText.NativeStruct _internal_struct) { var _external_struct = new StateText(); @@ -1306,12 +1384,16 @@ namespace Filter { public struct State { /// Text state + /// Filter state text structure public Efl.Canvas.Filter.StateText Text; /// Color + /// 32 bit color data structure public Efl.Gfx.Color32 Color; /// Current state + /// Filter state name structure public Efl.Canvas.Filter.StateName Cur; /// Next state + /// Filter state name structure public Efl.Canvas.Filter.StateName Next; /// Width public int W; @@ -1321,7 +1403,15 @@ public struct State public double Scale; /// Position public double Pos; - ///Constructor for State. + /// Constructor for State. + /// Text state; + /// Color; + /// Current state; + /// Next state; + /// Width; + /// Height; + /// Scale factor; + /// Position; public State( Efl.Canvas.Filter.StateText Text = default(Efl.Canvas.Filter.StateText), Efl.Gfx.Color32 Color = default(Efl.Gfx.Color32), @@ -1342,8 +1432,8 @@ public struct State this.Pos = Pos; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator State(IntPtr ptr) { var tmp = (State.NativeStruct)Marshal.PtrToStructure(ptr, typeof(State.NativeStruct)); @@ -1352,7 +1442,7 @@ public struct State #pragma warning disable CS1591 - ///Internal wrapper for struct State. + /// Internal wrapper for struct State. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -1372,7 +1462,7 @@ public struct State public double Scale; public double Pos; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator State.NativeStruct(State _external_struct) { var _internal_struct = new State.NativeStruct(); @@ -1387,7 +1477,7 @@ public struct State return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator State(State.NativeStruct _internal_struct) { var _external_struct = new State(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture.eo.cs old mode 100644 new mode 100755 index 66a4edab0..47bda5311 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -13,11 +14,12 @@ namespace Canvas { /// A gesture class defines a method that spcific gesture event and privides information about the gesture's type, state, and associated pointer information. /// /// For cetain gesture types, additional methods are defined to provide meaningful gesture information to the user. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.Gesture.NativeMethods] [Efl.Eo.BindingEntity] public abstract class Gesture : Efl.Object { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -43,7 +45,8 @@ public abstract class Gesture : Efl.Object FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Gesture(ConstructingHandle ch) : base(ch) { @@ -439,3 +442,21 @@ public abstract class Gesture : Efl.Object } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasGesture_ExtensionMethods { + public static Efl.BindableProperty State(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Gesture { + return new Efl.BindableProperty("state", fac); + } + + public static Efl.BindableProperty Hotspot(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Gesture { + return new Efl.BindableProperty("hotspot", fac); + } + + public static Efl.BindableProperty Timestamp(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Gesture { + return new Efl.BindableProperty("timestamp", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_double_tap.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_double_tap.eo.cs old mode 100644 new mode 100755 index 3737c6c99..8b5905399 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_double_tap.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_double_tap.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// EFL Gesture Double Tap class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.GestureDoubleTap.NativeMethods] [Efl.Eo.BindingEntity] public class GestureDoubleTap : Efl.Canvas.Gesture { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class GestureDoubleTap : Efl.Canvas.Gesture FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected GestureDoubleTap(ConstructingHandle ch) : base(ch) { @@ -94,3 +97,9 @@ public class GestureDoubleTap : Efl.Canvas.Gesture } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasGestureDoubleTap_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_flick.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_flick.eo.cs old mode 100644 new mode 100755 index 5984a9b48..04993fe70 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_flick.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_flick.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// EFL Gesture Flick class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.GestureFlick.NativeMethods] [Efl.Eo.BindingEntity] public class GestureFlick : Efl.Canvas.Gesture { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class GestureFlick : Efl.Canvas.Gesture FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected GestureFlick(ConstructingHandle ch) : base(ch) { @@ -203,3 +206,9 @@ public class GestureFlick : Efl.Canvas.Gesture } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasGestureFlick_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_long_tap.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_long_tap.eo.cs old mode 100644 new mode 100755 index 188be8180..7020052fa --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_long_tap.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_long_tap.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// EFL Gesture Long Tap class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.GestureLongTap.NativeMethods] [Efl.Eo.BindingEntity] public class GestureLongTap : Efl.Canvas.Gesture { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class GestureLongTap : Efl.Canvas.Gesture FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected GestureLongTap(ConstructingHandle ch) : base(ch) { @@ -94,3 +97,9 @@ public class GestureLongTap : Efl.Canvas.Gesture } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasGestureLongTap_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_manager.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_manager.eo.cs old mode 100644 new mode 100755 index 378e3ecfb..e26117ff2 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_manager.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_manager.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// EFL Gesture Manager class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.GestureManager.NativeMethods] [Efl.Eo.BindingEntity] public class GestureManager : Efl.Object { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class GestureManager : Efl.Object FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected GestureManager(ConstructingHandle ch) : base(ch) { @@ -359,3 +362,10 @@ public class GestureManager : Efl.Object } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasGestureManager_ExtensionMethods { + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_momentum.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_momentum.eo.cs old mode 100644 new mode 100755 index abeeae471..52439a607 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_momentum.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_momentum.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// EFL Gesture Momentum class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.GestureMomentum.NativeMethods] [Efl.Eo.BindingEntity] public class GestureMomentum : Efl.Canvas.Gesture { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class GestureMomentum : Efl.Canvas.Gesture FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected GestureMomentum(ConstructingHandle ch) : base(ch) { @@ -150,3 +153,9 @@ public class GestureMomentum : Efl.Canvas.Gesture } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasGestureMomentum_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer.eo.cs old mode 100644 new mode 100755 index 7339f7fb8..2ea23c31c --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -15,11 +16,12 @@ namespace Canvas { /// Uesr can adjust the config value involved in gesture recognition through the method provided by the gesture recognizer. /// /// The default config values follow the system default config value. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.GestureRecognizer.NativeMethods] [Efl.Eo.BindingEntity] public abstract class GestureRecognizer : Efl.Object { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -45,7 +47,8 @@ public abstract class GestureRecognizer : Efl.Object FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected GestureRecognizer(ConstructingHandle ch) : base(ch) { @@ -325,3 +328,10 @@ public abstract class GestureRecognizer : Efl.Object } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasGestureRecognizer_ExtensionMethods { + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_double_tap.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_double_tap.eo.cs old mode 100644 new mode 100755 index e6479e98c..9680f59f2 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_double_tap.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_double_tap.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// EFL Gesture Recognizer Double Tap class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.GestureRecognizerDoubleTap.NativeMethods] [Efl.Eo.BindingEntity] public class GestureRecognizerDoubleTap : Efl.Canvas.GestureRecognizer { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class GestureRecognizerDoubleTap : Efl.Canvas.GestureRecognizer FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected GestureRecognizerDoubleTap(ConstructingHandle ch) : base(ch) { @@ -207,3 +210,13 @@ public class GestureRecognizerDoubleTap : Efl.Canvas.GestureRecognizer } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasGestureRecognizerDoubleTap_ExtensionMethods { + public static Efl.BindableProperty Timeout(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.GestureRecognizerDoubleTap { + return new Efl.BindableProperty("timeout", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_flick.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_flick.eo.cs old mode 100644 new mode 100755 index ab3fcb82d..312085388 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_flick.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_flick.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// EFL Gesture Recognizer Flick Class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.GestureRecognizerFlick.NativeMethods] [Efl.Eo.BindingEntity] public class GestureRecognizerFlick : Efl.Canvas.GestureRecognizer { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class GestureRecognizerFlick : Efl.Canvas.GestureRecognizer FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected GestureRecognizerFlick(ConstructingHandle ch) : base(ch) { @@ -94,3 +97,9 @@ public class GestureRecognizerFlick : Efl.Canvas.GestureRecognizer } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasGestureRecognizerFlick_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_long_tap.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_long_tap.eo.cs old mode 100644 new mode 100755 index eb6f2c023..38a743cdb --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_long_tap.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_long_tap.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// EFL Gesture Recognizer Long Tap class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.GestureRecognizerLongTap.NativeMethods] [Efl.Eo.BindingEntity] public class GestureRecognizerLongTap : Efl.Canvas.GestureRecognizer { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class GestureRecognizerLongTap : Efl.Canvas.GestureRecognizer FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected GestureRecognizerLongTap(ConstructingHandle ch) : base(ch) { @@ -207,3 +210,13 @@ public class GestureRecognizerLongTap : Efl.Canvas.GestureRecognizer } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasGestureRecognizerLongTap_ExtensionMethods { + public static Efl.BindableProperty Timeout(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.GestureRecognizerLongTap { + return new Efl.BindableProperty("timeout", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_momentum.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_momentum.eo.cs old mode 100644 new mode 100755 index 3c72a14ff..699a4032b --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_momentum.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_momentum.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// EFL Gesture Recognizer Momentum class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.GestureRecognizerMomentum.NativeMethods] [Efl.Eo.BindingEntity] public class GestureRecognizerMomentum : Efl.Canvas.GestureRecognizer { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class GestureRecognizerMomentum : Efl.Canvas.GestureRecognizer FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected GestureRecognizerMomentum(ConstructingHandle ch) : base(ch) { @@ -94,3 +97,9 @@ public class GestureRecognizerMomentum : Efl.Canvas.GestureRecognizer } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasGestureRecognizerMomentum_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_tap.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_tap.eo.cs old mode 100644 new mode 100755 index 943f19eab..ea1643a3f --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_tap.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_tap.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// EFL Gesture Recognizer Tap class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.GestureRecognizerTap.NativeMethods] [Efl.Eo.BindingEntity] public class GestureRecognizerTap : Efl.Canvas.GestureRecognizer { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class GestureRecognizerTap : Efl.Canvas.GestureRecognizer FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected GestureRecognizerTap(ConstructingHandle ch) : base(ch) { @@ -94,3 +97,9 @@ public class GestureRecognizerTap : Efl.Canvas.GestureRecognizer } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasGestureRecognizerTap_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_triple_tap.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_triple_tap.eo.cs old mode 100644 new mode 100755 index f618d1ebb..d30f3e992 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_triple_tap.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_triple_tap.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// EFL Gesture Recognizer Triple Tap class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.GestureRecognizerTripleTap.NativeMethods] [Efl.Eo.BindingEntity] public class GestureRecognizerTripleTap : Efl.Canvas.GestureRecognizer { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class GestureRecognizerTripleTap : Efl.Canvas.GestureRecognizer FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected GestureRecognizerTripleTap(ConstructingHandle ch) : base(ch) { @@ -207,3 +210,13 @@ public class GestureRecognizerTripleTap : Efl.Canvas.GestureRecognizer } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasGestureRecognizerTripleTap_ExtensionMethods { + public static Efl.BindableProperty Timeout(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.GestureRecognizerTripleTap { + return new Efl.BindableProperty("timeout", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_zoom.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_zoom.eo.cs old mode 100644 new mode 100755 index 60c9c1cab..68f7a0244 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_zoom.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_recognizer_zoom.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// EFL Gesture Recognizer Zoom class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.GestureRecognizerZoom.NativeMethods] [Efl.Eo.BindingEntity] public class GestureRecognizerZoom : Efl.Canvas.GestureRecognizer { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class GestureRecognizerZoom : Efl.Canvas.GestureRecognizer FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected GestureRecognizerZoom(ConstructingHandle ch) : base(ch) { @@ -94,3 +97,9 @@ public class GestureRecognizerZoom : Efl.Canvas.GestureRecognizer } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasGestureRecognizerZoom_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_tap.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_tap.eo.cs old mode 100644 new mode 100755 index 5fb781c04..8430f4f74 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_tap.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_tap.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// EFL Gesture Tap class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.GestureTap.NativeMethods] [Efl.Eo.BindingEntity] public class GestureTap : Efl.Canvas.Gesture { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class GestureTap : Efl.Canvas.Gesture FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected GestureTap(ConstructingHandle ch) : base(ch) { @@ -94,3 +97,9 @@ public class GestureTap : Efl.Canvas.Gesture } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasGestureTap_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_touch.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_touch.eo.cs old mode 100644 new mode 100755 index b0f3c9722..91427c25a --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_touch.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_touch.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// EFL Gesture Touch class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.GestureTouch.NativeMethods] [Efl.Eo.BindingEntity] public class GestureTouch : Efl.Object { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class GestureTouch : Efl.Object FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected GestureTouch(ConstructingHandle ch) : base(ch) { @@ -551,3 +554,14 @@ public class GestureTouch : Efl.Object } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasGestureTouch_ExtensionMethods { + + + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_triple_tap.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_triple_tap.eo.cs old mode 100644 new mode 100755 index b7bb85915..7d921c56b --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_triple_tap.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_triple_tap.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// EFL Gesture Triple Tap class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.GestureTripleTap.NativeMethods] [Efl.Eo.BindingEntity] public class GestureTripleTap : Efl.Canvas.Gesture { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class GestureTripleTap : Efl.Canvas.Gesture FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected GestureTripleTap(ConstructingHandle ch) : base(ch) { @@ -94,3 +97,9 @@ public class GestureTripleTap : Efl.Canvas.Gesture } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasGestureTripleTap_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_types.eot.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_types.eot.cs old mode 100644 new mode 100755 diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_zoom.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_zoom.eo.cs old mode 100644 new mode 100755 index d09df31f8..d0554717b --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_zoom.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_gesture_zoom.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// EFL Gesture Zoom class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.GestureZoom.NativeMethods] [Efl.Eo.BindingEntity] public class GestureZoom : Efl.Canvas.Gesture { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class GestureZoom : Efl.Canvas.Gesture FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected GestureZoom(ConstructingHandle ch) : base(ch) { @@ -203,3 +206,9 @@ public class GestureZoom : Efl.Canvas.Gesture } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasGestureZoom_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_group.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_group.eo.cs old mode 100644 new mode 100755 index 0771ad89b..c164285ae --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_group.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_group.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,16 +10,18 @@ namespace Efl { namespace Canvas { -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class GroupMemberAddedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when a member is added to the group. public Efl.Gfx.IEntity arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class GroupMemberRemovedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when a member is removed from the group. public Efl.Gfx.IEntity arg { get; set; } } /// A group object is a container for other canvas objects. Its children move along their parent and are often clipped with a common clipper. This is part of the legacy smart object concept. @@ -28,7 +31,7 @@ public class GroupMemberRemovedEvt_Args : EventArgs { [Efl.Eo.BindingEntity] public class Group : Efl.Canvas.Object { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -54,7 +57,8 @@ public class Group : Efl.Canvas.Object FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Group(ConstructingHandle ch) : base(ch) { @@ -77,6 +81,7 @@ public class Group : Efl.Canvas.Object /// Called when a member is added to the group. /// (Since EFL 1.22) + /// public event EventHandler MemberAddedEvt { add @@ -116,7 +121,7 @@ public class Group : Efl.Canvas.Object } } } - ///Method to raise event MemberAddedEvt. + /// Method to raise event MemberAddedEvt. public void OnMemberAddedEvt(Efl.Canvas.GroupMemberAddedEvt_Args e) { var key = "_EFL_CANVAS_GROUP_EVENT_MEMBER_ADDED"; @@ -132,6 +137,7 @@ public class Group : Efl.Canvas.Object } /// Called when a member is removed from the group. /// (Since EFL 1.22) + /// public event EventHandler MemberRemovedEvt { add @@ -171,7 +177,7 @@ public class Group : Efl.Canvas.Object } } } - ///Method to raise event MemberRemovedEvt. + /// Method to raise event MemberRemovedEvt. public void OnMemberRemovedEvt(Efl.Canvas.GroupMemberRemovedEvt_Args e) { var key = "_EFL_CANVAS_GROUP_EVENT_MEMBER_REMOVED"; @@ -736,3 +742,14 @@ public class Group : Efl.Canvas.Object } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasGroup_ExtensionMethods { + public static Efl.BindableProperty GroupNeedRecalculate(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Group { + return new Efl.BindableProperty("group_need_recalculate", fac); + } + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_image.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_image.eo.cs old mode 100644 new mode 100755 index 6ce35769b..a198795d2 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_image.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_image.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Canvas { /// Low-level Image object. /// This replaces the legacy Evas Object Image, with only image-related interfaces: file and data images only. This object does not implement any special features such as proxy, snapshot or GL. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.Image.NativeMethods] [Efl.Eo.BindingEntity] public class Image : Efl.Canvas.ImageInternal, Efl.IFile, Efl.Gfx.IFrameController, Efl.Gfx.IImageLoadController { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -41,7 +43,8 @@ public class Image : Efl.Canvas.ImageInternal, Efl.IFile, Efl.Gfx.IFrameControll FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Image(ConstructingHandle ch) : base(ch) { @@ -101,7 +104,7 @@ public class Image : Efl.Canvas.ImageInternal, Efl.IFile, Efl.Gfx.IFrameControll } } } - ///Method to raise event LoadDoneEvt. + /// Method to raise event LoadDoneEvt. public void OnLoadDoneEvt(EventArgs e) { var key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_DONE"; @@ -115,6 +118,7 @@ public class Image : Efl.Canvas.ImageInternal, Efl.IFile, Efl.Gfx.IFrameControll Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when an error happened during image loading + /// public event EventHandler LoadErrorEvt { add @@ -154,7 +158,7 @@ public class Image : Efl.Canvas.ImageInternal, Efl.IFile, Efl.Gfx.IFrameControll } } } - ///Method to raise event LoadErrorEvt. + /// Method to raise event LoadErrorEvt. public void OnLoadErrorEvt(Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args e) { var key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_ERROR"; @@ -2016,3 +2020,56 @@ public class Image : Efl.Canvas.ImageInternal, Efl.IFile, Efl.Gfx.IFrameControll } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasImage_ExtensionMethods { + public static Efl.BindableProperty Mmap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Image { + return new Efl.BindableProperty("mmap", fac); + } + + public static Efl.BindableProperty File(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Image { + return new Efl.BindableProperty("file", fac); + } + + public static Efl.BindableProperty Key(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Image { + return new Efl.BindableProperty("key", fac); + } + + + + public static Efl.BindableProperty Frame(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Image { + return new Efl.BindableProperty("frame", fac); + } + + + + + + public static Efl.BindableProperty LoadSize(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Image { + return new Efl.BindableProperty("load_size", fac); + } + + public static Efl.BindableProperty LoadDpi(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Image { + return new Efl.BindableProperty("load_dpi", fac); + } + + + public static Efl.BindableProperty LoadRegion(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Image { + return new Efl.BindableProperty("load_region", fac); + } + + public static Efl.BindableProperty LoadOrientation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Image { + return new Efl.BindableProperty("load_orientation", fac); + } + + public static Efl.BindableProperty LoadScaleDown(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Image { + return new Efl.BindableProperty("load_scale_down", fac); + } + + public static Efl.BindableProperty LoadSkipHeader(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Image { + return new Efl.BindableProperty("load_skip_header", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_image_internal.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_image_internal.eo.cs old mode 100644 new mode 100755 index 5badc2545..f305d7630 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_image_internal.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_image_internal.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// Efl canvas internal image class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.ImageInternal.NativeMethods] [Efl.Eo.BindingEntity] public abstract class ImageInternal : Efl.Canvas.Object, Efl.IFileSave, Efl.Canvas.Filter.IInternal, Efl.Gfx.IBuffer, Efl.Gfx.IFill, Efl.Gfx.IFilter, Efl.Gfx.IImage, Efl.Gfx.IImageOrientable, Efl.Gfx.IView { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public abstract class ImageInternal : Efl.Canvas.Object, Efl.IFileSave, Efl.Canv FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected ImageInternal(ConstructingHandle ch) : base(ch) { @@ -107,7 +110,7 @@ public abstract class ImageInternal : Efl.Canvas.Object, Efl.IFileSave, Efl.Canv } } } - ///Method to raise event ImagePreloadEvt. + /// Method to raise event ImagePreloadEvt. public void OnImagePreloadEvt(EventArgs e) { var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_PRELOAD"; @@ -159,7 +162,7 @@ public abstract class ImageInternal : Efl.Canvas.Object, Efl.IFileSave, Efl.Canv } } } - ///Method to raise event ImageResizeEvt. + /// Method to raise event ImageResizeEvt. public void OnImageResizeEvt(EventArgs e) { var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_RESIZE"; @@ -211,7 +214,7 @@ public abstract class ImageInternal : Efl.Canvas.Object, Efl.IFileSave, Efl.Canv } } } - ///Method to raise event ImageUnloadEvt. + /// Method to raise event ImageUnloadEvt. public void OnImageUnloadEvt(EventArgs e) { var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_UNLOAD"; @@ -613,6 +616,32 @@ public abstract class ImageInternal : Efl.Canvas.Object, Efl.IFileSave, Efl.Canv Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_type_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),scale_type); Eina.Error.RaiseIfUnhandledException(); } + /// If true, the image may be scaled to a larger size. If false, the image will never be resized larger than its native size. This is set to true by default. + /// Allow image upscaling + virtual public bool GetCanUpscale() { + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_can_upscale_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// If true, the image may be scaled to a larger size. If false, the image will never be resized larger than its native size. This is set to true by default. + /// Allow image upscaling + virtual public void SetCanUpscale(bool upscale) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_can_upscale_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),upscale); + Eina.Error.RaiseIfUnhandledException(); + } + /// If true, the image may be scaled to a smaller size. If false, the image will never be resized smaller than its native size. This is set to true by default. + /// Allow image downscaling + virtual public bool GetCanDownscale() { + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_can_downscale_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// If true, the image may be scaled to a smaller size. If false, the image will never be resized smaller than its native size. This is set to true by default. + /// Allow image downscaling + virtual public void SetCanDownscale(bool downscale) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_can_downscale_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),downscale); + Eina.Error.RaiseIfUnhandledException(); + } /// Returns 1.0 if not applicable (eg. height = 0). /// The image's ratio. virtual public double GetRatio() { @@ -708,20 +737,20 @@ public abstract class ImageInternal : Efl.Canvas.Object, Efl.IFileSave, Efl.Canv /// When the regions are set by the user, the method will walk the iterators once and then destroy them. When the regions are retrieved by the user, it is his responsibility to destroy the iterators.. It will remember the information for the lifetime of the object. It will ignore all value of , and . To reset the object you can just pass null to both horizontal and vertical at the same time. /// Representation of area that are stretchable in the image horizontal space. /// Representation of area that are stretchable in the image vertical space. - virtual public void GetStretchRegion(out Eina.Iterator horizontal, out Eina.Iterator vertical) { + virtual public void GetStretchRegion(out Eina.Iterator horizontal, out Eina.Iterator vertical) { System.IntPtr _out_horizontal = System.IntPtr.Zero; System.IntPtr _out_vertical = System.IntPtr.Zero; Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_stretch_region_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out _out_horizontal, out _out_vertical); Eina.Error.RaiseIfUnhandledException(); - horizontal = new Eina.Iterator(_out_horizontal, false); - vertical = new Eina.Iterator(_out_vertical, false); + horizontal = new Eina.Iterator(_out_horizontal, false); + vertical = new Eina.Iterator(_out_vertical, false); } /// This property defines the stretchable pixels region of an image. /// When the regions are set by the user, the method will walk the iterators once and then destroy them. When the regions are retrieved by the user, it is his responsibility to destroy the iterators.. It will remember the information for the lifetime of the object. It will ignore all value of , and . To reset the object you can just pass null to both horizontal and vertical at the same time. /// Representation of area that are stretchable in the image horizontal space. /// Representation of area that are stretchable in the image vertical space. /// return an error code if the stretch_region provided are incorrect. - virtual public Eina.Error SetStretchRegion(Eina.Iterator horizontal, Eina.Iterator vertical) { + virtual public Eina.Error SetStretchRegion(Eina.Iterator horizontal, Eina.Iterator vertical) { var _in_horizontal = horizontal.Handle; var _in_vertical = vertical.Handle; var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_stretch_region_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_horizontal, _in_vertical); @@ -867,6 +896,18 @@ public abstract class ImageInternal : Efl.Canvas.Object, Efl.IFileSave, Efl.Canv public int Stride { get { return GetStride(); } } + /// Duplicated pixel borders inside this buffer. + /// Internally, EFL may require an image to have its border pixels duplicated, in particular for GL textures. This property exposes the internal duplicated borders to allow calling with the entire pixel data, including those edge pixels. + public (uint, uint, uint, uint) BufferBorders { + get { + uint _out_l = default(uint); + uint _out_r = default(uint); + uint _out_t = default(uint); + uint _out_b = default(uint); + GetBufferBorders(out _out_l,out _out_r,out _out_t,out _out_b); + return (_out_l,_out_r,_out_t,_out_b); + } + } /// Binds the object's property to its actual geometry. /// If true, then every time the object is resized, it will automatically trigger a call to with the new size (and 0, 0 as source image's origin), so the image will cover the whole object's area. /// @@ -887,6 +928,46 @@ public abstract class ImageInternal : Efl.Canvas.Object, Efl.IFileSave, Efl.Canv get { return GetFill(); } set { SetFill(value); } } + /// Gets the code of the filter program set on this object. May be null. + /// The Lua program source code. + public (System.String, System.String) FilterProgram { + get { + System.String _out_code = default(System.String); + System.String _out_name = default(System.String); + GetFilterProgram(out _out_code,out _out_name); + return (_out_code,_out_name); + } + set { SetFilterProgram( value.Item1, value.Item2); } + } + /// Set the current state of the filter. + /// This should be used by Edje (EFL's internal layout engine), but could also be used when implementing animations programmatically. + /// + /// A full state is defined by two states (name + value): origin state and target state of an ongoing animation, as well as the pos progress (from 0 to 1) of that animation timeline. The second state can be omitted if there is no ongoing animation. + /// Current state of the filter + public (System.String, double, System.String, double, double) FilterState { + get { + System.String _out_cur_state = default(System.String); + double _out_cur_val = default(double); + System.String _out_next_state = default(System.String); + double _out_next_val = default(double); + double _out_pos = default(double); + GetFilterState(out _out_cur_state,out _out_cur_val,out _out_next_state,out _out_next_val,out _out_pos); + return (_out_cur_state,_out_cur_val,_out_next_state,_out_next_val,_out_pos); + } + set { SetFilterState( value.Item1, value.Item2, value.Item3, value.Item4, value.Item5); } + } + /// Required padding to apply this filter without cropping. + /// Read-only property that can be used to calculate the object's final geometry. This can be overridden (set) from inside the filter program by using the function 'padding_set' in the Lua program. + public (int, int, int, int) FilterPadding { + get { + int _out_l = default(int); + int _out_r = default(int); + int _out_t = default(int); + int _out_b = default(int); + GetFilterPadding(out _out_l,out _out_r,out _out_t,out _out_b); + return (_out_l,_out_r,_out_t,_out_b); + } + } /// Whether to use high-quality image scaling algorithm for this image. /// When enabled, a higher quality image scaling algorithm is used when scaling images to sizes other than the source image's original one. This gives better results but is more computationally expensive. /// @@ -902,6 +983,18 @@ public abstract class ImageInternal : Efl.Canvas.Object, Efl.IFileSave, Efl.Canv get { return GetScaleType(); } set { SetScaleType(value); } } + /// If true, the image may be scaled to a larger size. If false, the image will never be resized larger than its native size. This is set to true by default. + /// Allow image upscaling + public bool CanUpscale { + get { return GetCanUpscale(); } + set { SetCanUpscale(value); } + } + /// If true, the image may be scaled to a smaller size. If false, the image will never be resized smaller than its native size. This is set to true by default. + /// Allow image downscaling + public bool CanDownscale { + get { return GetCanDownscale(); } + set { SetCanDownscale(value); } + } /// The native width/height ratio of the image. /// The image's ratio. public double Ratio { @@ -915,6 +1008,28 @@ public abstract class ImageInternal : Efl.Canvas.Object, Efl.IFileSave, Efl.Canv public Eina.Rect ContentRegion { get { return GetContentRegion(); } } + /// Dimensions of this image's border, a region that does not scale with the center area. + /// When EFL renders an image, its source may be scaled to fit the size of the object. This function sets an area from the borders of the image inwards which is not to be scaled. This function is useful for making frames and for widget theming, where, for example, buttons may be of varying sizes, but their border size must remain constant. + /// + /// The units used for l, r, t and b are canvas units (pixels). + /// + /// Note: The border region itself may be scaled by the function. + /// + /// Note: By default, image objects have no borders set, i.e. l, r, t and b start as 0. + /// + /// Note: Similar to the concepts of 9-patch images or cap insets. + /// The border's left width. + public (int, int, int, int) Border { + get { + int _out_l = default(int); + int _out_r = default(int); + int _out_t = default(int); + int _out_b = default(int); + GetBorder(out _out_l,out _out_r,out _out_t,out _out_b); + return (_out_l,_out_r,_out_t,_out_b); + } + set { SetBorder( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Scaling factor applied to the image borders. /// This value multiplies the size of the when scaling an object. /// @@ -933,6 +1048,18 @@ public abstract class ImageInternal : Efl.Canvas.Object, Efl.IFileSave, Efl.Canv get { return GetBorderCenterFill(); } set { SetBorderCenterFill(value); } } + /// This property defines the stretchable pixels region of an image. + /// When the regions are set by the user, the method will walk the iterators once and then destroy them. When the regions are retrieved by the user, it is his responsibility to destroy the iterators.. It will remember the information for the lifetime of the object. It will ignore all value of , and . To reset the object you can just pass null to both horizontal and vertical at the same time. + /// Representation of area that are stretchable in the image horizontal space. + public (Eina.Iterator, Eina.Iterator) StretchRegion { + get { + Eina.Iterator _out_horizontal = default(Eina.Iterator); + Eina.Iterator _out_vertical = default(Eina.Iterator); + GetStretchRegion(out _out_horizontal,out _out_vertical); + return (_out_horizontal,_out_vertical); + } + set { SetStretchRegion( value.Item1, value.Item2); } + } /// This represents the size of the original image in pixels. /// This may be different from the actual geometry on screen or even the size of the loaded pixel buffer. This is the size of the image as stored in the original file. /// @@ -1378,6 +1505,46 @@ public abstract class ImageInternal : Efl.Canvas.Object, Efl.IFileSave, Efl.Canv descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_set_static_delegate) }); } + if (efl_gfx_image_can_upscale_get_static_delegate == null) + { + efl_gfx_image_can_upscale_get_static_delegate = new efl_gfx_image_can_upscale_get_delegate(can_upscale_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetCanUpscale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_can_upscale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_can_upscale_get_static_delegate) }); + } + + if (efl_gfx_image_can_upscale_set_static_delegate == null) + { + efl_gfx_image_can_upscale_set_static_delegate = new efl_gfx_image_can_upscale_set_delegate(can_upscale_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetCanUpscale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_can_upscale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_can_upscale_set_static_delegate) }); + } + + if (efl_gfx_image_can_downscale_get_static_delegate == null) + { + efl_gfx_image_can_downscale_get_static_delegate = new efl_gfx_image_can_downscale_get_delegate(can_downscale_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetCanDownscale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_can_downscale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_can_downscale_get_static_delegate) }); + } + + if (efl_gfx_image_can_downscale_set_static_delegate == null) + { + efl_gfx_image_can_downscale_set_static_delegate = new efl_gfx_image_can_downscale_set_delegate(can_downscale_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetCanDownscale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_can_downscale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_can_downscale_set_static_delegate) }); + } + if (efl_gfx_image_ratio_get_static_delegate == null) { efl_gfx_image_ratio_get_static_delegate = new efl_gfx_image_ratio_get_delegate(ratio_get); @@ -2962,6 +3129,148 @@ public abstract class ImageInternal : Efl.Canvas.Object, Efl.IFileSave, Efl.Canv private static efl_gfx_image_scale_type_set_delegate efl_gfx_image_scale_type_set_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_can_upscale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_can_upscale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_can_upscale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_can_upscale_get"); + + private static bool can_upscale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_can_upscale_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ImageInternal)ws.Target).GetCanUpscale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_can_upscale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_can_upscale_get_delegate efl_gfx_image_can_upscale_get_static_delegate; + + + private delegate void efl_gfx_image_can_upscale_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool upscale); + + + public delegate void efl_gfx_image_can_upscale_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool upscale); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_can_upscale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_can_upscale_set"); + + private static void can_upscale_set(System.IntPtr obj, System.IntPtr pd, bool upscale) + { + Eina.Log.Debug("function efl_gfx_image_can_upscale_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((ImageInternal)ws.Target).SetCanUpscale(upscale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_can_upscale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), upscale); + } + } + + private static efl_gfx_image_can_upscale_set_delegate efl_gfx_image_can_upscale_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_can_downscale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_can_downscale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_can_downscale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_can_downscale_get"); + + private static bool can_downscale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_can_downscale_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ImageInternal)ws.Target).GetCanDownscale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_can_downscale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_can_downscale_get_delegate efl_gfx_image_can_downscale_get_static_delegate; + + + private delegate void efl_gfx_image_can_downscale_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool downscale); + + + public delegate void efl_gfx_image_can_downscale_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool downscale); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_can_downscale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_can_downscale_set"); + + private static void can_downscale_set(System.IntPtr obj, System.IntPtr pd, bool downscale) + { + Eina.Log.Debug("function efl_gfx_image_can_downscale_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((ImageInternal)ws.Target).SetCanDownscale(downscale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_can_downscale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), downscale); + } + } + + private static efl_gfx_image_can_downscale_set_delegate efl_gfx_image_can_downscale_set_static_delegate; + private delegate double efl_gfx_image_ratio_get_delegate(System.IntPtr obj, System.IntPtr pd); @@ -3260,8 +3569,8 @@ public abstract class ImageInternal : Efl.Canvas.Object, Efl.IFileSave, Efl.Canv var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - Eina.Iterator _out_horizontal = default(Eina.Iterator); - Eina.Iterator _out_vertical = default(Eina.Iterator); + Eina.Iterator _out_horizontal = default(Eina.Iterator); + Eina.Iterator _out_vertical = default(Eina.Iterator); try { @@ -3299,8 +3608,8 @@ public abstract class ImageInternal : Efl.Canvas.Object, Efl.IFileSave, Efl.Canv var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - var _in_horizontal = new Eina.Iterator(horizontal, false); - var _in_vertical = new Eina.Iterator(vertical, false); + var _in_horizontal = new Eina.Iterator(horizontal, false); + var _in_vertical = new Eina.Iterator(vertical, false); Eina.Error _ret_var = default(Eina.Error); try { @@ -3688,3 +3997,88 @@ public abstract class ImageInternal : Efl.Canvas.Object, Efl.IFileSave, Efl.Canv } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasImageInternal_ExtensionMethods { + public static Efl.BindableProperty FilterChanged(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.ImageInternal { + return new Efl.BindableProperty("filter_changed", fac); + } + + public static Efl.BindableProperty FilterInvalid(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.ImageInternal { + return new Efl.BindableProperty("filter_invalid", fac); + } + + + public static Efl.BindableProperty BufferSize(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.ImageInternal { + return new Efl.BindableProperty("buffer_size", fac); + } + + + public static Efl.BindableProperty Alpha(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.ImageInternal { + return new Efl.BindableProperty("alpha", fac); + } + + + + public static Efl.BindableProperty FillAuto(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.ImageInternal { + return new Efl.BindableProperty("fill_auto", fac); + } + + public static Efl.BindableProperty Fill(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.ImageInternal { + return new Efl.BindableProperty("fill", fac); + } + + + + + + + public static Efl.BindableProperty SmoothScale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.ImageInternal { + return new Efl.BindableProperty("smooth_scale", fac); + } + + public static Efl.BindableProperty ScaleType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.ImageInternal { + return new Efl.BindableProperty("scale_type", fac); + } + + public static Efl.BindableProperty CanUpscale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.ImageInternal { + return new Efl.BindableProperty("can_upscale", fac); + } + + public static Efl.BindableProperty CanDownscale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.ImageInternal { + return new Efl.BindableProperty("can_downscale", fac); + } + + + + + public static Efl.BindableProperty BorderScale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.ImageInternal { + return new Efl.BindableProperty("border_scale", fac); + } + + public static Efl.BindableProperty BorderCenterFill(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.ImageInternal { + return new Efl.BindableProperty("border_center_fill", fac); + } + + + + public static Efl.BindableProperty ContentHint(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.ImageInternal { + return new Efl.BindableProperty("content_hint", fac); + } + + public static Efl.BindableProperty ScaleHint(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.ImageInternal { + return new Efl.BindableProperty("scale_hint", fac); + } + + + public static Efl.BindableProperty ImageOrientation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.ImageInternal { + return new Efl.BindableProperty("image_orientation", fac); + } + + public static Efl.BindableProperty ViewSize(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.ImageInternal { + return new Efl.BindableProperty("view_size", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout.eo.cs old mode 100644 new mode 100755 index cebff533b..5f75e7b88 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,18 +10,20 @@ namespace Efl { namespace Canvas { -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class LayoutPartInvalidEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Emitted when trying to use an invalid part. The value passed is the part name. public System.String arg { get; set; } } /// Edje object class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.Layout.NativeMethods] [Efl.Eo.BindingEntity] -public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver, Efl.IPart, Efl.IPlayer, Efl.Gfx.IColorClass, Efl.Gfx.ISizeClass, Efl.Gfx.ITextClass, Efl.Layout.ICalc, Efl.Layout.IGroup, Efl.Layout.ISignal +public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver, Efl.IPart, Efl.IPlayer, Efl.Gfx.IColorClass, Efl.Gfx.ISizeClass, Efl.Gfx.ITextClass, Efl.Layout.ICalc, Efl.Layout.IGroup, Efl.Layout.ISignal, Efl.Ui.II18n { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +49,8 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Layout(ConstructingHandle ch) : base(ch) { @@ -68,6 +72,7 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver } /// Emitted when trying to use an invalid part. The value passed is the part name. + /// public event EventHandler PartInvalidEvt { add @@ -107,7 +112,7 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver } } } - ///Method to raise event PartInvalidEvt. + /// Method to raise event PartInvalidEvt. public void OnPartInvalidEvt(Efl.Canvas.LayoutPartInvalidEvt_Args e) { var key = "_EFL_LAYOUT_EVENT_PART_INVALID"; @@ -130,6 +135,7 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver } /// Sent after a new sub-object was added. /// (Since EFL 1.22) + /// public event EventHandler ContentAddedEvt { add @@ -169,7 +175,7 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver } } } - ///Method to raise event ContentAddedEvt. + /// Method to raise event ContentAddedEvt. public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; @@ -185,6 +191,7 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver } /// Sent after a sub-object was removed, before unref. /// (Since EFL 1.22) + /// public event EventHandler ContentRemovedEvt { add @@ -224,7 +231,7 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver } } } - ///Method to raise event ContentRemovedEvt. + /// Method to raise event ContentRemovedEvt. public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; @@ -278,7 +285,7 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver } } } - ///Method to raise event RecalcEvt. + /// Method to raise event RecalcEvt. public void OnRecalcEvt(EventArgs e) { var key = "_EFL_LAYOUT_EVENT_RECALC"; @@ -293,6 +300,7 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver } /// A circular dependency between parts of the object was found. /// (Since EFL 1.22) + /// public event EventHandler CircularDependencyEvt { add @@ -332,7 +340,7 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver } } } - ///Method to raise event CircularDependencyEvt. + /// Method to raise event CircularDependencyEvt. public void OnCircularDependencyEvt(Efl.Layout.ICalcCircularDependencyEvt_Args e) { var key = "_EFL_LAYOUT_EVENT_CIRCULAR_DEPENDENCY"; @@ -387,7 +395,7 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver /// Gets the object text min calculation policy. /// Do not use this API without understanding whats going on. It is made for internal usage. /// - /// @if MOBILE @since_tizen 3.0 @elseif WEARABLE @since_tizen 3.0 @endif @internal + /// if MOBILE since_tizen 3.0 elseif WEARABLE since_tizen 3.0 endif internal /// The part name /// The state name /// The min width policy @@ -401,7 +409,7 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver /// Sets the object text min calculation policy. /// Do not use this API without understanding whats going on. It is made for internal usage. /// - /// @if MOBILE @since_tizen 3.0 @elseif WEARABLE @since_tizen 3.0 @endif @internal + /// if MOBILE since_tizen 3.0 elseif WEARABLE since_tizen 3.0 endif internal /// The part name /// The state name /// The min width policy @@ -413,7 +421,7 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver return _ret_var; } /// Gets the valign for text. - /// Do not use this API without understanding whats going on. It is made for internal usage. @internal + /// Do not use this API without understanding whats going on. It is made for internal usage. internal /// The part name /// The valign 0.0~1.0. -1.0 for respect EDC's align value. virtual public double GetPartTextValign(System.String part) { @@ -422,7 +430,7 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver return _ret_var; } /// Sets the valign for text. - /// Do not use this API without understanding whats going on. It is made for internal usage. @internal + /// Do not use this API without understanding whats going on. It is made for internal usage. internal /// The part name /// The valign 0.0~1.0. -1.0 for respect EDC's align value. /// true, on success or false, on error @@ -432,7 +440,7 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver return _ret_var; } /// Gets the duration for text's marquee. - /// Do not use this API without understanding whats going on. It is made for internal usage. @internal + /// Do not use this API without understanding whats going on. It is made for internal usage. internal /// The part name /// The duration. 0.0 for respect EDC's duration value. virtual public double GetPartTextMarqueeDuration(System.String part) { @@ -441,7 +449,7 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver return _ret_var; } /// Sets the duration for text's marquee. - /// Do not use this API without understanding whats going on. It is made for internal usage. @internal + /// Do not use this API without understanding whats going on. It is made for internal usage. internal /// The part name /// The duration. 0.0 for respect EDC's duration value. /// true, on success or false, on error @@ -451,7 +459,7 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver return _ret_var; } /// Gets the speed for text's marquee. - /// Do not use this API without understanding whats going on. It is made for internal usage. @internal + /// Do not use this API without understanding whats going on. It is made for internal usage. internal /// The part name /// The speed. 0.0 for respect EDC's speed value. virtual public double GetPartTextMarqueeSpeed(System.String part) { @@ -460,7 +468,7 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver return _ret_var; } /// Sets the speed for text's marquee. - /// Do not use this API without understanding whats going on. It is made for internal usage. @internal + /// Do not use this API without understanding whats going on. It is made for internal usage. internal /// The part name /// The speed. 0.0 for respect EDC's speed value. /// true, on success or false, on error @@ -470,7 +478,7 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver return _ret_var; } /// Gets the always mode for text's marquee. - /// Do not use this API without understanding whats going on. It is made for internal usage. @internal + /// Do not use this API without understanding whats going on. It is made for internal usage. internal /// The part name /// The always mode virtual public bool GetPartTextMarqueeAlways(System.String part) { @@ -479,7 +487,7 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver return _ret_var; } /// Sets the always mode for text's marquee. - /// Do not use this API without understanding whats going on. It is made for internal usage. @internal + /// Do not use this API without understanding whats going on. It is made for internal usage. internal /// The part name /// The always mode /// true, on success or false, on error @@ -489,7 +497,7 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver return _ret_var; } /// Gets the valign for a common description. - /// Do not use this API without understanding whats going on. It is made for internal usage. @internal + /// Do not use this API without understanding whats going on. It is made for internal usage. internal /// The part name /// The valign 0.0~1.0. -1.0 for respect EDC's align value. virtual public double GetPartValign(System.String part) { @@ -498,7 +506,7 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver return _ret_var; } /// Sets the valign for a common description. - /// Do not use this API without understanding whats going on. It is made for internal usage. @internal + /// Do not use this API without understanding whats going on. It is made for internal usage. internal /// The part name /// The valign 0.0~1.0. -1.0 for respect EDC's align value. /// true, on success or false, on error @@ -523,20 +531,20 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver return _ret_var; } /// Sets the parent object for color class. - /// @if MOBILE @since_tizen 3.0 @elseif WEARABLE @since_tizen 3.0 @endif @internal + /// if MOBILE since_tizen 3.0 elseif WEARABLE since_tizen 3.0 endif internal /// The parent object for color class virtual public void SetColorClassParent(Efl.Object parent) { Efl.Canvas.Layout.NativeMethods.efl_canvas_layout_color_class_parent_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),parent); Eina.Error.RaiseIfUnhandledException(); } /// Unsets the parent object for color class. - /// @if MOBILE @since_tizen 3.0 @elseif WEARABLE @since_tizen 3.0 @endif @internal + /// if MOBILE since_tizen 3.0 elseif WEARABLE since_tizen 3.0 endif internal virtual public void UnsetColorClassParent() { Efl.Canvas.Layout.NativeMethods.efl_canvas_layout_color_class_parent_unset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } /// Get a position of the given cursor - /// @internal + /// internal /// The part name /// cursor type /// w @@ -546,7 +554,7 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver Eina.Error.RaiseIfUnhandledException(); } /// Get a size of the given cursor - /// @internal + /// internal /// The part name /// cursor type /// w @@ -556,7 +564,7 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver Eina.Error.RaiseIfUnhandledException(); } /// Returns the cursor geometry of the part relative to the edje object. The cursor geometry is kept in mouse down and move. - /// @internal @if MOBILE @since_tizen 3.0 @elseif WEARABLE @since_tizen 3.0 @endif + /// internal if MOBILE since_tizen 3.0 elseif WEARABLE since_tizen 3.0 endif /// The part name /// Cursor X position /// Cursor Y position @@ -1106,7 +1114,7 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver /// /// Though there are those common uses for the two strings, one is free to use them however they like. /// - /// Signal callback registration is powerful, in the way that blobs may be used to match multiple signals at once. All the "*?[" set of fnmatch() operators can be used, both for emission and source. + /// Signal callback registration is powerful, in the way that blobs may be used to match multiple signals at once. All the "*?[" set of fnmatch() operators can be used, both for emission and source. /// /// Edje has internal signals it will emit, automatically, on various actions taking place on group parts. For example, the mouse cursor being moved, pressed, released, etc., over a given part's area, all generate individual signals. /// @@ -1164,6 +1172,53 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver Efl.Layout.ISignalConcrete.NativeMethods.efl_layout_signal_process_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),recurse); Eina.Error.RaiseIfUnhandledException(); } + /// Whether this object should be mirrored. + /// If mirrored, an object is in RTL (right to left) mode instead of LTR (left to right). + /// true for RTL, false for LTR (default). + virtual public bool GetMirrored() { + var _ret_var = Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Whether this object should be mirrored. + /// If mirrored, an object is in RTL (right to left) mode instead of LTR (left to right). + /// true for RTL, false for LTR (default). + virtual public void SetMirrored(bool rtl) { + Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),rtl); + Eina.Error.RaiseIfUnhandledException(); + } + /// Whether the property should be set automatically. + /// If enabled, the system or application configuration will be used to set the value of . + /// + /// This property may be implemented by high-level widgets (in Efl.Ui) but not by low-level widgets (in ) as the configuration should affect only high-level widgets. + /// Whether the widget uses automatic mirroring + virtual public bool GetMirroredAutomatic() { + var _ret_var = Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_automatic_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Whether the property should be set automatically. + /// If enabled, the system or application configuration will be used to set the value of . + /// + /// This property may be implemented by high-level widgets (in Efl.Ui) but not by low-level widgets (in ) as the configuration should affect only high-level widgets. + /// Whether the widget uses automatic mirroring + virtual public void SetMirroredAutomatic(bool automatic) { + Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_automatic_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),automatic); + Eina.Error.RaiseIfUnhandledException(); + } + /// Gets the language for this object. + /// The current language. + virtual public System.String GetLanguage() { + var _ret_var = Efl.Ui.II18nConcrete.NativeMethods.efl_ui_language_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Sets the language for this object. + /// The current language. + virtual public void SetLanguage(System.String language) { + Efl.Ui.II18nConcrete.NativeMethods.efl_ui_language_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),language); + Eina.Error.RaiseIfUnhandledException(); + } /// Whether this object is animating or not. /// This property indicates whether animations are stopped or not. Animations here refer to transitions between states. /// @@ -1299,6 +1354,28 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver public Eina.Size2D GroupSizeMax { get { return GetGroupSizeMax(); } } + /// Whether this object should be mirrored. + /// If mirrored, an object is in RTL (right to left) mode instead of LTR (left to right). + /// true for RTL, false for LTR (default). + public bool Mirrored { + get { return GetMirrored(); } + set { SetMirrored(value); } + } + /// Whether the property should be set automatically. + /// If enabled, the system or application configuration will be used to set the value of . + /// + /// This property may be implemented by high-level widgets (in Efl.Ui) but not by low-level widgets (in ) as the configuration should affect only high-level widgets. + /// Whether the widget uses automatic mirroring + public bool MirroredAutomatic { + get { return GetMirroredAutomatic(); } + set { SetMirroredAutomatic(value); } + } + /// The (human) language for this object. + /// The current language. + public System.String Language { + get { return GetLanguage(); } + set { SetLanguage(value); } + } private static IntPtr GetEflClassStatic() { return Efl.Canvas.Layout.efl_canvas_layout_class_get(); @@ -2135,6 +2212,66 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_signal_process"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_process_static_delegate) }); } + if (efl_ui_mirrored_get_static_delegate == null) + { + efl_ui_mirrored_get_static_delegate = new efl_ui_mirrored_get_delegate(mirrored_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetMirrored") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_get_static_delegate) }); + } + + if (efl_ui_mirrored_set_static_delegate == null) + { + efl_ui_mirrored_set_static_delegate = new efl_ui_mirrored_set_delegate(mirrored_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetMirrored") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_set_static_delegate) }); + } + + if (efl_ui_mirrored_automatic_get_static_delegate == null) + { + efl_ui_mirrored_automatic_get_static_delegate = new efl_ui_mirrored_automatic_get_delegate(mirrored_automatic_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetMirroredAutomatic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_automatic_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_automatic_get_static_delegate) }); + } + + if (efl_ui_mirrored_automatic_set_static_delegate == null) + { + efl_ui_mirrored_automatic_set_static_delegate = new efl_ui_mirrored_automatic_set_delegate(mirrored_automatic_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetMirroredAutomatic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_automatic_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_automatic_set_static_delegate) }); + } + + if (efl_ui_language_get_static_delegate == null) + { + efl_ui_language_get_static_delegate = new efl_ui_language_get_delegate(language_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetLanguage") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_language_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_language_get_static_delegate) }); + } + + if (efl_ui_language_set_static_delegate == null) + { + efl_ui_language_set_static_delegate = new efl_ui_language_set_delegate(language_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetLanguage") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_language_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_language_set_static_delegate) }); + } + descs.AddRange(base.GetEoOps(type)); return descs; } @@ -5079,6 +5216,219 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver private static efl_layout_signal_process_delegate efl_layout_signal_process_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_mirrored_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_mirrored_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_mirrored_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_get"); + + private static bool mirrored_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_mirrored_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)ws.Target).GetMirrored(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_mirrored_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_mirrored_get_delegate efl_ui_mirrored_get_static_delegate; + + + private delegate void efl_ui_mirrored_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool rtl); + + + public delegate void efl_ui_mirrored_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool rtl); + + public static Efl.Eo.FunctionWrapper efl_ui_mirrored_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_set"); + + private static void mirrored_set(System.IntPtr obj, System.IntPtr pd, bool rtl) + { + Eina.Log.Debug("function efl_ui_mirrored_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Layout)ws.Target).SetMirrored(rtl); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_mirrored_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rtl); + } + } + + private static efl_ui_mirrored_set_delegate efl_ui_mirrored_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_mirrored_automatic_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_mirrored_automatic_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_mirrored_automatic_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_automatic_get"); + + private static bool mirrored_automatic_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_mirrored_automatic_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Layout)ws.Target).GetMirroredAutomatic(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_mirrored_automatic_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_mirrored_automatic_get_delegate efl_ui_mirrored_automatic_get_static_delegate; + + + private delegate void efl_ui_mirrored_automatic_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool automatic); + + + public delegate void efl_ui_mirrored_automatic_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool automatic); + + public static Efl.Eo.FunctionWrapper efl_ui_mirrored_automatic_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_automatic_set"); + + private static void mirrored_automatic_set(System.IntPtr obj, System.IntPtr pd, bool automatic) + { + Eina.Log.Debug("function efl_ui_mirrored_automatic_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Layout)ws.Target).SetMirroredAutomatic(automatic); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_mirrored_automatic_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), automatic); + } + } + + private static efl_ui_mirrored_automatic_set_delegate efl_ui_mirrored_automatic_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_language_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_language_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_language_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_language_get"); + + private static System.String language_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_language_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Layout)ws.Target).GetLanguage(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_language_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_language_get_delegate efl_ui_language_get_static_delegate; + + + private delegate void efl_ui_language_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String language); + + + public delegate void efl_ui_language_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String language); + + public static Efl.Eo.FunctionWrapper efl_ui_language_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_language_set"); + + private static void language_set(System.IntPtr obj, System.IntPtr pd, System.String language) + { + Eina.Log.Debug("function efl_ui_language_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Layout)ws.Target).SetLanguage(language); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_language_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), language); + } + } + + private static efl_ui_language_set_delegate efl_ui_language_set_static_delegate; + #pragma warning restore CA1707, CS1591, SA1300, SA1600 } @@ -5087,3 +5437,84 @@ public class Layout : Efl.Canvas.Group, Efl.IContainer, Efl.IFile, Efl.IObserver } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasLayout_ExtensionMethods { + public static Efl.BindableProperty Animation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Layout { + return new Efl.BindableProperty("animation", fac); + } + + + + + + + + + + + public static Efl.BindableProperty Mmap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Layout { + return new Efl.BindableProperty("mmap", fac); + } + + public static Efl.BindableProperty File(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Layout { + return new Efl.BindableProperty("file", fac); + } + + public static Efl.BindableProperty Key(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Layout { + return new Efl.BindableProperty("key", fac); + } + + + + public static Efl.BindableProperty Play(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Layout { + return new Efl.BindableProperty("play", fac); + } + + public static Efl.BindableProperty Pos(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Layout { + return new Efl.BindableProperty("pos", fac); + } + + + public static Efl.BindableProperty PlaySpeed(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Layout { + return new Efl.BindableProperty("play_speed", fac); + } + + public static Efl.BindableProperty Volume(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Layout { + return new Efl.BindableProperty("volume", fac); + } + + public static Efl.BindableProperty Mute(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Layout { + return new Efl.BindableProperty("mute", fac); + } + + + + + + + + + public static Efl.BindableProperty CalcAutoUpdateHints(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Layout { + return new Efl.BindableProperty("calc_auto_update_hints", fac); + } + + + + + + public static Efl.BindableProperty Mirrored(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Layout { + return new Efl.BindableProperty("mirrored", fac); + } + + public static Efl.BindableProperty MirroredAutomatic(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Layout { + return new Efl.BindableProperty("mirrored_automatic", fac); + } + + public static Efl.BindableProperty Language(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Layout { + return new Efl.BindableProperty("language", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part.eo.cs old mode 100644 new mode 100755 index 9461d6dc8..8f47d8295 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Canvas { /// Common class for part proxy objects for . /// As an implementation class, all objects of this class are meant to be used for one and only one function call. In pseudo-code, the use of object of this type looks like the following: rect = layout.part("somepart").geometry_get(); +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.LayoutPart.NativeMethods] [Efl.Eo.BindingEntity] public class LayoutPart : Efl.Object, Efl.Gfx.IEntity, Efl.Ui.IDrag { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -41,7 +43,8 @@ public class LayoutPart : Efl.Object, Efl.Gfx.IEntity, Efl.Ui.IDrag FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected LayoutPart(ConstructingHandle ch) : base(ch) { @@ -64,6 +67,7 @@ public class LayoutPart : Efl.Object, Efl.Gfx.IEntity, Efl.Ui.IDrag /// Object's visibility state changed, the event value is the new state. /// (Since EFL 1.22) + /// public event EventHandler VisibilityChangedEvt { add @@ -103,7 +107,7 @@ public class LayoutPart : Efl.Object, Efl.Gfx.IEntity, Efl.Ui.IDrag } } } - ///Method to raise event VisibilityChangedEvt. + /// Method to raise event VisibilityChangedEvt. public void OnVisibilityChangedEvt(Efl.Gfx.IEntityVisibilityChangedEvt_Args e) { var key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; @@ -126,6 +130,7 @@ public class LayoutPart : Efl.Object, Efl.Gfx.IEntity, Efl.Ui.IDrag } /// Object was moved, its position during the event is the new one. /// (Since EFL 1.22) + /// public event EventHandler PositionChangedEvt { add @@ -165,7 +170,7 @@ public class LayoutPart : Efl.Object, Efl.Gfx.IEntity, Efl.Ui.IDrag } } } - ///Method to raise event PositionChangedEvt. + /// Method to raise event PositionChangedEvt. public void OnPositionChangedEvt(Efl.Gfx.IEntityPositionChangedEvt_Args e) { var key = "_EFL_GFX_ENTITY_EVENT_POSITION_CHANGED"; @@ -189,6 +194,7 @@ public class LayoutPart : Efl.Object, Efl.Gfx.IEntity, Efl.Ui.IDrag } /// Object was resized, its size during the event is the new one. /// (Since EFL 1.22) + /// public event EventHandler SizeChangedEvt { add @@ -228,7 +234,7 @@ public class LayoutPart : Efl.Object, Efl.Gfx.IEntity, Efl.Ui.IDrag } } } - ///Method to raise event SizeChangedEvt. + /// Method to raise event SizeChangedEvt. public void OnSizeChangedEvt(Efl.Gfx.IEntitySizeChangedEvt_Args e) { var key = "_EFL_GFX_ENTITY_EVENT_SIZE_CHANGED"; @@ -450,6 +456,16 @@ public class LayoutPart : Efl.Object, Efl.Gfx.IEntity, Efl.Ui.IDrag Eina.Error.RaiseIfUnhandledException(); return _ret_var; } + /// The name and value of the current state of this part (read-only). + /// This is the state name as it appears in EDC description blocks. A state has both a name and a value (double). The default state is "default" 0.0, but this function will return "" if the part is invalid. + public (System.String, double) State { + get { + System.String _out_state = default(System.String); + double _out_val = default(double); + GetState(out _out_state,out _out_val); + return (_out_state,_out_val); + } + } /// Type of this part in the layout. /// One of the types or none if not an existing part. public Efl.Canvas.LayoutPartType PartType { @@ -497,12 +513,76 @@ public class LayoutPart : Efl.Object, Efl.Gfx.IEntity, Efl.Ui.IDrag get { return GetScale(); } set { SetScale(value); } } + /// The draggable object relative location. + /// Some parts in Edje can be dragged along the X/Y axes, if the part contains a "draggable" section (in EDC). For instance, scroll bars can be draggable objects. + /// + /// dx and dy are real numbers that range from 0 to 1, representing the relative position to the draggable area on that axis. + /// + /// This value means, for the vertical axis, that 0.0 will be at the top if the first parameter of y in the draggable part theme is 1 and at the bottom if it is -1. + /// + /// For the horizontal axis, 0.0 means left if the first parameter of x in the draggable part theme is 1, and right if it is -1. + /// The x relative position, from 0 to 1. + public (double, double) DragValue { + get { + double _out_dx = default(double); + double _out_dy = default(double); + GetDragValue(out _out_dx,out _out_dy); + return (_out_dx,_out_dy); + } + set { SetDragValue( value.Item1, value.Item2); } + } + /// The draggable object relative size. + /// Values for dw and dh are real numbers that range from 0 to 1, representing the relative size of the draggable area on that axis. + /// + /// For instance a scroll bar handle size may depend on the size of the scroller's content. + /// The drag relative width, from 0 to 1. + public (double, double) DragSize { + get { + double _out_dw = default(double); + double _out_dh = default(double); + GetDragSize(out _out_dw,out _out_dh); + return (_out_dw,_out_dh); + } + set { SetDragSize( value.Item1, value.Item2); } + } /// Determines the draggable directions (read-only). /// The draggable directions are defined in the EDC file, inside the "draggable" section, by the attributes x and y. See the EDC reference documentation for more information. /// The direction(s) premitted for drag. public Efl.Ui.DragDir DragDir { get { return GetDragDir(); } } + /// The drag step increment. + /// Values for dx and dy are real numbers that range from 0 to 1, representing the relative size of the draggable area on that axis by which the part will be moved. + /// + /// This differs from in that this is meant to represent a unit increment, like a single line for example. + /// + /// See also . + /// The x step relative amount, from 0 to 1. + public (double, double) DragStep { + get { + double _out_dx = default(double); + double _out_dy = default(double); + GetDragStep(out _out_dx,out _out_dy); + return (_out_dx,_out_dy); + } + set { SetDragStep( value.Item1, value.Item2); } + } + /// The page step increments. + /// Values for dx and dy are real numbers that range from 0 to 1, representing the relative size of the draggable area on that axis by which the part will be moved. + /// + /// This differs from in that this is meant to be a larger step size, basically an entire page as opposed to a single or couple of lines. + /// + /// See also . + /// The x page step increment + public (double, double) DragPage { + get { + double _out_dx = default(double); + double _out_dy = default(double); + GetDragPage(out _out_dx,out _out_dy); + return (_out_dx,_out_dy); + } + set { SetDragPage( value.Item1, value.Item2); } + } private static IntPtr GetEflClassStatic() { return Efl.Canvas.LayoutPart.efl_canvas_layout_part_class_get(); @@ -1596,3 +1676,36 @@ public class LayoutPart : Efl.Object, Efl.Gfx.IEntity, Efl.Ui.IDrag } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasLayoutPart_ExtensionMethods { + + + public static Efl.BindableProperty Position(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPart { + return new Efl.BindableProperty("position", fac); + } + + public static Efl.BindableProperty Size(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPart { + return new Efl.BindableProperty("size", fac); + } + + public static Efl.BindableProperty Geometry(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPart { + return new Efl.BindableProperty("geometry", fac); + } + + public static Efl.BindableProperty Visible(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPart { + return new Efl.BindableProperty("visible", fac); + } + + public static Efl.BindableProperty Scale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPart { + return new Efl.BindableProperty("scale", fac); + } + + + + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_box.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_box.eo.cs old mode 100644 new mode 100755 index faa750cc5..d4daf3f66 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_box.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_box.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Canvas { /// Represents a Box created as part of a layout. /// Its lifetime is limited to one function call only, unless an extra reference is explicitly held. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.LayoutPartBox.NativeMethods] [Efl.Eo.BindingEntity] public class LayoutPartBox : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.IPack, Efl.IPackLinear, Efl.Ui.ILayoutOrientable, Efl.Ui.ILayoutOrientableReadonly { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -41,7 +43,8 @@ public class LayoutPartBox : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.IPack, E FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected LayoutPartBox(ConstructingHandle ch) : base(ch) { @@ -64,6 +67,7 @@ public class LayoutPartBox : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.IPack, E /// Sent after a new sub-object was added. /// (Since EFL 1.22) + /// public event EventHandler ContentAddedEvt { add @@ -103,7 +107,7 @@ public class LayoutPartBox : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.IPack, E } } } - ///Method to raise event ContentAddedEvt. + /// Method to raise event ContentAddedEvt. public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; @@ -119,6 +123,7 @@ public class LayoutPartBox : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.IPack, E } /// Sent after a sub-object was removed, before unref. /// (Since EFL 1.22) + /// public event EventHandler ContentRemovedEvt { add @@ -158,7 +163,7 @@ public class LayoutPartBox : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.IPack, E } } } - ///Method to raise event ContentRemovedEvt. + /// Method to raise event ContentRemovedEvt. public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; @@ -1107,3 +1112,13 @@ public class LayoutPartBox : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.IPack, E } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasLayoutPartBox_ExtensionMethods { + public static Efl.BindableProperty Orientation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartBox { + return new Efl.BindableProperty("orientation", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_external.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_external.eo.cs old mode 100644 new mode 100755 index 7f45c08d2..82f78c4b4 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_external.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_external.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -17,11 +18,12 @@ namespace Canvas { /// Common usage in pseudo-C would be as follows: Eo *widget = efl_content_get(efl_part(layout, "extpartname")); efl_text_set(widget, "hello"); /// /// Note that as a shortcut the widget's functions can be called directly on this part object. In C++: efl::eo::downcast<efl::Text>(layout.part("title")).text_set("hello"); Or in pseudo-C: efl_text_set(efl_part(layout, "title"), "hello"); Or in pseudo-script: layout["title"].text = "hello"; +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.LayoutPartExternal.NativeMethods] [Efl.Eo.BindingEntity] public class LayoutPartExternal : Efl.Canvas.LayoutPart, Efl.IContent { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -47,7 +49,8 @@ public class LayoutPartExternal : Efl.Canvas.LayoutPart, Efl.IContent FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected LayoutPartExternal(ConstructingHandle ch) : base(ch) { @@ -70,6 +73,7 @@ public class LayoutPartExternal : Efl.Canvas.LayoutPart, Efl.IContent /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) + /// public event EventHandler ContentChangedEvt { add @@ -109,7 +113,7 @@ public class LayoutPartExternal : Efl.Canvas.LayoutPart, Efl.IContent } } } - ///Method to raise event ContentChangedEvt. + /// Method to raise event ContentChangedEvt. public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; @@ -332,3 +336,13 @@ public class LayoutPartExternal : Efl.Canvas.LayoutPart, Efl.IContent } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasLayoutPartExternal_ExtensionMethods { + public static Efl.BindableProperty Content(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartExternal { + return new Efl.BindableProperty("content", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_invalid.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_invalid.eo.cs old mode 100644 new mode 100755 index df9c09b08..d26551e8b --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_invalid.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_invalid.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Canvas { /// Common class for part proxy objects for . /// As an implementation class, all objects of this class are meant to be used for one and only one function call. In pseudo-code, the use of object of this type looks like the following: rect = layout.part("somepart").geometry_get(); +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.LayoutPartInvalid.NativeMethods] [Efl.Eo.BindingEntity] public class LayoutPartInvalid : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.IContent, Efl.IPack, Efl.IPackLinear, Efl.IPackTable, Efl.IText, Efl.ITextCursor, Efl.ITextMarkup, Efl.ITextMarkupInteractive, Efl.Ui.ILayoutOrientable, Efl.Ui.ILayoutOrientableReadonly { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -41,7 +43,8 @@ public class LayoutPartInvalid : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.ICon FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected LayoutPartInvalid(ConstructingHandle ch) : base(ch) { @@ -64,6 +67,7 @@ public class LayoutPartInvalid : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.ICon /// Sent after a new sub-object was added. /// (Since EFL 1.22) + /// public event EventHandler ContentAddedEvt { add @@ -103,7 +107,7 @@ public class LayoutPartInvalid : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.ICon } } } - ///Method to raise event ContentAddedEvt. + /// Method to raise event ContentAddedEvt. public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; @@ -119,6 +123,7 @@ public class LayoutPartInvalid : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.ICon } /// Sent after a sub-object was removed, before unref. /// (Since EFL 1.22) + /// public event EventHandler ContentRemovedEvt { add @@ -158,7 +163,7 @@ public class LayoutPartInvalid : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.ICon } } } - ///Method to raise event ContentRemovedEvt. + /// Method to raise event ContentRemovedEvt. public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; @@ -174,6 +179,7 @@ public class LayoutPartInvalid : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.ICon } /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) + /// public event EventHandler ContentChangedEvt { add @@ -213,7 +219,7 @@ public class LayoutPartInvalid : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.ICon } } } - ///Method to raise event ContentChangedEvt. + /// Method to raise event ContentChangedEvt. public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; @@ -390,18 +396,42 @@ public class LayoutPartInvalid : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.ICon Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Position and span of the subobj in this container, may be modified to move the subobj + /// column of the subobj in this container. /// Child object /// Column number - /// Row number /// Column span + /// Returns false if item is not a child + virtual public bool GetTableCellColumn(Efl.Gfx.IEntity subobj, out int col, out int colspan) { + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_cell_column_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, out col, out colspan); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// column of the subobj in this container. + /// Child object + /// Column number + /// Column span + virtual public void SetTableCellColumn(Efl.Gfx.IEntity subobj, int col, int colspan) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_cell_column_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, col, colspan); + Eina.Error.RaiseIfUnhandledException(); + } + /// row of the subobj in this container. + /// Child object + /// Row number /// Row span /// Returns false if item is not a child - virtual public bool GetTablePosition(Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan) { - var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_position_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, out col, out row, out colspan, out rowspan); + virtual public bool GetTableCellRow(Efl.Gfx.IEntity subobj, out int row, out int rowspan) { + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_cell_row_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, out row, out rowspan); Eina.Error.RaiseIfUnhandledException(); - return _ret_var; + return _ret_var; } + /// row of the subobj in this container. + /// Child object + /// Row number + /// Row span + virtual public void SetTableCellRow(Efl.Gfx.IEntity subobj, int row, int rowspan) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_cell_row_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, row, rowspan); + Eina.Error.RaiseIfUnhandledException(); + } /// Combines and /// Number of columns /// Number of rows @@ -766,6 +796,17 @@ public class LayoutPartInvalid : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.ICon get { return GetContent(); } set { SetContent(value); } } + /// Combines and + /// Number of columns + public (int, int) TableSize { + get { + int _out_cols = default(int); + int _out_rows = default(int); + GetTableSize(out _out_cols,out _out_rows); + return (_out_cols,_out_rows); + } + set { SetTableSize( value.Item1, value.Item2); } + } /// Specifies the amount of columns the table will have when the fill direction is horizontal. If it is vertical, the amount of columns depends on the amount of cells added and . /// Amount of columns. public int TableColumns { @@ -979,14 +1020,44 @@ public class LayoutPartInvalid : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.ICon descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_at_static_delegate) }); } - if (efl_pack_table_position_get_static_delegate == null) + if (efl_pack_table_cell_column_get_static_delegate == null) + { + efl_pack_table_cell_column_get_static_delegate = new efl_pack_table_cell_column_get_delegate(table_cell_column_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetTableCellColumn") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_cell_column_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_cell_column_get_static_delegate) }); + } + + if (efl_pack_table_cell_column_set_static_delegate == null) { - efl_pack_table_position_get_static_delegate = new efl_pack_table_position_get_delegate(table_position_get); + efl_pack_table_cell_column_set_static_delegate = new efl_pack_table_cell_column_set_delegate(table_cell_column_set); } - if (methods.FirstOrDefault(m => m.Name == "GetTablePosition") != null) + if (methods.FirstOrDefault(m => m.Name == "SetTableCellColumn") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_position_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_cell_column_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_cell_column_set_static_delegate) }); + } + + if (efl_pack_table_cell_row_get_static_delegate == null) + { + efl_pack_table_cell_row_get_static_delegate = new efl_pack_table_cell_row_get_delegate(table_cell_row_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetTableCellRow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_cell_row_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_cell_row_get_static_delegate) }); + } + + if (efl_pack_table_cell_row_set_static_delegate == null) + { + efl_pack_table_cell_row_set_static_delegate = new efl_pack_table_cell_row_set_delegate(table_cell_row_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetTableCellRow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_cell_row_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_cell_row_set_static_delegate) }); } if (efl_pack_table_size_get_static_delegate == null) @@ -2084,23 +2155,23 @@ public class LayoutPartInvalid : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.ICon private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate; [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_pack_table_position_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); + private delegate bool efl_pack_table_cell_column_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int colspan); [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_pack_table_position_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); + public delegate bool efl_pack_table_cell_column_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int colspan); - public static Efl.Eo.FunctionWrapper efl_pack_table_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_position_get"); + public static Efl.Eo.FunctionWrapper efl_pack_table_cell_column_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_cell_column_get"); - private static bool table_position_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan) + private static bool table_cell_column_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, out int col, out int colspan) { - Eina.Log.Debug("function efl_pack_table_position_get was called"); + Eina.Log.Debug("function efl_pack_table_cell_column_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - col = default(int); row = default(int); colspan = default(int); rowspan = default(int); bool _ret_var = default(bool); + col = default(int); colspan = default(int); bool _ret_var = default(bool); try { - _ret_var = ((LayoutPartInvalid)ws.Target).GetTablePosition(subobj, out col, out row, out colspan, out rowspan); + _ret_var = ((LayoutPartInvalid)ws.Target).GetTableCellColumn(subobj, out col, out colspan); } catch (Exception e) { @@ -2108,16 +2179,122 @@ public class LayoutPartInvalid : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.ICon Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; + return _ret_var; + + } + else + { + return efl_pack_table_cell_column_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, out col, out colspan); + } + } + + private static efl_pack_table_cell_column_get_delegate efl_pack_table_cell_column_get_static_delegate; + + + private delegate void efl_pack_table_cell_column_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int col, int colspan); + + + public delegate void efl_pack_table_cell_column_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int col, int colspan); + + public static Efl.Eo.FunctionWrapper efl_pack_table_cell_column_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_cell_column_set"); + + private static void table_cell_column_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int col, int colspan) + { + Eina.Log.Debug("function efl_pack_table_cell_column_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((LayoutPartInvalid)ws.Target).SetTableCellColumn(subobj, col, colspan); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_cell_column_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, col, colspan); + } + } + + private static efl_pack_table_cell_column_set_delegate efl_pack_table_cell_column_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_table_cell_row_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int row, out int rowspan); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_table_cell_row_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int row, out int rowspan); + + public static Efl.Eo.FunctionWrapper efl_pack_table_cell_row_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_cell_row_get"); + + private static bool table_cell_row_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, out int row, out int rowspan) + { + Eina.Log.Debug("function efl_pack_table_cell_row_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + row = default(int); rowspan = default(int); bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartInvalid)ws.Target).GetTableCellRow(subobj, out row, out rowspan); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; } else { - return efl_pack_table_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, out col, out row, out colspan, out rowspan); + return efl_pack_table_cell_row_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, out row, out rowspan); } } - private static efl_pack_table_position_get_delegate efl_pack_table_position_get_static_delegate; + private static efl_pack_table_cell_row_get_delegate efl_pack_table_cell_row_get_static_delegate; + + + private delegate void efl_pack_table_cell_row_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int row, int rowspan); + + + public delegate void efl_pack_table_cell_row_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int row, int rowspan); + + public static Efl.Eo.FunctionWrapper efl_pack_table_cell_row_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_cell_row_set"); + + private static void table_cell_row_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int row, int rowspan) + { + Eina.Log.Debug("function efl_pack_table_cell_row_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((LayoutPartInvalid)ws.Target).SetTableCellRow(subobj, row, rowspan); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_cell_row_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, row, rowspan); + } + } + + private static efl_pack_table_cell_row_set_delegate efl_pack_table_cell_row_set_static_delegate; private delegate void efl_pack_table_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int cols, out int rows); @@ -3789,3 +3966,38 @@ public class LayoutPartInvalid : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.ICon } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasLayoutPartInvalid_ExtensionMethods { + public static Efl.BindableProperty Content(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartInvalid { + return new Efl.BindableProperty("content", fac); + } + + + + + public static Efl.BindableProperty TableColumns(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartInvalid { + return new Efl.BindableProperty("table_columns", fac); + } + + public static Efl.BindableProperty TableRows(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartInvalid { + return new Efl.BindableProperty("table_rows", fac); + } + + + + + + + public static Efl.BindableProperty Markup(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartInvalid { + return new Efl.BindableProperty("markup", fac); + } + + + public static Efl.BindableProperty Orientation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartInvalid { + return new Efl.BindableProperty("orientation", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_swallow.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_swallow.eo.cs old mode 100644 new mode 100755 index ab246b32e..b4b911467 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_swallow.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_swallow.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Canvas { /// Represents a SWALLOW part of an Edje object. /// Its lifetime is limited to one function call only, unless an extra reference is explicitely held. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.LayoutPartSwallow.NativeMethods] [Efl.Eo.BindingEntity] public class LayoutPartSwallow : Efl.Canvas.LayoutPart, Efl.IContent { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -41,7 +43,8 @@ public class LayoutPartSwallow : Efl.Canvas.LayoutPart, Efl.IContent FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected LayoutPartSwallow(ConstructingHandle ch) : base(ch) { @@ -64,6 +67,7 @@ public class LayoutPartSwallow : Efl.Canvas.LayoutPart, Efl.IContent /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) + /// public event EventHandler ContentChangedEvt { add @@ -103,7 +107,7 @@ public class LayoutPartSwallow : Efl.Canvas.LayoutPart, Efl.IContent } } } - ///Method to raise event ContentChangedEvt. + /// Method to raise event ContentChangedEvt. public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; @@ -326,3 +330,13 @@ public class LayoutPartSwallow : Efl.Canvas.LayoutPart, Efl.IContent } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasLayoutPartSwallow_ExtensionMethods { + public static Efl.BindableProperty Content(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartSwallow { + return new Efl.BindableProperty("content", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_table.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_table.eo.cs old mode 100644 new mode 100755 index 20e0b877d..a0aa2653b --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_table.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_table.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Canvas { /// Represents a Table created as part of a layout. /// Can not be deleted, this is only a representation of an internal object of an EFL layout. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.LayoutPartTable.NativeMethods] [Efl.Eo.BindingEntity] public class LayoutPartTable : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.IPack, Efl.IPackTable { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -41,7 +43,8 @@ public class LayoutPartTable : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.IPack, FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected LayoutPartTable(ConstructingHandle ch) : base(ch) { @@ -64,6 +67,7 @@ public class LayoutPartTable : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.IPack, /// Sent after a new sub-object was added. /// (Since EFL 1.22) + /// public event EventHandler ContentAddedEvt { add @@ -103,7 +107,7 @@ public class LayoutPartTable : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.IPack, } } } - ///Method to raise event ContentAddedEvt. + /// Method to raise event ContentAddedEvt. public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; @@ -119,6 +123,7 @@ public class LayoutPartTable : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.IPack, } /// Sent after a sub-object was removed, before unref. /// (Since EFL 1.22) + /// public event EventHandler ContentRemovedEvt { add @@ -158,7 +163,7 @@ public class LayoutPartTable : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.IPack, } } } - ///Method to raise event ContentRemovedEvt. + /// Method to raise event ContentRemovedEvt. public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; @@ -222,18 +227,42 @@ public class LayoutPartTable : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.IPack, Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Position and span of the subobj in this container, may be modified to move the subobj + /// column of the subobj in this container. + /// Child object + /// Column number + /// Column span + /// Returns false if item is not a child + virtual public bool GetTableCellColumn(Efl.Gfx.IEntity subobj, out int col, out int colspan) { + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_cell_column_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, out col, out colspan); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// column of the subobj in this container. /// Child object /// Column number - /// Row number /// Column span + virtual public void SetTableCellColumn(Efl.Gfx.IEntity subobj, int col, int colspan) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_cell_column_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, col, colspan); + Eina.Error.RaiseIfUnhandledException(); + } + /// row of the subobj in this container. + /// Child object + /// Row number /// Row span /// Returns false if item is not a child - virtual public bool GetTablePosition(Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan) { - var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_position_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, out col, out row, out colspan, out rowspan); + virtual public bool GetTableCellRow(Efl.Gfx.IEntity subobj, out int row, out int rowspan) { + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_cell_row_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, out row, out rowspan); Eina.Error.RaiseIfUnhandledException(); - return _ret_var; + return _ret_var; } + /// row of the subobj in this container. + /// Child object + /// Row number + /// Row span + virtual public void SetTableCellRow(Efl.Gfx.IEntity subobj, int row, int rowspan) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_cell_row_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, row, rowspan); + Eina.Error.RaiseIfUnhandledException(); + } /// Combines and /// Number of columns /// Number of rows @@ -306,6 +335,17 @@ public class LayoutPartTable : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.IPack, Eina.Error.RaiseIfUnhandledException(); return _ret_var; } + /// Combines and + /// Number of columns + public (int, int) TableSize { + get { + int _out_cols = default(int); + int _out_rows = default(int); + GetTableSize(out _out_cols,out _out_rows); + return (_out_cols,_out_rows); + } + set { SetTableSize( value.Item1, value.Item2); } + } /// Specifies the amount of columns the table will have when the fill direction is horizontal. If it is vertical, the amount of columns depends on the amount of cells added and . /// Amount of columns. public int TableColumns { @@ -394,14 +434,44 @@ public class LayoutPartTable : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.IPack, descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate) }); } - if (efl_pack_table_position_get_static_delegate == null) + if (efl_pack_table_cell_column_get_static_delegate == null) + { + efl_pack_table_cell_column_get_static_delegate = new efl_pack_table_cell_column_get_delegate(table_cell_column_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetTableCellColumn") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_cell_column_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_cell_column_get_static_delegate) }); + } + + if (efl_pack_table_cell_column_set_static_delegate == null) + { + efl_pack_table_cell_column_set_static_delegate = new efl_pack_table_cell_column_set_delegate(table_cell_column_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetTableCellColumn") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_cell_column_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_cell_column_set_static_delegate) }); + } + + if (efl_pack_table_cell_row_get_static_delegate == null) { - efl_pack_table_position_get_static_delegate = new efl_pack_table_position_get_delegate(table_position_get); + efl_pack_table_cell_row_get_static_delegate = new efl_pack_table_cell_row_get_delegate(table_cell_row_get); } - if (methods.FirstOrDefault(m => m.Name == "GetTablePosition") != null) + if (methods.FirstOrDefault(m => m.Name == "GetTableCellRow") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_position_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_cell_row_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_cell_row_get_static_delegate) }); + } + + if (efl_pack_table_cell_row_set_static_delegate == null) + { + efl_pack_table_cell_row_set_static_delegate = new efl_pack_table_cell_row_set_delegate(table_cell_row_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetTableCellRow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_cell_row_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_cell_row_set_static_delegate) }); } if (efl_pack_table_size_get_static_delegate == null) @@ -723,23 +793,23 @@ public class LayoutPartTable : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.IPack, private static efl_pack_delegate efl_pack_static_delegate; [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_pack_table_position_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); + private delegate bool efl_pack_table_cell_column_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int colspan); [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_pack_table_position_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); + public delegate bool efl_pack_table_cell_column_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int colspan); - public static Efl.Eo.FunctionWrapper efl_pack_table_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_position_get"); + public static Efl.Eo.FunctionWrapper efl_pack_table_cell_column_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_cell_column_get"); - private static bool table_position_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan) + private static bool table_cell_column_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, out int col, out int colspan) { - Eina.Log.Debug("function efl_pack_table_position_get was called"); + Eina.Log.Debug("function efl_pack_table_cell_column_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - col = default(int); row = default(int); colspan = default(int); rowspan = default(int); bool _ret_var = default(bool); + col = default(int); colspan = default(int); bool _ret_var = default(bool); try { - _ret_var = ((LayoutPartTable)ws.Target).GetTablePosition(subobj, out col, out row, out colspan, out rowspan); + _ret_var = ((LayoutPartTable)ws.Target).GetTableCellColumn(subobj, out col, out colspan); } catch (Exception e) { @@ -747,16 +817,122 @@ public class LayoutPartTable : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.IPack, Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; + return _ret_var; } else { - return efl_pack_table_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, out col, out row, out colspan, out rowspan); + return efl_pack_table_cell_column_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, out col, out colspan); } } - private static efl_pack_table_position_get_delegate efl_pack_table_position_get_static_delegate; + private static efl_pack_table_cell_column_get_delegate efl_pack_table_cell_column_get_static_delegate; + + + private delegate void efl_pack_table_cell_column_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int col, int colspan); + + + public delegate void efl_pack_table_cell_column_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int col, int colspan); + + public static Efl.Eo.FunctionWrapper efl_pack_table_cell_column_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_cell_column_set"); + + private static void table_cell_column_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int col, int colspan) + { + Eina.Log.Debug("function efl_pack_table_cell_column_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((LayoutPartTable)ws.Target).SetTableCellColumn(subobj, col, colspan); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_cell_column_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, col, colspan); + } + } + + private static efl_pack_table_cell_column_set_delegate efl_pack_table_cell_column_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_table_cell_row_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int row, out int rowspan); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_table_cell_row_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int row, out int rowspan); + + public static Efl.Eo.FunctionWrapper efl_pack_table_cell_row_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_cell_row_get"); + + private static bool table_cell_row_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, out int row, out int rowspan) + { + Eina.Log.Debug("function efl_pack_table_cell_row_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + row = default(int); rowspan = default(int); bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartTable)ws.Target).GetTableCellRow(subobj, out row, out rowspan); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_table_cell_row_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, out row, out rowspan); + } + } + + private static efl_pack_table_cell_row_get_delegate efl_pack_table_cell_row_get_static_delegate; + + + private delegate void efl_pack_table_cell_row_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int row, int rowspan); + + + public delegate void efl_pack_table_cell_row_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int row, int rowspan); + + public static Efl.Eo.FunctionWrapper efl_pack_table_cell_row_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_cell_row_set"); + + private static void table_cell_row_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int row, int rowspan) + { + Eina.Log.Debug("function efl_pack_table_cell_row_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((LayoutPartTable)ws.Target).SetTableCellRow(subobj, row, rowspan); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_cell_row_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, row, rowspan); + } + } + + private static efl_pack_table_cell_row_set_delegate efl_pack_table_cell_row_set_static_delegate; private delegate void efl_pack_table_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int cols, out int rows); @@ -1086,3 +1262,20 @@ public class LayoutPartTable : Efl.Canvas.LayoutPart, Efl.IContainer, Efl.IPack, } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasLayoutPartTable_ExtensionMethods { + + + + public static Efl.BindableProperty TableColumns(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartTable { + return new Efl.BindableProperty("table_columns", fac); + } + + public static Efl.BindableProperty TableRows(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartTable { + return new Efl.BindableProperty("table_rows", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_text.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_text.eo.cs old mode 100644 new mode 100755 index db46770a7..10f1674b2 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_text.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_layout_part_text.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Canvas { /// Represents a TEXT part of a layout /// Its lifetime is limited to one function call only, unless an extra reference is explicitly held. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.LayoutPartText.NativeMethods] [Efl.Eo.BindingEntity] public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.IText, Efl.ITextCursor, Efl.ITextFont, Efl.ITextFormat, Efl.ITextMarkup, Efl.ITextMarkupInteractive, Efl.ITextStyle { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -41,7 +43,8 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.IText, Efl.ITextCursor, FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected LayoutPartText(ConstructingHandle ch) : base(ch) { @@ -318,6 +321,8 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.IText, Efl.ITextCursor, /// Set the font family, filename and size for a given text object. /// This function allows the font name and size of a text object to be set. The font string has to follow fontconfig's convention for naming fonts, as it's the underlying library used to query system fonts by Evas (see the fc-list command's output, on your system, to get an idea). Alternatively, youe can use the full path to a font file. /// + /// To skip changing font family pass null as font family. To skip changing font size pass 0 as font size. + /// /// See also , . /// The font family name or filename. /// The font size, in points. @@ -924,6 +929,20 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.IText, Efl.ITextCursor, get { return GetTextExpand(); } set { SetTextExpand(value); } } + /// Retrieve the font family and size in use on a given text object. + /// This function allows the font name and size of a text object to be queried. Remember that the font name string is still owned by Evas and should not have free() called on it by the caller of the function. + /// + /// See also . + /// The font family name or filename. + public (System.String, Efl.Font.Size) Font { + get { + System.String _out_font = default(System.String); + Efl.Font.Size _out_size = default(Efl.Font.Size); + GetFont(out _out_font,out _out_size); + return (_out_font,_out_size); + } + set { SetFont( value.Item1, value.Item2); } + } /// Get the font file's path which is being used on a given text object. /// See for more details. /// The font file's path. @@ -1048,24 +1067,76 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.IText, Efl.ITextCursor, get { return GetMarkup(); } set { SetMarkup(value); } } + /// Color of text, excluding style + /// Red component + public (byte, byte, byte, byte) NormalColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetNormalColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetNormalColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Enable or disable backing type /// Backing type public Efl.TextStyleBackingType BackingType { get { return GetBackingType(); } set { SetBackingType(value); } } + /// Backing color + /// Red component + public (byte, byte, byte, byte) BackingColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetBackingColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetBackingColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Sets an underline style on the text /// Underline type public Efl.TextStyleUnderlineType UnderlineType { get { return GetUnderlineType(); } set { SetUnderlineType(value); } } + /// Color of normal underline style + /// Red component + public (byte, byte, byte, byte) UnderlineColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetUnderlineColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetUnderlineColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Height of underline style /// Height public double UnderlineHeight { get { return GetUnderlineHeight(); } set { SetUnderlineHeight(value); } } + /// Color of dashed underline style + /// Red component + public (byte, byte, byte, byte) UnderlineDashedColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetUnderlineDashedColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetUnderlineDashedColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Width of dashed underline style /// Width public int UnderlineDashedWidth { @@ -1078,24 +1149,102 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.IText, Efl.ITextCursor, get { return GetUnderlineDashedGap(); } set { SetUnderlineDashedGap(value); } } + /// Color of underline2 style + /// Red component + public (byte, byte, byte, byte) Underline2Color { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetUnderline2Color(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetUnderline2Color( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Type of strikethrough style /// Strikethrough type public Efl.TextStyleStrikethroughType StrikethroughType { get { return GetStrikethroughType(); } set { SetStrikethroughType(value); } } + /// Color of strikethrough_style + /// Red component + public (byte, byte, byte, byte) StrikethroughColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetStrikethroughColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetStrikethroughColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Type of effect used for the displayed text /// Effect type public Efl.TextStyleEffectType EffectType { get { return GetEffectType(); } set { SetEffectType(value); } } + /// Color of outline effect + /// Red component + public (byte, byte, byte, byte) OutlineColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetOutlineColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetOutlineColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Direction of shadow effect /// Shadow direction public Efl.TextStyleShadowDirection ShadowDirection { get { return GetShadowDirection(); } set { SetShadowDirection(value); } } + /// Color of shadow effect + /// Red component + public (byte, byte, byte, byte) ShadowColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetShadowColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetShadowColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } + /// Color of glow effect + /// Red component + public (byte, byte, byte, byte) GlowColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetGlowColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetGlowColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } + /// Second color of the glow effect + /// Red component + public (byte, byte, byte, byte) Glow2Color { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetGlow2Color(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetGlow2Color( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Program that applies a special filter /// See . /// Filter code @@ -6310,6 +6459,145 @@ public class LayoutPartText : Efl.Canvas.LayoutPart, Efl.IText, Efl.ITextCursor, } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasLayoutPartText_ExtensionMethods { + public static Efl.BindableProperty TextExpand(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("text_expand", fac); + } + + + + + + + + public static Efl.BindableProperty FontSource(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("font_source", fac); + } + + public static Efl.BindableProperty FontFallbacks(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("font_fallbacks", fac); + } + + public static Efl.BindableProperty FontWeight(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("font_weight", fac); + } + + public static Efl.BindableProperty FontSlant(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("font_slant", fac); + } + + public static Efl.BindableProperty FontWidth(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("font_width", fac); + } + + public static Efl.BindableProperty FontLang(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("font_lang", fac); + } + + public static Efl.BindableProperty FontBitmapScalable(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("font_bitmap_scalable", fac); + } + + public static Efl.BindableProperty Ellipsis(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("ellipsis", fac); + } + + public static Efl.BindableProperty Wrap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("wrap", fac); + } + + public static Efl.BindableProperty Multiline(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("multiline", fac); + } + + public static Efl.BindableProperty HalignAutoType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("halign_auto_type", fac); + } + + public static Efl.BindableProperty Halign(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("halign", fac); + } + + public static Efl.BindableProperty Valign(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("valign", fac); + } + + public static Efl.BindableProperty Linegap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("linegap", fac); + } + + public static Efl.BindableProperty Linerelgap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("linerelgap", fac); + } + + public static Efl.BindableProperty Tabstops(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("tabstops", fac); + } + + public static Efl.BindableProperty Password(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("password", fac); + } + + public static Efl.BindableProperty ReplacementChar(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("replacement_char", fac); + } + + public static Efl.BindableProperty Markup(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("markup", fac); + } + + + + public static Efl.BindableProperty BackingType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("backing_type", fac); + } + + + public static Efl.BindableProperty UnderlineType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("underline_type", fac); + } + + + public static Efl.BindableProperty UnderlineHeight(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("underline_height", fac); + } + + + public static Efl.BindableProperty UnderlineDashedWidth(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("underline_dashed_width", fac); + } + + public static Efl.BindableProperty UnderlineDashedGap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("underline_dashed_gap", fac); + } + + + public static Efl.BindableProperty StrikethroughType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("strikethrough_type", fac); + } + + + public static Efl.BindableProperty EffectType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("effect_type", fac); + } + + + public static Efl.BindableProperty ShadowDirection(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("shadow_direction", fac); + } + + + + + public static Efl.BindableProperty GfxFilter(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.LayoutPartText { + return new Efl.BindableProperty("gfx_filter", fac); + } + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Canvas { diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_object.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_object.eo.cs old mode 100644 new mode 100755 index fd64f1bea..be364aa7f --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_object.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_object.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,19 +10,20 @@ namespace Efl { namespace Canvas { -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ObjectAnimatorTickEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Animator tick synchronized with screen vsync if possible. public Efl.EventAnimatorTick arg { get; set; } } /// Efl canvas object abstract class /// (Since EFL 1.22) [Efl.Canvas.Object.NativeMethods] [Efl.Eo.BindingEntity] -public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gesture.IEvents, Efl.Gfx.IColor, Efl.Gfx.IEntity, Efl.Gfx.IHint, Efl.Gfx.IMapping, Efl.Gfx.IStack, Efl.Input.IInterface, Efl.Ui.II18n +public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gesture.IEvents, Efl.Gfx.IColor, Efl.Gfx.IEntity, Efl.Gfx.IHint, Efl.Gfx.IMapping, Efl.Gfx.IStack, Efl.Input.IInterface { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -47,7 +49,8 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Object(ConstructingHandle ch) : base(ch) { @@ -77,6 +80,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur /// Animator tick synchronized with screen vsync if possible. /// (Since EFL 1.22) + /// public event EventHandler AnimatorTickEvt { add @@ -116,7 +120,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event AnimatorTickEvt. + /// Method to raise event AnimatorTickEvt. public void OnAnimatorTickEvt(Efl.Canvas.ObjectAnimatorTickEvt_Args e) { var key = "_EFL_CANVAS_OBJECT_EVENT_ANIMATOR_TICK"; @@ -139,6 +143,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } /// Event for tap gesture + /// public event EventHandler GestureTapEvt { add @@ -178,7 +183,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event GestureTapEvt. + /// Method to raise event GestureTapEvt. public void OnGestureTapEvt(Efl.Gesture.IEventsGestureTapEvt_Args e) { var key = "_EFL_EVENT_GESTURE_TAP"; @@ -193,6 +198,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Event for double tap gesture + /// public event EventHandler GestureDoubleTapEvt { add @@ -232,7 +238,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event GestureDoubleTapEvt. + /// Method to raise event GestureDoubleTapEvt. public void OnGestureDoubleTapEvt(Efl.Gesture.IEventsGestureDoubleTapEvt_Args e) { var key = "_EFL_EVENT_GESTURE_DOUBLE_TAP"; @@ -247,6 +253,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Event for triple tap gesture + /// public event EventHandler GestureTripleTapEvt { add @@ -286,7 +293,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event GestureTripleTapEvt. + /// Method to raise event GestureTripleTapEvt. public void OnGestureTripleTapEvt(Efl.Gesture.IEventsGestureTripleTapEvt_Args e) { var key = "_EFL_EVENT_GESTURE_TRIPLE_TAP"; @@ -301,6 +308,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Event for long tap gesture + /// public event EventHandler GestureLongTapEvt { add @@ -340,7 +348,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event GestureLongTapEvt. + /// Method to raise event GestureLongTapEvt. public void OnGestureLongTapEvt(Efl.Gesture.IEventsGestureLongTapEvt_Args e) { var key = "_EFL_EVENT_GESTURE_LONG_TAP"; @@ -355,6 +363,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Event for momentum gesture + /// public event EventHandler GestureMomentumEvt { add @@ -394,7 +403,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event GestureMomentumEvt. + /// Method to raise event GestureMomentumEvt. public void OnGestureMomentumEvt(Efl.Gesture.IEventsGestureMomentumEvt_Args e) { var key = "_EFL_EVENT_GESTURE_MOMENTUM"; @@ -409,6 +418,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Event for flick gesture + /// public event EventHandler GestureFlickEvt { add @@ -448,7 +458,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event GestureFlickEvt. + /// Method to raise event GestureFlickEvt. public void OnGestureFlickEvt(Efl.Gesture.IEventsGestureFlickEvt_Args e) { var key = "_EFL_EVENT_GESTURE_FLICK"; @@ -463,6 +473,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Event for zoom gesture + /// public event EventHandler GestureZoomEvt { add @@ -502,7 +513,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event GestureZoomEvt. + /// Method to raise event GestureZoomEvt. public void OnGestureZoomEvt(Efl.Gesture.IEventsGestureZoomEvt_Args e) { var key = "_EFL_EVENT_GESTURE_ZOOM"; @@ -518,6 +529,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } /// Object's visibility state changed, the event value is the new state. /// (Since EFL 1.22) + /// public event EventHandler VisibilityChangedEvt { add @@ -557,7 +569,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event VisibilityChangedEvt. + /// Method to raise event VisibilityChangedEvt. public void OnVisibilityChangedEvt(Efl.Gfx.IEntityVisibilityChangedEvt_Args e) { var key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; @@ -580,6 +592,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } /// Object was moved, its position during the event is the new one. /// (Since EFL 1.22) + /// public event EventHandler PositionChangedEvt { add @@ -619,7 +632,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event PositionChangedEvt. + /// Method to raise event PositionChangedEvt. public void OnPositionChangedEvt(Efl.Gfx.IEntityPositionChangedEvt_Args e) { var key = "_EFL_GFX_ENTITY_EVENT_POSITION_CHANGED"; @@ -643,6 +656,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } /// Object was resized, its size during the event is the new one. /// (Since EFL 1.22) + /// public event EventHandler SizeChangedEvt { add @@ -682,7 +696,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event SizeChangedEvt. + /// Method to raise event SizeChangedEvt. public void OnSizeChangedEvt(Efl.Gfx.IEntitySizeChangedEvt_Args e) { var key = "_EFL_GFX_ENTITY_EVENT_SIZE_CHANGED"; @@ -744,7 +758,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event HintsChangedEvt. + /// Method to raise event HintsChangedEvt. public void OnHintsChangedEvt(EventArgs e) { var key = "_EFL_GFX_ENTITY_EVENT_HINTS_CHANGED"; @@ -797,7 +811,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event StackingChangedEvt. + /// Method to raise event StackingChangedEvt. public void OnStackingChangedEvt(EventArgs e) { var key = "_EFL_GFX_ENTITY_EVENT_STACKING_CHANGED"; @@ -811,6 +825,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Main pointer move (current and previous positions are known). + /// public event EventHandler PointerMoveEvt { add @@ -850,7 +865,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event PointerMoveEvt. + /// Method to raise event PointerMoveEvt. public void OnPointerMoveEvt(Efl.Input.IInterfacePointerMoveEvt_Args e) { var key = "_EFL_EVENT_POINTER_MOVE"; @@ -865,6 +880,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Main pointer button pressed (button id is known). + /// public event EventHandler PointerDownEvt { add @@ -904,7 +920,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event PointerDownEvt. + /// Method to raise event PointerDownEvt. public void OnPointerDownEvt(Efl.Input.IInterfacePointerDownEvt_Args e) { var key = "_EFL_EVENT_POINTER_DOWN"; @@ -919,6 +935,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Main pointer button released (button id is known). + /// public event EventHandler PointerUpEvt { add @@ -958,7 +975,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event PointerUpEvt. + /// Method to raise event PointerUpEvt. public void OnPointerUpEvt(Efl.Input.IInterfacePointerUpEvt_Args e) { var key = "_EFL_EVENT_POINTER_UP"; @@ -973,6 +990,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Main pointer button press was cancelled (button id is known). This can happen in rare cases when the window manager passes the focus to a more urgent window, for instance. You probably don't need to listen to this event, as it will be accompanied by an up event. + /// public event EventHandler PointerCancelEvt { add @@ -1012,7 +1030,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event PointerCancelEvt. + /// Method to raise event PointerCancelEvt. public void OnPointerCancelEvt(Efl.Input.IInterfacePointerCancelEvt_Args e) { var key = "_EFL_EVENT_POINTER_CANCEL"; @@ -1027,6 +1045,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Pointer entered a window or a widget. + /// public event EventHandler PointerInEvt { add @@ -1066,7 +1085,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event PointerInEvt. + /// Method to raise event PointerInEvt. public void OnPointerInEvt(Efl.Input.IInterfacePointerInEvt_Args e) { var key = "_EFL_EVENT_POINTER_IN"; @@ -1081,6 +1100,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Pointer left a window or a widget. + /// public event EventHandler PointerOutEvt { add @@ -1120,7 +1140,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event PointerOutEvt. + /// Method to raise event PointerOutEvt. public void OnPointerOutEvt(Efl.Input.IInterfacePointerOutEvt_Args e) { var key = "_EFL_EVENT_POINTER_OUT"; @@ -1135,6 +1155,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Mouse wheel event. + /// public event EventHandler PointerWheelEvt { add @@ -1174,7 +1195,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event PointerWheelEvt. + /// Method to raise event PointerWheelEvt. public void OnPointerWheelEvt(Efl.Input.IInterfacePointerWheelEvt_Args e) { var key = "_EFL_EVENT_POINTER_WHEEL"; @@ -1189,6 +1210,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Pen or other axis event update. + /// public event EventHandler PointerAxisEvt { add @@ -1228,7 +1250,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event PointerAxisEvt. + /// Method to raise event PointerAxisEvt. public void OnPointerAxisEvt(Efl.Input.IInterfacePointerAxisEvt_Args e) { var key = "_EFL_EVENT_POINTER_AXIS"; @@ -1243,6 +1265,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Finger moved (current and previous positions are known). + /// public event EventHandler FingerMoveEvt { add @@ -1282,7 +1305,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event FingerMoveEvt. + /// Method to raise event FingerMoveEvt. public void OnFingerMoveEvt(Efl.Input.IInterfaceFingerMoveEvt_Args e) { var key = "_EFL_EVENT_FINGER_MOVE"; @@ -1297,6 +1320,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Finger pressed (finger id is known). + /// public event EventHandler FingerDownEvt { add @@ -1336,7 +1360,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event FingerDownEvt. + /// Method to raise event FingerDownEvt. public void OnFingerDownEvt(Efl.Input.IInterfaceFingerDownEvt_Args e) { var key = "_EFL_EVENT_FINGER_DOWN"; @@ -1351,6 +1375,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Finger released (finger id is known). + /// public event EventHandler FingerUpEvt { add @@ -1390,7 +1415,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event FingerUpEvt. + /// Method to raise event FingerUpEvt. public void OnFingerUpEvt(Efl.Input.IInterfaceFingerUpEvt_Args e) { var key = "_EFL_EVENT_FINGER_UP"; @@ -1405,6 +1430,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Keyboard key press. + /// public event EventHandler KeyDownEvt { add @@ -1444,7 +1470,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event KeyDownEvt. + /// Method to raise event KeyDownEvt. public void OnKeyDownEvt(Efl.Input.IInterfaceKeyDownEvt_Args e) { var key = "_EFL_EVENT_KEY_DOWN"; @@ -1459,6 +1485,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Keyboard key release. + /// public event EventHandler KeyUpEvt { add @@ -1498,7 +1525,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event KeyUpEvt. + /// Method to raise event KeyUpEvt. public void OnKeyUpEvt(Efl.Input.IInterfaceKeyUpEvt_Args e) { var key = "_EFL_EVENT_KEY_UP"; @@ -1513,6 +1540,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// All input events are on hold or resumed. + /// public event EventHandler HoldEvt { add @@ -1552,7 +1580,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event HoldEvt. + /// Method to raise event HoldEvt. public void OnHoldEvt(Efl.Input.IInterfaceHoldEvt_Args e) { var key = "_EFL_EVENT_HOLD"; @@ -1567,6 +1595,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// A focus in event. + /// public event EventHandler FocusInEvt { add @@ -1606,7 +1635,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event FocusInEvt. + /// Method to raise event FocusInEvt. public void OnFocusInEvt(Efl.Input.IInterfaceFocusInEvt_Args e) { var key = "_EFL_EVENT_FOCUS_IN"; @@ -1621,6 +1650,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// A focus out event. + /// public event EventHandler FocusOutEvt { add @@ -1660,7 +1690,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } } } - ///Method to raise event FocusOutEvt. + /// Method to raise event FocusOutEvt. public void OnFocusOutEvt(Efl.Input.IInterfaceFocusOutEvt_Args e) { var key = "_EFL_EVENT_FOCUS_OUT"; @@ -1675,7 +1705,9 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Low-level pointer behaviour by device. See and for more explanation. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The pointer device to set/get the mode. Use null for the default pointer. /// The pointer mode virtual public Efl.Input.ObjectPointerMode GetPointerModeByDevice(Efl.Input.Device dev) { @@ -1684,7 +1716,9 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur return _ret_var; } /// Low-level pointer behaviour by device. See and for more explanation. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The pointer device to set/get the mode. Use null for the default pointer. /// The pointer mode /// true if pointer mode was set, false otherwise @@ -1701,7 +1735,9 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur /// If the value is , then events will be emitted just when inside this object area. /// /// The default value is . See also: and Note: This function will only set/get the mode for the default pointer. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Input pointer mode virtual public Efl.Input.ObjectPointerMode GetPointerMode() { var _ret_var = Efl.Canvas.Object.NativeMethods.efl_canvas_object_pointer_mode_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); @@ -1716,7 +1752,9 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur /// If the value is , then events will be emitted just when inside this object area. /// /// The default value is . See also: and Note: This function will only set/get the mode for the default pointer. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Input pointer mode /// true if pointer behaviour was set, false otherwise virtual public bool SetPointerMode(Efl.Input.ObjectPointerMode pointer_mode) { @@ -1776,6 +1814,31 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Efl.Canvas.Object.NativeMethods.efl_canvas_object_clipper_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),clipper); Eina.Error.RaiseIfUnhandledException(); } + /// A hint for an object that its size will not change. + /// When this flag is set, various optimizations may be employed by the renderer based on the fixed size of the object. + /// + /// It is a user error to change the size of an object while this flag is set. + /// (Since EFL 1.23) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. + /// Whether the object size is known to be static. + virtual public bool GetHasFixedSize() { + var _ret_var = Efl.Canvas.Object.NativeMethods.efl_canvas_object_has_fixed_size_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// A hint for an object that its size will not change. + /// When this flag is set, various optimizations may be employed by the renderer based on the fixed size of the object. + /// + /// It is a user error to change the size of an object while this flag is set. + /// (Since EFL 1.23) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. + /// Whether the object size is known to be static. + virtual public void SetHasFixedSize(bool enable) { + Efl.Canvas.Object.NativeMethods.efl_canvas_object_has_fixed_size_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),enable); + Eina.Error.RaiseIfUnhandledException(); + } /// Determine whether an object is set to repeat events. /// (Since EFL 1.22) /// Whether obj is to repeat events (true) or not (false). @@ -1964,7 +2027,9 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur return _ret_var; } /// Check if this object is focused by a given seat - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The seat to check if the object is focused. Use null for the default seat. /// true if focused or false otherwise. virtual public bool CheckSeatFocus(Efl.Input.Device seat) { @@ -1976,7 +2041,9 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur /// Evas allows the Efl.Canvas.Object to be focused by multiple seats at the same time. This function adds a new seat to the focus list. In other words, after the seat is added to the list this object will now be also focused by this new seat. /// /// Note: The old focus APIs still work, however they will only act on the default seat. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The seat that should be added to the focus list. Use null for the default seat. /// true if the focus has been set or false otherwise. virtual public bool AddSeatFocus(Efl.Input.Device seat) { @@ -1985,7 +2052,9 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur return _ret_var; } /// Remove a seat from the focus list. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The seat that should be removed from the focus list. Use null for the default seat. /// true if the seat was removed from the focus list or false otherwise. virtual public bool DelSeatFocus(Efl.Input.Device seat) { @@ -2006,7 +2075,7 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur /// /// keyname is a platform dependent symbolic name for the key pressed. /// - /// modifiers and not_modifiers are bit masks of all the modifiers that must and mustn't, respectively, be pressed along with keyname key in order to trigger this new key grab. Modifiers can be things such as Shift and Ctrl as well as user defined types via @ref evas_key_modifier_add. exclusive will make the given object the only one permitted to grab the given key. If given true, subsequent calls on this function with different obj arguments will fail, unless the key is ungrabbed again. + /// modifiers and not_modifiers are bit masks of all the modifiers that must and mustn't, respectively, be pressed along with keyname key in order to trigger this new key grab. Modifiers can be things such as Shift and Ctrl as well as user defined types via ref evas_key_modifier_add. exclusive will make the given object the only one permitted to grab the given key. If given true, subsequent calls on this function with different obj arguments will fail, unless the key is ungrabbed again. /// /// Warning: Providing impossible modifier sets creates undefined behavior. /// (Since EFL 1.22) @@ -2033,7 +2102,9 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Eina.Error.RaiseIfUnhandledException(); } /// Returns current canvas's gesture manager - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The gesture manager virtual public Efl.Canvas.GestureManager GetGestureManager() { var _ret_var = Efl.Canvas.Object.NativeMethods.efl_canvas_object_gesture_manager_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); @@ -2046,7 +2117,9 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur /// A return value of true indicates the mouse is logically inside the canvas, and false implies it is logically outside the canvas. /// /// A canvas begins with the mouse being assumed outside (false). - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The seat to consider, if null then the default seat will be used. /// true if the mouse pointer is inside the canvas, false otherwise virtual public bool GetPointerInside(Efl.Input.Device seat) { @@ -2203,6 +2276,8 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur /// Values -1 will be treated as unset hint components, when queried by managers. /// /// Note: Smart objects (such as elementary) can have their own hint policy. So calling this API may or may not affect the size of smart objects. + /// + /// Note: It is an error for the to be smaller in either axis than . In this scenario, the max size hint will be prioritized over the user min size hint. /// (Since EFL 1.22) /// Maximum size (hint) in pixels, (-1, -1) by default for canvas objects). virtual public Eina.Size2D GetHintSizeMax() { @@ -2218,6 +2293,8 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur /// Values -1 will be treated as unset hint components, when queried by managers. /// /// Note: Smart objects (such as elementary) can have their own hint policy. So calling this API may or may not affect the size of smart objects. + /// + /// Note: It is an error for the to be smaller in either axis than . In this scenario, the max size hint will be prioritized over the user min size hint. /// (Since EFL 1.22) /// Maximum size (hint) in pixels, (-1, -1) by default for canvas objects). virtual public void SetHintSizeMax(Eina.Size2D sz) { @@ -2225,12 +2302,39 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_max_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_sz); Eina.Error.RaiseIfUnhandledException(); } + /// Get the "intrinsic" maximum size of this object. + /// (Since EFL 1.22) + /// Maximum size (hint) in pixels. + virtual public Eina.Size2D GetHintSizeRestrictedMax() { + var _ret_var = Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_restricted_max_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// This function is protected as it is meant for widgets to indicate their "intrinsic" maximum size. + /// (Since EFL 1.22) + /// Maximum size (hint) in pixels. + virtual public void SetHintSizeRestrictedMax(Eina.Size2D sz) { + Eina.Size2D.NativeStruct _in_sz = sz; + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_restricted_max_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_sz); + Eina.Error.RaiseIfUnhandledException(); + } + /// Read-only maximum size combining both and hints. + /// is intended for mostly internal usage and widget developers, and is intended to be set from application side. combines both values by taking their repective maximum (in both width and height), and is used internally to get an object's maximum size. + /// (Since EFL 1.22) + /// Maximum size (hint) in pixels. + virtual public Eina.Size2D GetHintSizeCombinedMax() { + var _ret_var = Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_combined_max_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } /// Hints on the object's minimum size. /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. The object container is in charge of fetching this property and placing the object accordingly. /// /// Value 0 will be treated as unset hint components, when queried by managers. /// /// Note: This property is meant to be set by applications and not by EFL itself. Use this to request a specific size (treated as minimum size). + /// + /// Note: It is an error for the to be smaller in either axis than . In this scenario, the max size hint will be prioritized over the user min size hint. /// (Since EFL 1.22) /// Minimum size (hint) in pixels. virtual public Eina.Size2D GetHintSizeMin() { @@ -2244,6 +2348,8 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur /// Value 0 will be treated as unset hint components, when queried by managers. /// /// Note: This property is meant to be set by applications and not by EFL itself. Use this to request a specific size (treated as minimum size). + /// + /// Note: It is an error for the to be smaller in either axis than . In this scenario, the max size hint will be prioritized over the user min size hint. /// (Since EFL 1.22) /// Minimum size (hint) in pixels. virtual public void SetHintSizeMin(Eina.Size2D sz) { @@ -2845,7 +2951,9 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Efl.Gfx.IStackConcrete.NativeMethods.efl_gfx_stack_lower_to_bottom_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } - /// Check if input events from a given seat is enabled. + /// Check if input events from a given seat is enabled. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The seat to act on. /// true to enable events for a seat or false otherwise. virtual public bool GetSeatEventFilter(Efl.Input.Device seat) { @@ -2853,60 +2961,15 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Add or remove a given seat to the filter list. If the filter list is empty this object will report mouse, keyboard and focus events from any seat, otherwise those events will only be reported if the event comes from a seat that is in the list. + /// Add or remove a given seat to the filter list. If the filter list is empty this object will report mouse, keyboard and focus events from any seat, otherwise those events will only be reported if the event comes from a seat that is in the list. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The seat to act on. /// true to enable events for a seat or false otherwise. virtual public void SetSeatEventFilter(Efl.Input.Device seat, bool enable) { Efl.Input.IInterfaceConcrete.NativeMethods.efl_input_seat_event_filter_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),seat, enable); Eina.Error.RaiseIfUnhandledException(); } - /// Whether this object should be mirrored. - /// If mirrored, an object is in RTL (right to left) mode instead of LTR (left to right). - /// true for RTL, false for LTR (default). - virtual public bool GetMirrored() { - var _ret_var = Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Whether this object should be mirrored. - /// If mirrored, an object is in RTL (right to left) mode instead of LTR (left to right). - /// true for RTL, false for LTR (default). - virtual public void SetMirrored(bool rtl) { - Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),rtl); - Eina.Error.RaiseIfUnhandledException(); - } - /// Whether the property should be set automatically. - /// If enabled, the system or application configuration will be used to set the value of . - /// - /// This property may be implemented by high-level widgets (in Efl.Ui) but not by low-level widgets (in ) as the configuration should affect only high-level widgets. - /// Whether the widget uses automatic mirroring - virtual public bool GetMirroredAutomatic() { - var _ret_var = Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_automatic_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Whether the property should be set automatically. - /// If enabled, the system or application configuration will be used to set the value of . - /// - /// This property may be implemented by high-level widgets (in Efl.Ui) but not by low-level widgets (in ) as the configuration should affect only high-level widgets. - /// Whether the widget uses automatic mirroring - virtual public void SetMirroredAutomatic(bool automatic) { - Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_automatic_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),automatic); - Eina.Error.RaiseIfUnhandledException(); - } - /// Gets the language for this object. - /// The current language. - virtual public System.String GetLanguage() { - var _ret_var = Efl.Ui.II18nConcrete.NativeMethods.efl_ui_language_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Sets the language for this object. - /// The current language. - virtual public void SetLanguage(System.String language) { - Efl.Ui.II18nConcrete.NativeMethods.efl_ui_language_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),language); - Eina.Error.RaiseIfUnhandledException(); - } /// Low-level pointer behaviour. /// This function has a direct effect on event callbacks related to pointers (mouse, ...). /// @@ -2915,7 +2978,9 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur /// If the value is , then events will be emitted just when inside this object area. /// /// The default value is . See also: and Note: This function will only set/get the mode for the default pointer. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Input pointer mode public Efl.Input.ObjectPointerMode PointerMode { get { return GetPointerMode(); } @@ -2939,6 +3004,18 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur get { return GetClipper(); } set { SetClipper(value); } } + /// A hint for an object that its size will not change. + /// When this flag is set, various optimizations may be employed by the renderer based on the fixed size of the object. + /// + /// It is a user error to change the size of an object while this flag is set. + /// (Since EFL 1.23) + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. + /// Whether the object size is known to be static. + public bool HasFixedSize { + get { return GetHasFixedSize(); } + set { SetHasFixedSize(value); } + } /// Determine whether an object is set to repeat events. /// (Since EFL 1.22) /// Whether obj is to repeat events (true) or not (false). @@ -3021,6 +3098,26 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur get { return GetNoRender(); } set { SetNoRender(value); } } + /// Retrieves the general/main color of the given Evas object. + /// Retrieves the main color's RGB component (and alpha channel) values, which range from 0 to 255. For the alpha channel, which defines the object's transparency level, 0 means totally transparent, while 255 means opaque. These color values are premultiplied by the alpha value. + /// + /// Usually youll use this attribute for text and rectangle objects, where the main color is their unique one. If set for objects which themselves have colors, like the images one, those colors get modulated by this one. + /// + /// All newly created Evas rectangles get the default color values of 255 255 255 255 (opaque white). + /// + /// Use null pointers on the components you're not interested in: they'll be ignored by the function. + /// (Since EFL 1.22) + public (int, int, int, int) Color { + get { + int _out_r = default(int); + int _out_g = default(int); + int _out_b = default(int); + int _out_a = default(int); + GetColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Get hex color code of given Evas object. This returns a short lived hex color code string. /// (Since EFL 1.22) /// the hex color code. @@ -3070,6 +3167,21 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur get { return GetScale(); } set { SetScale(value); } } + /// Defines the aspect ratio to respect when scaling this object. + /// The aspect ratio is defined as the width / height ratio of the object. Depending on the object and its container, this hint may or may not be fully respected. + /// + /// If any of the given aspect ratio terms are 0, the object's container will ignore the aspect and scale this object to occupy the whole available area, for any given policy. + /// (Since EFL 1.22) + /// Mode of interpretation. + public (Efl.Gfx.HintAspect, Eina.Size2D) HintAspect { + get { + Efl.Gfx.HintAspect _out_mode = default(Efl.Gfx.HintAspect); + Eina.Size2D _out_sz = default(Eina.Size2D); + GetHintAspect(out _out_mode,out _out_sz); + return (_out_mode,_out_sz); + } + set { SetHintAspect( value.Item1, value.Item2); } + } /// Hints on the object's maximum size. /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. /// @@ -3078,18 +3190,43 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur /// Values -1 will be treated as unset hint components, when queried by managers. /// /// Note: Smart objects (such as elementary) can have their own hint policy. So calling this API may or may not affect the size of smart objects. + /// + /// Note: It is an error for the to be smaller in either axis than . In this scenario, the max size hint will be prioritized over the user min size hint. /// (Since EFL 1.22) /// Maximum size (hint) in pixels, (-1, -1) by default for canvas objects). public Eina.Size2D HintSizeMax { get { return GetHintSizeMax(); } set { SetHintSizeMax(value); } } + /// Internal hints for an object's maximum size. + /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. + /// + /// Values -1 will be treated as unset hint components, when queried by managers. + /// + /// Note: This property is internal and meant for widget developers to define the absolute maximum size of the object. EFL itself sets this size internally, so any change to it from an application might be ignored. Applications should use instead. + /// + /// Note: It is an error for the to be smaller in either axis than . In this scenario, the max size hint will be prioritized over the user min size hint. + /// (Since EFL 1.22) + /// Maximum size (hint) in pixels. + public Eina.Size2D HintSizeRestrictedMax { + get { return GetHintSizeRestrictedMax(); } + set { SetHintSizeRestrictedMax(value); } + } + /// Read-only maximum size combining both and hints. + /// is intended for mostly internal usage and widget developers, and is intended to be set from application side. combines both values by taking their repective maximum (in both width and height), and is used internally to get an object's maximum size. + /// (Since EFL 1.22) + /// Maximum size (hint) in pixels. + public Eina.Size2D HintSizeCombinedMax { + get { return GetHintSizeCombinedMax(); } + } /// Hints on the object's minimum size. /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. The object container is in charge of fetching this property and placing the object accordingly. /// /// Value 0 will be treated as unset hint components, when queried by managers. /// /// Note: This property is meant to be set by applications and not by EFL itself. Use this to request a specific size (treated as minimum size). + /// + /// Note: It is an error for the to be smaller in either axis than . In this scenario, the max size hint will be prioritized over the user min size hint. /// (Since EFL 1.22) /// Minimum size (hint) in pixels. public Eina.Size2D HintSizeMin { @@ -3102,6 +3239,8 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur /// Values 0 will be treated as unset hint components, when queried by managers. /// /// Note: This property is internal and meant for widget developers to define the absolute minimum size of the object. EFL itself sets this size internally, so any change to it from an application might be ignored. Use instead. + /// + /// Note: It is an error for the to be smaller in either axis than . In this scenario, the max size hint will be prioritized over the user min size hint. /// (Since EFL 1.22) /// Minimum size (hint) in pixels. public Eina.Size2D HintSizeRestrictedMin { @@ -3115,6 +3254,80 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur public Eina.Size2D HintSizeCombinedMin { get { return GetHintSizeCombinedMin(); } } + /// Hints for an object's margin or padding space. + /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. + /// + /// The object container is in charge of fetching this property and placing the object accordingly. + /// + /// Note: Smart objects (such as elementary) can have their own hint policy. So calling this API may or may not affect the size of smart objects. + /// (Since EFL 1.22) + /// Integer to specify left padding. + public (int, int, int, int) HintMargin { + get { + int _out_l = default(int); + int _out_r = default(int); + int _out_t = default(int); + int _out_b = default(int); + GetHintMargin(out _out_l,out _out_r,out _out_t,out _out_b); + return (_out_l,_out_r,_out_t,_out_b); + } + set { SetHintMargin( value.Item1, value.Item2, value.Item3, value.Item4); } + } + /// Hints for an object's weight. + /// This is a hint on how a container object should resize a given child within its area. Containers may adhere to the simpler logic of just expanding the child object's dimensions to fit its own (see the helper weight macro) or the complete one of taking each child's weight hint as real weights to how much of its size to allocate for them in each axis. A container is supposed to, after normalizing the weights of its children (with weight hints), distribut the space it has to layout them by those factors -- most weighted children get larger in this process than the least ones. + /// + /// Accepted values are zero or positive values. Some containers might use this hint as a boolean, but some others might consider it as a proportion, see documentation of each container. + /// + /// Note: Default weight hint values are 0.0, for both axis. + /// (Since EFL 1.22) + /// Non-negative double value to use as horizontal weight hint. + public (double, double) HintWeight { + get { + double _out_x = default(double); + double _out_y = default(double); + GetHintWeight(out _out_x,out _out_y); + return (_out_x,_out_y); + } + set { SetHintWeight( value.Item1, value.Item2); } + } + /// Hints for an object's alignment. + /// These are hints on how to align an object inside the boundaries of a container/manager. Accepted values are in the 0.0 to 1.0 range. + /// + /// For the horizontal component, 0.0 means to the left, 1.0 means to the right. Analogously, for the vertical component, 0.0 to the top, 1.0 means to the bottom. + /// + /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. + /// + /// Note: Default alignment hint values are 0.5, for both axes. + /// (Since EFL 1.22) + /// Double, ranging from 0.0 to 1.0. + public (double, double) HintAlign { + get { + double _out_x = default(double); + double _out_y = default(double); + GetHintAlign(out _out_x,out _out_y); + return (_out_x,_out_y); + } + set { SetHintAlign( value.Item1, value.Item2); } + } + /// Hints for an object's fill property that used to specify "justify" or "fill" by some users. specify whether to fill the space inside the boundaries of a container/manager. + /// Maximum hints should be enforced with higher priority, if they are set. Also, any set on objects should add up to the object space on the final scene composition. + /// + /// See documentation of possible users: in Evas, they are the "box" and "table" smart objects. + /// + /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. + /// + /// Note: Default fill hint values are true, for both axes. + /// (Since EFL 1.22) + /// true if to fill the object space, false otherwise, to use as horizontal fill hint. + public (bool, bool) HintFill { + get { + bool _out_x = default(bool); + bool _out_y = default(bool); + GetHintFill(out _out_x,out _out_y); + return (_out_x,_out_y); + } + set { SetHintFill( value.Item1, value.Item2); } + } /// Number of points of a map. /// This sets the number of points of map. Currently, the number of points must be multiples of 4. /// (Since EFL 1.22) @@ -3174,28 +3387,6 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur public Efl.Gfx.IStack Above { get { return GetAbove(); } } - /// Whether this object should be mirrored. - /// If mirrored, an object is in RTL (right to left) mode instead of LTR (left to right). - /// true for RTL, false for LTR (default). - public bool Mirrored { - get { return GetMirrored(); } - set { SetMirrored(value); } - } - /// Whether the property should be set automatically. - /// If enabled, the system or application configuration will be used to set the value of . - /// - /// This property may be implemented by high-level widgets (in Efl.Ui) but not by low-level widgets (in ) as the configuration should affect only high-level widgets. - /// Whether the widget uses automatic mirroring - public bool MirroredAutomatic { - get { return GetMirroredAutomatic(); } - set { SetMirroredAutomatic(value); } - } - /// The (human) language for this object. - /// The current language. - public System.String Language { - get { return GetLanguage(); } - set { SetLanguage(value); } - } private static IntPtr GetEflClassStatic() { return Efl.Canvas.Object.efl_canvas_object_class_get(); @@ -3292,6 +3483,26 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_clipper_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_clipper_set_static_delegate) }); } + if (efl_canvas_object_has_fixed_size_get_static_delegate == null) + { + efl_canvas_object_has_fixed_size_get_static_delegate = new efl_canvas_object_has_fixed_size_get_delegate(has_fixed_size_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetHasFixedSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_has_fixed_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_has_fixed_size_get_static_delegate) }); + } + + if (efl_canvas_object_has_fixed_size_set_static_delegate == null) + { + efl_canvas_object_has_fixed_size_set_static_delegate = new efl_canvas_object_has_fixed_size_set_delegate(has_fixed_size_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetHasFixedSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_object_has_fixed_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_object_has_fixed_size_set_static_delegate) }); + } + if (efl_canvas_object_repeat_events_get_static_delegate == null) { efl_canvas_object_repeat_events_get_static_delegate = new efl_canvas_object_repeat_events_get_delegate(repeat_events_get); @@ -3752,6 +3963,36 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_max_set_static_delegate) }); } + if (efl_gfx_hint_size_restricted_max_get_static_delegate == null) + { + efl_gfx_hint_size_restricted_max_get_static_delegate = new efl_gfx_hint_size_restricted_max_get_delegate(hint_size_restricted_max_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetHintSizeRestrictedMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_restricted_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_restricted_max_get_static_delegate) }); + } + + if (efl_gfx_hint_size_restricted_max_set_static_delegate == null) + { + efl_gfx_hint_size_restricted_max_set_static_delegate = new efl_gfx_hint_size_restricted_max_set_delegate(hint_size_restricted_max_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetHintSizeRestrictedMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_restricted_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_restricted_max_set_static_delegate) }); + } + + if (efl_gfx_hint_size_combined_max_get_static_delegate == null) + { + efl_gfx_hint_size_combined_max_get_static_delegate = new efl_gfx_hint_size_combined_max_get_delegate(hint_size_combined_max_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetHintSizeCombinedMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_combined_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_combined_max_get_static_delegate) }); + } + if (efl_gfx_hint_size_min_get_static_delegate == null) { efl_gfx_hint_size_min_get_static_delegate = new efl_gfx_hint_size_min_get_delegate(hint_size_min_get); @@ -4262,66 +4503,6 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_seat_event_filter_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_seat_event_filter_set_static_delegate) }); } - if (efl_ui_mirrored_get_static_delegate == null) - { - efl_ui_mirrored_get_static_delegate = new efl_ui_mirrored_get_delegate(mirrored_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetMirrored") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_get_static_delegate) }); - } - - if (efl_ui_mirrored_set_static_delegate == null) - { - efl_ui_mirrored_set_static_delegate = new efl_ui_mirrored_set_delegate(mirrored_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetMirrored") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_set_static_delegate) }); - } - - if (efl_ui_mirrored_automatic_get_static_delegate == null) - { - efl_ui_mirrored_automatic_get_static_delegate = new efl_ui_mirrored_automatic_get_delegate(mirrored_automatic_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetMirroredAutomatic") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_automatic_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_automatic_get_static_delegate) }); - } - - if (efl_ui_mirrored_automatic_set_static_delegate == null) - { - efl_ui_mirrored_automatic_set_static_delegate = new efl_ui_mirrored_automatic_set_delegate(mirrored_automatic_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetMirroredAutomatic") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_automatic_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_automatic_set_static_delegate) }); - } - - if (efl_ui_language_get_static_delegate == null) - { - efl_ui_language_get_static_delegate = new efl_ui_language_get_delegate(language_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetLanguage") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_language_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_language_get_static_delegate) }); - } - - if (efl_ui_language_set_static_delegate == null) - { - efl_ui_language_set_static_delegate = new efl_ui_language_set_delegate(language_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetLanguage") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_language_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_language_set_static_delegate) }); - } - descs.AddRange(base.GetEoOps(type)); return descs; } @@ -4621,23 +4802,23 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur private static efl_canvas_object_clipper_set_delegate efl_canvas_object_clipper_set_static_delegate; [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_canvas_object_repeat_events_get_delegate(System.IntPtr obj, System.IntPtr pd); + private delegate bool efl_canvas_object_has_fixed_size_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_canvas_object_repeat_events_get_api_delegate(System.IntPtr obj); + public delegate bool efl_canvas_object_has_fixed_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_object_repeat_events_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_repeat_events_get"); + public static Efl.Eo.FunctionWrapper efl_canvas_object_has_fixed_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_has_fixed_size_get"); - private static bool repeat_events_get(System.IntPtr obj, System.IntPtr pd) + private static bool has_fixed_size_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function efl_canvas_object_repeat_events_get was called"); + Eina.Log.Debug("function efl_canvas_object_has_fixed_size_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { - _ret_var = ((Object)ws.Target).GetRepeatEvents(); + _ret_var = ((Object)ws.Target).GetHasFixedSize(); } catch (Exception e) { @@ -4650,30 +4831,30 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } else { - return efl_canvas_object_repeat_events_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + return efl_canvas_object_has_fixed_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static efl_canvas_object_repeat_events_get_delegate efl_canvas_object_repeat_events_get_static_delegate; + private static efl_canvas_object_has_fixed_size_get_delegate efl_canvas_object_has_fixed_size_get_static_delegate; - private delegate void efl_canvas_object_repeat_events_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool repeat); + private delegate void efl_canvas_object_has_fixed_size_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable); - public delegate void efl_canvas_object_repeat_events_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool repeat); + public delegate void efl_canvas_object_has_fixed_size_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable); - public static Efl.Eo.FunctionWrapper efl_canvas_object_repeat_events_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_repeat_events_set"); + public static Efl.Eo.FunctionWrapper efl_canvas_object_has_fixed_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_has_fixed_size_set"); - private static void repeat_events_set(System.IntPtr obj, System.IntPtr pd, bool repeat) + private static void has_fixed_size_set(System.IntPtr obj, System.IntPtr pd, bool enable) { - Eina.Log.Debug("function efl_canvas_object_repeat_events_set was called"); + Eina.Log.Debug("function efl_canvas_object_has_fixed_size_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ((Object)ws.Target).SetRepeatEvents(repeat); + ((Object)ws.Target).SetHasFixedSize(enable); } catch (Exception e) { @@ -4685,30 +4866,30 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } else { - efl_canvas_object_repeat_events_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), repeat); + efl_canvas_object_has_fixed_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable); } } - private static efl_canvas_object_repeat_events_set_delegate efl_canvas_object_repeat_events_set_static_delegate; + private static efl_canvas_object_has_fixed_size_set_delegate efl_canvas_object_has_fixed_size_set_static_delegate; [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_canvas_object_key_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + private delegate bool efl_canvas_object_repeat_events_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_canvas_object_key_focus_get_api_delegate(System.IntPtr obj); + public delegate bool efl_canvas_object_repeat_events_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_canvas_object_key_focus_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_key_focus_get"); + public static Efl.Eo.FunctionWrapper efl_canvas_object_repeat_events_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_repeat_events_get"); - private static bool key_focus_get(System.IntPtr obj, System.IntPtr pd) + private static bool repeat_events_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function efl_canvas_object_key_focus_get was called"); + Eina.Log.Debug("function efl_canvas_object_repeat_events_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { - _ret_var = ((Object)ws.Target).GetKeyFocus(); + _ret_var = ((Object)ws.Target).GetRepeatEvents(); } catch (Exception e) { @@ -4721,30 +4902,30 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } else { - return efl_canvas_object_key_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + return efl_canvas_object_repeat_events_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static efl_canvas_object_key_focus_get_delegate efl_canvas_object_key_focus_get_static_delegate; + private static efl_canvas_object_repeat_events_get_delegate efl_canvas_object_repeat_events_get_static_delegate; - private delegate void efl_canvas_object_key_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool focus); + private delegate void efl_canvas_object_repeat_events_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool repeat); - public delegate void efl_canvas_object_key_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool focus); + public delegate void efl_canvas_object_repeat_events_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool repeat); - public static Efl.Eo.FunctionWrapper efl_canvas_object_key_focus_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_key_focus_set"); + public static Efl.Eo.FunctionWrapper efl_canvas_object_repeat_events_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_repeat_events_set"); - private static void key_focus_set(System.IntPtr obj, System.IntPtr pd, bool focus) + private static void repeat_events_set(System.IntPtr obj, System.IntPtr pd, bool repeat) { - Eina.Log.Debug("function efl_canvas_object_key_focus_set was called"); + Eina.Log.Debug("function efl_canvas_object_repeat_events_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ((Object)ws.Target).SetKeyFocus(focus); + ((Object)ws.Target).SetRepeatEvents(repeat); } catch (Exception e) { @@ -4756,14 +4937,85 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur } else { - efl_canvas_object_key_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); + efl_canvas_object_repeat_events_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), repeat); } } - private static efl_canvas_object_key_focus_set_delegate efl_canvas_object_key_focus_set_static_delegate; + private static efl_canvas_object_repeat_events_set_delegate efl_canvas_object_repeat_events_set_static_delegate; [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_canvas_object_seat_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + private delegate bool efl_canvas_object_key_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_canvas_object_key_focus_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_canvas_object_key_focus_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_key_focus_get"); + + private static bool key_focus_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_canvas_object_key_focus_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)ws.Target).GetKeyFocus(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_canvas_object_key_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_canvas_object_key_focus_get_delegate efl_canvas_object_key_focus_get_static_delegate; + + + private delegate void efl_canvas_object_key_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool focus); + + + public delegate void efl_canvas_object_key_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool focus); + + public static Efl.Eo.FunctionWrapper efl_canvas_object_key_focus_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_object_key_focus_set"); + + private static void key_focus_set(System.IntPtr obj, System.IntPtr pd, bool focus) + { + Eina.Log.Debug("function efl_canvas_object_key_focus_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Object)ws.Target).SetKeyFocus(focus); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_object_key_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); + } + } + + private static efl_canvas_object_key_focus_set_delegate efl_canvas_object_key_focus_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_canvas_object_seat_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_canvas_object_seat_focus_get_api_delegate(System.IntPtr obj); @@ -6265,6 +6517,114 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur private static efl_gfx_hint_size_max_set_delegate efl_gfx_hint_size_max_set_static_delegate; + private delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_restricted_max_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_restricted_max_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_restricted_max_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_size_restricted_max_get"); + + private static Eina.Size2D.NativeStruct hint_size_restricted_max_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_hint_size_restricted_max_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Object)ws.Target).GetHintSizeRestrictedMax(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_hint_size_restricted_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_hint_size_restricted_max_get_delegate efl_gfx_hint_size_restricted_max_get_static_delegate; + + + private delegate void efl_gfx_hint_size_restricted_max_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz); + + + public delegate void efl_gfx_hint_size_restricted_max_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct sz); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_restricted_max_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_size_restricted_max_set"); + + private static void hint_size_restricted_max_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz) + { + Eina.Log.Debug("function efl_gfx_hint_size_restricted_max_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Size2D _in_sz = sz; + + try + { + ((Object)ws.Target).SetHintSizeRestrictedMax(_in_sz); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_hint_size_restricted_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sz); + } + } + + private static efl_gfx_hint_size_restricted_max_set_delegate efl_gfx_hint_size_restricted_max_set_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_combined_max_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_combined_max_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_combined_max_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_size_combined_max_get"); + + private static Eina.Size2D.NativeStruct hint_size_combined_max_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_hint_size_combined_max_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Object)ws.Target).GetHintSizeCombinedMax(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_hint_size_combined_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_hint_size_combined_max_get_delegate efl_gfx_hint_size_combined_max_get_static_delegate; + + private delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_min_get_delegate(System.IntPtr obj, System.IntPtr pd); @@ -8063,227 +8423,145 @@ public abstract class Object : Efl.LoopConsumer, Efl.Canvas.IPointer, Efl.Gestur private static efl_input_seat_event_filter_set_delegate efl_input_seat_event_filter_set_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_ui_mirrored_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_ui_mirrored_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_mirrored_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_get"); - - private static bool mirrored_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_mirrored_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((Object)ws.Target).GetMirrored(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_mirrored_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_mirrored_get_delegate efl_ui_mirrored_get_static_delegate; - - - private delegate void efl_ui_mirrored_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool rtl); - - - public delegate void efl_ui_mirrored_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool rtl); - - public static Efl.Eo.FunctionWrapper efl_ui_mirrored_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_set"); - - private static void mirrored_set(System.IntPtr obj, System.IntPtr pd, bool rtl) - { - Eina.Log.Debug("function efl_ui_mirrored_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Object)ws.Target).SetMirrored(rtl); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_mirrored_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rtl); - } - } - - private static efl_ui_mirrored_set_delegate efl_ui_mirrored_set_static_delegate; + #pragma warning restore CA1707, CS1591, SA1300, SA1600 - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_ui_mirrored_automatic_get_delegate(System.IntPtr obj, System.IntPtr pd); +} +} +} - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_ui_mirrored_automatic_get_api_delegate(System.IntPtr obj); +} - public static Efl.Eo.FunctionWrapper efl_ui_mirrored_automatic_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_automatic_get"); +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasObject_ExtensionMethods { + + public static Efl.BindableProperty PointerMode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Object { + return new Efl.BindableProperty("pointer_mode", fac); + } - private static bool mirrored_automatic_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_mirrored_automatic_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((Object)ws.Target).GetMirroredAutomatic(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + public static Efl.BindableProperty RenderOp(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Object { + return new Efl.BindableProperty("render_op", fac); + } - return _ret_var; + public static Efl.BindableProperty Clipper(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Object { + return new Efl.BindableProperty("clipper", fac); + } - } - else - { - return efl_ui_mirrored_automatic_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } + public static Efl.BindableProperty HasFixedSize(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Object { + return new Efl.BindableProperty("has_fixed_size", fac); + } - private static efl_ui_mirrored_automatic_get_delegate efl_ui_mirrored_automatic_get_static_delegate; + public static Efl.BindableProperty RepeatEvents(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Object { + return new Efl.BindableProperty("repeat_events", fac); + } - - private delegate void efl_ui_mirrored_automatic_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool automatic); + public static Efl.BindableProperty KeyFocus(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Object { + return new Efl.BindableProperty("key_focus", fac); + } - - public delegate void efl_ui_mirrored_automatic_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool automatic); + + public static Efl.BindableProperty PreciseIsInside(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Object { + return new Efl.BindableProperty("precise_is_inside", fac); + } - public static Efl.Eo.FunctionWrapper efl_ui_mirrored_automatic_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_automatic_set"); + public static Efl.BindableProperty PropagateEvents(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Object { + return new Efl.BindableProperty("propagate_events", fac); + } - private static void mirrored_automatic_set(System.IntPtr obj, System.IntPtr pd, bool automatic) - { - Eina.Log.Debug("function efl_ui_mirrored_automatic_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Object)ws.Target).SetMirroredAutomatic(automatic); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + public static Efl.BindableProperty PassEvents(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Object { + return new Efl.BindableProperty("pass_events", fac); + } - - } - else - { - efl_ui_mirrored_automatic_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), automatic); - } - } + public static Efl.BindableProperty AntiAlias(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Object { + return new Efl.BindableProperty("anti_alias", fac); + } - private static efl_ui_mirrored_automatic_set_delegate efl_ui_mirrored_automatic_set_static_delegate; + + + public static Efl.BindableProperty ParagraphDirection(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Object { + return new Efl.BindableProperty("paragraph_direction", fac); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - private delegate System.String efl_ui_language_get_delegate(System.IntPtr obj, System.IntPtr pd); + public static Efl.BindableProperty NoRender(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Object { + return new Efl.BindableProperty("no_render", fac); + } - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - public delegate System.String efl_ui_language_get_api_delegate(System.IntPtr obj); + + + + public static Efl.BindableProperty ColorCode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Object { + return new Efl.BindableProperty("color_code", fac); + } - public static Efl.Eo.FunctionWrapper efl_ui_language_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_language_get"); + public static Efl.BindableProperty Position(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Object { + return new Efl.BindableProperty("position", fac); + } - private static System.String language_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_language_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - System.String _ret_var = default(System.String); - try - { - _ret_var = ((Object)ws.Target).GetLanguage(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + public static Efl.BindableProperty Size(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Object { + return new Efl.BindableProperty("size", fac); + } - return _ret_var; + public static Efl.BindableProperty Geometry(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Object { + return new Efl.BindableProperty("geometry", fac); + } - } - else - { - return efl_ui_language_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } + public static Efl.BindableProperty Visible(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Object { + return new Efl.BindableProperty("visible", fac); + } - private static efl_ui_language_get_delegate efl_ui_language_get_static_delegate; + public static Efl.BindableProperty Scale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Object { + return new Efl.BindableProperty("scale", fac); + } - - private delegate void efl_ui_language_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String language); + + public static Efl.BindableProperty HintSizeMax(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Object { + return new Efl.BindableProperty("hint_size_max", fac); + } - - public delegate void efl_ui_language_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String language); + public static Efl.BindableProperty HintSizeRestrictedMax(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Object { + return new Efl.BindableProperty("hint_size_restricted_max", fac); + } - public static Efl.Eo.FunctionWrapper efl_ui_language_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_language_set"); + + public static Efl.BindableProperty HintSizeMin(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Object { + return new Efl.BindableProperty("hint_size_min", fac); + } - private static void language_set(System.IntPtr obj, System.IntPtr pd, System.String language) - { - Eina.Log.Debug("function efl_ui_language_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Object)ws.Target).SetLanguage(language); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } + public static Efl.BindableProperty HintSizeRestrictedMin(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Object { + return new Efl.BindableProperty("hint_size_restricted_min", fac); + } - - } - else - { - efl_ui_language_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), language); - } - } + + + + + + public static Efl.BindableProperty MappingPointCount(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Object { + return new Efl.BindableProperty("mapping_point_count", fac); + } - private static efl_ui_language_set_delegate efl_ui_language_set_static_delegate; + + public static Efl.BindableProperty MappingSmooth(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Object { + return new Efl.BindableProperty("mapping_smooth", fac); + } - #pragma warning restore CA1707, CS1591, SA1300, SA1600 + public static Efl.BindableProperty MappingAlpha(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Object { + return new Efl.BindableProperty("mapping_alpha", fac); + } -} -} -} + + + + public static Efl.BindableProperty Layer(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Object { + return new Efl.BindableProperty("layer", fac); + } + + + } - +#pragma warning restore CS1591 +#endif namespace Efl { namespace Canvas { @@ -8293,10 +8571,10 @@ namespace Canvas { [Efl.Eo.BindingEntity] public struct ObjectAnimationEvent { - ///Placeholder field + /// Placeholder field public IntPtr field; - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator ObjectAnimationEvent(IntPtr ptr) { var tmp = (ObjectAnimationEvent.NativeStruct)Marshal.PtrToStructure(ptr, typeof(ObjectAnimationEvent.NativeStruct)); @@ -8305,19 +8583,19 @@ public struct ObjectAnimationEvent #pragma warning disable CS1591 - ///Internal wrapper for struct ObjectAnimationEvent. + /// Internal wrapper for struct ObjectAnimationEvent. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { internal IntPtr field; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator ObjectAnimationEvent.NativeStruct(ObjectAnimationEvent _external_struct) { var _internal_struct = new ObjectAnimationEvent.NativeStruct(); return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator ObjectAnimationEvent(ObjectAnimationEvent.NativeStruct _internal_struct) { var _external_struct = new ObjectAnimationEvent(); @@ -8342,16 +8620,18 @@ namespace Efl { public struct EventAnimatorTick { /// Area of the canvas that will be pushed to screen. + /// A rectangle in pixel dimensions. public Eina.Rect Update_area; - ///Constructor for EventAnimatorTick. + /// Constructor for EventAnimatorTick. + /// Area of the canvas that will be pushed to screen.; public EventAnimatorTick( Eina.Rect Update_area = default(Eina.Rect) ) { this.Update_area = Update_area; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator EventAnimatorTick(IntPtr ptr) { var tmp = (EventAnimatorTick.NativeStruct)Marshal.PtrToStructure(ptr, typeof(EventAnimatorTick.NativeStruct)); @@ -8360,13 +8640,13 @@ public struct EventAnimatorTick #pragma warning disable CS1591 - ///Internal wrapper for struct EventAnimatorTick. + /// Internal wrapper for struct EventAnimatorTick. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { public Eina.Rect.NativeStruct Update_area; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator EventAnimatorTick.NativeStruct(EventAnimatorTick _external_struct) { var _internal_struct = new EventAnimatorTick.NativeStruct(); @@ -8374,7 +8654,7 @@ public struct EventAnimatorTick return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator EventAnimatorTick(EventAnimatorTick.NativeStruct _internal_struct) { var _external_struct = new EventAnimatorTick(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_pointer.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_pointer.eo.cs old mode 100644 new mode 100755 index 5a9059021..d0dd4bb40 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_pointer.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_pointer.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -22,19 +23,21 @@ public interface IPointer : /// A return value of true indicates the mouse is logically inside the canvas, and false implies it is logically outside the canvas. /// /// A canvas begins with the mouse being assumed outside (false). -/// (Since EFL 1.22) +/// (Since EFL 1.22) +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The seat to consider, if null then the default seat will be used. /// true if the mouse pointer is inside the canvas, false otherwise bool GetPointerInside(Efl.Input.Device seat); } /// Efl Canvas Pointer interface /// (Since EFL 1.22) -sealed public class IPointerConcrete : +sealed public class IPointerConcrete : Efl.Eo.EoWrapper , IPointer { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -50,7 +53,8 @@ sealed public class IPointerConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IPointerConcrete(ConstructingHandle ch) : base(ch) { @@ -71,7 +75,9 @@ sealed public class IPointerConcrete : /// A return value of true indicates the mouse is logically inside the canvas, and false implies it is logically outside the canvas. /// /// A canvas begins with the mouse being assumed outside (false). - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The seat to consider, if null then the default seat will be used. /// true if the mouse pointer is inside the canvas, false otherwise public bool GetPointerInside(Efl.Input.Device seat) { @@ -160,3 +166,10 @@ sealed public class IPointerConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasIPointerConcrete_ExtensionMethods { + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_polygon.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_polygon.eo.cs old mode 100644 new mode 100755 index 10aeafb77..49aa75a57 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_polygon.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_polygon.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// Low-level polygon object +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.Polygon.NativeMethods] [Efl.Eo.BindingEntity] public class Polygon : Efl.Canvas.Object { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class Polygon : Efl.Canvas.Object FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Polygon(ConstructingHandle ch) : base(ch) { @@ -200,3 +203,9 @@ public class Polygon : Efl.Canvas.Object } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasPolygon_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_proxy.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_proxy.eo.cs old mode 100644 new mode 100755 index 36f9e0ccf..adeb3983b --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_proxy.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_proxy.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Canvas { /// Low-level proxy image object. /// A proxy is a special kind of image containing the pixels from a source object attached to it. It can be used to apply some sort of image transformation to any object (eg. filters, map or zoom). +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.Proxy.NativeMethods] [Efl.Eo.BindingEntity] public class Proxy : Efl.Canvas.ImageInternal { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -41,7 +43,8 @@ public class Proxy : Efl.Canvas.ImageInternal FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Proxy(ConstructingHandle ch) : base(ch) { @@ -470,3 +473,21 @@ public class Proxy : Efl.Canvas.ImageInternal } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasProxy_ExtensionMethods { + public static Efl.BindableProperty Source(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Proxy { + return new Efl.BindableProperty("source", fac); + } + + public static Efl.BindableProperty SourceClip(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Proxy { + return new Efl.BindableProperty("source_clip", fac); + } + + public static Efl.BindableProperty SourceEvents(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Proxy { + return new Efl.BindableProperty("source_events", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_rectangle.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_rectangle.eo.cs old mode 100644 new mode 100755 index 4880c3ecb..c226c56f5 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_rectangle.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_rectangle.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// Evas canvas rectangle class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.Rectangle.NativeMethods] [Efl.Eo.BindingEntity] public class Rectangle : Efl.Canvas.Object { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class Rectangle : Efl.Canvas.Object FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Rectangle(ConstructingHandle ch) : base(ch) { @@ -94,3 +97,9 @@ public class Rectangle : Efl.Canvas.Object } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasRectangle_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_scene.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_scene.eo.cs old mode 100644 new mode 100755 index ed35109a3..2f2428e98 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_scene.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_scene.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -29,22 +30,30 @@ bool GetImageMaxSize(out Eina.Size2D max); /// true if currently calculating group objects. bool GetGroupObjectsCalculating(); /// Get a device by name. -/// (Since EFL 1.22) +/// (Since EFL 1.22) +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The name of the seat to find. /// The device or seat, null if not found. Efl.Input.Device GetDevice(System.String name); /// Get a seat by id. -/// (Since EFL 1.22) +/// (Since EFL 1.22) +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The id of the seat to find. /// The seat or null if not found. Efl.Input.Device GetSeat(int id); /// Get the default seat. -/// (Since EFL 1.22) +/// (Since EFL 1.22) +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The default seat or null if one does not exist. Efl.Input.Device GetSeatDefault(); /// This function returns the current known pointer coordinates /// This function returns the current position of the main input pointer (mouse, pen, etc...). -/// (Since EFL 1.22) +/// (Since EFL 1.22) +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The seat, or null to use the default. /// The pointer position in pixels. /// true if a pointer exists for the given seat, otherwise false. @@ -94,7 +103,9 @@ Eina.Iterator GetObjectsInRectangle(Eina.Rect rect, bool includ Efl.Gfx.IEntity GetObjectTopInRectangle(Eina.Rect rect, bool include_pass_events_objects, bool include_hidden_objects); /// Iterate over the available input device seats for the canvas. /// A "seat" is the term used for a group of input devices, typically including a pointer and a keyboard. A seat object is the parent of the individual input devices. -/// (Since EFL 1.22) +/// (Since EFL 1.22) +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// An iterator over the attached seats. Eina.Iterator Seats(); /// Called when scene got focus @@ -105,85 +116,108 @@ Eina.Iterator Seats(); event EventHandler SceneFocusOutEvt; /// Called when object got focus /// (Since EFL 1.22) + /// event EventHandler ObjectFocusInEvt; /// Called when object lost focus /// (Since EFL 1.22) + /// event EventHandler ObjectFocusOutEvt; /// Called when pre render happens /// (Since EFL 1.22) event EventHandler RenderPreEvt; /// Called when post render happens /// (Since EFL 1.22) + /// event EventHandler RenderPostEvt; /// Called when input device changed /// (Since EFL 1.22) + /// event EventHandler DeviceChangedEvt; /// Called when input device was added /// (Since EFL 1.22) + /// event EventHandler DeviceAddedEvt; /// Called when input device was removed /// (Since EFL 1.22) + /// event EventHandler DeviceRemovedEvt; + /// Get the maximum image size the canvas can possibly handle. + /// This function returns the largest image or surface size that the canvas can handle in pixels, and if there is one, returns true. It returns false if no extra constraint on maximum image size exists. + /// + /// The default limit is 65535x65535. + /// (Since EFL 1.22) + /// true on success, false otherwise + Eina.Size2D ImageMaxSize { + get; + } /// Get if the canvas is currently calculating group objects. /// (Since EFL 1.22) /// true if currently calculating group objects. bool GroupObjectsCalculating { - get ; + get; } /// Get the default seat attached to this canvas. /// A canvas may have exactly one default seat. /// /// See also to find a seat by name. See also to find a seat by id. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// The default seat or null if one does not exist. Efl.Input.Device SeatDefault { - get ; + get; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ISceneObjectFocusInEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when object got focus public Efl.Input.Focus arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ISceneObjectFocusOutEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when object lost focus public Efl.Input.Focus arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ISceneRenderPostEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when post render happens public Efl.Gfx.Event.RenderPost arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ISceneDeviceChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when input device changed public Efl.Input.Device arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ISceneDeviceAddedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when input device was added public Efl.Input.Device arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ISceneDeviceRemovedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when input device was removed public Efl.Input.Device arg { get; set; } } /// Interface containing basic canvas-related methods and events. /// (Since EFL 1.22) -sealed public class ISceneConcrete : +sealed public class ISceneConcrete : Efl.Eo.EoWrapper , IScene { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -199,7 +233,8 @@ sealed public class ISceneConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ISceneConcrete(ConstructingHandle ch) : base(ch) { @@ -254,7 +289,7 @@ sealed public class ISceneConcrete : } } } - ///Method to raise event SceneFocusInEvt. + /// Method to raise event SceneFocusInEvt. public void OnSceneFocusInEvt(EventArgs e) { var key = "_EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_IN"; @@ -307,7 +342,7 @@ sealed public class ISceneConcrete : } } } - ///Method to raise event SceneFocusOutEvt. + /// Method to raise event SceneFocusOutEvt. public void OnSceneFocusOutEvt(EventArgs e) { var key = "_EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_OUT"; @@ -322,6 +357,7 @@ sealed public class ISceneConcrete : } /// Called when object got focus /// (Since EFL 1.22) + /// public event EventHandler ObjectFocusInEvt { add @@ -361,7 +397,7 @@ sealed public class ISceneConcrete : } } } - ///Method to raise event ObjectFocusInEvt. + /// Method to raise event ObjectFocusInEvt. public void OnObjectFocusInEvt(Efl.Canvas.ISceneObjectFocusInEvt_Args e) { var key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_IN"; @@ -377,6 +413,7 @@ sealed public class ISceneConcrete : } /// Called when object lost focus /// (Since EFL 1.22) + /// public event EventHandler ObjectFocusOutEvt { add @@ -416,7 +453,7 @@ sealed public class ISceneConcrete : } } } - ///Method to raise event ObjectFocusOutEvt. + /// Method to raise event ObjectFocusOutEvt. public void OnObjectFocusOutEvt(Efl.Canvas.ISceneObjectFocusOutEvt_Args e) { var key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_OUT"; @@ -470,7 +507,7 @@ sealed public class ISceneConcrete : } } } - ///Method to raise event RenderPreEvt. + /// Method to raise event RenderPreEvt. public void OnRenderPreEvt(EventArgs e) { var key = "_EFL_CANVAS_SCENE_EVENT_RENDER_PRE"; @@ -485,6 +522,7 @@ sealed public class ISceneConcrete : } /// Called when post render happens /// (Since EFL 1.22) + /// public event EventHandler RenderPostEvt { add @@ -524,7 +562,7 @@ sealed public class ISceneConcrete : } } } - ///Method to raise event RenderPostEvt. + /// Method to raise event RenderPostEvt. public void OnRenderPostEvt(Efl.Canvas.ISceneRenderPostEvt_Args e) { var key = "_EFL_CANVAS_SCENE_EVENT_RENDER_POST"; @@ -548,6 +586,7 @@ sealed public class ISceneConcrete : } /// Called when input device changed /// (Since EFL 1.22) + /// public event EventHandler DeviceChangedEvt { add @@ -587,7 +626,7 @@ sealed public class ISceneConcrete : } } } - ///Method to raise event DeviceChangedEvt. + /// Method to raise event DeviceChangedEvt. public void OnDeviceChangedEvt(Efl.Canvas.ISceneDeviceChangedEvt_Args e) { var key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_CHANGED"; @@ -603,6 +642,7 @@ sealed public class ISceneConcrete : } /// Called when input device was added /// (Since EFL 1.22) + /// public event EventHandler DeviceAddedEvt { add @@ -642,7 +682,7 @@ sealed public class ISceneConcrete : } } } - ///Method to raise event DeviceAddedEvt. + /// Method to raise event DeviceAddedEvt. public void OnDeviceAddedEvt(Efl.Canvas.ISceneDeviceAddedEvt_Args e) { var key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_ADDED"; @@ -658,6 +698,7 @@ sealed public class ISceneConcrete : } /// Called when input device was removed /// (Since EFL 1.22) + /// public event EventHandler DeviceRemovedEvt { add @@ -697,7 +738,7 @@ sealed public class ISceneConcrete : } } } - ///Method to raise event DeviceRemovedEvt. + /// Method to raise event DeviceRemovedEvt. public void OnDeviceRemovedEvt(Efl.Canvas.ISceneDeviceRemovedEvt_Args e) { var key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_REMOVED"; @@ -734,7 +775,9 @@ sealed public class ISceneConcrete : return _ret_var; } /// Get a device by name. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The name of the seat to find. /// The device or seat, null if not found. public Efl.Input.Device GetDevice(System.String name) { @@ -743,7 +786,9 @@ sealed public class ISceneConcrete : return _ret_var; } /// Get a seat by id. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The id of the seat to find. /// The seat or null if not found. public Efl.Input.Device GetSeat(int id) { @@ -752,7 +797,9 @@ sealed public class ISceneConcrete : return _ret_var; } /// Get the default seat. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The default seat or null if one does not exist. public Efl.Input.Device GetSeatDefault() { var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_seat_default_get_ptr.Value.Delegate(this.NativeHandle); @@ -761,7 +808,9 @@ sealed public class ISceneConcrete : } /// This function returns the current known pointer coordinates /// This function returns the current position of the main input pointer (mouse, pen, etc...). - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The seat, or null to use the default. /// The pointer position in pixels. /// true if a pointer exists for the given seat, otherwise false. @@ -840,13 +889,28 @@ sealed public class ISceneConcrete : } /// Iterate over the available input device seats for the canvas. /// A "seat" is the term used for a group of input devices, typically including a pointer and a keyboard. A seat object is the parent of the individual input devices. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// An iterator over the attached seats. public Eina.Iterator Seats() { var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_seats_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true); } + /// Get the maximum image size the canvas can possibly handle. + /// This function returns the largest image or surface size that the canvas can handle in pixels, and if there is one, returns true. It returns false if no extra constraint on maximum image size exists. + /// + /// The default limit is 65535x65535. + /// (Since EFL 1.22) + /// true on success, false otherwise + public Eina.Size2D ImageMaxSize { + get { + Eina.Size2D _out_max = default(Eina.Size2D); + GetImageMaxSize(out _out_max); + return (_out_max); + } + } /// Get if the canvas is currently calculating group objects. /// (Since EFL 1.22) /// true if currently calculating group objects. @@ -857,7 +921,9 @@ sealed public class ISceneConcrete : /// A canvas may have exactly one default seat. /// /// See also to find a seat by name. See also to find a seat by id. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// The default seat or null if one does not exist. public Efl.Input.Device SeatDefault { get { return GetSeatDefault(); } @@ -1456,3 +1522,15 @@ sealed public class ISceneConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasISceneConcrete_ExtensionMethods { + + + + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_snapshot.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_snapshot.eo.cs old mode 100644 new mode 100755 index 89aa4f426..4b823027e --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_snapshot.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_snapshot.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Canvas { /// Low-level snapshot image object. /// A snapshot is a special kind of image containing the pixels from all the objects below it. This allows applications to save screenshots of all or part of their UI, or apply filters to parts of the UI. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.Snapshot.NativeMethods] [Efl.Eo.BindingEntity] public class Snapshot : Efl.Canvas.ImageInternal { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -41,7 +43,8 @@ public class Snapshot : Efl.Canvas.ImageInternal FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Snapshot(ConstructingHandle ch) : base(ch) { @@ -95,3 +98,9 @@ public class Snapshot : Efl.Canvas.ImageInternal } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasSnapshot_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface.eo.cs old mode 100644 new mode 100755 index 82e733534..27bb96c08 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Canvas { /// Native surfaces usually bound to an externally-managed buffer. /// The attached is entirely platform-dependent, which means some of this mixin's subclasses will not work (constructor returns null) on some platforms. This class is meant to be used from native code only (C or C++), with direct access to the display system or a buffer allocation system. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.Surface.NativeMethods] [Efl.Eo.BindingEntity] public abstract class Surface : Efl.Canvas.ImageInternal { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -41,7 +43,8 @@ public abstract class Surface : Efl.Canvas.ImageInternal FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Surface(ConstructingHandle ch) : base(ch) { @@ -220,3 +223,13 @@ public abstract class Surface : Efl.Canvas.ImageInternal } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasSurface_ExtensionMethods { + public static Efl.BindableProperty NativeBuffer(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Surface { + return new Efl.BindableProperty("native_buffer", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_tbm.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_tbm.eo.cs old mode 100644 new mode 100755 index cf2ac5720..46faae2a9 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_tbm.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_tbm.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// Native Tizen Buffer Manager surface for Efl canvas +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.SurfaceTbm.NativeMethods] [Efl.Eo.BindingEntity] public class SurfaceTbm : Efl.Canvas.Surface { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class SurfaceTbm : Efl.Canvas.Surface FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected SurfaceTbm(ConstructingHandle ch) : base(ch) { @@ -94,3 +97,9 @@ public class SurfaceTbm : Efl.Canvas.Surface } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasSurfaceTbm_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_wayland.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_wayland.eo.cs old mode 100644 new mode 100755 index 2fb13e10a..16ede4601 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_wayland.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_wayland.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// Native Wayland surface for Efl canvas +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.SurfaceWayland.NativeMethods] [Efl.Eo.BindingEntity] public class SurfaceWayland : Efl.Canvas.Surface { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class SurfaceWayland : Efl.Canvas.Surface FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected SurfaceWayland(ConstructingHandle ch) : base(ch) { @@ -94,3 +97,9 @@ public class SurfaceWayland : Efl.Canvas.Surface } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasSurfaceWayland_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_x11.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_x11.eo.cs old mode 100644 new mode 100755 index 46319ca4c..414d1a7f9 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_x11.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_surface_x11.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// Native X11 surface for Efl canvas +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.SurfaceX11.NativeMethods] [Efl.Eo.BindingEntity] public class SurfaceX11 : Efl.Canvas.Surface { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class SurfaceX11 : Efl.Canvas.Surface FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected SurfaceX11(ConstructingHandle ch) : base(ch) { @@ -77,6 +80,17 @@ public class SurfaceX11 : Efl.Canvas.Surface Eina.Error.RaiseIfUnhandledException(); return _ret_var; } + /// This is a helper for . + /// X11 Visual for this Pixmap. + public (System.IntPtr, uint) Pixmap { + get { + System.IntPtr _out_visual = default(System.IntPtr); + uint _out_pixmap = default(uint); + GetPixmap(out _out_visual,out _out_pixmap); + return (_out_visual,_out_pixmap); + } + set { SetPixmap( value.Item1, value.Item2); } + } private static IntPtr GetEflClassStatic() { return Efl.Canvas.SurfaceX11.efl_canvas_surface_x11_class_get(); @@ -204,6 +218,13 @@ public class SurfaceX11 : Efl.Canvas.Surface } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasSurfaceX11_ExtensionMethods { + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Canvas { @@ -217,7 +238,9 @@ public struct SurfaceX11Pixmap public System.IntPtr Visual; /// X11 Pixmap ID. public uint Pixmap; - ///Constructor for SurfaceX11Pixmap. + /// Constructor for SurfaceX11Pixmap. + /// X11 Visual for this Pixmap.; + /// X11 Pixmap ID.; public SurfaceX11Pixmap( System.IntPtr Visual = default(System.IntPtr), uint Pixmap = default(uint) ) @@ -226,8 +249,8 @@ public struct SurfaceX11Pixmap this.Pixmap = Pixmap; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator SurfaceX11Pixmap(IntPtr ptr) { var tmp = (SurfaceX11Pixmap.NativeStruct)Marshal.PtrToStructure(ptr, typeof(SurfaceX11Pixmap.NativeStruct)); @@ -236,7 +259,7 @@ public struct SurfaceX11Pixmap #pragma warning disable CS1591 - ///Internal wrapper for struct SurfaceX11Pixmap. + /// Internal wrapper for struct SurfaceX11Pixmap. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -244,7 +267,7 @@ public struct SurfaceX11Pixmap public System.IntPtr Visual; public uint Pixmap; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator SurfaceX11Pixmap.NativeStruct(SurfaceX11Pixmap _external_struct) { var _internal_struct = new SurfaceX11Pixmap.NativeStruct(); @@ -253,7 +276,7 @@ public struct SurfaceX11Pixmap return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator SurfaceX11Pixmap(SurfaceX11Pixmap.NativeStruct _internal_struct) { var _external_struct = new SurfaceX11Pixmap(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_text.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_text.eo.cs old mode 100644 new mode 100755 index 5024cd06f..820064b27 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_text.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_text.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Canvas { /// Efl canvas text class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.Text.NativeMethods] [Efl.Eo.BindingEntity] -public class Text : Efl.Canvas.Object, Efl.IText, Efl.ITextAnnotate, Efl.ITextCursor, Efl.ITextFont, Efl.ITextFormat, Efl.ITextMarkup, Efl.ITextMarkupInteractive, Efl.ITextStyle, Efl.Canvas.Filter.IInternal, Efl.Gfx.IFilter +public class Text : Efl.Canvas.Object, Efl.IText, Efl.ITextAnnotate, Efl.ITextCursor, Efl.ITextFont, Efl.ITextFormat, Efl.ITextMarkup, Efl.ITextMarkupInteractive, Efl.ITextStyle, Efl.Canvas.Filter.IInternal, Efl.Gfx.IFilter, Efl.Ui.II18n { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class Text : Efl.Canvas.Object, Efl.IText, Efl.ITextAnnotate, Efl.ITextCu FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Text(ConstructingHandle ch) : base(ch) { @@ -100,7 +103,7 @@ public class Text : Efl.Canvas.Object, Efl.IText, Efl.ITextAnnotate, Efl.ITextCu } } } - ///Method to raise event CursorChangedEvt. + /// Method to raise event CursorChangedEvt. public void OnCursorChangedEvt(EventArgs e) { var key = "_EFL_CANVAS_TEXT_EVENT_CURSOR_CHANGED"; @@ -152,7 +155,7 @@ public class Text : Efl.Canvas.Object, Efl.IText, Efl.ITextAnnotate, Efl.ITextCu } } } - ///Method to raise event ChangedEvt. + /// Method to raise event ChangedEvt. public void OnChangedEvt(EventArgs e) { var key = "_EFL_CANVAS_TEXT_EVENT_CHANGED"; @@ -204,7 +207,7 @@ public class Text : Efl.Canvas.Object, Efl.IText, Efl.ITextAnnotate, Efl.ITextCu } } } - ///Method to raise event StyleInsetsChangedEvt. + /// Method to raise event StyleInsetsChangedEvt. public void OnStyleInsetsChangedEvt(EventArgs e) { var key = "_EFL_CANVAS_TEXT_EVENT_STYLE_INSETS_CHANGED"; @@ -724,6 +727,8 @@ public class Text : Efl.Canvas.Object, Efl.IText, Efl.ITextAnnotate, Efl.ITextCu /// Set the font family, filename and size for a given text object. /// This function allows the font name and size of a text object to be set. The font string has to follow fontconfig's convention for naming fonts, as it's the underlying library used to query system fonts by Evas (see the fc-list command's output, on your system, to get an idea). Alternatively, youe can use the full path to a font file. /// + /// To skip changing font family pass null as font family. To skip changing font size pass 0 as font size. + /// /// See also , . /// The font family name or filename. /// The font size, in points. @@ -1477,6 +1482,53 @@ public class Text : Efl.Canvas.Object, Efl.IText, Efl.ITextAnnotate, Efl.ITextCu Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_data_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),name, value, execute); Eina.Error.RaiseIfUnhandledException(); } + /// Whether this object should be mirrored. + /// If mirrored, an object is in RTL (right to left) mode instead of LTR (left to right). + /// true for RTL, false for LTR (default). + virtual public bool GetMirrored() { + var _ret_var = Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Whether this object should be mirrored. + /// If mirrored, an object is in RTL (right to left) mode instead of LTR (left to right). + /// true for RTL, false for LTR (default). + virtual public void SetMirrored(bool rtl) { + Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),rtl); + Eina.Error.RaiseIfUnhandledException(); + } + /// Whether the property should be set automatically. + /// If enabled, the system or application configuration will be used to set the value of . + /// + /// This property may be implemented by high-level widgets (in Efl.Ui) but not by low-level widgets (in ) as the configuration should affect only high-level widgets. + /// Whether the widget uses automatic mirroring + virtual public bool GetMirroredAutomatic() { + var _ret_var = Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_automatic_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Whether the property should be set automatically. + /// If enabled, the system or application configuration will be used to set the value of . + /// + /// This property may be implemented by high-level widgets (in Efl.Ui) but not by low-level widgets (in ) as the configuration should affect only high-level widgets. + /// Whether the widget uses automatic mirroring + virtual public void SetMirroredAutomatic(bool automatic) { + Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_automatic_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),automatic); + Eina.Error.RaiseIfUnhandledException(); + } + /// Gets the language for this object. + /// The current language. + virtual public System.String GetLanguage() { + var _ret_var = Efl.Ui.II18nConcrete.NativeMethods.efl_ui_language_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Sets the language for this object. + /// The current language. + virtual public void SetLanguage(System.String language) { + Efl.Ui.II18nConcrete.NativeMethods.efl_ui_language_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),language); + Eina.Error.RaiseIfUnhandledException(); + } /// Async wrapper for . /// Token to notify the async operation of external request to cancel. /// An async task wrapping the result of the operation. @@ -1491,6 +1543,18 @@ public class Text : Efl.Canvas.Object, Efl.IText, Efl.ITextAnnotate, Efl.ITextCu public bool IsEmpty { get { return GetIsEmpty(); } } + /// Gets the left, right, top and bottom insets of the text. + /// The inset is any applied padding on the text. + public (int, int, int, int) StyleInsets { + get { + int _out_l = default(int); + int _out_r = default(int); + int _out_t = default(int); + int _out_b = default(int); + GetStyleInsets(out _out_l,out _out_r,out _out_t,out _out_b); + return (_out_l,_out_r,_out_t,_out_b); + } + } /// BiDi delimiters are used for in-paragraph separation of bidi segments. This is useful, for example, in the recipient fields of e-mail clients where bidi oddities can occur when mixing RTL and LTR. /// A null terminated string of delimiters, e.g ",|" or null if empty public System.String BidiDelimiters { @@ -1503,6 +1567,48 @@ public class Text : Efl.Canvas.Object, Efl.IText, Efl.ITextAnnotate, Efl.ITextCu get { return GetLegacyNewline(); } set { SetLegacyNewline(value); } } + /// The formatted width and height. + /// This calculates the actual size after restricting the textblock to the current size of the object. + /// + /// The main difference between this and is that the "native" function does not wrapping into account it just calculates the real width of the object if it was placed on an infinite canvas, while this function gives the size after wrapping according to the size restrictions of the object. + /// + /// For example for a textblock containing the text: "You shall not pass!" with no margins or padding and assuming a monospace font and a size of 7x10 char widths (for simplicity) has a native size of 19x1 and a formatted size of 5x4. + public (int, int) SizeFormatted { + get { + int _out_w = default(int); + int _out_h = default(int); + GetSizeFormatted(out _out_w,out _out_h); + return (_out_w,_out_h); + } + } + /// The native width and height. + /// This calculates the actual size without taking account the current size of the object. + /// + /// The main difference between this and is that the "native" function does not take wrapping into account it just calculates the real width of the object if it was placed on an infinite canvas, while the "formatted" function gives the size after wrapping text according to the size restrictions of the object. + /// + /// For example for a textblock containing the text: "You shall not pass!" with no margins or padding and assuming a monospace font and a size of 7x10 char widths (for simplicity) has a native size of 19x1 and a formatted size of 5x4. + public (int, int) SizeNative { + get { + int _out_w = default(int); + int _out_h = default(int); + GetSizeNative(out _out_w,out _out_h); + return (_out_w,_out_h); + } + } + /// Retrieve the font family and size in use on a given text object. + /// This function allows the font name and size of a text object to be queried. Remember that the font name string is still owned by Evas and should not have free() called on it by the caller of the function. + /// + /// See also . + /// The font family name or filename. + public (System.String, Efl.Font.Size) Font { + get { + System.String _out_font = default(System.String); + Efl.Font.Size _out_size = default(Efl.Font.Size); + GetFont(out _out_font,out _out_size); + return (_out_font,_out_size); + } + set { SetFont( value.Item1, value.Item2); } + } /// Get the font file's path which is being used on a given text object. /// See for more details. /// The font file's path. @@ -1627,24 +1733,76 @@ public class Text : Efl.Canvas.Object, Efl.IText, Efl.ITextAnnotate, Efl.ITextCu get { return GetMarkup(); } set { SetMarkup(value); } } + /// Color of text, excluding style + /// Red component + public (byte, byte, byte, byte) NormalColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetNormalColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetNormalColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Enable or disable backing type /// Backing type public Efl.TextStyleBackingType BackingType { get { return GetBackingType(); } set { SetBackingType(value); } } + /// Backing color + /// Red component + public (byte, byte, byte, byte) BackingColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetBackingColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetBackingColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Sets an underline style on the text /// Underline type public Efl.TextStyleUnderlineType UnderlineType { get { return GetUnderlineType(); } set { SetUnderlineType(value); } } + /// Color of normal underline style + /// Red component + public (byte, byte, byte, byte) UnderlineColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetUnderlineColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetUnderlineColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Height of underline style /// Height public double UnderlineHeight { get { return GetUnderlineHeight(); } set { SetUnderlineHeight(value); } } + /// Color of dashed underline style + /// Red component + public (byte, byte, byte, byte) UnderlineDashedColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetUnderlineDashedColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetUnderlineDashedColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Width of dashed underline style /// Width public int UnderlineDashedWidth { @@ -1657,24 +1815,102 @@ public class Text : Efl.Canvas.Object, Efl.IText, Efl.ITextAnnotate, Efl.ITextCu get { return GetUnderlineDashedGap(); } set { SetUnderlineDashedGap(value); } } + /// Color of underline2 style + /// Red component + public (byte, byte, byte, byte) Underline2Color { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetUnderline2Color(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetUnderline2Color( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Type of strikethrough style /// Strikethrough type public Efl.TextStyleStrikethroughType StrikethroughType { get { return GetStrikethroughType(); } set { SetStrikethroughType(value); } } + /// Color of strikethrough_style + /// Red component + public (byte, byte, byte, byte) StrikethroughColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetStrikethroughColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetStrikethroughColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Type of effect used for the displayed text /// Effect type public Efl.TextStyleEffectType EffectType { get { return GetEffectType(); } set { SetEffectType(value); } } + /// Color of outline effect + /// Red component + public (byte, byte, byte, byte) OutlineColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetOutlineColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetOutlineColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Direction of shadow effect /// Shadow direction public Efl.TextStyleShadowDirection ShadowDirection { get { return GetShadowDirection(); } set { SetShadowDirection(value); } } + /// Color of shadow effect + /// Red component + public (byte, byte, byte, byte) ShadowColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetShadowColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetShadowColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } + /// Color of glow effect + /// Red component + public (byte, byte, byte, byte) GlowColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetGlowColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetGlowColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } + /// Second color of the glow effect + /// Red component + public (byte, byte, byte, byte) Glow2Color { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetGlow2Color(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetGlow2Color( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Program that applies a special filter /// See . /// Filter code @@ -1698,6 +1934,68 @@ public class Text : Efl.Canvas.Object, Efl.IText, Efl.ITextAnnotate, Efl.ITextCu public System.IntPtr FilterOutputBuffer { get { return GetFilterOutputBuffer(); } } + /// Gets the code of the filter program set on this object. May be null. + /// The Lua program source code. + public (System.String, System.String) FilterProgram { + get { + System.String _out_code = default(System.String); + System.String _out_name = default(System.String); + GetFilterProgram(out _out_code,out _out_name); + return (_out_code,_out_name); + } + set { SetFilterProgram( value.Item1, value.Item2); } + } + /// Set the current state of the filter. + /// This should be used by Edje (EFL's internal layout engine), but could also be used when implementing animations programmatically. + /// + /// A full state is defined by two states (name + value): origin state and target state of an ongoing animation, as well as the pos progress (from 0 to 1) of that animation timeline. The second state can be omitted if there is no ongoing animation. + /// Current state of the filter + public (System.String, double, System.String, double, double) FilterState { + get { + System.String _out_cur_state = default(System.String); + double _out_cur_val = default(double); + System.String _out_next_state = default(System.String); + double _out_next_val = default(double); + double _out_pos = default(double); + GetFilterState(out _out_cur_state,out _out_cur_val,out _out_next_state,out _out_next_val,out _out_pos); + return (_out_cur_state,_out_cur_val,_out_next_state,_out_next_val,_out_pos); + } + set { SetFilterState( value.Item1, value.Item2, value.Item3, value.Item4, value.Item5); } + } + /// Required padding to apply this filter without cropping. + /// Read-only property that can be used to calculate the object's final geometry. This can be overridden (set) from inside the filter program by using the function 'padding_set' in the Lua program. + public (int, int, int, int) FilterPadding { + get { + int _out_l = default(int); + int _out_r = default(int); + int _out_t = default(int); + int _out_b = default(int); + GetFilterPadding(out _out_l,out _out_r,out _out_t,out _out_b); + return (_out_l,_out_r,_out_t,_out_b); + } + } + /// Whether this object should be mirrored. + /// If mirrored, an object is in RTL (right to left) mode instead of LTR (left to right). + /// true for RTL, false for LTR (default). + public bool Mirrored { + get { return GetMirrored(); } + set { SetMirrored(value); } + } + /// Whether the property should be set automatically. + /// If enabled, the system or application configuration will be used to set the value of . + /// + /// This property may be implemented by high-level widgets (in Efl.Ui) but not by low-level widgets (in ) as the configuration should affect only high-level widgets. + /// Whether the widget uses automatic mirroring + public bool MirroredAutomatic { + get { return GetMirroredAutomatic(); } + set { SetMirroredAutomatic(value); } + } + /// The (human) language for this object. + /// The current language. + public System.String Language { + get { return GetLanguage(); } + set { SetLanguage(value); } + } private static IntPtr GetEflClassStatic() { return Efl.Canvas.Text.efl_canvas_text_class_get(); @@ -3284,6 +3582,66 @@ public class Text : Efl.Canvas.Object, Efl.IText, Efl.ITextAnnotate, Efl.ITextCu descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_filter_data_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_data_set_static_delegate) }); } + if (efl_ui_mirrored_get_static_delegate == null) + { + efl_ui_mirrored_get_static_delegate = new efl_ui_mirrored_get_delegate(mirrored_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetMirrored") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_get_static_delegate) }); + } + + if (efl_ui_mirrored_set_static_delegate == null) + { + efl_ui_mirrored_set_static_delegate = new efl_ui_mirrored_set_delegate(mirrored_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetMirrored") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_set_static_delegate) }); + } + + if (efl_ui_mirrored_automatic_get_static_delegate == null) + { + efl_ui_mirrored_automatic_get_static_delegate = new efl_ui_mirrored_automatic_get_delegate(mirrored_automatic_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetMirroredAutomatic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_automatic_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_automatic_get_static_delegate) }); + } + + if (efl_ui_mirrored_automatic_set_static_delegate == null) + { + efl_ui_mirrored_automatic_set_static_delegate = new efl_ui_mirrored_automatic_set_delegate(mirrored_automatic_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetMirroredAutomatic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_automatic_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_automatic_set_static_delegate) }); + } + + if (efl_ui_language_get_static_delegate == null) + { + efl_ui_language_get_static_delegate = new efl_ui_language_get_delegate(language_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetLanguage") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_language_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_language_get_static_delegate) }); + } + + if (efl_ui_language_set_static_delegate == null) + { + efl_ui_language_set_static_delegate = new efl_ui_language_set_delegate(language_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetLanguage") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_language_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_language_set_static_delegate) }); + } + descs.AddRange(base.GetEoOps(type)); return descs; } @@ -8867,6 +9225,219 @@ public class Text : Efl.Canvas.Object, Efl.IText, Efl.ITextAnnotate, Efl.ITextCu private static efl_gfx_filter_data_set_delegate efl_gfx_filter_data_set_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_mirrored_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_mirrored_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_mirrored_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_get"); + + private static bool mirrored_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_mirrored_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)ws.Target).GetMirrored(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_mirrored_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_mirrored_get_delegate efl_ui_mirrored_get_static_delegate; + + + private delegate void efl_ui_mirrored_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool rtl); + + + public delegate void efl_ui_mirrored_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool rtl); + + public static Efl.Eo.FunctionWrapper efl_ui_mirrored_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_set"); + + private static void mirrored_set(System.IntPtr obj, System.IntPtr pd, bool rtl) + { + Eina.Log.Debug("function efl_ui_mirrored_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Text)ws.Target).SetMirrored(rtl); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_mirrored_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rtl); + } + } + + private static efl_ui_mirrored_set_delegate efl_ui_mirrored_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_mirrored_automatic_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_mirrored_automatic_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_mirrored_automatic_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_automatic_get"); + + private static bool mirrored_automatic_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_mirrored_automatic_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)ws.Target).GetMirroredAutomatic(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_mirrored_automatic_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_mirrored_automatic_get_delegate efl_ui_mirrored_automatic_get_static_delegate; + + + private delegate void efl_ui_mirrored_automatic_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool automatic); + + + public delegate void efl_ui_mirrored_automatic_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool automatic); + + public static Efl.Eo.FunctionWrapper efl_ui_mirrored_automatic_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_automatic_set"); + + private static void mirrored_automatic_set(System.IntPtr obj, System.IntPtr pd, bool automatic) + { + Eina.Log.Debug("function efl_ui_mirrored_automatic_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Text)ws.Target).SetMirroredAutomatic(automatic); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_mirrored_automatic_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), automatic); + } + } + + private static efl_ui_mirrored_automatic_set_delegate efl_ui_mirrored_automatic_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_language_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_language_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_language_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_language_get"); + + private static System.String language_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_language_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Text)ws.Target).GetLanguage(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_language_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_language_get_delegate efl_ui_language_get_static_delegate; + + + private delegate void efl_ui_language_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String language); + + + public delegate void efl_ui_language_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String language); + + public static Efl.Eo.FunctionWrapper efl_ui_language_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_language_set"); + + private static void language_set(System.IntPtr obj, System.IntPtr pd, System.String language) + { + Eina.Log.Debug("function efl_ui_language_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Text)ws.Target).SetLanguage(language); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_language_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), language); + } + } + + private static efl_ui_language_set_delegate efl_ui_language_set_static_delegate; + #pragma warning restore CA1707, CS1591, SA1300, SA1600 } @@ -8875,53 +9446,179 @@ public class Text : Efl.Canvas.Object, Efl.IText, Efl.ITextAnnotate, Efl.ITextCu } -namespace Efl { +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasText_ExtensionMethods { + + + public static Efl.BindableProperty BidiDelimiters(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("bidi_delimiters", fac); + } -namespace Canvas { + public static Efl.BindableProperty LegacyNewline(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("legacy_newline", fac); + } -/// EFL text style data structure -[StructLayout(LayoutKind.Sequential)] -[Efl.Eo.BindingEntity] -public struct TextStyle -{ - ///Placeholder field - public IntPtr field; - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. - public static implicit operator TextStyle(IntPtr ptr) - { - var tmp = (TextStyle.NativeStruct)Marshal.PtrToStructure(ptr, typeof(TextStyle.NativeStruct)); - return tmp; + + + + + + + + + + + + public static Efl.BindableProperty FontSource(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("font_source", fac); } - #pragma warning disable CS1591 + public static Efl.BindableProperty FontFallbacks(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("font_fallbacks", fac); + } - ///Internal wrapper for struct TextStyle. - [StructLayout(LayoutKind.Sequential)] - public struct NativeStruct - { - internal IntPtr field; - ///Implicit conversion to the internal/marshalling representation. - public static implicit operator TextStyle.NativeStruct(TextStyle _external_struct) - { - var _internal_struct = new TextStyle.NativeStruct(); - return _internal_struct; - } + public static Efl.BindableProperty FontWeight(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("font_weight", fac); + } - ///Implicit conversion to the managed representation. - public static implicit operator TextStyle(TextStyle.NativeStruct _internal_struct) - { - var _external_struct = new TextStyle(); - return _external_struct; - } + public static Efl.BindableProperty FontSlant(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("font_slant", fac); + } + public static Efl.BindableProperty FontWidth(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("font_width", fac); } - #pragma warning restore CS1591 + public static Efl.BindableProperty FontLang(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("font_lang", fac); + } -} + public static Efl.BindableProperty FontBitmapScalable(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("font_bitmap_scalable", fac); + } -} + public static Efl.BindableProperty Ellipsis(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("ellipsis", fac); + } -} + public static Efl.BindableProperty Wrap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("wrap", fac); + } + + public static Efl.BindableProperty Multiline(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("multiline", fac); + } + + public static Efl.BindableProperty HalignAutoType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("halign_auto_type", fac); + } + + public static Efl.BindableProperty Halign(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("halign", fac); + } + public static Efl.BindableProperty Valign(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("valign", fac); + } + + public static Efl.BindableProperty Linegap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("linegap", fac); + } + + public static Efl.BindableProperty Linerelgap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("linerelgap", fac); + } + + public static Efl.BindableProperty Tabstops(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("tabstops", fac); + } + + public static Efl.BindableProperty Password(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("password", fac); + } + + public static Efl.BindableProperty ReplacementChar(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("replacement_char", fac); + } + + public static Efl.BindableProperty Markup(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("markup", fac); + } + + + + public static Efl.BindableProperty BackingType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("backing_type", fac); + } + + + public static Efl.BindableProperty UnderlineType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("underline_type", fac); + } + + + public static Efl.BindableProperty UnderlineHeight(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("underline_height", fac); + } + + + public static Efl.BindableProperty UnderlineDashedWidth(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("underline_dashed_width", fac); + } + + public static Efl.BindableProperty UnderlineDashedGap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("underline_dashed_gap", fac); + } + + + public static Efl.BindableProperty StrikethroughType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("strikethrough_type", fac); + } + + + public static Efl.BindableProperty EffectType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("effect_type", fac); + } + + + public static Efl.BindableProperty ShadowDirection(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("shadow_direction", fac); + } + + + + + public static Efl.BindableProperty GfxFilter(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("gfx_filter", fac); + } + + public static Efl.BindableProperty FilterChanged(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("filter_changed", fac); + } + + public static Efl.BindableProperty FilterInvalid(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("filter_invalid", fac); + } + + + + + + + + public static Efl.BindableProperty Mirrored(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("mirrored", fac); + } + + public static Efl.BindableProperty MirroredAutomatic(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("mirrored_automatic", fac); + } + + public static Efl.BindableProperty Language(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Text { + return new Efl.BindableProperty("language", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_text_factory.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_text_factory.eo.cs old mode 100644 new mode 100755 index d6d75235a..5f6c60b79 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_text_factory.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_text_factory.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,6 +12,7 @@ namespace Canvas { /// Object factory that creates Efl.Canvas.Object objects. /// Translates a given key to an object (item), to be later placed in a text for higher level usages. The translation implementation is left to be decided by the inheriting class, whether it is by treating the key as an image path, or a key associated with a real-path in a hashtable or something else entirely. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.ITextFactoryConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface ITextFactory : @@ -23,12 +25,13 @@ Efl.Canvas.Object Create(Efl.Canvas.Object kw_object, System.String key); } /// Object factory that creates Efl.Canvas.Object objects. /// Translates a given key to an object (item), to be later placed in a text for higher level usages. The translation implementation is left to be decided by the inheriting class, whether it is by treating the key as an image path, or a key associated with a real-path in a hashtable or something else entirely. -sealed public class ITextFactoryConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class ITextFactoryConcrete : Efl.Eo.EoWrapper , ITextFactory { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -44,7 +47,8 @@ sealed public class ITextFactoryConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ITextFactoryConcrete(ConstructingHandle ch) : base(ch) { @@ -148,3 +152,9 @@ sealed public class ITextFactoryConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CanvasITextFactoryConcrete_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_container.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_container.eo.cs old mode 100644 new mode 100755 index 4c6bbfc49..0bc709f7c --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_container.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_container.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -12,11 +13,12 @@ namespace Canvas { namespace Vg { /// Efl vector graphics container class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.Vg.Container.NativeMethods] [Efl.Eo.BindingEntity] public class Container : Efl.Canvas.Vg.Node { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -42,7 +44,8 @@ public class Container : Efl.Canvas.Vg.Node FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Container(ConstructingHandle ch) : base(ch) { @@ -208,3 +211,9 @@ public class Container : Efl.Canvas.Vg.Node } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Canvas_VgContainer_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient.eo.cs old mode 100644 new mode 100755 index 249ce5581..75f0bda3f --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -12,11 +13,12 @@ namespace Canvas { namespace Vg { /// Efl vectopr graphics gradient abstract class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.Vg.Gradient.NativeMethods] [Efl.Eo.BindingEntity] public abstract class Gradient : Efl.Canvas.Vg.Node, Efl.Gfx.IGradient { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -42,7 +44,8 @@ public abstract class Gradient : Efl.Canvas.Vg.Node, Efl.Gfx.IGradient FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Gradient(ConstructingHandle ch) : base(ch) { @@ -101,6 +104,17 @@ public abstract class Gradient : Efl.Canvas.Vg.Node, Efl.Gfx.IGradient Efl.Gfx.IGradientConcrete.NativeMethods.efl_gfx_gradient_spread_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),s); Eina.Error.RaiseIfUnhandledException(); } + /// Get the list of color stops. + /// Color stops list + public (Efl.Gfx.GradientStop, uint) Stop { + get { + Efl.Gfx.GradientStop _out_colors = default(Efl.Gfx.GradientStop); + uint _out_length = default(uint); + GetStop(out _out_colors,out _out_length); + return (_out_colors,_out_length); + } + set { SetStop(ref value.Item1, value.Item2); } + } /// Returns the spread method use by this gradient. The default is EFL_GFX_GRADIENT_SPREAD_PAD. /// Spread type to be used public Efl.Gfx.GradientSpread Spread { @@ -330,3 +344,14 @@ public abstract class Gradient : Efl.Canvas.Vg.Node, Efl.Gfx.IGradient } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Canvas_VgGradient_ExtensionMethods { + + public static Efl.BindableProperty Spread(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Gradient { + return new Efl.BindableProperty("spread", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient_linear.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient_linear.eo.cs old mode 100644 new mode 100755 index efd1ca614..92346785b --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient_linear.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient_linear.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -12,11 +13,12 @@ namespace Canvas { namespace Vg { /// Efl vector graphics gradient linear class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.Vg.GradientLinear.NativeMethods] [Efl.Eo.BindingEntity] public class GradientLinear : Efl.Canvas.Vg.Gradient, Efl.Gfx.IGradientLinear { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -42,7 +44,8 @@ public class GradientLinear : Efl.Canvas.Vg.Gradient, Efl.Gfx.IGradientLinear FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected GradientLinear(ConstructingHandle ch) : base(ch) { @@ -91,6 +94,28 @@ public class GradientLinear : Efl.Canvas.Vg.Gradient, Efl.Gfx.IGradientLinear Efl.Gfx.IGradientLinearConcrete.NativeMethods.efl_gfx_gradient_linear_end_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),x, y); Eina.Error.RaiseIfUnhandledException(); } + /// Gets the start point of this linear gradient. + /// X co-ordinate of start point + public (double, double) Start { + get { + double _out_x = default(double); + double _out_y = default(double); + GetStart(out _out_x,out _out_y); + return (_out_x,_out_y); + } + set { SetStart( value.Item1, value.Item2); } + } + /// Gets the end point of this linear gradient. + /// X co-ordinate of end point + public (double, double) End { + get { + double _out_x = default(double); + double _out_y = default(double); + GetEnd(out _out_x,out _out_y); + return (_out_x,_out_y); + } + set { SetEnd( value.Item1, value.Item2); } + } private static IntPtr GetEflClassStatic() { return Efl.Canvas.Vg.GradientLinear.efl_canvas_vg_gradient_linear_class_get(); @@ -309,3 +334,11 @@ public class GradientLinear : Efl.Canvas.Vg.Gradient, Efl.Gfx.IGradientLinear } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Canvas_VgGradientLinear_ExtensionMethods { + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient_radial.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient_radial.eo.cs old mode 100644 new mode 100755 index 32d12a08b..b35f3ff43 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient_radial.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_gradient_radial.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -12,11 +13,12 @@ namespace Canvas { namespace Vg { /// Efl vector graphics gradient radial class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.Vg.GradientRadial.NativeMethods] [Efl.Eo.BindingEntity] public class GradientRadial : Efl.Canvas.Vg.Gradient, Efl.Gfx.IGradientRadial { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -42,7 +44,8 @@ public class GradientRadial : Efl.Canvas.Vg.Gradient, Efl.Gfx.IGradientRadial FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected GradientRadial(ConstructingHandle ch) : base(ch) { @@ -104,12 +107,34 @@ public class GradientRadial : Efl.Canvas.Vg.Gradient, Efl.Gfx.IGradientRadial Efl.Gfx.IGradientRadialConcrete.NativeMethods.efl_gfx_gradient_radial_focal_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),x, y); Eina.Error.RaiseIfUnhandledException(); } + /// Gets the center of this radial gradient. + /// X co-ordinate of center point + public (double, double) Center { + get { + double _out_x = default(double); + double _out_y = default(double); + GetCenter(out _out_x,out _out_y); + return (_out_x,_out_y); + } + set { SetCenter( value.Item1, value.Item2); } + } /// Gets the center radius of this radial gradient. /// Center radius public double Radius { get { return GetRadius(); } set { SetRadius(value); } } + /// Gets the focal point of this radial gradient. + /// X co-ordinate of focal point + public (double, double) Focal { + get { + double _out_x = default(double); + double _out_y = default(double); + GetFocal(out _out_x,out _out_y); + return (_out_x,_out_y); + } + set { SetFocal( value.Item1, value.Item2); } + } private static IntPtr GetEflClassStatic() { return Efl.Canvas.Vg.GradientRadial.efl_canvas_vg_gradient_radial_class_get(); @@ -419,3 +444,15 @@ public class GradientRadial : Efl.Canvas.Vg.Gradient, Efl.Gfx.IGradientRadial } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Canvas_VgGradientRadial_ExtensionMethods { + + public static Efl.BindableProperty Radius(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.GradientRadial { + return new Efl.BindableProperty("radius", fac); + } + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_image.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_image.eo.cs new file mode 100755 index 000000000..fe7f710b3 --- /dev/null +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_image.eo.cs @@ -0,0 +1,1804 @@ +#define EFL_BETA +#pragma warning disable CS1591 +using System; +using System.Runtime.InteropServices; +using System.Collections.Generic; +using System.Linq; +using System.Threading; +using System.ComponentModel; +namespace Efl { + +namespace Canvas { + +namespace Vg { + +/// Efl vector graphics image class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +[Efl.Canvas.Vg.Image.NativeMethods] +[Efl.Eo.BindingEntity] +public class Image : Efl.Canvas.Vg.Node, Efl.Gfx.IImage +{ + /// Pointer to the native class description. + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Image)) + { + return GetEflClassStatic(); + } + else + { + return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } + } + } + + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr + efl_canvas_vg_image_class_get(); + /// Initializes a new instance of the class. + /// Parent instance. + public Image(Efl.Object parent= null + ) : base(efl_canvas_vg_image_class_get(), parent) + { + FinishInstantiation(); + } + + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. + /// Tag struct storing the native handle of the object being constructed. + protected Image(ConstructingHandle ch) : base(ch) + { + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. + protected Image(Efl.Eo.Globals.WrappingHandle wh) : base(wh) + { + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The Efl.Object parent of this instance. + protected Image(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) + { + } + + /// Image data has been preloaded. + public event EventHandler ImagePreloadEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_PRELOAD"; + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_PRELOAD"; + RemoveNativeEventHandler(efl.Libs.Evas, key, value); + } + } + } + /// Method to raise event ImagePreloadEvt. + public void OnImagePreloadEvt(EventArgs e) + { + var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_PRELOAD"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Image was resized (its pixel data). + public event EventHandler ImageResizeEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_RESIZE"; + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_RESIZE"; + RemoveNativeEventHandler(efl.Libs.Evas, key, value); + } + } + } + /// Method to raise event ImageResizeEvt. + public void OnImageResizeEvt(EventArgs e) + { + var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_RESIZE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Image data has been unloaded (by some mechanism in EFL that threw out the original image data). + public event EventHandler ImageUnloadEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_UNLOAD"; + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_GFX_IMAGE_EVENT_IMAGE_UNLOAD"; + RemoveNativeEventHandler(efl.Libs.Evas, key, value); + } + } + } + /// Method to raise event ImageUnloadEvt. + public void OnImageUnloadEvt(EventArgs e) + { + var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_UNLOAD"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Set image data + /// Image pixels data. The pixel data type is 32bit RGBA + /// The size in pixels. + virtual public void SetData(System.IntPtr pixels, Eina.Size2D size) { + Eina.Size2D.NativeStruct _in_size = size; + Efl.Canvas.Vg.Image.NativeMethods.efl_canvas_vg_image_data_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),pixels, _in_size); + Eina.Error.RaiseIfUnhandledException(); + } + /// Whether to use high-quality image scaling algorithm for this image. + /// When enabled, a higher quality image scaling algorithm is used when scaling images to sizes other than the source image's original one. This gives better results but is more computationally expensive. + /// + /// true by default + /// Whether to use smooth scale or not. + virtual public bool GetSmoothScale() { + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_smooth_scale_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Whether to use high-quality image scaling algorithm for this image. + /// When enabled, a higher quality image scaling algorithm is used when scaling images to sizes other than the source image's original one. This gives better results but is more computationally expensive. + /// + /// true by default + /// Whether to use smooth scale or not. + virtual public void SetSmoothScale(bool smooth_scale) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_smooth_scale_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),smooth_scale); + Eina.Error.RaiseIfUnhandledException(); + } + /// Control how the image is scaled. + /// Image scale type + virtual public Efl.Gfx.ImageScaleType GetScaleType() { + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_type_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Control how the image is scaled. + /// Image scale type + virtual public void SetScaleType(Efl.Gfx.ImageScaleType scale_type) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_type_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),scale_type); + Eina.Error.RaiseIfUnhandledException(); + } + /// If true, the image may be scaled to a larger size. If false, the image will never be resized larger than its native size. This is set to true by default. + /// Allow image upscaling + virtual public bool GetCanUpscale() { + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_can_upscale_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// If true, the image may be scaled to a larger size. If false, the image will never be resized larger than its native size. This is set to true by default. + /// Allow image upscaling + virtual public void SetCanUpscale(bool upscale) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_can_upscale_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),upscale); + Eina.Error.RaiseIfUnhandledException(); + } + /// If true, the image may be scaled to a smaller size. If false, the image will never be resized smaller than its native size. This is set to true by default. + /// Allow image downscaling + virtual public bool GetCanDownscale() { + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_can_downscale_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// If true, the image may be scaled to a smaller size. If false, the image will never be resized smaller than its native size. This is set to true by default. + /// Allow image downscaling + virtual public void SetCanDownscale(bool downscale) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_can_downscale_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),downscale); + Eina.Error.RaiseIfUnhandledException(); + } + /// Returns 1.0 if not applicable (eg. height = 0). + /// The image's ratio. + virtual public double GetRatio() { + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_ratio_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Return the relative area enclosed inside the image where content is expected. + /// We do expect content to be inside the limit defined by the border or inside the stretch region. If a stretch region is provided, the content region will encompass the non strechable area that are surrounded by stretchable area. If no border and no stretch region is set, they are assumed to be zero and the full object geometry is where content can be layout on top. The area size change with the object size. + /// + /// The geometry of the area is expressed relative to the geometry of the object. + /// A rectangle inside the object boundary that where content is expected. + virtual public Eina.Rect GetContentRegion() { + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_content_region_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Dimensions of this image's border, a region that does not scale with the center area. + /// When EFL renders an image, its source may be scaled to fit the size of the object. This function sets an area from the borders of the image inwards which is not to be scaled. This function is useful for making frames and for widget theming, where, for example, buttons may be of varying sizes, but their border size must remain constant. + /// + /// The units used for l, r, t and b are canvas units (pixels). + /// + /// Note: The border region itself may be scaled by the function. + /// + /// Note: By default, image objects have no borders set, i.e. l, r, t and b start as 0. + /// + /// Note: Similar to the concepts of 9-patch images or cap insets. + /// The border's left width. + /// The border's right width. + /// The border's top height. + /// The border's bottom height. + virtual public void GetBorder(out int l, out int r, out int t, out int b) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out l, out r, out t, out b); + Eina.Error.RaiseIfUnhandledException(); + } + /// Dimensions of this image's border, a region that does not scale with the center area. + /// When EFL renders an image, its source may be scaled to fit the size of the object. This function sets an area from the borders of the image inwards which is not to be scaled. This function is useful for making frames and for widget theming, where, for example, buttons may be of varying sizes, but their border size must remain constant. + /// + /// The units used for l, r, t and b are canvas units (pixels). + /// + /// Note: The border region itself may be scaled by the function. + /// + /// Note: By default, image objects have no borders set, i.e. l, r, t and b start as 0. + /// + /// Note: Similar to the concepts of 9-patch images or cap insets. + /// The border's left width. + /// The border's right width. + /// The border's top height. + /// The border's bottom height. + virtual public void SetBorder(int l, int r, int t, int b) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),l, r, t, b); + Eina.Error.RaiseIfUnhandledException(); + } + /// Scaling factor applied to the image borders. + /// This value multiplies the size of the when scaling an object. + /// + /// Default value is 1.0 (no scaling). + /// The scale factor. + virtual public double GetBorderScale() { + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_scale_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Scaling factor applied to the image borders. + /// This value multiplies the size of the when scaling an object. + /// + /// Default value is 1.0 (no scaling). + /// The scale factor. + virtual public void SetBorderScale(double scale) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_scale_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),scale); + Eina.Error.RaiseIfUnhandledException(); + } + /// Specifies how the center part of the object (not the borders) should be drawn when EFL is rendering it. + /// This function sets how the center part of the image object's source image is to be drawn, which must be one of the values in . By center we mean the complementary part of that defined by . This is very useful for making frames and decorations. You would most probably also be using a filled image (as in ) to use as a frame. + /// + /// The default value is , ie. render and scale the center area, respecting its transparency. + /// Fill mode of the center region. + virtual public Efl.Gfx.BorderFillMode GetBorderCenterFill() { + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_center_fill_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Specifies how the center part of the object (not the borders) should be drawn when EFL is rendering it. + /// This function sets how the center part of the image object's source image is to be drawn, which must be one of the values in . By center we mean the complementary part of that defined by . This is very useful for making frames and decorations. You would most probably also be using a filled image (as in ) to use as a frame. + /// + /// The default value is , ie. render and scale the center area, respecting its transparency. + /// Fill mode of the center region. + virtual public void SetBorderCenterFill(Efl.Gfx.BorderFillMode fill) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_border_center_fill_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),fill); + Eina.Error.RaiseIfUnhandledException(); + } + /// This property defines the stretchable pixels region of an image. + /// When the regions are set by the user, the method will walk the iterators once and then destroy them. When the regions are retrieved by the user, it is his responsibility to destroy the iterators.. It will remember the information for the lifetime of the object. It will ignore all value of , and . To reset the object you can just pass null to both horizontal and vertical at the same time. + /// Representation of area that are stretchable in the image horizontal space. + /// Representation of area that are stretchable in the image vertical space. + virtual public void GetStretchRegion(out Eina.Iterator horizontal, out Eina.Iterator vertical) { + System.IntPtr _out_horizontal = System.IntPtr.Zero; + System.IntPtr _out_vertical = System.IntPtr.Zero; + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_stretch_region_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out _out_horizontal, out _out_vertical); + Eina.Error.RaiseIfUnhandledException(); + horizontal = new Eina.Iterator(_out_horizontal, false); + vertical = new Eina.Iterator(_out_vertical, false); + } + /// This property defines the stretchable pixels region of an image. + /// When the regions are set by the user, the method will walk the iterators once and then destroy them. When the regions are retrieved by the user, it is his responsibility to destroy the iterators.. It will remember the information for the lifetime of the object. It will ignore all value of , and . To reset the object you can just pass null to both horizontal and vertical at the same time. + /// Representation of area that are stretchable in the image horizontal space. + /// Representation of area that are stretchable in the image vertical space. + /// return an error code if the stretch_region provided are incorrect. + virtual public Eina.Error SetStretchRegion(Eina.Iterator horizontal, Eina.Iterator vertical) { + var _in_horizontal = horizontal.Handle; + var _in_vertical = vertical.Handle; + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_stretch_region_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_horizontal, _in_vertical); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// This represents the size of the original image in pixels. + /// This may be different from the actual geometry on screen or even the size of the loaded pixel buffer. This is the size of the image as stored in the original file. + /// + /// This is a read-only property, and may return 0x0. + /// The size in pixels. + virtual public Eina.Size2D GetImageSize() { + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_size_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Get the content hint setting of a given image object of the canvas. + /// This returns #EVAS_IMAGE_CONTENT_HINT_NONE on error. + /// Dynamic or static content hint, see + virtual public Efl.Gfx.ImageContentHint GetContentHint() { + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_content_hint_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Set the content hint setting of a given image object of the canvas. + /// This function sets the content hint value of the given image of the canvas. For example, if you're on the GL engine and your driver implementation supports it, setting this hint to #EVAS_IMAGE_CONTENT_HINT_DYNAMIC will make it need zero copies at texture upload time, which is an "expensive" operation. + /// Dynamic or static content hint, see + virtual public void SetContentHint(Efl.Gfx.ImageContentHint hint) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_content_hint_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),hint); + Eina.Error.RaiseIfUnhandledException(); + } + /// Get the scale hint of a given image of the canvas. + /// This function returns the scale hint value of the given image object of the canvas. + /// Scalable or static size hint, see + virtual public Efl.Gfx.ImageScaleHint GetScaleHint() { + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_hint_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Set the scale hint of a given image of the canvas. + /// This function sets the scale hint value of the given image object in the canvas, which will affect how Evas is to cache scaled versions of its original source image. + /// Scalable or static size hint, see + virtual public void SetScaleHint(Efl.Gfx.ImageScaleHint hint) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_hint_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),hint); + Eina.Error.RaiseIfUnhandledException(); + } + /// Gets the (last) file loading error for a given object. + /// The load error code. + virtual public Eina.Error GetImageLoadError() { + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_load_error_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Set image data + /// Image pixels data. The pixel data type is 32bit RGBA + public (System.IntPtr, Eina.Size2D) Data { + set { SetData( value.Item1, value.Item2); } + } + /// Whether to use high-quality image scaling algorithm for this image. + /// When enabled, a higher quality image scaling algorithm is used when scaling images to sizes other than the source image's original one. This gives better results but is more computationally expensive. + /// + /// true by default + /// Whether to use smooth scale or not. + public bool SmoothScale { + get { return GetSmoothScale(); } + set { SetSmoothScale(value); } + } + /// Control how the image is scaled. + /// Image scale type + public Efl.Gfx.ImageScaleType ScaleType { + get { return GetScaleType(); } + set { SetScaleType(value); } + } + /// If true, the image may be scaled to a larger size. If false, the image will never be resized larger than its native size. This is set to true by default. + /// Allow image upscaling + public bool CanUpscale { + get { return GetCanUpscale(); } + set { SetCanUpscale(value); } + } + /// If true, the image may be scaled to a smaller size. If false, the image will never be resized smaller than its native size. This is set to true by default. + /// Allow image downscaling + public bool CanDownscale { + get { return GetCanDownscale(); } + set { SetCanDownscale(value); } + } + /// The native width/height ratio of the image. + /// The image's ratio. + public double Ratio { + get { return GetRatio(); } + } + /// Return the relative area enclosed inside the image where content is expected. + /// We do expect content to be inside the limit defined by the border or inside the stretch region. If a stretch region is provided, the content region will encompass the non strechable area that are surrounded by stretchable area. If no border and no stretch region is set, they are assumed to be zero and the full object geometry is where content can be layout on top. The area size change with the object size. + /// + /// The geometry of the area is expressed relative to the geometry of the object. + /// A rectangle inside the object boundary that where content is expected. + public Eina.Rect ContentRegion { + get { return GetContentRegion(); } + } + /// Dimensions of this image's border, a region that does not scale with the center area. + /// When EFL renders an image, its source may be scaled to fit the size of the object. This function sets an area from the borders of the image inwards which is not to be scaled. This function is useful for making frames and for widget theming, where, for example, buttons may be of varying sizes, but their border size must remain constant. + /// + /// The units used for l, r, t and b are canvas units (pixels). + /// + /// Note: The border region itself may be scaled by the function. + /// + /// Note: By default, image objects have no borders set, i.e. l, r, t and b start as 0. + /// + /// Note: Similar to the concepts of 9-patch images or cap insets. + /// The border's left width. + public (int, int, int, int) Border { + get { + int _out_l = default(int); + int _out_r = default(int); + int _out_t = default(int); + int _out_b = default(int); + GetBorder(out _out_l,out _out_r,out _out_t,out _out_b); + return (_out_l,_out_r,_out_t,_out_b); + } + set { SetBorder( value.Item1, value.Item2, value.Item3, value.Item4); } + } + /// Scaling factor applied to the image borders. + /// This value multiplies the size of the when scaling an object. + /// + /// Default value is 1.0 (no scaling). + /// The scale factor. + public double BorderScale { + get { return GetBorderScale(); } + set { SetBorderScale(value); } + } + /// Specifies how the center part of the object (not the borders) should be drawn when EFL is rendering it. + /// This function sets how the center part of the image object's source image is to be drawn, which must be one of the values in . By center we mean the complementary part of that defined by . This is very useful for making frames and decorations. You would most probably also be using a filled image (as in ) to use as a frame. + /// + /// The default value is , ie. render and scale the center area, respecting its transparency. + /// Fill mode of the center region. + public Efl.Gfx.BorderFillMode BorderCenterFill { + get { return GetBorderCenterFill(); } + set { SetBorderCenterFill(value); } + } + /// This property defines the stretchable pixels region of an image. + /// When the regions are set by the user, the method will walk the iterators once and then destroy them. When the regions are retrieved by the user, it is his responsibility to destroy the iterators.. It will remember the information for the lifetime of the object. It will ignore all value of , and . To reset the object you can just pass null to both horizontal and vertical at the same time. + /// Representation of area that are stretchable in the image horizontal space. + public (Eina.Iterator, Eina.Iterator) StretchRegion { + get { + Eina.Iterator _out_horizontal = default(Eina.Iterator); + Eina.Iterator _out_vertical = default(Eina.Iterator); + GetStretchRegion(out _out_horizontal,out _out_vertical); + return (_out_horizontal,_out_vertical); + } + set { SetStretchRegion( value.Item1, value.Item2); } + } + /// This represents the size of the original image in pixels. + /// This may be different from the actual geometry on screen or even the size of the loaded pixel buffer. This is the size of the image as stored in the original file. + /// + /// This is a read-only property, and may return 0x0. + /// The size in pixels. + public Eina.Size2D ImageSize { + get { return GetImageSize(); } + } + /// Get the content hint setting of a given image object of the canvas. + /// This returns #EVAS_IMAGE_CONTENT_HINT_NONE on error. + /// Dynamic or static content hint, see + public Efl.Gfx.ImageContentHint ContentHint { + get { return GetContentHint(); } + set { SetContentHint(value); } + } + /// Get the scale hint of a given image of the canvas. + /// This function returns the scale hint value of the given image object of the canvas. + /// Scalable or static size hint, see + public Efl.Gfx.ImageScaleHint ScaleHint { + get { return GetScaleHint(); } + set { SetScaleHint(value); } + } + /// Gets the (last) file loading error for a given object. + /// The load error code. + public Eina.Error ImageLoadError { + get { return GetImageLoadError(); } + } + private static IntPtr GetEflClassStatic() + { + return Efl.Canvas.Vg.Image.efl_canvas_vg_image_class_get(); + } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Canvas.Vg.Node.NativeMethods + { + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// Gets the list of Eo operations to override. + /// The list of Eo operations to be overload. + public override System.Collections.Generic.List GetEoOps(System.Type type) + { + var descs = new System.Collections.Generic.List(); + var methods = Efl.Eo.Globals.GetUserMethods(type); + + if (efl_canvas_vg_image_data_set_static_delegate == null) + { + efl_canvas_vg_image_data_set_static_delegate = new efl_canvas_vg_image_data_set_delegate(data_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetData") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_canvas_vg_image_data_set"), func = Marshal.GetFunctionPointerForDelegate(efl_canvas_vg_image_data_set_static_delegate) }); + } + + if (efl_gfx_image_smooth_scale_get_static_delegate == null) + { + efl_gfx_image_smooth_scale_get_static_delegate = new efl_gfx_image_smooth_scale_get_delegate(smooth_scale_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetSmoothScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_smooth_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_smooth_scale_get_static_delegate) }); + } + + if (efl_gfx_image_smooth_scale_set_static_delegate == null) + { + efl_gfx_image_smooth_scale_set_static_delegate = new efl_gfx_image_smooth_scale_set_delegate(smooth_scale_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetSmoothScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_smooth_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_smooth_scale_set_static_delegate) }); + } + + if (efl_gfx_image_scale_type_get_static_delegate == null) + { + efl_gfx_image_scale_type_get_static_delegate = new efl_gfx_image_scale_type_get_delegate(scale_type_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetScaleType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_get_static_delegate) }); + } + + if (efl_gfx_image_scale_type_set_static_delegate == null) + { + efl_gfx_image_scale_type_set_static_delegate = new efl_gfx_image_scale_type_set_delegate(scale_type_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScaleType") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_set_static_delegate) }); + } + + if (efl_gfx_image_can_upscale_get_static_delegate == null) + { + efl_gfx_image_can_upscale_get_static_delegate = new efl_gfx_image_can_upscale_get_delegate(can_upscale_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetCanUpscale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_can_upscale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_can_upscale_get_static_delegate) }); + } + + if (efl_gfx_image_can_upscale_set_static_delegate == null) + { + efl_gfx_image_can_upscale_set_static_delegate = new efl_gfx_image_can_upscale_set_delegate(can_upscale_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetCanUpscale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_can_upscale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_can_upscale_set_static_delegate) }); + } + + if (efl_gfx_image_can_downscale_get_static_delegate == null) + { + efl_gfx_image_can_downscale_get_static_delegate = new efl_gfx_image_can_downscale_get_delegate(can_downscale_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetCanDownscale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_can_downscale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_can_downscale_get_static_delegate) }); + } + + if (efl_gfx_image_can_downscale_set_static_delegate == null) + { + efl_gfx_image_can_downscale_set_static_delegate = new efl_gfx_image_can_downscale_set_delegate(can_downscale_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetCanDownscale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_can_downscale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_can_downscale_set_static_delegate) }); + } + + if (efl_gfx_image_ratio_get_static_delegate == null) + { + efl_gfx_image_ratio_get_static_delegate = new efl_gfx_image_ratio_get_delegate(ratio_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRatio") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_ratio_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_ratio_get_static_delegate) }); + } + + if (efl_gfx_image_content_region_get_static_delegate == null) + { + efl_gfx_image_content_region_get_static_delegate = new efl_gfx_image_content_region_get_delegate(content_region_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetContentRegion") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_content_region_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_content_region_get_static_delegate) }); + } + + if (efl_gfx_image_border_get_static_delegate == null) + { + efl_gfx_image_border_get_static_delegate = new efl_gfx_image_border_get_delegate(border_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetBorder") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_get_static_delegate) }); + } + + if (efl_gfx_image_border_set_static_delegate == null) + { + efl_gfx_image_border_set_static_delegate = new efl_gfx_image_border_set_delegate(border_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetBorder") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_set_static_delegate) }); + } + + if (efl_gfx_image_border_scale_get_static_delegate == null) + { + efl_gfx_image_border_scale_get_static_delegate = new efl_gfx_image_border_scale_get_delegate(border_scale_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetBorderScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_scale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_scale_get_static_delegate) }); + } + + if (efl_gfx_image_border_scale_set_static_delegate == null) + { + efl_gfx_image_border_scale_set_static_delegate = new efl_gfx_image_border_scale_set_delegate(border_scale_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetBorderScale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_scale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_scale_set_static_delegate) }); + } + + if (efl_gfx_image_border_center_fill_get_static_delegate == null) + { + efl_gfx_image_border_center_fill_get_static_delegate = new efl_gfx_image_border_center_fill_get_delegate(border_center_fill_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetBorderCenterFill") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_center_fill_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_center_fill_get_static_delegate) }); + } + + if (efl_gfx_image_border_center_fill_set_static_delegate == null) + { + efl_gfx_image_border_center_fill_set_static_delegate = new efl_gfx_image_border_center_fill_set_delegate(border_center_fill_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetBorderCenterFill") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_border_center_fill_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_border_center_fill_set_static_delegate) }); + } + + if (efl_gfx_image_stretch_region_get_static_delegate == null) + { + efl_gfx_image_stretch_region_get_static_delegate = new efl_gfx_image_stretch_region_get_delegate(stretch_region_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetStretchRegion") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_stretch_region_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_stretch_region_get_static_delegate) }); + } + + if (efl_gfx_image_stretch_region_set_static_delegate == null) + { + efl_gfx_image_stretch_region_set_static_delegate = new efl_gfx_image_stretch_region_set_delegate(stretch_region_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetStretchRegion") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_stretch_region_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_stretch_region_set_static_delegate) }); + } + + if (efl_gfx_image_size_get_static_delegate == null) + { + efl_gfx_image_size_get_static_delegate = new efl_gfx_image_size_get_delegate(image_size_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetImageSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_size_get_static_delegate) }); + } + + if (efl_gfx_image_content_hint_get_static_delegate == null) + { + efl_gfx_image_content_hint_get_static_delegate = new efl_gfx_image_content_hint_get_delegate(content_hint_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetContentHint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_content_hint_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_content_hint_get_static_delegate) }); + } + + if (efl_gfx_image_content_hint_set_static_delegate == null) + { + efl_gfx_image_content_hint_set_static_delegate = new efl_gfx_image_content_hint_set_delegate(content_hint_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetContentHint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_content_hint_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_content_hint_set_static_delegate) }); + } + + if (efl_gfx_image_scale_hint_get_static_delegate == null) + { + efl_gfx_image_scale_hint_get_static_delegate = new efl_gfx_image_scale_hint_get_delegate(scale_hint_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetScaleHint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_hint_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_hint_get_static_delegate) }); + } + + if (efl_gfx_image_scale_hint_set_static_delegate == null) + { + efl_gfx_image_scale_hint_set_static_delegate = new efl_gfx_image_scale_hint_set_delegate(scale_hint_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScaleHint") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_hint_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_hint_set_static_delegate) }); + } + + if (efl_gfx_image_load_error_get_static_delegate == null) + { + efl_gfx_image_load_error_get_static_delegate = new efl_gfx_image_load_error_get_delegate(image_load_error_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetImageLoadError") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_load_error_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_load_error_get_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Canvas.Vg.Image.efl_canvas_vg_image_class_get(); + } + + #pragma warning disable CA1707, CS1591, SA1300, SA1600 + + + private delegate void efl_canvas_vg_image_data_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr pixels, Eina.Size2D.NativeStruct size); + + + public delegate void efl_canvas_vg_image_data_set_api_delegate(System.IntPtr obj, System.IntPtr pixels, Eina.Size2D.NativeStruct size); + + public static Efl.Eo.FunctionWrapper efl_canvas_vg_image_data_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_canvas_vg_image_data_set"); + + private static void data_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr pixels, Eina.Size2D.NativeStruct size) + { + Eina.Log.Debug("function efl_canvas_vg_image_data_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Size2D _in_size = size; + + try + { + ((Image)ws.Target).SetData(pixels, _in_size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_canvas_vg_image_data_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pixels, size); + } + } + + private static efl_canvas_vg_image_data_set_delegate efl_canvas_vg_image_data_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_smooth_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_smooth_scale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_smooth_scale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_smooth_scale_get"); + + private static bool smooth_scale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_smooth_scale_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)ws.Target).GetSmoothScale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_smooth_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_smooth_scale_get_delegate efl_gfx_image_smooth_scale_get_static_delegate; + + + private delegate void efl_gfx_image_smooth_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool smooth_scale); + + + public delegate void efl_gfx_image_smooth_scale_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool smooth_scale); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_smooth_scale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_smooth_scale_set"); + + private static void smooth_scale_set(System.IntPtr obj, System.IntPtr pd, bool smooth_scale) + { + Eina.Log.Debug("function efl_gfx_image_smooth_scale_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Image)ws.Target).SetSmoothScale(smooth_scale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_smooth_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), smooth_scale); + } + } + + private static efl_gfx_image_smooth_scale_set_delegate efl_gfx_image_smooth_scale_set_static_delegate; + + + private delegate Efl.Gfx.ImageScaleType efl_gfx_image_scale_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.ImageScaleType efl_gfx_image_scale_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_type_get"); + + private static Efl.Gfx.ImageScaleType scale_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_scale_type_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Gfx.ImageScaleType _ret_var = default(Efl.Gfx.ImageScaleType); + try + { + _ret_var = ((Image)ws.Target).GetScaleType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_scale_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_scale_type_get_delegate efl_gfx_image_scale_type_get_static_delegate; + + + private delegate void efl_gfx_image_scale_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleType scale_type); + + + public delegate void efl_gfx_image_scale_type_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageScaleType scale_type); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_type_set"); + + private static void scale_type_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleType scale_type) + { + Eina.Log.Debug("function efl_gfx_image_scale_type_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Image)ws.Target).SetScaleType(scale_type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_scale_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale_type); + } + } + + private static efl_gfx_image_scale_type_set_delegate efl_gfx_image_scale_type_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_can_upscale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_can_upscale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_can_upscale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_can_upscale_get"); + + private static bool can_upscale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_can_upscale_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)ws.Target).GetCanUpscale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_can_upscale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_can_upscale_get_delegate efl_gfx_image_can_upscale_get_static_delegate; + + + private delegate void efl_gfx_image_can_upscale_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool upscale); + + + public delegate void efl_gfx_image_can_upscale_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool upscale); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_can_upscale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_can_upscale_set"); + + private static void can_upscale_set(System.IntPtr obj, System.IntPtr pd, bool upscale) + { + Eina.Log.Debug("function efl_gfx_image_can_upscale_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Image)ws.Target).SetCanUpscale(upscale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_can_upscale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), upscale); + } + } + + private static efl_gfx_image_can_upscale_set_delegate efl_gfx_image_can_upscale_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_can_downscale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_can_downscale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_can_downscale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_can_downscale_get"); + + private static bool can_downscale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_can_downscale_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)ws.Target).GetCanDownscale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_can_downscale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_can_downscale_get_delegate efl_gfx_image_can_downscale_get_static_delegate; + + + private delegate void efl_gfx_image_can_downscale_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool downscale); + + + public delegate void efl_gfx_image_can_downscale_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool downscale); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_can_downscale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_can_downscale_set"); + + private static void can_downscale_set(System.IntPtr obj, System.IntPtr pd, bool downscale) + { + Eina.Log.Debug("function efl_gfx_image_can_downscale_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Image)ws.Target).SetCanDownscale(downscale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_can_downscale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), downscale); + } + } + + private static efl_gfx_image_can_downscale_set_delegate efl_gfx_image_can_downscale_set_static_delegate; + + + private delegate double efl_gfx_image_ratio_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_image_ratio_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_ratio_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_ratio_get"); + + private static double ratio_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_ratio_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Image)ws.Target).GetRatio(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_ratio_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_ratio_get_delegate efl_gfx_image_ratio_get_static_delegate; + + + private delegate Eina.Rect.NativeStruct efl_gfx_image_content_region_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Rect.NativeStruct efl_gfx_image_content_region_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_content_region_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_content_region_get"); + + private static Eina.Rect.NativeStruct content_region_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_content_region_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((Image)ws.Target).GetContentRegion(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_content_region_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_content_region_get_delegate efl_gfx_image_content_region_get_static_delegate; + + + private delegate void efl_gfx_image_border_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b); + + + public delegate void efl_gfx_image_border_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_get"); + + private static void border_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b) + { + Eina.Log.Debug("function efl_gfx_image_border_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + l = default(int); r = default(int); t = default(int); b = default(int); + try + { + ((Image)ws.Target).GetBorder(out l, out r, out t, out b); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_border_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b); + } + } + + private static efl_gfx_image_border_get_delegate efl_gfx_image_border_get_static_delegate; + + + private delegate void efl_gfx_image_border_set_delegate(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b); + + + public delegate void efl_gfx_image_border_set_api_delegate(System.IntPtr obj, int l, int r, int t, int b); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_set"); + + private static void border_set(System.IntPtr obj, System.IntPtr pd, int l, int r, int t, int b) + { + Eina.Log.Debug("function efl_gfx_image_border_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Image)ws.Target).SetBorder(l, r, t, b); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_border_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), l, r, t, b); + } + } + + private static efl_gfx_image_border_set_delegate efl_gfx_image_border_set_static_delegate; + + + private delegate double efl_gfx_image_border_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_image_border_scale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_scale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_scale_get"); + + private static double border_scale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_border_scale_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Image)ws.Target).GetBorderScale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_border_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_border_scale_get_delegate efl_gfx_image_border_scale_get_static_delegate; + + + private delegate void efl_gfx_image_border_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, double scale); + + + public delegate void efl_gfx_image_border_scale_set_api_delegate(System.IntPtr obj, double scale); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_scale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_scale_set"); + + private static void border_scale_set(System.IntPtr obj, System.IntPtr pd, double scale) + { + Eina.Log.Debug("function efl_gfx_image_border_scale_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Image)ws.Target).SetBorderScale(scale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_border_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale); + } + } + + private static efl_gfx_image_border_scale_set_delegate efl_gfx_image_border_scale_set_static_delegate; + + + private delegate Efl.Gfx.BorderFillMode efl_gfx_image_border_center_fill_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.BorderFillMode efl_gfx_image_border_center_fill_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_center_fill_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_center_fill_get"); + + private static Efl.Gfx.BorderFillMode border_center_fill_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_border_center_fill_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Gfx.BorderFillMode _ret_var = default(Efl.Gfx.BorderFillMode); + try + { + _ret_var = ((Image)ws.Target).GetBorderCenterFill(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_border_center_fill_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_border_center_fill_get_delegate efl_gfx_image_border_center_fill_get_static_delegate; + + + private delegate void efl_gfx_image_border_center_fill_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BorderFillMode fill); + + + public delegate void efl_gfx_image_border_center_fill_set_api_delegate(System.IntPtr obj, Efl.Gfx.BorderFillMode fill); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_border_center_fill_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_center_fill_set"); + + private static void border_center_fill_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.BorderFillMode fill) + { + Eina.Log.Debug("function efl_gfx_image_border_center_fill_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Image)ws.Target).SetBorderCenterFill(fill); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_border_center_fill_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fill); + } + } + + private static efl_gfx_image_border_center_fill_set_delegate efl_gfx_image_border_center_fill_set_static_delegate; + + + private delegate void efl_gfx_image_stretch_region_get_delegate(System.IntPtr obj, System.IntPtr pd, out System.IntPtr horizontal, out System.IntPtr vertical); + + + public delegate void efl_gfx_image_stretch_region_get_api_delegate(System.IntPtr obj, out System.IntPtr horizontal, out System.IntPtr vertical); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_stretch_region_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_stretch_region_get"); + + private static void stretch_region_get(System.IntPtr obj, System.IntPtr pd, out System.IntPtr horizontal, out System.IntPtr vertical) + { + Eina.Log.Debug("function efl_gfx_image_stretch_region_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Iterator _out_horizontal = default(Eina.Iterator); + Eina.Iterator _out_vertical = default(Eina.Iterator); + + try + { + ((Image)ws.Target).GetStretchRegion(out _out_horizontal, out _out_vertical); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + horizontal = _out_horizontal.Handle; + vertical = _out_vertical.Handle; + + } + else + { + efl_gfx_image_stretch_region_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horizontal, out vertical); + } + } + + private static efl_gfx_image_stretch_region_get_delegate efl_gfx_image_stretch_region_get_static_delegate; + + + private delegate Eina.Error efl_gfx_image_stretch_region_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr horizontal, System.IntPtr vertical); + + + public delegate Eina.Error efl_gfx_image_stretch_region_set_api_delegate(System.IntPtr obj, System.IntPtr horizontal, System.IntPtr vertical); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_stretch_region_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_stretch_region_set"); + + private static Eina.Error stretch_region_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr horizontal, System.IntPtr vertical) + { + Eina.Log.Debug("function efl_gfx_image_stretch_region_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + var _in_horizontal = new Eina.Iterator(horizontal, false); + var _in_vertical = new Eina.Iterator(vertical, false); + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Image)ws.Target).SetStretchRegion(_in_horizontal, _in_vertical); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_stretch_region_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horizontal, vertical); + } + } + + private static efl_gfx_image_stretch_region_set_delegate efl_gfx_image_stretch_region_set_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_gfx_image_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_image_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_size_get"); + + private static Eina.Size2D.NativeStruct image_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_size_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Image)ws.Target).GetImageSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_size_get_delegate efl_gfx_image_size_get_static_delegate; + + + private delegate Efl.Gfx.ImageContentHint efl_gfx_image_content_hint_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.ImageContentHint efl_gfx_image_content_hint_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_content_hint_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_content_hint_get"); + + private static Efl.Gfx.ImageContentHint content_hint_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_content_hint_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Gfx.ImageContentHint _ret_var = default(Efl.Gfx.ImageContentHint); + try + { + _ret_var = ((Image)ws.Target).GetContentHint(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_content_hint_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_content_hint_get_delegate efl_gfx_image_content_hint_get_static_delegate; + + + private delegate void efl_gfx_image_content_hint_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageContentHint hint); + + + public delegate void efl_gfx_image_content_hint_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageContentHint hint); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_content_hint_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_content_hint_set"); + + private static void content_hint_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageContentHint hint) + { + Eina.Log.Debug("function efl_gfx_image_content_hint_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Image)ws.Target).SetContentHint(hint); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_content_hint_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hint); + } + } + + private static efl_gfx_image_content_hint_set_delegate efl_gfx_image_content_hint_set_static_delegate; + + + private delegate Efl.Gfx.ImageScaleHint efl_gfx_image_scale_hint_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Gfx.ImageScaleHint efl_gfx_image_scale_hint_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_hint_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_hint_get"); + + private static Efl.Gfx.ImageScaleHint scale_hint_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_scale_hint_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Gfx.ImageScaleHint _ret_var = default(Efl.Gfx.ImageScaleHint); + try + { + _ret_var = ((Image)ws.Target).GetScaleHint(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_scale_hint_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_scale_hint_get_delegate efl_gfx_image_scale_hint_get_static_delegate; + + + private delegate void efl_gfx_image_scale_hint_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleHint hint); + + + public delegate void efl_gfx_image_scale_hint_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageScaleHint hint); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_hint_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_hint_set"); + + private static void scale_hint_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleHint hint) + { + Eina.Log.Debug("function efl_gfx_image_scale_hint_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Image)ws.Target).SetScaleHint(hint); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_scale_hint_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hint); + } + } + + private static efl_gfx_image_scale_hint_set_delegate efl_gfx_image_scale_hint_set_static_delegate; + + + private delegate Eina.Error efl_gfx_image_load_error_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Error efl_gfx_image_load_error_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_load_error_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_load_error_get"); + + private static Eina.Error image_load_error_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_load_error_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((Image)ws.Target).GetImageLoadError(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_load_error_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_load_error_get_delegate efl_gfx_image_load_error_get_static_delegate; + + #pragma warning restore CA1707, CS1591, SA1300, SA1600 + +} +} +} + +} + +} + +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Canvas_VgImage_ExtensionMethods { + + public static Efl.BindableProperty SmoothScale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Image { + return new Efl.BindableProperty("smooth_scale", fac); + } + + public static Efl.BindableProperty ScaleType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Image { + return new Efl.BindableProperty("scale_type", fac); + } + + public static Efl.BindableProperty CanUpscale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Image { + return new Efl.BindableProperty("can_upscale", fac); + } + + public static Efl.BindableProperty CanDownscale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Image { + return new Efl.BindableProperty("can_downscale", fac); + } + + + + + public static Efl.BindableProperty BorderScale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Image { + return new Efl.BindableProperty("border_scale", fac); + } + + public static Efl.BindableProperty BorderCenterFill(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Image { + return new Efl.BindableProperty("border_center_fill", fac); + } + + + + public static Efl.BindableProperty ContentHint(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Image { + return new Efl.BindableProperty("content_hint", fac); + } + + public static Efl.BindableProperty ScaleHint(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Image { + return new Efl.BindableProperty("scale_hint", fac); + } + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_node.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_node.eo.cs old mode 100644 new mode 100755 index b0cb5d595..bfcc86bbe --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_node.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_node.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -12,11 +13,12 @@ namespace Canvas { namespace Vg { /// Efl vector graphics abstract class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.Vg.Node.NativeMethods] [Efl.Eo.BindingEntity] public abstract class Node : Efl.Object, Efl.IDuplicate, Efl.Gfx.IColor, Efl.Gfx.IEntity, Efl.Gfx.IPath, Efl.Gfx.IStack { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -42,7 +44,8 @@ public abstract class Node : Efl.Object, Efl.IDuplicate, Efl.Gfx.IColor, Efl.Gfx FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Node(ConstructingHandle ch) : base(ch) { @@ -72,6 +75,7 @@ public abstract class Node : Efl.Object, Efl.IDuplicate, Efl.Gfx.IColor, Efl.Gfx /// Object's visibility state changed, the event value is the new state. /// (Since EFL 1.22) + /// public event EventHandler VisibilityChangedEvt { add @@ -111,7 +115,7 @@ public abstract class Node : Efl.Object, Efl.IDuplicate, Efl.Gfx.IColor, Efl.Gfx } } } - ///Method to raise event VisibilityChangedEvt. + /// Method to raise event VisibilityChangedEvt. public void OnVisibilityChangedEvt(Efl.Gfx.IEntityVisibilityChangedEvt_Args e) { var key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; @@ -134,6 +138,7 @@ public abstract class Node : Efl.Object, Efl.IDuplicate, Efl.Gfx.IColor, Efl.Gfx } /// Object was moved, its position during the event is the new one. /// (Since EFL 1.22) + /// public event EventHandler PositionChangedEvt { add @@ -173,7 +178,7 @@ public abstract class Node : Efl.Object, Efl.IDuplicate, Efl.Gfx.IColor, Efl.Gfx } } } - ///Method to raise event PositionChangedEvt. + /// Method to raise event PositionChangedEvt. public void OnPositionChangedEvt(Efl.Gfx.IEntityPositionChangedEvt_Args e) { var key = "_EFL_GFX_ENTITY_EVENT_POSITION_CHANGED"; @@ -197,6 +202,7 @@ public abstract class Node : Efl.Object, Efl.IDuplicate, Efl.Gfx.IColor, Efl.Gfx } /// Object was resized, its size during the event is the new one. /// (Since EFL 1.22) + /// public event EventHandler SizeChangedEvt { add @@ -236,7 +242,7 @@ public abstract class Node : Efl.Object, Efl.IDuplicate, Efl.Gfx.IColor, Efl.Gfx } } } - ///Method to raise event SizeChangedEvt. + /// Method to raise event SizeChangedEvt. public void OnSizeChangedEvt(Efl.Gfx.IEntitySizeChangedEvt_Args e) { var key = "_EFL_GFX_ENTITY_EVENT_SIZE_CHANGED"; @@ -298,7 +304,7 @@ public abstract class Node : Efl.Object, Efl.IDuplicate, Efl.Gfx.IColor, Efl.Gfx } } } - ///Method to raise event StackingChangedEvt. + /// Method to raise event StackingChangedEvt. public void OnStackingChangedEvt(EventArgs e) { var key = "_EFL_GFX_ENTITY_EVENT_STACKING_CHANGED"; @@ -786,6 +792,42 @@ public abstract class Node : Efl.Object, Efl.IDuplicate, Efl.Gfx.IColor, Efl.Gfx get { return GetTransformation(); } set { SetTransformation(ref value); } } + /// Gets the origin position of the node object. + /// origin x position. + public (double, double) Origin { + get { + double _out_x = default(double); + double _out_y = default(double); + GetOrigin(out _out_x,out _out_y); + return (_out_x,_out_y); + } + set { SetOrigin( value.Item1, value.Item2); } + } + /// Set Mask Node to this renderer + /// Mask object + public (Efl.Canvas.Vg.Node, int) Mask { + set { SetMask( value.Item1, value.Item2); } + } + /// Retrieves the general/main color of the given Evas object. + /// Retrieves the main color's RGB component (and alpha channel) values, which range from 0 to 255. For the alpha channel, which defines the object's transparency level, 0 means totally transparent, while 255 means opaque. These color values are premultiplied by the alpha value. + /// + /// Usually youll use this attribute for text and rectangle objects, where the main color is their unique one. If set for objects which themselves have colors, like the images one, those colors get modulated by this one. + /// + /// All newly created Evas rectangles get the default color values of 255 255 255 255 (opaque white). + /// + /// Use null pointers on the components you're not interested in: they'll be ignored by the function. + /// (Since EFL 1.22) + public (int, int, int, int) Color { + get { + int _out_r = default(int); + int _out_g = default(int); + int _out_b = default(int); + int _out_a = default(int); + GetColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Get hex color code of given Evas object. This returns a short lived hex color code string. /// (Since EFL 1.22) /// the hex color code. @@ -835,6 +877,44 @@ public abstract class Node : Efl.Object, Efl.IDuplicate, Efl.Gfx.IColor, Efl.Gfx get { return GetScale(); } set { SetScale(value); } } + /// Set the list of commands and points to be used to create the content of path. + /// Command list + public (Efl.Gfx.PathCommandType, double) Path { + get { + Efl.Gfx.PathCommandType _out_op = default(Efl.Gfx.PathCommandType); + double _out_points = default(double); + GetPath(out _out_op,out _out_points); + return (_out_op,_out_points); + } + set { SetPath( value.Item1, value.Item2); } + } + /// Path length property + public (uint, uint) Length { + get { + uint _out_commands = default(uint); + uint _out_points = default(uint); + GetLength(out _out_commands,out _out_points); + return (_out_commands,_out_points); + } + } + /// Current point coordinates + public (double, double) Current { + get { + double _out_x = default(double); + double _out_y = default(double); + GetCurrent(out _out_x,out _out_y); + return (_out_x,_out_y); + } + } + /// Current control point coordinates + public (double, double) CurrentCtrl { + get { + double _out_x = default(double); + double _out_y = default(double); + GetCurrentCtrl(out _out_x,out _out_y); + return (_out_x,_out_y); + } + } /// Retrieves the layer of its canvas that the given object is part of. /// See also /// (Since EFL 1.22) @@ -3265,3 +3345,50 @@ public abstract class Node : Efl.Object, Efl.IDuplicate, Efl.Gfx.IColor, Efl.Gfx } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Canvas_VgNode_ExtensionMethods { + public static Efl.BindableProperty Transformation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Node { + return new Efl.BindableProperty("transformation", fac); + } + + + + + public static Efl.BindableProperty ColorCode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Node { + return new Efl.BindableProperty("color_code", fac); + } + + public static Efl.BindableProperty Position(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Node { + return new Efl.BindableProperty("position", fac); + } + + public static Efl.BindableProperty Size(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Node { + return new Efl.BindableProperty("size", fac); + } + + public static Efl.BindableProperty Geometry(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Node { + return new Efl.BindableProperty("geometry", fac); + } + + public static Efl.BindableProperty Visible(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Node { + return new Efl.BindableProperty("visible", fac); + } + + public static Efl.BindableProperty Scale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Node { + return new Efl.BindableProperty("scale", fac); + } + + + + + + public static Efl.BindableProperty Layer(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Node { + return new Efl.BindableProperty("layer", fac); + } + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_object.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_object.eo.cs old mode 100644 new mode 100755 index 45a7c80fc..b64945c7a --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_object.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_object.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -12,11 +13,12 @@ namespace Canvas { namespace Vg { /// Efl vector graphics class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.Vg.Object.NativeMethods] [Efl.Eo.BindingEntity] public class Object : Efl.Canvas.Object, Efl.IFile, Efl.IFileSave, Efl.Gfx.IFrameController { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -42,7 +44,8 @@ public class Object : Efl.Canvas.Object, Efl.IFile, Efl.IFileSave, Efl.Gfx.IFram FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Object(ConstructingHandle ch) : base(ch) { @@ -307,6 +310,17 @@ public class Object : Efl.Canvas.Object, Efl.IFile, Efl.IFileSave, Efl.Gfx.IFram get { return GetViewbox(); } set { SetViewbox(value); } } + /// Control how the viewbox is positioned inside the viewport. + /// Alignment in the horizontal axis (0 <= align_x <= 1). + public (double, double) ViewboxAlign { + get { + double _out_align_x = default(double); + double _out_align_y = default(double); + GetViewboxAlign(out _out_align_x,out _out_align_y); + return (_out_align_x,_out_align_y); + } + set { SetViewboxAlign( value.Item1, value.Item2); } + } /// Get the root node of the evas_object_vg. /// Root node of the VG canvas. public Efl.Canvas.Vg.Node RootNode { @@ -1618,6 +1632,48 @@ public class Object : Efl.Canvas.Object, Efl.IFile, Efl.IFileSave, Efl.Gfx.IFram } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Canvas_VgObject_ExtensionMethods { + public static Efl.BindableProperty FillMode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Object { + return new Efl.BindableProperty("fill_mode", fac); + } + + public static Efl.BindableProperty Viewbox(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Object { + return new Efl.BindableProperty("viewbox", fac); + } + + + public static Efl.BindableProperty RootNode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Object { + return new Efl.BindableProperty("root_node", fac); + } + + + public static Efl.BindableProperty Mmap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Object { + return new Efl.BindableProperty("mmap", fac); + } + + public static Efl.BindableProperty File(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Object { + return new Efl.BindableProperty("file", fac); + } + + public static Efl.BindableProperty Key(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Object { + return new Efl.BindableProperty("key", fac); + } + + + + public static Efl.BindableProperty Frame(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Object { + return new Efl.BindableProperty("frame", fac); + } + + + + + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Canvas { diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_shape.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_shape.eo.cs old mode 100644 new mode 100755 index d86e99b5b..d820a19a8 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_shape.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_vg_shape.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -12,11 +13,12 @@ namespace Canvas { namespace Vg { /// Efl vector graphics shape class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.Vg.Shape.NativeMethods] [Efl.Eo.BindingEntity] public class Shape : Efl.Canvas.Vg.Node, Efl.Gfx.IShape { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -42,7 +44,8 @@ public class Shape : Efl.Canvas.Vg.Node, Efl.Gfx.IShape FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Shape(ConstructingHandle ch) : base(ch) { @@ -209,6 +212,19 @@ public class Shape : Efl.Canvas.Vg.Node, Efl.Gfx.IShape Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_join_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),j); Eina.Error.RaiseIfUnhandledException(); } + /// The stroke_miterlimit is a presentation defining a limit on the ratio of the miter length to the stroke-width used to draw a miter join. + /// Limit value on the ratio of the miter. + virtual public double GetStrokeMiterlimit() { + var _ret_var = Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_miterlimit_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// The stroke_miterlimit is a presentation defining a limit on the ratio of the miter length to the stroke-width used to draw a miter join. + /// Limit value on the ratio of the miter. + virtual public void SetStrokeMiterlimit(double miterlimit) { + Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_miterlimit_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),miterlimit); + Eina.Error.RaiseIfUnhandledException(); + } /// The fill rule of the given shape object. or . /// The current fill rule of the shape object. One of or virtual public Efl.Gfx.FillRule GetFillRule() { @@ -246,6 +262,19 @@ public class Shape : Efl.Canvas.Vg.Node, Efl.Gfx.IShape get { return GetStrokeScale(); } set { SetStrokeScale(value); } } + /// The color to be used for stroking the path. + /// The red component of the given color. + public (int, int, int, int) StrokeColor { + get { + int _out_r = default(int); + int _out_g = default(int); + int _out_b = default(int); + int _out_a = default(int); + GetStrokeColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetStrokeColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// The stroke width to be used for stroking the path. /// Stroke width to be used public double StrokeWidth { @@ -258,6 +287,18 @@ public class Shape : Efl.Canvas.Vg.Node, Efl.Gfx.IShape get { return GetStrokeLocation(); } set { SetStrokeLocation(value); } } + /// Set stroke dash pattern. A dash pattern is specified by dashes, an array of . values(length, gap) must be positive. + /// See also + /// Stroke dash + public (Efl.Gfx.Dash, uint) StrokeDash { + get { + Efl.Gfx.Dash _out_dash = default(Efl.Gfx.Dash); + uint _out_length = default(uint); + GetStrokeDash(out _out_dash,out _out_length); + return (_out_dash,_out_length); + } + set { SetStrokeDash(ref value.Item1, value.Item2); } + } /// The cap style to be used for stroking the path. The cap will be used for capping the end point of a open subpath. /// See also . /// Cap style to use, default is @@ -272,6 +313,12 @@ public class Shape : Efl.Canvas.Vg.Node, Efl.Gfx.IShape get { return GetStrokeJoin(); } set { SetStrokeJoin(value); } } + /// The stroke_miterlimit is a presentation defining a limit on the ratio of the miter length to the stroke-width used to draw a miter join. + /// Limit value on the ratio of the miter. + public double StrokeMiterlimit { + get { return GetStrokeMiterlimit(); } + set { SetStrokeMiterlimit(value); } + } /// The fill rule of the given shape object. or . /// The current fill rule of the shape object. One of or public Efl.Gfx.FillRule FillRule { @@ -494,6 +541,26 @@ public class Shape : Efl.Canvas.Vg.Node, Efl.Gfx.IShape descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_join_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_join_set_static_delegate) }); } + if (efl_gfx_shape_stroke_miterlimit_get_static_delegate == null) + { + efl_gfx_shape_stroke_miterlimit_get_static_delegate = new efl_gfx_shape_stroke_miterlimit_get_delegate(stroke_miterlimit_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetStrokeMiterlimit") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_miterlimit_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_miterlimit_get_static_delegate) }); + } + + if (efl_gfx_shape_stroke_miterlimit_set_static_delegate == null) + { + efl_gfx_shape_stroke_miterlimit_set_static_delegate = new efl_gfx_shape_stroke_miterlimit_set_delegate(stroke_miterlimit_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetStrokeMiterlimit") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_miterlimit_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_miterlimit_set_static_delegate) }); + } + if (efl_gfx_shape_fill_rule_get_static_delegate == null) { efl_gfx_shape_fill_rule_get_static_delegate = new efl_gfx_shape_fill_rule_get_delegate(fill_rule_get); @@ -1239,6 +1306,77 @@ public class Shape : Efl.Canvas.Vg.Node, Efl.Gfx.IShape private static efl_gfx_shape_stroke_join_set_delegate efl_gfx_shape_stroke_join_set_static_delegate; + private delegate double efl_gfx_shape_stroke_miterlimit_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_shape_stroke_miterlimit_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_miterlimit_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_miterlimit_get"); + + private static double stroke_miterlimit_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_miterlimit_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Shape)ws.Target).GetStrokeMiterlimit(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_shape_stroke_miterlimit_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_shape_stroke_miterlimit_get_delegate efl_gfx_shape_stroke_miterlimit_get_static_delegate; + + + private delegate void efl_gfx_shape_stroke_miterlimit_set_delegate(System.IntPtr obj, System.IntPtr pd, double miterlimit); + + + public delegate void efl_gfx_shape_stroke_miterlimit_set_api_delegate(System.IntPtr obj, double miterlimit); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_miterlimit_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_miterlimit_set"); + + private static void stroke_miterlimit_set(System.IntPtr obj, System.IntPtr pd, double miterlimit) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_miterlimit_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Shape)ws.Target).SetStrokeMiterlimit(miterlimit); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_shape_stroke_miterlimit_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), miterlimit); + } + } + + private static efl_gfx_shape_stroke_miterlimit_set_delegate efl_gfx_shape_stroke_miterlimit_set_static_delegate; + + private delegate Efl.Gfx.FillRule efl_gfx_shape_fill_rule_get_delegate(System.IntPtr obj, System.IntPtr pd); @@ -1319,3 +1457,51 @@ public class Shape : Efl.Canvas.Vg.Node, Efl.Gfx.IShape } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Canvas_VgShape_ExtensionMethods { + public static Efl.BindableProperty Fill(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Shape { + return new Efl.BindableProperty("fill", fac); + } + + public static Efl.BindableProperty StrokeFill(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Shape { + return new Efl.BindableProperty("stroke_fill", fac); + } + + public static Efl.BindableProperty StrokeMarker(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Shape { + return new Efl.BindableProperty("stroke_marker", fac); + } + + public static Efl.BindableProperty StrokeScale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Shape { + return new Efl.BindableProperty("stroke_scale", fac); + } + + + public static Efl.BindableProperty StrokeWidth(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Shape { + return new Efl.BindableProperty("stroke_width", fac); + } + + public static Efl.BindableProperty StrokeLocation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Shape { + return new Efl.BindableProperty("stroke_location", fac); + } + + + public static Efl.BindableProperty StrokeCap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Shape { + return new Efl.BindableProperty("stroke_cap", fac); + } + + public static Efl.BindableProperty StrokeJoin(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Shape { + return new Efl.BindableProperty("stroke_join", fac); + } + + public static Efl.BindableProperty StrokeMiterlimit(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Shape { + return new Efl.BindableProperty("stroke_miterlimit", fac); + } + + public static Efl.BindableProperty FillRule(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Canvas.Vg.Shape { + return new Efl.BindableProperty("fill_rule", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_composite_model.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_composite_model.eo.cs old mode 100644 new mode 100755 index 319e90149..b7ff344b4 --- a/internals/src/EflSharp/EflSharp/efl/efl_composite_model.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_composite_model.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,12 +9,13 @@ using System.ComponentModel; namespace Efl { /// Efl model for all composite class which provide a unified API to set source of data. -/// This class also provide an "child.index" that match the value of . +/// This class also provide an "child.index" that match the value of . +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.CompositeModel.NativeMethods] [Efl.Eo.BindingEntity] public class CompositeModel : Efl.LoopModel, Efl.Ui.IView { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -51,7 +53,8 @@ public class CompositeModel : Efl.LoopModel, Efl.Ui.IView FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected CompositeModel(ConstructingHandle ch) : base(ch) { @@ -72,15 +75,80 @@ public class CompositeModel : Efl.LoopModel, Efl.Ui.IView { } - /// Get the index. It will only work after the object has been finalized. - /// Index of the object in the parent model. The index is uniq and start from zero. + /// Event dispatched when a new model is set. + /// + public event EventHandler ModelChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.IViewModelChangedEvt_Args args = new Efl.Ui.IViewModelChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_VIEW_EVENT_MODEL_CHANGED"; + AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_VIEW_EVENT_MODEL_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Ecore, key, value); + } + } + } + /// Method to raise event ModelChangedEvt. + public void OnModelChangedEvt(Efl.Ui.IViewModelChangedEvt_Args e) + { + var key = "_EFL_UI_VIEW_EVENT_MODEL_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Position of this object in the parent model. + /// It can only be set before the object is finalized but after the Model it composes is set (and only if that Model does not provide an index already). It can only be retrieved after the object has been finalized. + /// Index of the object in the parent model. The index is unique and starts from zero. virtual public uint GetIndex() { var _ret_var = Efl.CompositeModel.NativeMethods.efl_composite_model_index_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Set the index. It can only be set before the object is finalized, but after the Model it compose is set and only if that Model does not provide an index already. - /// Index of the object in the parent model. The index is uniq and start from zero. + /// Position of this object in the parent model. + /// It can only be set before the object is finalized but after the Model it composes is set (and only if that Model does not provide an index already). It can only be retrieved after the object has been finalized. + /// Index of the object in the parent model. The index is unique and starts from zero. virtual public void SetIndex(uint index) { Efl.CompositeModel.NativeMethods.efl_composite_model_index_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),index); Eina.Error.RaiseIfUnhandledException(); @@ -98,8 +166,9 @@ public class CompositeModel : Efl.LoopModel, Efl.Ui.IView Efl.Ui.IViewConcrete.NativeMethods.efl_ui_view_model_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),model); Eina.Error.RaiseIfUnhandledException(); } - /// Position of this object in the parent model. - /// Index of the object in the parent model. The index is uniq and start from zero. + /// Position of this object in the parent model. + /// It can only be set before the object is finalized but after the Model it composes is set (and only if that Model does not provide an index already). It can only be retrieved after the object has been finalized. + /// Index of the object in the parent model. The index is unique and starts from zero. public uint Index { get { return GetIndex(); } set { SetIndex(value); } @@ -326,3 +395,17 @@ public class CompositeModel : Efl.LoopModel, Efl.Ui.IView } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflCompositeModel_ExtensionMethods { + public static Efl.BindableProperty Index(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.CompositeModel { + return new Efl.BindableProperty("index", fac); + } + + public static Efl.BindableProperty Model(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.CompositeModel { + return new Efl.BindableProperty("model", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_config.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_config.eo.cs old mode 100644 new mode 100755 index 586768c4e..48e158890 --- a/internals/src/EflSharp/EflSharp/efl/efl_config.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_config.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,6 +9,7 @@ using System.ComponentModel; namespace Efl { /// A generic configuration interface, that holds key-value pairs. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.IConfigConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IConfig : @@ -24,12 +26,13 @@ Eina.Value GetConfig(System.String name); bool SetConfig(System.String name, Eina.Value value); } /// A generic configuration interface, that holds key-value pairs. -sealed public class IConfigConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IConfigConcrete : Efl.Eo.EoWrapper , IConfig { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -45,7 +48,8 @@ sealed public class IConfigConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IConfigConcrete(ConstructingHandle ch) : base(ch) { @@ -202,3 +206,10 @@ sealed public class IConfigConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflIConfigConcrete_ExtensionMethods { + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_config_global.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_config_global.eo.cs old mode 100644 new mode 100755 index 2d5a6729c..9b2d41df0 --- a/internals/src/EflSharp/EflSharp/efl/efl_config_global.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_config_global.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,11 +9,12 @@ using System.ComponentModel; namespace Efl { /// This class is a singleton representing the global configuration for the running application. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.ConfigGlobal.NativeMethods] [Efl.Eo.BindingEntity] public class ConfigGlobal : Efl.Object, Efl.IConfig { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -38,7 +40,8 @@ public class ConfigGlobal : Efl.Object, Efl.IConfig FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected ConfigGlobal(ConstructingHandle ch) : base(ch) { @@ -652,3 +655,14 @@ public class ConfigGlobal : Efl.Object, Efl.IConfig } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflConfigGlobal_ExtensionMethods { + public static Efl.BindableProperty Profile(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ConfigGlobal { + return new Efl.BindableProperty("profile", fac); + } + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_container.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_container.eo.cs old mode 100644 new mode 100755 index 01bf65a72..c16b6ee95 --- a/internals/src/EflSharp/EflSharp/efl/efl_container.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_container.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -25,32 +26,36 @@ Eina.Iterator ContentIterate(); int ContentCount(); /// Sent after a new sub-object was added. /// (Since EFL 1.22) + /// event EventHandler ContentAddedEvt; /// Sent after a sub-object was removed, before unref. /// (Since EFL 1.22) + /// event EventHandler ContentRemovedEvt; } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IContainerContentAddedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Sent after a new sub-object was added. public Efl.Gfx.IEntity arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IContainerContentRemovedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Sent after a sub-object was removed, before unref. public Efl.Gfx.IEntity arg { get; set; } } /// Common interface for objects (containers) that can have multiple contents (sub-objects). /// APIs in this interface deal with containers of multiple sub-objects, not with individual parts. /// (Since EFL 1.22) -sealed public class IContainerConcrete : +sealed public class IContainerConcrete : Efl.Eo.EoWrapper , IContainer { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -66,7 +71,8 @@ sealed public class IContainerConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IContainerConcrete(ConstructingHandle ch) : base(ch) { @@ -83,6 +89,7 @@ sealed public class IContainerConcrete : /// Sent after a new sub-object was added. /// (Since EFL 1.22) + /// public event EventHandler ContentAddedEvt { add @@ -122,7 +129,7 @@ sealed public class IContainerConcrete : } } } - ///Method to raise event ContentAddedEvt. + /// Method to raise event ContentAddedEvt. public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; @@ -138,6 +145,7 @@ sealed public class IContainerConcrete : } /// Sent after a sub-object was removed, before unref. /// (Since EFL 1.22) + /// public event EventHandler ContentRemovedEvt { add @@ -177,7 +185,7 @@ sealed public class IContainerConcrete : } } } - ///Method to raise event ContentRemovedEvt. + /// Method to raise event ContentRemovedEvt. public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; @@ -332,3 +340,9 @@ sealed public class IContainerConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflIContainerConcrete_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_container_model.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_container_model.eo.cs old mode 100644 new mode 100755 index d65151f00..d5dfd0fb5 --- a/internals/src/EflSharp/EflSharp/efl/efl_container_model.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_container_model.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -13,11 +14,12 @@ namespace Efl { /// The data in the given containers are copied and stored internally. /// /// Several containers can be supplied and the number of allocated children is based on the container of the largest size. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.ContainerModel.NativeMethods] [Efl.Eo.BindingEntity] public class ContainerModel : Efl.CompositeModel { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -55,7 +57,8 @@ public class ContainerModel : Efl.CompositeModel FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected ContainerModel(ConstructingHandle ch) : base(ch) { @@ -149,15 +152,15 @@ values.Own = false; #pragma warning disable CA1707, CS1591, SA1300, SA1600 - - private delegate Eina.ValueType efl_container_model_child_property_value_type_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueTypeMarshaler))] + private delegate Eina.ValueTypeBox efl_container_model_child_property_value_type_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); - - public delegate Eina.ValueType efl_container_model_child_property_value_type_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueTypeMarshaler))] + public delegate Eina.ValueTypeBox efl_container_model_child_property_value_type_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); public static Efl.Eo.FunctionWrapper efl_container_model_child_property_value_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_container_model_child_property_value_type_get"); - private static Eina.ValueType child_property_value_type_get(System.IntPtr obj, System.IntPtr pd, System.String name) + private static Eina.ValueTypeBox child_property_value_type_get(System.IntPtr obj, System.IntPtr pd, System.String name) { Eina.Log.Debug("function efl_container_model_child_property_value_type_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); @@ -186,14 +189,14 @@ values.Own = false; private static efl_container_model_child_property_value_type_get_delegate efl_container_model_child_property_value_type_get_static_delegate; [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_container_model_child_property_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, Eina.ValueType type, System.IntPtr values); + private delegate bool efl_container_model_child_property_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueTypeMarshaler))] Eina.ValueTypeBox type, System.IntPtr values); [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_container_model_child_property_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, Eina.ValueType type, System.IntPtr values); + public delegate bool efl_container_model_child_property_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueTypeMarshaler))] Eina.ValueTypeBox type, System.IntPtr values); public static Efl.Eo.FunctionWrapper efl_container_model_child_property_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_container_model_child_property_add"); - private static bool child_property_add(System.IntPtr obj, System.IntPtr pd, System.String name, Eina.ValueType type, System.IntPtr values) + private static bool child_property_add(System.IntPtr obj, System.IntPtr pd, System.String name, Eina.ValueTypeBox type, System.IntPtr values) { Eina.Log.Debug("function efl_container_model_child_property_add was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); @@ -228,3 +231,9 @@ values.Own = false; } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflContainerModel_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_content.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_content.eo.cs old mode 100644 new mode 100755 index 0cd3635fd..2b088ef7b --- a/internals/src/EflSharp/EflSharp/efl/efl_content.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_content.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -32,31 +33,33 @@ bool SetContent(Efl.Gfx.IEntity content); Efl.Gfx.IEntity UnsetContent(); /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) + /// event EventHandler ContentChangedEvt; /// Sub-object currently set as this object's single content. /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) /// The sub-object. Efl.Gfx.IEntity Content { - get ; - set ; + get; + set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IContentContentChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Sent after the content is set or unset using the current content object. public Efl.Gfx.IEntity arg { get; set; } } /// Common interface for objects that have a single sub-object as content. /// This is used for the default content part of widgets, as well as for individual parts through . /// (Since EFL 1.22) -sealed public class IContentConcrete : +sealed public class IContentConcrete : Efl.Eo.EoWrapper , IContent { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -72,7 +75,8 @@ sealed public class IContentConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IContentConcrete(ConstructingHandle ch) : base(ch) { @@ -89,6 +93,7 @@ sealed public class IContentConcrete : /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) + /// public event EventHandler ContentChangedEvt { add @@ -128,7 +133,7 @@ sealed public class IContentConcrete : } } } - ///Method to raise event ContentChangedEvt. + /// Method to raise event ContentChangedEvt. public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; @@ -348,3 +353,13 @@ sealed public class IContentConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflIContentConcrete_ExtensionMethods { + public static Efl.BindableProperty Content(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.IContent { + return new Efl.BindableProperty("content", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_control.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_control.eo.cs old mode 100644 new mode 100755 index 3b75b782d..59a148399 --- a/internals/src/EflSharp/EflSharp/efl/efl_control.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_control.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,6 +9,7 @@ using System.ComponentModel; namespace Efl { /// Efl control interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.IControlConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IControl : @@ -28,23 +30,24 @@ void SetSuspend(bool suspend); /// Control the priority of the object. /// The priority of the object int Priority { - get ; - set ; + get; + set; } /// Controls whether the object is suspended or not. /// Controls whether the object is suspended or not. bool Suspend { - get ; - set ; + get; + set; } } /// Efl control interface -sealed public class IControlConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IControlConcrete : Efl.Eo.EoWrapper , IControl { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -60,7 +63,8 @@ sealed public class IControlConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IControlConcrete(ConstructingHandle ch) : base(ch) { @@ -328,3 +332,17 @@ sealed public class IControlConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflIControlConcrete_ExtensionMethods { + public static Efl.BindableProperty Priority(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.IControl { + return new Efl.BindableProperty("priority", fac); + } + + public static Efl.BindableProperty Suspend(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.IControl { + return new Efl.BindableProperty("suspend", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_core_command_line.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_core_command_line.eo.cs old mode 100644 new mode 100755 index 319572897..4dcb0227c --- a/internals/src/EflSharp/EflSharp/efl/efl_core_command_line.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_core_command_line.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,6 +12,7 @@ namespace Core { /// A mixin that implements standard functions for command lines. /// This object parses the command line that gets passed, later the object can be accessed via accessor or the string directly. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Core.ICommandLineConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface ICommandLine : @@ -46,29 +48,30 @@ Eina.Accessor CommandAccess(); /// /// If you set the command the arg_count/value property contents can change and be completely re-evaluated by parsing the command string into an argument array set along with interpreting escapes back into individual argument strings. System.String Command { - get ; + get; } /// Use an array to fill this object /// Every element of a string is a argument. /// An array where every array field is an argument Eina.Array CommandArray { - set ; + set; } /// Use a string to fill this object /// The string will be split at every unescaped ' ', every resulting substring will be a new argument to the command line. /// A command in form of a string System.String CommandString { - set ; + set; } } /// A mixin that implements standard functions for command lines. /// This object parses the command line that gets passed, later the object can be accessed via accessor or the string directly. -sealed public class ICommandLineConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class ICommandLineConcrete : Efl.Eo.EoWrapper , ICommandLine { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -84,7 +87,8 @@ sealed public class ICommandLineConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ICommandLineConcrete(ConstructingHandle ch) : base(ch) { @@ -382,3 +386,18 @@ array.OwnContent = false; } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CoreICommandLineConcrete_ExtensionMethods { + + public static Efl.BindableProperty> CommandArray(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Core.ICommandLine { + return new Efl.BindableProperty>("command_array", fac); + } + + public static Efl.BindableProperty CommandString(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Core.ICommandLine { + return new Efl.BindableProperty("command_string", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_core_env.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_core_env.eo.cs old mode 100644 new mode 100755 index 570232a0c..2c344556e --- a/internals/src/EflSharp/EflSharp/efl/efl_core_env.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_core_env.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -13,11 +14,12 @@ namespace Core { /// A object of this type alone does not apply the object to the system. For getting the value into the system, see . /// /// A object can be forked, which will only copy its values, changes to the returned object will not change the object where it is forked off. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Core.Env.NativeMethods] [Efl.Eo.BindingEntity] public class Env : Efl.Object, Efl.IDuplicate { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -43,7 +45,8 @@ public class Env : Efl.Object, Efl.IDuplicate FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Env(ConstructingHandle ch) : base(ch) { @@ -65,18 +68,18 @@ public class Env : Efl.Object, Efl.IDuplicate } /// Get the value of the var, or null if no such var exists in the object - /// The name of the variable + /// The name of the variable /// Set var to this value if not NULL, otherwise clear this env value if value is NULL or if it is an empty string - virtual public System.String GetEnv(System.String var) { - var _ret_var = Efl.Core.Env.NativeMethods.efl_core_env_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),var); + virtual public System.String GetEnv(System.String kw_var) { + var _ret_var = Efl.Core.Env.NativeMethods.efl_core_env_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),kw_var); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Add a new pair to this object - /// The name of the variable + /// The name of the variable /// Set var to this value if not NULL, otherwise clear this env value if value is NULL or if it is an empty string - virtual public void SetEnv(System.String var, System.String value) { - Efl.Core.Env.NativeMethods.efl_core_env_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),var, value); + virtual public void SetEnv(System.String kw_var, System.String value) { + Efl.Core.Env.NativeMethods.efl_core_env_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),kw_var, value); Eina.Error.RaiseIfUnhandledException(); } /// Get the content of this object. @@ -87,9 +90,9 @@ public class Env : Efl.Object, Efl.IDuplicate return new Eina.Iterator(_ret_var, false); } /// Remove the pair with the matching var from this object - /// The name of the variable - virtual public void Unset(System.String var) { - Efl.Core.Env.NativeMethods.efl_core_env_unset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),var); + /// The name of the variable + virtual public void Unset(System.String kw_var) { + Efl.Core.Env.NativeMethods.efl_core_env_unset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),kw_var); Eina.Error.RaiseIfUnhandledException(); } /// Remove all pairs from this object @@ -199,14 +202,14 @@ public class Env : Efl.Object, Efl.IDuplicate #pragma warning disable CA1707, CS1591, SA1300, SA1600 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - private delegate System.String efl_core_env_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String var); + private delegate System.String efl_core_env_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String kw_var); [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - public delegate System.String efl_core_env_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String var); + public delegate System.String efl_core_env_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String kw_var); public static Efl.Eo.FunctionWrapper efl_core_env_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_env_get"); - private static System.String env_get(System.IntPtr obj, System.IntPtr pd, System.String var) + private static System.String env_get(System.IntPtr obj, System.IntPtr pd, System.String kw_var) { Eina.Log.Debug("function efl_core_env_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); @@ -215,7 +218,7 @@ public class Env : Efl.Object, Efl.IDuplicate System.String _ret_var = default(System.String); try { - _ret_var = ((Env)ws.Target).GetEnv(var); + _ret_var = ((Env)ws.Target).GetEnv(kw_var); } catch (Exception e) { @@ -228,21 +231,21 @@ public class Env : Efl.Object, Efl.IDuplicate } else { - return efl_core_env_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), var); + return efl_core_env_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_var); } } private static efl_core_env_get_delegate efl_core_env_get_static_delegate; - private delegate void efl_core_env_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String var, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value); + private delegate void efl_core_env_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String kw_var, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value); - public delegate void efl_core_env_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String var, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value); + public delegate void efl_core_env_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String kw_var, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value); public static Efl.Eo.FunctionWrapper efl_core_env_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_env_set"); - private static void env_set(System.IntPtr obj, System.IntPtr pd, System.String var, System.String value) + private static void env_set(System.IntPtr obj, System.IntPtr pd, System.String kw_var, System.String value) { Eina.Log.Debug("function efl_core_env_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); @@ -251,7 +254,7 @@ public class Env : Efl.Object, Efl.IDuplicate try { - ((Env)ws.Target).SetEnv(var, value); + ((Env)ws.Target).SetEnv(kw_var, value); } catch (Exception e) { @@ -263,7 +266,7 @@ public class Env : Efl.Object, Efl.IDuplicate } else { - efl_core_env_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), var, value); + efl_core_env_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_var, value); } } @@ -306,14 +309,14 @@ public class Env : Efl.Object, Efl.IDuplicate private static efl_core_env_content_get_delegate efl_core_env_content_get_static_delegate; - private delegate void efl_core_env_unset_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String var); + private delegate void efl_core_env_unset_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String kw_var); - public delegate void efl_core_env_unset_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String var); + public delegate void efl_core_env_unset_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String kw_var); public static Efl.Eo.FunctionWrapper efl_core_env_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_core_env_unset"); - private static void unset(System.IntPtr obj, System.IntPtr pd, System.String var) + private static void unset(System.IntPtr obj, System.IntPtr pd, System.String kw_var) { Eina.Log.Debug("function efl_core_env_unset was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); @@ -322,7 +325,7 @@ public class Env : Efl.Object, Efl.IDuplicate try { - ((Env)ws.Target).Unset(var); + ((Env)ws.Target).Unset(kw_var); } catch (Exception e) { @@ -334,7 +337,7 @@ public class Env : Efl.Object, Efl.IDuplicate } else { - efl_core_env_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), var); + efl_core_env_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_var); } } @@ -419,3 +422,11 @@ public class Env : Efl.Object, Efl.IDuplicate } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CoreEnv_ExtensionMethods { + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_core_proc_env.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_core_proc_env.eo.cs old mode 100644 new mode 100755 index 0295f4996..b704f7979 --- a/internals/src/EflSharp/EflSharp/efl/efl_core_proc_env.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_core_proc_env.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,11 +10,12 @@ namespace Efl { namespace Core { +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Core.ProcEnv.NativeMethods] [Efl.Eo.BindingEntity] public class ProcEnv : Efl.Core.Env { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -39,7 +41,8 @@ public class ProcEnv : Efl.Core.Env FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected ProcEnv(ConstructingHandle ch) : base(ch) { @@ -135,3 +138,9 @@ public class ProcEnv : Efl.Core.Env } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_CoreProcEnv_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_csharp_application.cs b/internals/src/EflSharp/EflSharp/efl/efl_csharp_application.cs old mode 100644 new mode 100755 index ce0f8351f..eb859ebf2 --- a/internals/src/EflSharp/EflSharp/efl/efl_csharp_application.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_csharp_application.cs @@ -1,3 +1,4 @@ +#define EFL_BETA using System; using System.Runtime.InteropServices; using System.Threading; @@ -47,6 +48,7 @@ public abstract class Application Efl.Eo.Config.Init(); ecore_init(); evas_init(); + //eldbus.Config.Init(); if (component == Components.Ui) { @@ -81,6 +83,7 @@ public abstract class Application elm_shutdown(); } + //eldbus.Config.Shutdown(); evas_shutdown(); ecore_shutdown(); Efl.Eo.Config.Shutdown(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_cubic_bezier_interpolator.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_cubic_bezier_interpolator.eo.cs old mode 100644 new mode 100755 index 60489023a..6a4d43c0a --- a/internals/src/EflSharp/EflSharp/efl/efl_cubic_bezier_interpolator.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_cubic_bezier_interpolator.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,11 +9,12 @@ using System.ComponentModel; namespace Efl { /// Efl cubic_bezier interpolator class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.CubicBezierInterpolator.NativeMethods] [Efl.Eo.BindingEntity] public class CubicBezierInterpolator : Efl.Object, Efl.IInterpolator { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -38,7 +40,8 @@ public class CubicBezierInterpolator : Efl.Object, Efl.IInterpolator FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected CubicBezierInterpolator(ConstructingHandle ch) : base(ch) { @@ -85,6 +88,19 @@ public class CubicBezierInterpolator : Efl.Object, Efl.IInterpolator Eina.Error.RaiseIfUnhandledException(); return _ret_var; } + /// Factors property + /// First factor of the interpolation function. + public (double, double, double, double) Factors { + get { + double _out_factor1 = default(double); + double _out_factor2 = default(double); + double _out_factor3 = default(double); + double _out_factor4 = default(double); + GetFactors(out _out_factor1,out _out_factor2,out _out_factor3,out _out_factor4); + return (_out_factor1,_out_factor2,_out_factor3,_out_factor4); + } + set { SetFactors( value.Item1, value.Item2, value.Item3, value.Item4); } + } private static IntPtr GetEflClassStatic() { return Efl.CubicBezierInterpolator.efl_cubic_bezier_interpolator_class_get(); @@ -255,3 +271,10 @@ public class CubicBezierInterpolator : Efl.Object, Efl.IInterpolator } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflCubicBezierInterpolator_ExtensionMethods { + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_decelerate_interpolator.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_decelerate_interpolator.eo.cs old mode 100644 new mode 100755 index 8803575de..8b324b793 --- a/internals/src/EflSharp/EflSharp/efl/efl_decelerate_interpolator.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_decelerate_interpolator.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,11 +10,12 @@ namespace Efl { /// Efl decelerate interpolator class /// output = sin(input * Pi / 2); +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.DecelerateInterpolator.NativeMethods] [Efl.Eo.BindingEntity] public class DecelerateInterpolator : Efl.Object, Efl.IInterpolator { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -39,7 +41,8 @@ public class DecelerateInterpolator : Efl.Object, Efl.IInterpolator FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected DecelerateInterpolator(ConstructingHandle ch) : base(ch) { @@ -258,3 +261,13 @@ public class DecelerateInterpolator : Efl.Object, Efl.IInterpolator } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflDecelerateInterpolator_ExtensionMethods { + public static Efl.BindableProperty Factor(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.DecelerateInterpolator { + return new Efl.BindableProperty("factor", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_divisor_interpolator.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_divisor_interpolator.eo.cs old mode 100644 new mode 100755 index 6bf5c066f..aeb812454 --- a/internals/src/EflSharp/EflSharp/efl/efl_divisor_interpolator.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_divisor_interpolator.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,11 +9,12 @@ using System.ComponentModel; namespace Efl { /// Efl divisor interpolator class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.DivisorInterpolator.NativeMethods] [Efl.Eo.BindingEntity] public class DivisorInterpolator : Efl.Object, Efl.IInterpolator { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -38,7 +40,8 @@ public class DivisorInterpolator : Efl.Object, Efl.IInterpolator FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected DivisorInterpolator(ConstructingHandle ch) : base(ch) { @@ -81,6 +84,17 @@ public class DivisorInterpolator : Efl.Object, Efl.IInterpolator Eina.Error.RaiseIfUnhandledException(); return _ret_var; } + /// Factors property + /// First factor of the interpolation function. + public (double, double) Factors { + get { + double _out_factor1 = default(double); + double _out_factor2 = default(double); + GetFactors(out _out_factor1,out _out_factor2); + return (_out_factor1,_out_factor2); + } + set { SetFactors( value.Item1, value.Item2); } + } private static IntPtr GetEflClassStatic() { return Efl.DivisorInterpolator.efl_divisor_interpolator_class_get(); @@ -251,3 +265,10 @@ public class DivisorInterpolator : Efl.Object, Efl.IInterpolator } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflDivisorInterpolator_ExtensionMethods { + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_duplicate.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_duplicate.eo.cs old mode 100644 new mode 100755 index 1fd71b830..53988b264 --- a/internals/src/EflSharp/EflSharp/efl/efl_duplicate.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_duplicate.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,6 +10,7 @@ namespace Efl { /// An interface for duplication of objects. /// Objects implementing this interface can be duplicated with . +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.IDuplicateConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IDuplicate : @@ -21,12 +23,13 @@ Efl.IDuplicate Duplicate(); } /// An interface for duplication of objects. /// Objects implementing this interface can be duplicated with . -sealed public class IDuplicateConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IDuplicateConcrete : Efl.Eo.EoWrapper , IDuplicate { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -42,7 +45,8 @@ sealed public class IDuplicateConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IDuplicateConcrete(ConstructingHandle ch) : base(ch) { @@ -144,3 +148,9 @@ sealed public class IDuplicateConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflIDuplicateConcrete_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_exe.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_exe.eo.cs old mode 100644 new mode 100755 index 3c404a820..96896e7c1 --- a/internals/src/EflSharp/EflSharp/efl/efl_exe.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_exe.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,11 +9,12 @@ using System.ComponentModel; namespace Efl { /// Further customization of , including signals and environment control. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Exe.NativeMethods] [Efl.Eo.BindingEntity] public class Exe : Efl.Task, Efl.Core.ICommandLine, Efl.Io.ICloser, Efl.Io.IReader, Efl.Io.IWriter { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -38,7 +40,8 @@ public class Exe : Efl.Task, Efl.Core.ICommandLine, Efl.Io.ICloser, Efl.Io.IRead FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Exe(ConstructingHandle ch) : base(ch) { @@ -99,7 +102,7 @@ public class Exe : Efl.Task, Efl.Core.ICommandLine, Efl.Io.ICloser, Efl.Io.IRead } } } - ///Method to raise event ClosedEvt. + /// Method to raise event ClosedEvt. public void OnClosedEvt(EventArgs e) { var key = "_EFL_IO_CLOSER_EVENT_CLOSED"; @@ -117,6 +120,7 @@ public class Exe : Efl.Task, Efl.Core.ICommandLine, Efl.Io.ICloser, Efl.Io.IRead /// /// Note that usually this event is dispatched from inside , thus before it returns. /// (Since EFL 1.22) + /// public event EventHandler CanReadChangedEvt { add @@ -156,7 +160,7 @@ public class Exe : Efl.Task, Efl.Core.ICommandLine, Efl.Io.ICloser, Efl.Io.IRead } } } - ///Method to raise event CanReadChangedEvt. + /// Method to raise event CanReadChangedEvt. public void OnCanReadChangedEvt(Efl.Io.IReaderCanReadChangedEvt_Args e) { var key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED"; @@ -222,7 +226,7 @@ public class Exe : Efl.Task, Efl.Core.ICommandLine, Efl.Io.ICloser, Efl.Io.IRead } } } - ///Method to raise event EosEvt. + /// Method to raise event EosEvt. public void OnEosEvt(EventArgs e) { var key = "_EFL_IO_READER_EVENT_EOS"; @@ -240,6 +244,7 @@ public class Exe : Efl.Task, Efl.Core.ICommandLine, Efl.Io.ICloser, Efl.Io.IRead /// /// Note that usually this event is dispatched from inside , thus before it returns. /// (Since EFL 1.22) + /// public event EventHandler CanWriteChangedEvt { add @@ -279,7 +284,7 @@ public class Exe : Efl.Task, Efl.Core.ICommandLine, Efl.Io.ICloser, Efl.Io.IRead } } } - ///Method to raise event CanWriteChangedEvt. + /// Method to raise event CanWriteChangedEvt. public void OnCanWriteChangedEvt(Efl.Io.IWriterCanWriteChangedEvt_Args e) { var key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED"; @@ -1721,6 +1726,51 @@ array.OwnContent = false; } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflExe_ExtensionMethods { + public static Efl.BindableProperty ExeFlags(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Exe { + return new Efl.BindableProperty("exe_flags", fac); + } + + + public static Efl.BindableProperty Env(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Exe { + return new Efl.BindableProperty("env", fac); + } + + + public static Efl.BindableProperty> CommandArray(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Exe { + return new Efl.BindableProperty>("command_array", fac); + } + + public static Efl.BindableProperty CommandString(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Exe { + return new Efl.BindableProperty("command_string", fac); + } + + + public static Efl.BindableProperty CloseOnExec(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Exe { + return new Efl.BindableProperty("close_on_exec", fac); + } + + public static Efl.BindableProperty CloseOnInvalidate(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Exe { + return new Efl.BindableProperty("close_on_invalidate", fac); + } + + public static Efl.BindableProperty CanRead(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Exe { + return new Efl.BindableProperty("can_read", fac); + } + + public static Efl.BindableProperty Eos(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Exe { + return new Efl.BindableProperty("eos", fac); + } + + public static Efl.BindableProperty CanWrite(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Exe { + return new Efl.BindableProperty("can_write", fac); + } + +} +#pragma warning restore CS1591 +#endif namespace Efl { /// Signal is a notification, a message sent by either operating system or some application to our program. Signals are a mechanism for one-way asynchronous notifications. A signal may be sent from the kernel to a process, from a process to another process, or from a process to itself. Signal typically alert a process to some event, such as a segmentation fault, or the user pressing Ctrl-C. @@ -1759,8 +1809,6 @@ public enum ExeFlags None = 0, /// Process will be executed in its own session. GroupLeader = 1, -/// Exit process when parent process exits. -ExitWithParent = 2, /// All console IO will be hidden. HideIo = 4, } diff --git a/internals/src/EflSharp/EflSharp/efl/efl_file.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_file.eo.cs old mode 100644 new mode 100755 index 4cd2e3652..7c14192c1 --- a/internals/src/EflSharp/EflSharp/efl/efl_file.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_file.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -68,16 +69,16 @@ void Unload(); /// (Since EFL 1.22) /// The handle to the that will be used Eina.File Mmap { - get ; - set ; + get; + set; } /// Retrieve the file path from where an object is to fetch the data. /// You must not modify the strings on the returned pointers. /// (Since EFL 1.22) /// The file path. System.String File { - get ; - set ; + get; + set; } /// Get the previously-set key which corresponds to the target data within a file. /// Some filetypes can contain multiple data streams which are indexed by a key. Use this property for such cases (See for example or ). @@ -86,24 +87,24 @@ void Unload(); /// (Since EFL 1.22) /// The group that the data belongs to. See the class documentation for particular implementations of this interface to see how this property is used. System.String Key { - get ; - set ; + get; + set; } /// Get the load state of the object. /// (Since EFL 1.22) /// true if the object is loaded, false otherwise. bool Loaded { - get ; + get; } } /// Efl file interface /// (Since EFL 1.22) -sealed public class IFileConcrete : +sealed public class IFileConcrete : Efl.Eo.EoWrapper , IFile { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -119,7 +120,8 @@ sealed public class IFileConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IFileConcrete(ConstructingHandle ch) : base(ch) { @@ -694,3 +696,22 @@ sealed public class IFileConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflIFileConcrete_ExtensionMethods { + public static Efl.BindableProperty Mmap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.IFile { + return new Efl.BindableProperty("mmap", fac); + } + + public static Efl.BindableProperty File(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.IFile { + return new Efl.BindableProperty("file", fac); + } + + public static Efl.BindableProperty Key(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.IFile { + return new Efl.BindableProperty("key", fac); + } + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_file_save.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_file_save.eo.cs old mode 100644 new mode 100755 index 769dff9a5..6c86eb917 --- a/internals/src/EflSharp/EflSharp/efl/efl_file_save.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_file_save.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -27,12 +28,12 @@ bool Save(System.String file, System.String key, ref Efl.FileSaveInfo info); } /// Efl file saving interface /// (Since EFL 1.22) -sealed public class IFileSaveConcrete : +sealed public class IFileSaveConcrete : Efl.Eo.EoWrapper , IFileSave { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -48,7 +49,8 @@ sealed public class IFileSaveConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IFileSaveConcrete(ConstructingHandle ch) : base(ch) { @@ -160,6 +162,12 @@ sealed public class IFileSaveConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflIFileSaveConcrete_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif namespace Efl { /// Info used to determine various attributes when saving a file. @@ -174,7 +182,10 @@ public struct FileSaveInfo public uint Compression; /// The encoding to use when saving the file. public System.String Encoding; - ///Constructor for FileSaveInfo. + /// Constructor for FileSaveInfo. + /// The quality level (0-100) to save the file with; commonly used when saving image files.; + /// The compression level (0-100) to save the file with.; + /// The encoding to use when saving the file.; public FileSaveInfo( uint Quality = default(uint), uint Compression = default(uint), @@ -185,8 +196,8 @@ public struct FileSaveInfo this.Encoding = Encoding; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator FileSaveInfo(IntPtr ptr) { var tmp = (FileSaveInfo.NativeStruct)Marshal.PtrToStructure(ptr, typeof(FileSaveInfo.NativeStruct)); @@ -195,7 +206,7 @@ public struct FileSaveInfo #pragma warning disable CS1591 - ///Internal wrapper for struct FileSaveInfo. + /// Internal wrapper for struct FileSaveInfo. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -203,9 +214,9 @@ public struct FileSaveInfo public uint Quality; public uint Compression; - ///Internal wrapper for field Encoding + /// Internal wrapper for field Encoding public System.IntPtr Encoding; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator FileSaveInfo.NativeStruct(FileSaveInfo _external_struct) { var _internal_struct = new FileSaveInfo.NativeStruct(); @@ -215,7 +226,7 @@ public struct FileSaveInfo return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator FileSaveInfo(FileSaveInfo.NativeStruct _internal_struct) { var _external_struct = new FileSaveInfo(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_filter_model.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_filter_model.eo.cs old mode 100644 new mode 100755 index e62105605..f22002e1e --- a/internals/src/EflSharp/EflSharp/efl/efl_filter_model.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_filter_model.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -79,11 +80,12 @@ internal class EflFilterModelWrapper : IDisposable namespace Efl { /// Efl model designed to filter its children. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.FilterModel.NativeMethods] [Efl.Eo.BindingEntity] public class FilterModel : Efl.CompositeModel { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -127,7 +129,8 @@ public class FilterModel : Efl.CompositeModel FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected FilterModel(ConstructingHandle ch) : base(ch) { @@ -235,3 +238,9 @@ public class FilterModel : Efl.CompositeModel } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflFilterModel_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_generic_model.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_generic_model.eo.cs old mode 100644 new mode 100755 index 167f8379a..7be5f5f7f --- a/internals/src/EflSharp/EflSharp/efl/efl_generic_model.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_generic_model.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Efl { /// Intended to be used in scenarios where the user needs a manually defined data model, like in tests. /// /// It does not model anything in particular and does not affect anything else in the system. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.GenericModel.NativeMethods] [Efl.Eo.BindingEntity] public class GenericModel : Efl.LoopModel { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -41,7 +43,8 @@ public class GenericModel : Efl.LoopModel FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected GenericModel(ConstructingHandle ch) : base(ch) { @@ -93,3 +96,9 @@ public class GenericModel : Efl.LoopModel } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflGenericModel_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gesture_events.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gesture_events.eo.cs old mode 100644 new mode 100755 index 71e4b1d18..dd7bcf7d4 --- a/internals/src/EflSharp/EflSharp/efl/efl_gesture_events.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gesture_events.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,74 +10,90 @@ namespace Efl { namespace Gesture { +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Gesture.IEventsConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IEvents : Efl.Eo.IWrapper, IDisposable { /// Event for tap gesture + /// event EventHandler GestureTapEvt; /// Event for double tap gesture + /// event EventHandler GestureDoubleTapEvt; /// Event for triple tap gesture + /// event EventHandler GestureTripleTapEvt; /// Event for long tap gesture + /// event EventHandler GestureLongTapEvt; /// Event for momentum gesture + /// event EventHandler GestureMomentumEvt; /// Event for flick gesture + /// event EventHandler GestureFlickEvt; /// Event for zoom gesture + /// event EventHandler GestureZoomEvt; } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IEventsGestureTapEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Event for tap gesture public Efl.Canvas.GestureTap arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IEventsGestureDoubleTapEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Event for double tap gesture public Efl.Canvas.GestureDoubleTap arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IEventsGestureTripleTapEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Event for triple tap gesture public Efl.Canvas.GestureTripleTap arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IEventsGestureLongTapEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Event for long tap gesture public Efl.Canvas.GestureLongTap arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IEventsGestureMomentumEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Event for momentum gesture public Efl.Canvas.GestureMomentum arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IEventsGestureFlickEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Event for flick gesture public Efl.Canvas.GestureFlick arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IEventsGestureZoomEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Event for zoom gesture public Efl.Canvas.GestureZoom arg { get; set; } } -sealed public class IEventsConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IEventsConcrete : Efl.Eo.EoWrapper , IEvents { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -92,7 +109,8 @@ sealed public class IEventsConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IEventsConcrete(ConstructingHandle ch) : base(ch) { @@ -108,6 +126,7 @@ sealed public class IEventsConcrete : } /// Event for tap gesture + /// public event EventHandler GestureTapEvt { add @@ -147,7 +166,7 @@ sealed public class IEventsConcrete : } } } - ///Method to raise event GestureTapEvt. + /// Method to raise event GestureTapEvt. public void OnGestureTapEvt(Efl.Gesture.IEventsGestureTapEvt_Args e) { var key = "_EFL_EVENT_GESTURE_TAP"; @@ -162,6 +181,7 @@ sealed public class IEventsConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Event for double tap gesture + /// public event EventHandler GestureDoubleTapEvt { add @@ -201,7 +221,7 @@ sealed public class IEventsConcrete : } } } - ///Method to raise event GestureDoubleTapEvt. + /// Method to raise event GestureDoubleTapEvt. public void OnGestureDoubleTapEvt(Efl.Gesture.IEventsGestureDoubleTapEvt_Args e) { var key = "_EFL_EVENT_GESTURE_DOUBLE_TAP"; @@ -216,6 +236,7 @@ sealed public class IEventsConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Event for triple tap gesture + /// public event EventHandler GestureTripleTapEvt { add @@ -255,7 +276,7 @@ sealed public class IEventsConcrete : } } } - ///Method to raise event GestureTripleTapEvt. + /// Method to raise event GestureTripleTapEvt. public void OnGestureTripleTapEvt(Efl.Gesture.IEventsGestureTripleTapEvt_Args e) { var key = "_EFL_EVENT_GESTURE_TRIPLE_TAP"; @@ -270,6 +291,7 @@ sealed public class IEventsConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Event for long tap gesture + /// public event EventHandler GestureLongTapEvt { add @@ -309,7 +331,7 @@ sealed public class IEventsConcrete : } } } - ///Method to raise event GestureLongTapEvt. + /// Method to raise event GestureLongTapEvt. public void OnGestureLongTapEvt(Efl.Gesture.IEventsGestureLongTapEvt_Args e) { var key = "_EFL_EVENT_GESTURE_LONG_TAP"; @@ -324,6 +346,7 @@ sealed public class IEventsConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Event for momentum gesture + /// public event EventHandler GestureMomentumEvt { add @@ -363,7 +386,7 @@ sealed public class IEventsConcrete : } } } - ///Method to raise event GestureMomentumEvt. + /// Method to raise event GestureMomentumEvt. public void OnGestureMomentumEvt(Efl.Gesture.IEventsGestureMomentumEvt_Args e) { var key = "_EFL_EVENT_GESTURE_MOMENTUM"; @@ -378,6 +401,7 @@ sealed public class IEventsConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Event for flick gesture + /// public event EventHandler GestureFlickEvt { add @@ -417,7 +441,7 @@ sealed public class IEventsConcrete : } } } - ///Method to raise event GestureFlickEvt. + /// Method to raise event GestureFlickEvt. public void OnGestureFlickEvt(Efl.Gesture.IEventsGestureFlickEvt_Args e) { var key = "_EFL_EVENT_GESTURE_FLICK"; @@ -432,6 +456,7 @@ sealed public class IEventsConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Event for zoom gesture + /// public event EventHandler GestureZoomEvt { add @@ -471,7 +496,7 @@ sealed public class IEventsConcrete : } } } - ///Method to raise event GestureZoomEvt. + /// Method to raise event GestureZoomEvt. public void OnGestureZoomEvt(Efl.Gesture.IEventsGestureZoomEvt_Args e) { var key = "_EFL_EVENT_GESTURE_ZOOM"; @@ -517,3 +542,9 @@ sealed public class IEventsConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_GestureIEventsConcrete_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_arrangement.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_arrangement.eo.cs old mode 100644 new mode 100755 index 7f6cda7db..8a607b907 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_arrangement.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_arrangement.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Gfx { /// API common to all UI container objects. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Gfx.IArrangementConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IArrangement : @@ -33,14 +35,27 @@ void GetContentPadding(out double pad_horiz, out double pad_vert, out bool scala /// Vertical padding /// true if scalable, false otherwise void SetContentPadding(double pad_horiz, double pad_vert, bool scalable); - } + /// Alignment of the container within its bounds + /// Horizontal alignment + (double, double) ContentAlign { + get; + set; + } + /// Padding between items contained in this object. + /// Horizontal padding + (double, double, bool) ContentPadding { + get; + set; + } +} /// API common to all UI container objects. -sealed public class IArrangementConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IArrangementConcrete : Efl.Eo.EoWrapper , IArrangement { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -56,7 +71,8 @@ sealed public class IArrangementConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IArrangementConcrete(ConstructingHandle ch) : base(ch) { @@ -101,6 +117,29 @@ sealed public class IArrangementConcrete : Efl.Gfx.IArrangementConcrete.NativeMethods.efl_gfx_arrangement_content_padding_set_ptr.Value.Delegate(this.NativeHandle,pad_horiz, pad_vert, scalable); Eina.Error.RaiseIfUnhandledException(); } + /// Alignment of the container within its bounds + /// Horizontal alignment + public (double, double) ContentAlign { + get { + double _out_align_horiz = default(double); + double _out_align_vert = default(double); + GetContentAlign(out _out_align_horiz,out _out_align_vert); + return (_out_align_horiz,_out_align_vert); + } + set { SetContentAlign( value.Item1, value.Item2); } + } + /// Padding between items contained in this object. + /// Horizontal padding + public (double, double, bool) ContentPadding { + get { + double _out_pad_horiz = default(double); + double _out_pad_vert = default(double); + bool _out_scalable = default(bool); + GetContentPadding(out _out_pad_horiz,out _out_pad_vert,out _out_scalable); + return (_out_pad_horiz,_out_pad_vert,_out_scalable); + } + set { SetContentPadding( value.Item1, value.Item2, value.Item3); } + } private static IntPtr GetEflClassStatic() { return Efl.Gfx.IArrangementConcrete.efl_gfx_arrangement_interface_get(); @@ -316,3 +355,11 @@ sealed public class IArrangementConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_GfxIArrangementConcrete_ExtensionMethods { + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_blur.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_blur.eo.cs old mode 100644 new mode 100755 index 4508cbccd..118187be6 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_blur.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_blur.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,6 +12,7 @@ namespace Gfx { /// A simple API to apply blur effects. /// Those API's might use internally. It might be necessary to also specify the color of the blur with . +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Gfx.IBlurConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IBlur : @@ -46,24 +48,38 @@ double GetGrow(); /// This is can be used efficiently to create glow effects. /// How much to grow the original pixel data. void SetGrow(double radius); - /// How much the original image should be "grown" before blurring. + /// The blur radius in pixels. + /// The horizontal blur radius. + (double, double) Radius { + get; + set; + } + /// An offset relative to the original pixels. + /// This property allows for drop shadow effects. + /// Horizontal offset in pixels. + (double, double) Offset { + get; + set; + } + /// How much the original image should be "grown" before blurring. /// Growing is a combination of blur & color levels adjustment. If the value of grow is positive, the pixels will appear more "fat" or "bold" than the original. If the value is negative, a shrink effect happens instead. /// /// This is can be used efficiently to create glow effects. /// How much to grow the original pixel data. double Grow { - get ; - set ; + get; + set; } } /// A simple API to apply blur effects. /// Those API's might use internally. It might be necessary to also specify the color of the blur with . -sealed public class IBlurConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IBlurConcrete : Efl.Eo.EoWrapper , IBlur { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -79,7 +95,8 @@ sealed public class IBlurConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IBlurConcrete(ConstructingHandle ch) : base(ch) { @@ -143,6 +160,29 @@ sealed public class IBlurConcrete : Efl.Gfx.IBlurConcrete.NativeMethods.efl_gfx_blur_grow_set_ptr.Value.Delegate(this.NativeHandle,radius); Eina.Error.RaiseIfUnhandledException(); } + /// The blur radius in pixels. + /// The horizontal blur radius. + public (double, double) Radius { + get { + double _out_rx = default(double); + double _out_ry = default(double); + GetRadius(out _out_rx,out _out_ry); + return (_out_rx,_out_ry); + } + set { SetRadius( value.Item1, value.Item2); } + } + /// An offset relative to the original pixels. + /// This property allows for drop shadow effects. + /// Horizontal offset in pixels. + public (double, double) Offset { + get { + double _out_ox = default(double); + double _out_oy = default(double); + GetOffset(out _out_ox,out _out_oy); + return (_out_ox,_out_oy); + } + set { SetOffset( value.Item1, value.Item2); } + } /// How much the original image should be "grown" before blurring. /// Growing is a combination of blur & color levels adjustment. If the value of grow is positive, the pixels will appear more "fat" or "bold" than the original. If the value is negative, a shrink effect happens instead. /// @@ -458,3 +498,15 @@ sealed public class IBlurConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_GfxIBlurConcrete_ExtensionMethods { + + + public static Efl.BindableProperty Grow(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IBlur { + return new Efl.BindableProperty("grow", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_buffer.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_buffer.eo.cs old mode 100644 new mode 100755 index 2274e1ec1..289621020 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_buffer.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_buffer.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Gfx { /// Common APIs for all objects representing images and 2D pixel buffers. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Gfx.IBufferConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IBuffer : @@ -105,8 +107,8 @@ Eina.Slice GetBufferManaged(int plane); /// Rectangular size of the pixel buffer as allocated in memory. /// Size of the buffer in pixels. Eina.Size2D BufferSize { - get ; - set ; + get; + set; } /// The colorspace defines how pixels are encoded in the image in memory. /// By default, images are encoded in 32-bit BGRA, ie. each pixel takes 4 bytes in memory, with each channel B,G,R,A encoding the color with values from 0 to 255. @@ -114,14 +116,14 @@ Eina.Slice GetBufferManaged(int plane); /// All images used in EFL use alpha-premultipied BGRA values, which means that for each pixel, B <= A, G <= A and R <= A. /// Colorspace Efl.Gfx.Colorspace Colorspace { - get ; + get; } /// Indicates whether the alpha channel should be used. /// This does not indicate whether the image source file contains an alpha channel, only whether to respect it or discard it. /// Whether to use alpha channel (true) data or not (false). bool Alpha { - get ; - set ; + get; + set; } /// Length in bytes of one row of pixels in memory. /// Usually this will be equal to width * 4, with a plain BGRA image. This may return 0 if the stride is not applicable. @@ -129,16 +131,22 @@ Eina.Slice GetBufferManaged(int plane); /// When applicable, this will include the as well as potential extra padding. /// Stride int Stride { - get ; + get; + } + /// Duplicated pixel borders inside this buffer. + /// Internally, EFL may require an image to have its border pixels duplicated, in particular for GL textures. This property exposes the internal duplicated borders to allow calling with the entire pixel data, including those edge pixels. + (uint, uint, uint, uint) BufferBorders { + get; } } /// Common APIs for all objects representing images and 2D pixel buffers. -sealed public class IBufferConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IBufferConcrete : Efl.Eo.EoWrapper , IBuffer { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -154,7 +162,8 @@ sealed public class IBufferConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IBufferConcrete(ConstructingHandle ch) : base(ch) { @@ -342,6 +351,18 @@ sealed public class IBufferConcrete : public int Stride { get { return GetStride(); } } + /// Duplicated pixel borders inside this buffer. + /// Internally, EFL may require an image to have its border pixels duplicated, in particular for GL textures. This property exposes the internal duplicated borders to allow calling with the entire pixel data, including those edge pixels. + public (uint, uint, uint, uint) BufferBorders { + get { + uint _out_l = default(uint); + uint _out_r = default(uint); + uint _out_t = default(uint); + uint _out_b = default(uint); + GetBufferBorders(out _out_l,out _out_r,out _out_t,out _out_b); + return (_out_l,_out_r,_out_t,_out_b); + } + } private static IntPtr GetEflClassStatic() { return Efl.Gfx.IBufferConcrete.efl_gfx_buffer_interface_get(); @@ -980,6 +1001,23 @@ sealed public class IBufferConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_GfxIBufferConcrete_ExtensionMethods { + public static Efl.BindableProperty BufferSize(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IBuffer { + return new Efl.BindableProperty("buffer_size", fac); + } + + + public static Efl.BindableProperty Alpha(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IBuffer { + return new Efl.BindableProperty("alpha", fac); + } + + + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Gfx { diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_color.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_color.eo.cs old mode 100644 new mode 100755 index 0a90c5087..0e6e49e39 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_color.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_color.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -40,22 +41,35 @@ System.String GetColorCode(); /// (Since EFL 1.22) /// the hex color code. void SetColorCode(System.String colorcode); - /// Get hex color code of given Evas object. This returns a short lived hex color code string. + /// Retrieves the general/main color of the given Evas object. + /// Retrieves the main color's RGB component (and alpha channel) values, which range from 0 to 255. For the alpha channel, which defines the object's transparency level, 0 means totally transparent, while 255 means opaque. These color values are premultiplied by the alpha value. + /// + /// Usually youll use this attribute for text and rectangle objects, where the main color is their unique one. If set for objects which themselves have colors, like the images one, those colors get modulated by this one. + /// + /// All newly created Evas rectangles get the default color values of 255 255 255 255 (opaque white). + /// + /// Use null pointers on the components you're not interested in: they'll be ignored by the function. + /// (Since EFL 1.22) + (int, int, int, int) Color { + get; + set; + } + /// Get hex color code of given Evas object. This returns a short lived hex color code string. /// (Since EFL 1.22) /// the hex color code. System.String ColorCode { - get ; - set ; + get; + set; } } /// Efl Gfx Color mixin class /// (Since EFL 1.22) -sealed public class IColorConcrete : +sealed public class IColorConcrete : Efl.Eo.EoWrapper , IColor { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -71,7 +85,8 @@ sealed public class IColorConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IColorConcrete(ConstructingHandle ch) : base(ch) { @@ -123,6 +138,26 @@ sealed public class IColorConcrete : Efl.Gfx.IColorConcrete.NativeMethods.efl_gfx_color_code_set_ptr.Value.Delegate(this.NativeHandle,colorcode); Eina.Error.RaiseIfUnhandledException(); } + /// Retrieves the general/main color of the given Evas object. + /// Retrieves the main color's RGB component (and alpha channel) values, which range from 0 to 255. For the alpha channel, which defines the object's transparency level, 0 means totally transparent, while 255 means opaque. These color values are premultiplied by the alpha value. + /// + /// Usually youll use this attribute for text and rectangle objects, where the main color is their unique one. If set for objects which themselves have colors, like the images one, those colors get modulated by this one. + /// + /// All newly created Evas rectangles get the default color values of 255 255 255 255 (opaque white). + /// + /// Use null pointers on the components you're not interested in: they'll be ignored by the function. + /// (Since EFL 1.22) + public (int, int, int, int) Color { + get { + int _out_r = default(int); + int _out_g = default(int); + int _out_b = default(int); + int _out_a = default(int); + GetColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Get hex color code of given Evas object. This returns a short lived hex color code string. /// (Since EFL 1.22) /// the hex color code. @@ -346,3 +381,14 @@ sealed public class IColorConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_GfxIColorConcrete_ExtensionMethods { + + public static Efl.BindableProperty ColorCode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IColor { + return new Efl.BindableProperty("color_code", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_color_class.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_color_class.eo.cs old mode 100644 new mode 100755 index f909f9945..2477888b1 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_color_class.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_color_class.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Gfx { /// Efl Gfx Color Class mixin class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Gfx.IColorClassConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IColorClass : @@ -88,12 +90,13 @@ void DelColorClass(System.String color_class); void ClearColorClass(); } /// Efl Gfx Color Class mixin class -sealed public class IColorClassConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IColorClassConcrete : Efl.Eo.EoWrapper , IColorClass { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -109,7 +112,8 @@ sealed public class IColorClassConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IColorClassConcrete(ConstructingHandle ch) : base(ch) { @@ -576,3 +580,12 @@ sealed public class IColorClassConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_GfxIColorClassConcrete_ExtensionMethods { + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_entity.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_entity.eo.cs old mode 100644 new mode 100755 index e7b28c7ca..95af53407 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_entity.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_entity.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -59,34 +60,37 @@ double GetScale(); void SetScale(double scale); /// Object's visibility state changed, the event value is the new state. /// (Since EFL 1.22) + /// event EventHandler VisibilityChangedEvt; /// Object was moved, its position during the event is the new one. /// (Since EFL 1.22) + /// event EventHandler PositionChangedEvt; /// Object was resized, its size during the event is the new one. /// (Since EFL 1.22) + /// event EventHandler SizeChangedEvt; /// The 2D position of a canvas object. /// The position is absolute, in pixels, relative to the top-left corner of the window, within its border decorations (application space). /// (Since EFL 1.22) /// A 2D coordinate in pixel units. Eina.Position2D Position { - get ; - set ; + get; + set; } /// The 2D size of a canvas object. /// (Since EFL 1.22) /// A 2D size in pixel units. Eina.Size2D Size { - get ; - set ; + get; + set; } /// Rectangular geometry that combines both position and size. /// (Since EFL 1.22) /// The X,Y position and W,H size, in pixels. Eina.Rect Geometry { - get ; - set ; + get; + set; } /// The visibility of a canvas object. /// All canvas objects will become visible by default just before render. This means that it is not required to call after creating an object unless you want to create it without showing it. Note that this behavior is new since 1.21, and only applies to canvas objects created with the EO API (i.e. not the legacy C-only API). Other types of Gfx objects may or may not be visible by default. @@ -95,8 +99,8 @@ void SetScale(double scale); /// (Since EFL 1.22) /// true if to make the object visible, false otherwise bool Visible { - get ; - set ; + get; + set; } /// The scaling factor of an object. /// This property is an individual scaling factor on the object (Edje or UI widget). This property (or Edje's global scaling factor, when applicable), will affect this object's part sizes. If scale is not zero, than the individual scaling will override any global scaling set, for the object obj's parts. Set it back to zero to get the effects of the global scaling again. @@ -105,36 +109,39 @@ void SetScale(double scale); /// (Since EFL 1.22) /// The scaling factor (the default value is 0.0, meaning individual scaling is not set) double Scale { - get ; - set ; + get; + set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IEntityVisibilityChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Object's visibility state changed, the event value is the new state. public bool arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IEntityPositionChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Object was moved, its position during the event is the new one. public Eina.Position2D arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IEntitySizeChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Object was resized, its size during the event is the new one. public Eina.Size2D arg { get; set; } } /// Efl graphics interface /// (Since EFL 1.22) -sealed public class IEntityConcrete : +sealed public class IEntityConcrete : Efl.Eo.EoWrapper , IEntity { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -150,7 +157,8 @@ sealed public class IEntityConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IEntityConcrete(ConstructingHandle ch) : base(ch) { @@ -167,6 +175,7 @@ sealed public class IEntityConcrete : /// Object's visibility state changed, the event value is the new state. /// (Since EFL 1.22) + /// public event EventHandler VisibilityChangedEvt { add @@ -206,7 +215,7 @@ sealed public class IEntityConcrete : } } } - ///Method to raise event VisibilityChangedEvt. + /// Method to raise event VisibilityChangedEvt. public void OnVisibilityChangedEvt(Efl.Gfx.IEntityVisibilityChangedEvt_Args e) { var key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; @@ -229,6 +238,7 @@ sealed public class IEntityConcrete : } /// Object was moved, its position during the event is the new one. /// (Since EFL 1.22) + /// public event EventHandler PositionChangedEvt { add @@ -268,7 +278,7 @@ sealed public class IEntityConcrete : } } } - ///Method to raise event PositionChangedEvt. + /// Method to raise event PositionChangedEvt. public void OnPositionChangedEvt(Efl.Gfx.IEntityPositionChangedEvt_Args e) { var key = "_EFL_GFX_ENTITY_EVENT_POSITION_CHANGED"; @@ -292,6 +302,7 @@ sealed public class IEntityConcrete : } /// Object was resized, its size during the event is the new one. /// (Since EFL 1.22) + /// public event EventHandler SizeChangedEvt { add @@ -331,7 +342,7 @@ sealed public class IEntityConcrete : } } } - ///Method to raise event SizeChangedEvt. + /// Method to raise event SizeChangedEvt. public void OnSizeChangedEvt(Efl.Gfx.IEntitySizeChangedEvt_Args e) { var key = "_EFL_GFX_ENTITY_EVENT_SIZE_CHANGED"; @@ -967,3 +978,29 @@ sealed public class IEntityConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_GfxIEntityConcrete_ExtensionMethods { + public static Efl.BindableProperty Position(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IEntity { + return new Efl.BindableProperty("position", fac); + } + + public static Efl.BindableProperty Size(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IEntity { + return new Efl.BindableProperty("size", fac); + } + + public static Efl.BindableProperty Geometry(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IEntity { + return new Efl.BindableProperty("geometry", fac); + } + + public static Efl.BindableProperty Visible(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IEntity { + return new Efl.BindableProperty("visible", fac); + } + + public static Efl.BindableProperty Scale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IEntity { + return new Efl.BindableProperty("scale", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_fill.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_fill.eo.cs old mode 100644 new mode 100755 index 2c8d1e13d..17e9acd16 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_fill.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_fill.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Gfx { /// Efl graphics fill interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Gfx.IFillConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IFill : @@ -51,8 +53,8 @@ void SetFill(Eina.Rect fill); /// This flag is true by default (used to be false with the old APIs, and was known as "filled"). /// true to make the fill property follow object size or false otherwise. bool FillAuto { - get ; - set ; + get; + set; } /// Specifies how to tile an image to fill its rectangle geometry. /// Note that if w or h are smaller than the dimensions of the object, the displayed image will be tiled around the object's area. To have only one copy of the bound image drawn, x and y must be 0 and w and h need to be the exact width and height of the image object itself, respectively. @@ -60,17 +62,18 @@ void SetFill(Eina.Rect fill); /// Setting this property will reset the to false. /// The top-left corner to start drawing from as well as the size at which the bound image will be displayed. Eina.Rect Fill { - get ; - set ; + get; + set; } } /// Efl graphics fill interface -sealed public class IFillConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IFillConcrete : Efl.Eo.EoWrapper , IFill { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -86,7 +89,8 @@ sealed public class IFillConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IFillConcrete(ConstructingHandle ch) : base(ch) { @@ -382,3 +386,17 @@ sealed public class IFillConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_GfxIFillConcrete_ExtensionMethods { + public static Efl.BindableProperty FillAuto(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IFill { + return new Efl.BindableProperty("fill_auto", fac); + } + + public static Efl.BindableProperty Fill(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IFill { + return new Efl.BindableProperty("fill", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_filter.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_filter.eo.cs old mode 100644 new mode 100755 index ecb945dc1..5e8cea238 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_filter.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_filter.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -13,6 +14,7 @@ namespace Gfx { /// Filters are programmable effects that run whenever the object is rendered on its canvas. The program language is Lua and a complete reference can be found under "EFL Graphics Filters". /// /// This was a beta feature since 1.15. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Gfx.IFilterConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IFilter : @@ -83,17 +85,38 @@ void GetFilterData(System.String name, out System.String value, out bool execute /// String value to use as data /// If true, execute 'name = value' void SetFilterData(System.String name, System.String value, bool execute); - } + /// Gets the code of the filter program set on this object. May be null. + /// The Lua program source code. + (System.String, System.String) FilterProgram { + get; + set; + } + /// Set the current state of the filter. + /// This should be used by Edje (EFL's internal layout engine), but could also be used when implementing animations programmatically. + /// + /// A full state is defined by two states (name + value): origin state and target state of an ongoing animation, as well as the pos progress (from 0 to 1) of that animation timeline. The second state can be omitted if there is no ongoing animation. + /// Current state of the filter + (System.String, double, System.String, double, double) FilterState { + get; + set; + } + /// Required padding to apply this filter without cropping. + /// Read-only property that can be used to calculate the object's final geometry. This can be overridden (set) from inside the filter program by using the function 'padding_set' in the Lua program. + (int, int, int, int) FilterPadding { + get; + } +} /// Graphical filters can be applied to any object implementing this interface. /// Filters are programmable effects that run whenever the object is rendered on its canvas. The program language is Lua and a complete reference can be found under "EFL Graphics Filters". /// /// This was a beta feature since 1.15. -sealed public class IFilterConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IFilterConcrete : Efl.Eo.EoWrapper , IFilter { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -109,7 +132,8 @@ sealed public class IFilterConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IFilterConcrete(ConstructingHandle ch) : base(ch) { @@ -217,6 +241,46 @@ sealed public class IFilterConcrete : Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_data_set_ptr.Value.Delegate(this.NativeHandle,name, value, execute); Eina.Error.RaiseIfUnhandledException(); } + /// Gets the code of the filter program set on this object. May be null. + /// The Lua program source code. + public (System.String, System.String) FilterProgram { + get { + System.String _out_code = default(System.String); + System.String _out_name = default(System.String); + GetFilterProgram(out _out_code,out _out_name); + return (_out_code,_out_name); + } + set { SetFilterProgram( value.Item1, value.Item2); } + } + /// Set the current state of the filter. + /// This should be used by Edje (EFL's internal layout engine), but could also be used when implementing animations programmatically. + /// + /// A full state is defined by two states (name + value): origin state and target state of an ongoing animation, as well as the pos progress (from 0 to 1) of that animation timeline. The second state can be omitted if there is no ongoing animation. + /// Current state of the filter + public (System.String, double, System.String, double, double) FilterState { + get { + System.String _out_cur_state = default(System.String); + double _out_cur_val = default(double); + System.String _out_next_state = default(System.String); + double _out_next_val = default(double); + double _out_pos = default(double); + GetFilterState(out _out_cur_state,out _out_cur_val,out _out_next_state,out _out_next_val,out _out_pos); + return (_out_cur_state,_out_cur_val,_out_next_state,_out_next_val,_out_pos); + } + set { SetFilterState( value.Item1, value.Item2, value.Item3, value.Item4, value.Item5); } + } + /// Required padding to apply this filter without cropping. + /// Read-only property that can be used to calculate the object's final geometry. This can be overridden (set) from inside the filter program by using the function 'padding_set' in the Lua program. + public (int, int, int, int) FilterPadding { + get { + int _out_l = default(int); + int _out_r = default(int); + int _out_t = default(int); + int _out_b = default(int); + GetFilterPadding(out _out_l,out _out_r,out _out_t,out _out_b); + return (_out_l,_out_r,_out_t,_out_b); + } + } private static IntPtr GetEflClassStatic() { return Efl.Gfx.IFilterConcrete.efl_gfx_filter_interface_get(); @@ -668,3 +732,14 @@ sealed public class IFilterConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_GfxIFilterConcrete_ExtensionMethods { + + + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_frame_controller.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_frame_controller.eo.cs old mode 100644 new mode 100755 index 727ccd8bf..cb7a30f21 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_frame_controller.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_frame_controller.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Gfx { /// Efl frame controller of frame based animated object interface. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Gfx.IFrameControllerConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IFrameController : @@ -59,20 +61,20 @@ double GetFrameDuration(int start_frame, int frame_num); /// This will be true for animated object for instance but false for a single frame object. /// true if the object is animated bool Animated { - get ; + get; } /// Index of the current frame of an animated object. /// Ranges from 1 to . Valid only if . /// The index of current frame. int Frame { - get ; - set ; + get; + set; } /// Get the total number of frames of the object, if animated. /// Returns -1 if not animated. /// The number of frames in the animated object. int FrameCount { - get ; + get; } /// Get the kind of looping the animated object does. /// This returns the kind of looping the animated object wants to do. @@ -84,7 +86,7 @@ double GetFrameDuration(int start_frame, int frame_num); /// The default type is . /// Loop type of the animated object. Efl.Gfx.FrameControllerLoopHint LoopType { - get ; + get; } /// Get the number times the animation of the object loops. /// This returns loop count of animated object. The loop count is the number of times the animation will play fully from first to last frame until the animation should stop (at the final frame). @@ -92,16 +94,17 @@ double GetFrameDuration(int start_frame, int frame_num); /// If 0 is returned, then looping should happen indefinitely (no limit to the number of times it loops). /// The number of loop of an animated object. int LoopCount { - get ; + get; } } /// Efl frame controller of frame based animated object interface. -sealed public class IFrameControllerConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IFrameControllerConcrete : Efl.Eo.EoWrapper , IFrameController { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -117,7 +120,8 @@ sealed public class IFrameControllerConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IFrameControllerConcrete(ConstructingHandle ch) : base(ch) { @@ -596,6 +600,21 @@ sealed public class IFrameControllerConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_GfxIFrameControllerConcrete_ExtensionMethods { + + public static Efl.BindableProperty Frame(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IFrameController { + return new Efl.BindableProperty("frame", fac); + } + + + + + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Gfx { diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient.eo.cs old mode 100644 new mode 100755 index 8f113a21d..3b58e13de --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Gfx { /// Efl graphics gradient interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Gfx.IGradientConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IGradient : @@ -29,20 +31,27 @@ Efl.Gfx.GradientSpread GetSpread(); /// Specifies the spread method that should be used for this gradient. /// Spread type to be used void SetSpread(Efl.Gfx.GradientSpread s); - /// Returns the spread method use by this gradient. The default is EFL_GFX_GRADIENT_SPREAD_PAD. + /// Get the list of color stops. + /// Color stops list + (Efl.Gfx.GradientStop, uint) Stop { + get; + set; + } + /// Returns the spread method use by this gradient. The default is EFL_GFX_GRADIENT_SPREAD_PAD. /// Spread type to be used Efl.Gfx.GradientSpread Spread { - get ; - set ; + get; + set; } } /// Efl graphics gradient interface -sealed public class IGradientConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IGradientConcrete : Efl.Eo.EoWrapper , IGradient { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -58,7 +67,8 @@ sealed public class IGradientConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IGradientConcrete(ConstructingHandle ch) : base(ch) { @@ -104,6 +114,17 @@ sealed public class IGradientConcrete : Efl.Gfx.IGradientConcrete.NativeMethods.efl_gfx_gradient_spread_set_ptr.Value.Delegate(this.NativeHandle,s); Eina.Error.RaiseIfUnhandledException(); } + /// Get the list of color stops. + /// Color stops list + public (Efl.Gfx.GradientStop, uint) Stop { + get { + Efl.Gfx.GradientStop _out_colors = default(Efl.Gfx.GradientStop); + uint _out_length = default(uint); + GetStop(out _out_colors,out _out_length); + return (_out_colors,_out_length); + } + set { SetStop(ref value.Item1, value.Item2); } + } /// Returns the spread method use by this gradient. The default is EFL_GFX_GRADIENT_SPREAD_PAD. /// Spread type to be used public Efl.Gfx.GradientSpread Spread { @@ -330,3 +351,14 @@ sealed public class IGradientConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_GfxIGradientConcrete_ExtensionMethods { + + public static Efl.BindableProperty Spread(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IGradient { + return new Efl.BindableProperty("spread", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient_linear.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient_linear.eo.cs old mode 100644 new mode 100755 index 0bc1a85ec..a097e7819 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient_linear.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient_linear.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Gfx { /// Efl graphics gradient linear interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Gfx.IGradientLinearConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IGradientLinear : @@ -32,14 +34,27 @@ void GetEnd(out double x, out double y); /// X co-ordinate of end point /// Y co-ordinate of end point void SetEnd(double x, double y); - } + /// Gets the start point of this linear gradient. + /// X co-ordinate of start point + (double, double) Start { + get; + set; + } + /// Gets the end point of this linear gradient. + /// X co-ordinate of end point + (double, double) End { + get; + set; + } +} /// Efl graphics gradient linear interface -sealed public class IGradientLinearConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IGradientLinearConcrete : Efl.Eo.EoWrapper , IGradientLinear , Efl.Gfx.IGradient { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -55,7 +70,8 @@ sealed public class IGradientLinearConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IGradientLinearConcrete(ConstructingHandle ch) : base(ch) { @@ -129,6 +145,39 @@ sealed public class IGradientLinearConcrete : Efl.Gfx.IGradientConcrete.NativeMethods.efl_gfx_gradient_spread_set_ptr.Value.Delegate(this.NativeHandle,s); Eina.Error.RaiseIfUnhandledException(); } + /// Gets the start point of this linear gradient. + /// X co-ordinate of start point + public (double, double) Start { + get { + double _out_x = default(double); + double _out_y = default(double); + GetStart(out _out_x,out _out_y); + return (_out_x,_out_y); + } + set { SetStart( value.Item1, value.Item2); } + } + /// Gets the end point of this linear gradient. + /// X co-ordinate of end point + public (double, double) End { + get { + double _out_x = default(double); + double _out_y = default(double); + GetEnd(out _out_x,out _out_y); + return (_out_x,_out_y); + } + set { SetEnd( value.Item1, value.Item2); } + } + /// Get the list of color stops. + /// Color stops list + public (Efl.Gfx.GradientStop, uint) Stop { + get { + Efl.Gfx.GradientStop _out_colors = default(Efl.Gfx.GradientStop); + uint _out_length = default(uint); + GetStop(out _out_colors,out _out_length); + return (_out_colors,_out_length); + } + set { SetStop(ref value.Item1, value.Item2); } + } /// Returns the spread method use by this gradient. The default is EFL_GFX_GRADIENT_SPREAD_PAD. /// Spread type to be used public Efl.Gfx.GradientSpread Spread { @@ -535,3 +584,16 @@ sealed public class IGradientLinearConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_GfxIGradientLinearConcrete_ExtensionMethods { + + + + public static Efl.BindableProperty Spread(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IGradientLinear { + return new Efl.BindableProperty("spread", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient_radial.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient_radial.eo.cs old mode 100644 new mode 100755 index 9cfb0f0c6..b066c568a --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient_radial.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_gradient_radial.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Gfx { /// Efl graphics gradient radial interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Gfx.IGradientRadialConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IGradientRadial : @@ -38,20 +40,33 @@ void GetFocal(out double x, out double y); /// X co-ordinate of focal point /// Y co-ordinate of focal point void SetFocal(double x, double y); - /// Gets the center radius of this radial gradient. + /// Gets the center of this radial gradient. + /// X co-ordinate of center point + (double, double) Center { + get; + set; + } + /// Gets the center radius of this radial gradient. /// Center radius double Radius { - get ; - set ; + get; + set; + } + /// Gets the focal point of this radial gradient. + /// X co-ordinate of focal point + (double, double) Focal { + get; + set; } } /// Efl graphics gradient radial interface -sealed public class IGradientRadialConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IGradientRadialConcrete : Efl.Eo.EoWrapper , IGradientRadial , Efl.Gfx.IGradient { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -67,7 +82,8 @@ sealed public class IGradientRadialConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IGradientRadialConcrete(ConstructingHandle ch) : base(ch) { @@ -154,12 +170,45 @@ sealed public class IGradientRadialConcrete : Efl.Gfx.IGradientConcrete.NativeMethods.efl_gfx_gradient_spread_set_ptr.Value.Delegate(this.NativeHandle,s); Eina.Error.RaiseIfUnhandledException(); } + /// Gets the center of this radial gradient. + /// X co-ordinate of center point + public (double, double) Center { + get { + double _out_x = default(double); + double _out_y = default(double); + GetCenter(out _out_x,out _out_y); + return (_out_x,_out_y); + } + set { SetCenter( value.Item1, value.Item2); } + } /// Gets the center radius of this radial gradient. /// Center radius public double Radius { get { return GetRadius(); } set { SetRadius(value); } } + /// Gets the focal point of this radial gradient. + /// X co-ordinate of focal point + public (double, double) Focal { + get { + double _out_x = default(double); + double _out_y = default(double); + GetFocal(out _out_x,out _out_y); + return (_out_x,_out_y); + } + set { SetFocal( value.Item1, value.Item2); } + } + /// Get the list of color stops. + /// Color stops list + public (Efl.Gfx.GradientStop, uint) Stop { + get { + Efl.Gfx.GradientStop _out_colors = default(Efl.Gfx.GradientStop); + uint _out_length = default(uint); + GetStop(out _out_colors,out _out_length); + return (_out_colors,_out_length); + } + set { SetStop(ref value.Item1, value.Item2); } + } /// Returns the spread method use by this gradient. The default is EFL_GFX_GRADIENT_SPREAD_PAD. /// Spread type to be used public Efl.Gfx.GradientSpread Spread { @@ -657,3 +706,20 @@ sealed public class IGradientRadialConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_GfxIGradientRadialConcrete_ExtensionMethods { + + public static Efl.BindableProperty Radius(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IGradientRadial { + return new Efl.BindableProperty("radius", fac); + } + + + + public static Efl.BindableProperty Spread(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IGradientRadial { + return new Efl.BindableProperty("spread", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_hint.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_hint.eo.cs old mode 100644 new mode 100755 index e87c0a7f4..f04685289 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_hint.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_hint.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -22,6 +23,71 @@ namespace Efl { namespace Gfx { +public partial class Constants +{ + /// Use with . + public static readonly double HintAlignLeft = 0.000000; +} +} + +} + +namespace Efl { + +namespace Gfx { + +public partial class Constants +{ + /// Use with . + public static readonly double HintAlignRight = 1.000000; +} +} + +} + +namespace Efl { + +namespace Gfx { + +public partial class Constants +{ + /// Use with . + public static readonly double HintAlignTop = 0.000000; +} +} + +} + +namespace Efl { + +namespace Gfx { + +public partial class Constants +{ + /// Use with . + public static readonly double HintAlignBottom = 1.000000; +} +} + +} + +namespace Efl { + +namespace Gfx { + +public partial class Constants +{ + /// Use with . + public static readonly double HintAlignCenter = 0.500000; +} +} + +} + +namespace Efl { + +namespace Gfx { + /// Efl graphics hint interface /// (Since EFL 1.22) [Efl.Gfx.IHintConcrete.NativeMethods] @@ -53,6 +119,8 @@ void SetHintAspect(Efl.Gfx.HintAspect mode, Eina.Size2D sz); /// Values -1 will be treated as unset hint components, when queried by managers. /// /// Note: Smart objects (such as elementary) can have their own hint policy. So calling this API may or may not affect the size of smart objects. +/// +/// Note: It is an error for the to be smaller in either axis than . In this scenario, the max size hint will be prioritized over the user min size hint. /// (Since EFL 1.22) /// Maximum size (hint) in pixels, (-1, -1) by default for canvas objects). Eina.Size2D GetHintSizeMax(); @@ -64,15 +132,32 @@ Eina.Size2D GetHintSizeMax(); /// Values -1 will be treated as unset hint components, when queried by managers. /// /// Note: Smart objects (such as elementary) can have their own hint policy. So calling this API may or may not affect the size of smart objects. +/// +/// Note: It is an error for the to be smaller in either axis than . In this scenario, the max size hint will be prioritized over the user min size hint. /// (Since EFL 1.22) /// Maximum size (hint) in pixels, (-1, -1) by default for canvas objects). void SetHintSizeMax(Eina.Size2D sz); + /// Get the "intrinsic" maximum size of this object. +/// (Since EFL 1.22) +/// Maximum size (hint) in pixels. +Eina.Size2D GetHintSizeRestrictedMax(); + /// This function is protected as it is meant for widgets to indicate their "intrinsic" maximum size. +/// (Since EFL 1.22) +/// Maximum size (hint) in pixels. +void SetHintSizeRestrictedMax(Eina.Size2D sz); + /// Read-only maximum size combining both and hints. +/// is intended for mostly internal usage and widget developers, and is intended to be set from application side. combines both values by taking their repective maximum (in both width and height), and is used internally to get an object's maximum size. +/// (Since EFL 1.22) +/// Maximum size (hint) in pixels. +Eina.Size2D GetHintSizeCombinedMax(); /// Hints on the object's minimum size. /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. The object container is in charge of fetching this property and placing the object accordingly. /// /// Value 0 will be treated as unset hint components, when queried by managers. /// /// Note: This property is meant to be set by applications and not by EFL itself. Use this to request a specific size (treated as minimum size). +/// +/// Note: It is an error for the to be smaller in either axis than . In this scenario, the max size hint will be prioritized over the user min size hint. /// (Since EFL 1.22) /// Minimum size (hint) in pixels. Eina.Size2D GetHintSizeMin(); @@ -82,6 +167,8 @@ Eina.Size2D GetHintSizeMin(); /// Value 0 will be treated as unset hint components, when queried by managers. /// /// Note: This property is meant to be set by applications and not by EFL itself. Use this to request a specific size (treated as minimum size). +/// +/// Note: It is an error for the to be smaller in either axis than . In this scenario, the max size hint will be prioritized over the user min size hint. /// (Since EFL 1.22) /// Minimum size (hint) in pixels. void SetHintSizeMin(Eina.Size2D sz); @@ -190,9 +277,19 @@ void GetHintFill(out bool x, out bool y); /// true if to fill the object space, false otherwise, to use as horizontal fill hint. /// true if to fill the object space, false otherwise, to use as vertical fill hint. void SetHintFill(bool x, bool y); - /// Object hints changed. + /// Object hints changed. /// (Since EFL 1.22) event EventHandler HintsChangedEvt; + /// Defines the aspect ratio to respect when scaling this object. + /// The aspect ratio is defined as the width / height ratio of the object. Depending on the object and its container, this hint may or may not be fully respected. + /// + /// If any of the given aspect ratio terms are 0, the object's container will ignore the aspect and scale this object to occupy the whole available area, for any given policy. + /// (Since EFL 1.22) + /// Mode of interpretation. + (Efl.Gfx.HintAspect, Eina.Size2D) HintAspect { + get; + set; + } /// Hints on the object's maximum size. /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. /// @@ -201,11 +298,34 @@ void SetHintFill(bool x, bool y); /// Values -1 will be treated as unset hint components, when queried by managers. /// /// Note: Smart objects (such as elementary) can have their own hint policy. So calling this API may or may not affect the size of smart objects. + /// + /// Note: It is an error for the to be smaller in either axis than . In this scenario, the max size hint will be prioritized over the user min size hint. /// (Since EFL 1.22) /// Maximum size (hint) in pixels, (-1, -1) by default for canvas objects). Eina.Size2D HintSizeMax { - get ; - set ; + get; + set; + } + /// Internal hints for an object's maximum size. + /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. + /// + /// Values -1 will be treated as unset hint components, when queried by managers. + /// + /// Note: This property is internal and meant for widget developers to define the absolute maximum size of the object. EFL itself sets this size internally, so any change to it from an application might be ignored. Applications should use instead. + /// + /// Note: It is an error for the to be smaller in either axis than . In this scenario, the max size hint will be prioritized over the user min size hint. + /// (Since EFL 1.22) + /// Maximum size (hint) in pixels. + Eina.Size2D HintSizeRestrictedMax { + get; + set; + } + /// Read-only maximum size combining both and hints. + /// is intended for mostly internal usage and widget developers, and is intended to be set from application side. combines both values by taking their repective maximum (in both width and height), and is used internally to get an object's maximum size. + /// (Since EFL 1.22) + /// Maximum size (hint) in pixels. + Eina.Size2D HintSizeCombinedMax { + get; } /// Hints on the object's minimum size. /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. The object container is in charge of fetching this property and placing the object accordingly. @@ -213,11 +333,13 @@ void SetHintFill(bool x, bool y); /// Value 0 will be treated as unset hint components, when queried by managers. /// /// Note: This property is meant to be set by applications and not by EFL itself. Use this to request a specific size (treated as minimum size). + /// + /// Note: It is an error for the to be smaller in either axis than . In this scenario, the max size hint will be prioritized over the user min size hint. /// (Since EFL 1.22) /// Minimum size (hint) in pixels. Eina.Size2D HintSizeMin { - get ; - set ; + get; + set; } /// Internal hints for an object's minimum size. /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. @@ -225,28 +347,82 @@ void SetHintFill(bool x, bool y); /// Values 0 will be treated as unset hint components, when queried by managers. /// /// Note: This property is internal and meant for widget developers to define the absolute minimum size of the object. EFL itself sets this size internally, so any change to it from an application might be ignored. Use instead. + /// + /// Note: It is an error for the to be smaller in either axis than . In this scenario, the max size hint will be prioritized over the user min size hint. /// (Since EFL 1.22) /// Minimum size (hint) in pixels. Eina.Size2D HintSizeRestrictedMin { - get ; - set ; + get; + set; } /// Read-only minimum size combining both and hints. /// is intended for mostly internal usage and widget developers, and is intended to be set from application side. combines both values by taking their repective maximum (in both width and height), and is used internally to get an object's minimum size. /// (Since EFL 1.22) /// Minimum size (hint) in pixels. Eina.Size2D HintSizeCombinedMin { - get ; + get; + } + /// Hints for an object's margin or padding space. + /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. + /// + /// The object container is in charge of fetching this property and placing the object accordingly. + /// + /// Note: Smart objects (such as elementary) can have their own hint policy. So calling this API may or may not affect the size of smart objects. + /// (Since EFL 1.22) + /// Integer to specify left padding. + (int, int, int, int) HintMargin { + get; + set; + } + /// Hints for an object's weight. + /// This is a hint on how a container object should resize a given child within its area. Containers may adhere to the simpler logic of just expanding the child object's dimensions to fit its own (see the helper weight macro) or the complete one of taking each child's weight hint as real weights to how much of its size to allocate for them in each axis. A container is supposed to, after normalizing the weights of its children (with weight hints), distribut the space it has to layout them by those factors -- most weighted children get larger in this process than the least ones. + /// + /// Accepted values are zero or positive values. Some containers might use this hint as a boolean, but some others might consider it as a proportion, see documentation of each container. + /// + /// Note: Default weight hint values are 0.0, for both axis. + /// (Since EFL 1.22) + /// Non-negative double value to use as horizontal weight hint. + (double, double) HintWeight { + get; + set; + } + /// Hints for an object's alignment. + /// These are hints on how to align an object inside the boundaries of a container/manager. Accepted values are in the 0.0 to 1.0 range. + /// + /// For the horizontal component, 0.0 means to the left, 1.0 means to the right. Analogously, for the vertical component, 0.0 to the top, 1.0 means to the bottom. + /// + /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. + /// + /// Note: Default alignment hint values are 0.5, for both axes. + /// (Since EFL 1.22) + /// Double, ranging from 0.0 to 1.0. + (double, double) HintAlign { + get; + set; + } + /// Hints for an object's fill property that used to specify "justify" or "fill" by some users. specify whether to fill the space inside the boundaries of a container/manager. + /// Maximum hints should be enforced with higher priority, if they are set. Also, any set on objects should add up to the object space on the final scene composition. + /// + /// See documentation of possible users: in Evas, they are the "box" and "table" smart objects. + /// + /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. + /// + /// Note: Default fill hint values are true, for both axes. + /// (Since EFL 1.22) + /// true if to fill the object space, false otherwise, to use as horizontal fill hint. + (bool, bool) HintFill { + get; + set; } } /// Efl graphics hint interface /// (Since EFL 1.22) -sealed public class IHintConcrete : +sealed public class IHintConcrete : Efl.Eo.EoWrapper , IHint { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -262,7 +438,8 @@ sealed public class IHintConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IHintConcrete(ConstructingHandle ch) : base(ch) { @@ -317,7 +494,7 @@ sealed public class IHintConcrete : } } } - ///Method to raise event HintsChangedEvt. + /// Method to raise event HintsChangedEvt. public void OnHintsChangedEvt(EventArgs e) { var key = "_EFL_GFX_ENTITY_EVENT_HINTS_CHANGED"; @@ -363,6 +540,8 @@ sealed public class IHintConcrete : /// Values -1 will be treated as unset hint components, when queried by managers. /// /// Note: Smart objects (such as elementary) can have their own hint policy. So calling this API may or may not affect the size of smart objects. + /// + /// Note: It is an error for the to be smaller in either axis than . In this scenario, the max size hint will be prioritized over the user min size hint. /// (Since EFL 1.22) /// Maximum size (hint) in pixels, (-1, -1) by default for canvas objects). public Eina.Size2D GetHintSizeMax() { @@ -378,6 +557,8 @@ sealed public class IHintConcrete : /// Values -1 will be treated as unset hint components, when queried by managers. /// /// Note: Smart objects (such as elementary) can have their own hint policy. So calling this API may or may not affect the size of smart objects. + /// + /// Note: It is an error for the to be smaller in either axis than . In this scenario, the max size hint will be prioritized over the user min size hint. /// (Since EFL 1.22) /// Maximum size (hint) in pixels, (-1, -1) by default for canvas objects). public void SetHintSizeMax(Eina.Size2D sz) { @@ -385,12 +566,39 @@ sealed public class IHintConcrete : Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_max_set_ptr.Value.Delegate(this.NativeHandle,_in_sz); Eina.Error.RaiseIfUnhandledException(); } + /// Get the "intrinsic" maximum size of this object. + /// (Since EFL 1.22) + /// Maximum size (hint) in pixels. + public Eina.Size2D GetHintSizeRestrictedMax() { + var _ret_var = Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_restricted_max_get_ptr.Value.Delegate(this.NativeHandle); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// This function is protected as it is meant for widgets to indicate their "intrinsic" maximum size. + /// (Since EFL 1.22) + /// Maximum size (hint) in pixels. + public void SetHintSizeRestrictedMax(Eina.Size2D sz) { + Eina.Size2D.NativeStruct _in_sz = sz; + Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_restricted_max_set_ptr.Value.Delegate(this.NativeHandle,_in_sz); + Eina.Error.RaiseIfUnhandledException(); + } + /// Read-only maximum size combining both and hints. + /// is intended for mostly internal usage and widget developers, and is intended to be set from application side. combines both values by taking their repective maximum (in both width and height), and is used internally to get an object's maximum size. + /// (Since EFL 1.22) + /// Maximum size (hint) in pixels. + public Eina.Size2D GetHintSizeCombinedMax() { + var _ret_var = Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_size_combined_max_get_ptr.Value.Delegate(this.NativeHandle); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } /// Hints on the object's minimum size. /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. The object container is in charge of fetching this property and placing the object accordingly. /// /// Value 0 will be treated as unset hint components, when queried by managers. /// /// Note: This property is meant to be set by applications and not by EFL itself. Use this to request a specific size (treated as minimum size). + /// + /// Note: It is an error for the to be smaller in either axis than . In this scenario, the max size hint will be prioritized over the user min size hint. /// (Since EFL 1.22) /// Minimum size (hint) in pixels. public Eina.Size2D GetHintSizeMin() { @@ -404,6 +612,8 @@ sealed public class IHintConcrete : /// Value 0 will be treated as unset hint components, when queried by managers. /// /// Note: This property is meant to be set by applications and not by EFL itself. Use this to request a specific size (treated as minimum size). + /// + /// Note: It is an error for the to be smaller in either axis than . In this scenario, the max size hint will be prioritized over the user min size hint. /// (Since EFL 1.22) /// Minimum size (hint) in pixels. public void SetHintSizeMin(Eina.Size2D sz) { @@ -552,6 +762,21 @@ sealed public class IHintConcrete : Efl.Gfx.IHintConcrete.NativeMethods.efl_gfx_hint_fill_set_ptr.Value.Delegate(this.NativeHandle,x, y); Eina.Error.RaiseIfUnhandledException(); } + /// Defines the aspect ratio to respect when scaling this object. + /// The aspect ratio is defined as the width / height ratio of the object. Depending on the object and its container, this hint may or may not be fully respected. + /// + /// If any of the given aspect ratio terms are 0, the object's container will ignore the aspect and scale this object to occupy the whole available area, for any given policy. + /// (Since EFL 1.22) + /// Mode of interpretation. + public (Efl.Gfx.HintAspect, Eina.Size2D) HintAspect { + get { + Efl.Gfx.HintAspect _out_mode = default(Efl.Gfx.HintAspect); + Eina.Size2D _out_sz = default(Eina.Size2D); + GetHintAspect(out _out_mode,out _out_sz); + return (_out_mode,_out_sz); + } + set { SetHintAspect( value.Item1, value.Item2); } + } /// Hints on the object's maximum size. /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. /// @@ -560,18 +785,43 @@ sealed public class IHintConcrete : /// Values -1 will be treated as unset hint components, when queried by managers. /// /// Note: Smart objects (such as elementary) can have their own hint policy. So calling this API may or may not affect the size of smart objects. + /// + /// Note: It is an error for the to be smaller in either axis than . In this scenario, the max size hint will be prioritized over the user min size hint. /// (Since EFL 1.22) /// Maximum size (hint) in pixels, (-1, -1) by default for canvas objects). public Eina.Size2D HintSizeMax { get { return GetHintSizeMax(); } set { SetHintSizeMax(value); } } + /// Internal hints for an object's maximum size. + /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. + /// + /// Values -1 will be treated as unset hint components, when queried by managers. + /// + /// Note: This property is internal and meant for widget developers to define the absolute maximum size of the object. EFL itself sets this size internally, so any change to it from an application might be ignored. Applications should use instead. + /// + /// Note: It is an error for the to be smaller in either axis than . In this scenario, the max size hint will be prioritized over the user min size hint. + /// (Since EFL 1.22) + /// Maximum size (hint) in pixels. + public Eina.Size2D HintSizeRestrictedMax { + get { return GetHintSizeRestrictedMax(); } + set { SetHintSizeRestrictedMax(value); } + } + /// Read-only maximum size combining both and hints. + /// is intended for mostly internal usage and widget developers, and is intended to be set from application side. combines both values by taking their repective maximum (in both width and height), and is used internally to get an object's maximum size. + /// (Since EFL 1.22) + /// Maximum size (hint) in pixels. + public Eina.Size2D HintSizeCombinedMax { + get { return GetHintSizeCombinedMax(); } + } /// Hints on the object's minimum size. /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. The object container is in charge of fetching this property and placing the object accordingly. /// /// Value 0 will be treated as unset hint components, when queried by managers. /// /// Note: This property is meant to be set by applications and not by EFL itself. Use this to request a specific size (treated as minimum size). + /// + /// Note: It is an error for the to be smaller in either axis than . In this scenario, the max size hint will be prioritized over the user min size hint. /// (Since EFL 1.22) /// Minimum size (hint) in pixels. public Eina.Size2D HintSizeMin { @@ -584,6 +834,8 @@ sealed public class IHintConcrete : /// Values 0 will be treated as unset hint components, when queried by managers. /// /// Note: This property is internal and meant for widget developers to define the absolute minimum size of the object. EFL itself sets this size internally, so any change to it from an application might be ignored. Use instead. + /// + /// Note: It is an error for the to be smaller in either axis than . In this scenario, the max size hint will be prioritized over the user min size hint. /// (Since EFL 1.22) /// Minimum size (hint) in pixels. public Eina.Size2D HintSizeRestrictedMin { @@ -597,6 +849,80 @@ sealed public class IHintConcrete : public Eina.Size2D HintSizeCombinedMin { get { return GetHintSizeCombinedMin(); } } + /// Hints for an object's margin or padding space. + /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. + /// + /// The object container is in charge of fetching this property and placing the object accordingly. + /// + /// Note: Smart objects (such as elementary) can have their own hint policy. So calling this API may or may not affect the size of smart objects. + /// (Since EFL 1.22) + /// Integer to specify left padding. + public (int, int, int, int) HintMargin { + get { + int _out_l = default(int); + int _out_r = default(int); + int _out_t = default(int); + int _out_b = default(int); + GetHintMargin(out _out_l,out _out_r,out _out_t,out _out_b); + return (_out_l,_out_r,_out_t,_out_b); + } + set { SetHintMargin( value.Item1, value.Item2, value.Item3, value.Item4); } + } + /// Hints for an object's weight. + /// This is a hint on how a container object should resize a given child within its area. Containers may adhere to the simpler logic of just expanding the child object's dimensions to fit its own (see the helper weight macro) or the complete one of taking each child's weight hint as real weights to how much of its size to allocate for them in each axis. A container is supposed to, after normalizing the weights of its children (with weight hints), distribut the space it has to layout them by those factors -- most weighted children get larger in this process than the least ones. + /// + /// Accepted values are zero or positive values. Some containers might use this hint as a boolean, but some others might consider it as a proportion, see documentation of each container. + /// + /// Note: Default weight hint values are 0.0, for both axis. + /// (Since EFL 1.22) + /// Non-negative double value to use as horizontal weight hint. + public (double, double) HintWeight { + get { + double _out_x = default(double); + double _out_y = default(double); + GetHintWeight(out _out_x,out _out_y); + return (_out_x,_out_y); + } + set { SetHintWeight( value.Item1, value.Item2); } + } + /// Hints for an object's alignment. + /// These are hints on how to align an object inside the boundaries of a container/manager. Accepted values are in the 0.0 to 1.0 range. + /// + /// For the horizontal component, 0.0 means to the left, 1.0 means to the right. Analogously, for the vertical component, 0.0 to the top, 1.0 means to the bottom. + /// + /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. + /// + /// Note: Default alignment hint values are 0.5, for both axes. + /// (Since EFL 1.22) + /// Double, ranging from 0.0 to 1.0. + public (double, double) HintAlign { + get { + double _out_x = default(double); + double _out_y = default(double); + GetHintAlign(out _out_x,out _out_y); + return (_out_x,_out_y); + } + set { SetHintAlign( value.Item1, value.Item2); } + } + /// Hints for an object's fill property that used to specify "justify" or "fill" by some users. specify whether to fill the space inside the boundaries of a container/manager. + /// Maximum hints should be enforced with higher priority, if they are set. Also, any set on objects should add up to the object space on the final scene composition. + /// + /// See documentation of possible users: in Evas, they are the "box" and "table" smart objects. + /// + /// This is not a size enforcement in any way, it's just a hint that should be used whenever appropriate. + /// + /// Note: Default fill hint values are true, for both axes. + /// (Since EFL 1.22) + /// true if to fill the object space, false otherwise, to use as horizontal fill hint. + public (bool, bool) HintFill { + get { + bool _out_x = default(bool); + bool _out_y = default(bool); + GetHintFill(out _out_x,out _out_y); + return (_out_x,_out_y); + } + set { SetHintFill( value.Item1, value.Item2); } + } private static IntPtr GetEflClassStatic() { return Efl.Gfx.IHintConcrete.efl_gfx_hint_interface_get(); @@ -653,6 +979,36 @@ sealed public class IHintConcrete : descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_max_set_static_delegate) }); } + if (efl_gfx_hint_size_restricted_max_get_static_delegate == null) + { + efl_gfx_hint_size_restricted_max_get_static_delegate = new efl_gfx_hint_size_restricted_max_get_delegate(hint_size_restricted_max_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetHintSizeRestrictedMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_restricted_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_restricted_max_get_static_delegate) }); + } + + if (efl_gfx_hint_size_restricted_max_set_static_delegate == null) + { + efl_gfx_hint_size_restricted_max_set_static_delegate = new efl_gfx_hint_size_restricted_max_set_delegate(hint_size_restricted_max_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetHintSizeRestrictedMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_restricted_max_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_restricted_max_set_static_delegate) }); + } + + if (efl_gfx_hint_size_combined_max_get_static_delegate == null) + { + efl_gfx_hint_size_combined_max_get_static_delegate = new efl_gfx_hint_size_combined_max_get_delegate(hint_size_combined_max_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetHintSizeCombinedMax") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_hint_size_combined_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_hint_size_combined_max_get_static_delegate) }); + } + if (efl_gfx_hint_size_min_get_static_delegate == null) { efl_gfx_hint_size_min_get_static_delegate = new efl_gfx_hint_size_min_get_delegate(hint_size_min_get); @@ -940,6 +1296,114 @@ sealed public class IHintConcrete : private static efl_gfx_hint_size_max_set_delegate efl_gfx_hint_size_max_set_static_delegate; + private delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_restricted_max_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_restricted_max_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_restricted_max_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_size_restricted_max_get"); + + private static Eina.Size2D.NativeStruct hint_size_restricted_max_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_hint_size_restricted_max_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((IHint)ws.Target).GetHintSizeRestrictedMax(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_hint_size_restricted_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_hint_size_restricted_max_get_delegate efl_gfx_hint_size_restricted_max_get_static_delegate; + + + private delegate void efl_gfx_hint_size_restricted_max_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz); + + + public delegate void efl_gfx_hint_size_restricted_max_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct sz); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_restricted_max_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_size_restricted_max_set"); + + private static void hint_size_restricted_max_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct sz) + { + Eina.Log.Debug("function efl_gfx_hint_size_restricted_max_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Size2D _in_sz = sz; + + try + { + ((IHint)ws.Target).SetHintSizeRestrictedMax(_in_sz); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_hint_size_restricted_max_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sz); + } + } + + private static efl_gfx_hint_size_restricted_max_set_delegate efl_gfx_hint_size_restricted_max_set_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_combined_max_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_combined_max_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_hint_size_combined_max_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_hint_size_combined_max_get"); + + private static Eina.Size2D.NativeStruct hint_size_combined_max_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_hint_size_combined_max_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((IHint)ws.Target).GetHintSizeCombinedMax(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_hint_size_combined_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_hint_size_combined_max_get_delegate efl_gfx_hint_size_combined_max_get_static_delegate; + + private delegate Eina.Size2D.NativeStruct efl_gfx_hint_size_min_get_delegate(System.IntPtr obj, System.IntPtr pd); @@ -1407,3 +1871,32 @@ sealed public class IHintConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_GfxIHintConcrete_ExtensionMethods { + + public static Efl.BindableProperty HintSizeMax(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IHint { + return new Efl.BindableProperty("hint_size_max", fac); + } + + public static Efl.BindableProperty HintSizeRestrictedMax(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IHint { + return new Efl.BindableProperty("hint_size_restricted_max", fac); + } + + + public static Efl.BindableProperty HintSizeMin(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IHint { + return new Efl.BindableProperty("hint_size_min", fac); + } + + public static Efl.BindableProperty HintSizeRestrictedMin(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IHint { + return new Efl.BindableProperty("hint_size_restricted_min", fac); + } + + + + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_image.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_image.eo.cs old mode 100644 new mode 100755 index 71f94bab3..adc692a79 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_image.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_image.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Gfx { /// Common APIs for all 2D images that can be rendered on the canvas. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Gfx.IImageConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IImage : @@ -33,6 +35,18 @@ Efl.Gfx.ImageScaleType GetScaleType(); /// Control how the image is scaled. /// Image scale type void SetScaleType(Efl.Gfx.ImageScaleType scale_type); + /// If true, the image may be scaled to a larger size. If false, the image will never be resized larger than its native size. This is set to true by default. +/// Allow image upscaling +bool GetCanUpscale(); + /// If true, the image may be scaled to a larger size. If false, the image will never be resized larger than its native size. This is set to true by default. +/// Allow image upscaling +void SetCanUpscale(bool upscale); + /// If true, the image may be scaled to a smaller size. If false, the image will never be resized smaller than its native size. This is set to true by default. +/// Allow image downscaling +bool GetCanDownscale(); + /// If true, the image may be scaled to a smaller size. If false, the image will never be resized smaller than its native size. This is set to true by default. +/// Allow image downscaling +void SetCanDownscale(bool downscale); /// Returns 1.0 if not applicable (eg. height = 0). /// The image's ratio. double GetRatio(); @@ -100,13 +114,13 @@ void SetBorderCenterFill(Efl.Gfx.BorderFillMode fill); /// When the regions are set by the user, the method will walk the iterators once and then destroy them. When the regions are retrieved by the user, it is his responsibility to destroy the iterators.. It will remember the information for the lifetime of the object. It will ignore all value of , and . To reset the object you can just pass null to both horizontal and vertical at the same time. /// Representation of area that are stretchable in the image horizontal space. /// Representation of area that are stretchable in the image vertical space. -void GetStretchRegion(out Eina.Iterator horizontal, out Eina.Iterator vertical); +void GetStretchRegion(out Eina.Iterator horizontal, out Eina.Iterator vertical); /// This property defines the stretchable pixels region of an image. /// When the regions are set by the user, the method will walk the iterators once and then destroy them. When the regions are retrieved by the user, it is his responsibility to destroy the iterators.. It will remember the information for the lifetime of the object. It will ignore all value of , and . To reset the object you can just pass null to both horizontal and vertical at the same time. /// Representation of area that are stretchable in the image horizontal space. /// Representation of area that are stretchable in the image vertical space. /// return an error code if the stretch_region provided are incorrect. -Eina.Error SetStretchRegion(Eina.Iterator horizontal, Eina.Iterator vertical); +Eina.Error SetStretchRegion(Eina.Iterator horizontal, Eina.Iterator vertical); /// This represents the size of the original image in pixels. /// This may be different from the actual geometry on screen or even the size of the loaded pixel buffer. This is the size of the image as stored in the original file. /// @@ -132,7 +146,7 @@ void SetScaleHint(Efl.Gfx.ImageScaleHint hint); /// Gets the (last) file loading error for a given object. /// The load error code. Eina.Error GetImageLoadError(); - /// Image data has been preloaded. + /// Image data has been preloaded. event EventHandler ImagePreloadEvt; /// Image was resized (its pixel data). event EventHandler ImageResizeEvt; @@ -144,19 +158,31 @@ Eina.Error GetImageLoadError(); /// true by default /// Whether to use smooth scale or not. bool SmoothScale { - get ; - set ; + get; + set; } /// Control how the image is scaled. /// Image scale type Efl.Gfx.ImageScaleType ScaleType { - get ; - set ; + get; + set; + } + /// If true, the image may be scaled to a larger size. If false, the image will never be resized larger than its native size. This is set to true by default. + /// Allow image upscaling + bool CanUpscale { + get; + set; + } + /// If true, the image may be scaled to a smaller size. If false, the image will never be resized smaller than its native size. This is set to true by default. + /// Allow image downscaling + bool CanDownscale { + get; + set; } /// The native width/height ratio of the image. /// The image's ratio. double Ratio { - get ; + get; } /// Return the relative area enclosed inside the image where content is expected. /// We do expect content to be inside the limit defined by the border or inside the stretch region. If a stretch region is provided, the content region will encompass the non strechable area that are surrounded by stretchable area. If no border and no stretch region is set, they are assumed to be zero and the full object geometry is where content can be layout on top. The area size change with the object size. @@ -164,7 +190,22 @@ Eina.Error GetImageLoadError(); /// The geometry of the area is expressed relative to the geometry of the object. /// A rectangle inside the object boundary that where content is expected. Eina.Rect ContentRegion { - get ; + get; + } + /// Dimensions of this image's border, a region that does not scale with the center area. + /// When EFL renders an image, its source may be scaled to fit the size of the object. This function sets an area from the borders of the image inwards which is not to be scaled. This function is useful for making frames and for widget theming, where, for example, buttons may be of varying sizes, but their border size must remain constant. + /// + /// The units used for l, r, t and b are canvas units (pixels). + /// + /// Note: The border region itself may be scaled by the function. + /// + /// Note: By default, image objects have no borders set, i.e. l, r, t and b start as 0. + /// + /// Note: Similar to the concepts of 9-patch images or cap insets. + /// The border's left width. + (int, int, int, int) Border { + get; + set; } /// Scaling factor applied to the image borders. /// This value multiplies the size of the when scaling an object. @@ -172,8 +213,8 @@ Eina.Error GetImageLoadError(); /// Default value is 1.0 (no scaling). /// The scale factor. double BorderScale { - get ; - set ; + get; + set; } /// Specifies how the center part of the object (not the borders) should be drawn when EFL is rendering it. /// This function sets how the center part of the image object's source image is to be drawn, which must be one of the values in . By center we mean the complementary part of that defined by . This is very useful for making frames and decorations. You would most probably also be using a filled image (as in ) to use as a frame. @@ -181,8 +222,15 @@ Eina.Error GetImageLoadError(); /// The default value is , ie. render and scale the center area, respecting its transparency. /// Fill mode of the center region. Efl.Gfx.BorderFillMode BorderCenterFill { - get ; - set ; + get; + set; + } + /// This property defines the stretchable pixels region of an image. + /// When the regions are set by the user, the method will walk the iterators once and then destroy them. When the regions are retrieved by the user, it is his responsibility to destroy the iterators.. It will remember the information for the lifetime of the object. It will ignore all value of , and . To reset the object you can just pass null to both horizontal and vertical at the same time. + /// Representation of area that are stretchable in the image horizontal space. + (Eina.Iterator, Eina.Iterator) StretchRegion { + get; + set; } /// This represents the size of the original image in pixels. /// This may be different from the actual geometry on screen or even the size of the loaded pixel buffer. This is the size of the image as stored in the original file. @@ -190,35 +238,36 @@ Eina.Error GetImageLoadError(); /// This is a read-only property, and may return 0x0. /// The size in pixels. Eina.Size2D ImageSize { - get ; + get; } /// Get the content hint setting of a given image object of the canvas. /// This returns #EVAS_IMAGE_CONTENT_HINT_NONE on error. /// Dynamic or static content hint, see Efl.Gfx.ImageContentHint ContentHint { - get ; - set ; + get; + set; } /// Get the scale hint of a given image of the canvas. /// This function returns the scale hint value of the given image object of the canvas. /// Scalable or static size hint, see Efl.Gfx.ImageScaleHint ScaleHint { - get ; - set ; + get; + set; } /// Gets the (last) file loading error for a given object. /// The load error code. Eina.Error ImageLoadError { - get ; + get; } } /// Common APIs for all 2D images that can be rendered on the canvas. -sealed public class IImageConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IImageConcrete : Efl.Eo.EoWrapper , IImage { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -234,7 +283,8 @@ sealed public class IImageConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IImageConcrete(ConstructingHandle ch) : base(ch) { @@ -288,7 +338,7 @@ sealed public class IImageConcrete : } } } - ///Method to raise event ImagePreloadEvt. + /// Method to raise event ImagePreloadEvt. public void OnImagePreloadEvt(EventArgs e) { var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_PRELOAD"; @@ -340,7 +390,7 @@ sealed public class IImageConcrete : } } } - ///Method to raise event ImageResizeEvt. + /// Method to raise event ImageResizeEvt. public void OnImageResizeEvt(EventArgs e) { var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_RESIZE"; @@ -392,7 +442,7 @@ sealed public class IImageConcrete : } } } - ///Method to raise event ImageUnloadEvt. + /// Method to raise event ImageUnloadEvt. public void OnImageUnloadEvt(EventArgs e) { var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_UNLOAD"; @@ -437,6 +487,32 @@ sealed public class IImageConcrete : Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_type_set_ptr.Value.Delegate(this.NativeHandle,scale_type); Eina.Error.RaiseIfUnhandledException(); } + /// If true, the image may be scaled to a larger size. If false, the image will never be resized larger than its native size. This is set to true by default. + /// Allow image upscaling + public bool GetCanUpscale() { + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_can_upscale_get_ptr.Value.Delegate(this.NativeHandle); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// If true, the image may be scaled to a larger size. If false, the image will never be resized larger than its native size. This is set to true by default. + /// Allow image upscaling + public void SetCanUpscale(bool upscale) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_can_upscale_set_ptr.Value.Delegate(this.NativeHandle,upscale); + Eina.Error.RaiseIfUnhandledException(); + } + /// If true, the image may be scaled to a smaller size. If false, the image will never be resized smaller than its native size. This is set to true by default. + /// Allow image downscaling + public bool GetCanDownscale() { + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_can_downscale_get_ptr.Value.Delegate(this.NativeHandle); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// If true, the image may be scaled to a smaller size. If false, the image will never be resized smaller than its native size. This is set to true by default. + /// Allow image downscaling + public void SetCanDownscale(bool downscale) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_can_downscale_set_ptr.Value.Delegate(this.NativeHandle,downscale); + Eina.Error.RaiseIfUnhandledException(); + } /// Returns 1.0 if not applicable (eg. height = 0). /// The image's ratio. public double GetRatio() { @@ -532,20 +608,20 @@ sealed public class IImageConcrete : /// When the regions are set by the user, the method will walk the iterators once and then destroy them. When the regions are retrieved by the user, it is his responsibility to destroy the iterators.. It will remember the information for the lifetime of the object. It will ignore all value of , and . To reset the object you can just pass null to both horizontal and vertical at the same time. /// Representation of area that are stretchable in the image horizontal space. /// Representation of area that are stretchable in the image vertical space. - public void GetStretchRegion(out Eina.Iterator horizontal, out Eina.Iterator vertical) { + public void GetStretchRegion(out Eina.Iterator horizontal, out Eina.Iterator vertical) { System.IntPtr _out_horizontal = System.IntPtr.Zero; System.IntPtr _out_vertical = System.IntPtr.Zero; Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_stretch_region_get_ptr.Value.Delegate(this.NativeHandle,out _out_horizontal, out _out_vertical); Eina.Error.RaiseIfUnhandledException(); - horizontal = new Eina.Iterator(_out_horizontal, false); - vertical = new Eina.Iterator(_out_vertical, false); + horizontal = new Eina.Iterator(_out_horizontal, false); + vertical = new Eina.Iterator(_out_vertical, false); } /// This property defines the stretchable pixels region of an image. /// When the regions are set by the user, the method will walk the iterators once and then destroy them. When the regions are retrieved by the user, it is his responsibility to destroy the iterators.. It will remember the information for the lifetime of the object. It will ignore all value of , and . To reset the object you can just pass null to both horizontal and vertical at the same time. /// Representation of area that are stretchable in the image horizontal space. /// Representation of area that are stretchable in the image vertical space. /// return an error code if the stretch_region provided are incorrect. - public Eina.Error SetStretchRegion(Eina.Iterator horizontal, Eina.Iterator vertical) { + public Eina.Error SetStretchRegion(Eina.Iterator horizontal, Eina.Iterator vertical) { var _in_horizontal = horizontal.Handle; var _in_vertical = vertical.Handle; var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_stretch_region_set_ptr.Value.Delegate(this.NativeHandle,_in_horizontal, _in_vertical); @@ -614,6 +690,18 @@ sealed public class IImageConcrete : get { return GetScaleType(); } set { SetScaleType(value); } } + /// If true, the image may be scaled to a larger size. If false, the image will never be resized larger than its native size. This is set to true by default. + /// Allow image upscaling + public bool CanUpscale { + get { return GetCanUpscale(); } + set { SetCanUpscale(value); } + } + /// If true, the image may be scaled to a smaller size. If false, the image will never be resized smaller than its native size. This is set to true by default. + /// Allow image downscaling + public bool CanDownscale { + get { return GetCanDownscale(); } + set { SetCanDownscale(value); } + } /// The native width/height ratio of the image. /// The image's ratio. public double Ratio { @@ -627,6 +715,28 @@ sealed public class IImageConcrete : public Eina.Rect ContentRegion { get { return GetContentRegion(); } } + /// Dimensions of this image's border, a region that does not scale with the center area. + /// When EFL renders an image, its source may be scaled to fit the size of the object. This function sets an area from the borders of the image inwards which is not to be scaled. This function is useful for making frames and for widget theming, where, for example, buttons may be of varying sizes, but their border size must remain constant. + /// + /// The units used for l, r, t and b are canvas units (pixels). + /// + /// Note: The border region itself may be scaled by the function. + /// + /// Note: By default, image objects have no borders set, i.e. l, r, t and b start as 0. + /// + /// Note: Similar to the concepts of 9-patch images or cap insets. + /// The border's left width. + public (int, int, int, int) Border { + get { + int _out_l = default(int); + int _out_r = default(int); + int _out_t = default(int); + int _out_b = default(int); + GetBorder(out _out_l,out _out_r,out _out_t,out _out_b); + return (_out_l,_out_r,_out_t,_out_b); + } + set { SetBorder( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Scaling factor applied to the image borders. /// This value multiplies the size of the when scaling an object. /// @@ -645,6 +755,18 @@ sealed public class IImageConcrete : get { return GetBorderCenterFill(); } set { SetBorderCenterFill(value); } } + /// This property defines the stretchable pixels region of an image. + /// When the regions are set by the user, the method will walk the iterators once and then destroy them. When the regions are retrieved by the user, it is his responsibility to destroy the iterators.. It will remember the information for the lifetime of the object. It will ignore all value of , and . To reset the object you can just pass null to both horizontal and vertical at the same time. + /// Representation of area that are stretchable in the image horizontal space. + public (Eina.Iterator, Eina.Iterator) StretchRegion { + get { + Eina.Iterator _out_horizontal = default(Eina.Iterator); + Eina.Iterator _out_vertical = default(Eina.Iterator); + GetStretchRegion(out _out_horizontal,out _out_vertical); + return (_out_horizontal,_out_vertical); + } + set { SetStretchRegion( value.Item1, value.Item2); } + } /// This represents the size of the original image in pixels. /// This may be different from the actual geometry on screen or even the size of the loaded pixel buffer. This is the size of the image as stored in the original file. /// @@ -728,6 +850,46 @@ sealed public class IImageConcrete : descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_set_static_delegate) }); } + if (efl_gfx_image_can_upscale_get_static_delegate == null) + { + efl_gfx_image_can_upscale_get_static_delegate = new efl_gfx_image_can_upscale_get_delegate(can_upscale_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetCanUpscale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_can_upscale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_can_upscale_get_static_delegate) }); + } + + if (efl_gfx_image_can_upscale_set_static_delegate == null) + { + efl_gfx_image_can_upscale_set_static_delegate = new efl_gfx_image_can_upscale_set_delegate(can_upscale_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetCanUpscale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_can_upscale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_can_upscale_set_static_delegate) }); + } + + if (efl_gfx_image_can_downscale_get_static_delegate == null) + { + efl_gfx_image_can_downscale_get_static_delegate = new efl_gfx_image_can_downscale_get_delegate(can_downscale_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetCanDownscale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_can_downscale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_can_downscale_get_static_delegate) }); + } + + if (efl_gfx_image_can_downscale_set_static_delegate == null) + { + efl_gfx_image_can_downscale_set_static_delegate = new efl_gfx_image_can_downscale_set_delegate(can_downscale_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetCanDownscale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_can_downscale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_can_downscale_set_static_delegate) }); + } + if (efl_gfx_image_ratio_get_static_delegate == null) { efl_gfx_image_ratio_get_static_delegate = new efl_gfx_image_ratio_get_delegate(ratio_get); @@ -1041,6 +1203,148 @@ sealed public class IImageConcrete : private static efl_gfx_image_scale_type_set_delegate efl_gfx_image_scale_type_set_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_can_upscale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_can_upscale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_can_upscale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_can_upscale_get"); + + private static bool can_upscale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_can_upscale_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IImage)ws.Target).GetCanUpscale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_can_upscale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_can_upscale_get_delegate efl_gfx_image_can_upscale_get_static_delegate; + + + private delegate void efl_gfx_image_can_upscale_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool upscale); + + + public delegate void efl_gfx_image_can_upscale_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool upscale); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_can_upscale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_can_upscale_set"); + + private static void can_upscale_set(System.IntPtr obj, System.IntPtr pd, bool upscale) + { + Eina.Log.Debug("function efl_gfx_image_can_upscale_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((IImage)ws.Target).SetCanUpscale(upscale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_can_upscale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), upscale); + } + } + + private static efl_gfx_image_can_upscale_set_delegate efl_gfx_image_can_upscale_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_can_downscale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_can_downscale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_can_downscale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_can_downscale_get"); + + private static bool can_downscale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_can_downscale_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IImage)ws.Target).GetCanDownscale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_can_downscale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_can_downscale_get_delegate efl_gfx_image_can_downscale_get_static_delegate; + + + private delegate void efl_gfx_image_can_downscale_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool downscale); + + + public delegate void efl_gfx_image_can_downscale_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool downscale); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_can_downscale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_can_downscale_set"); + + private static void can_downscale_set(System.IntPtr obj, System.IntPtr pd, bool downscale) + { + Eina.Log.Debug("function efl_gfx_image_can_downscale_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((IImage)ws.Target).SetCanDownscale(downscale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_can_downscale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), downscale); + } + } + + private static efl_gfx_image_can_downscale_set_delegate efl_gfx_image_can_downscale_set_static_delegate; + private delegate double efl_gfx_image_ratio_get_delegate(System.IntPtr obj, System.IntPtr pd); @@ -1339,8 +1643,8 @@ sealed public class IImageConcrete : var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - Eina.Iterator _out_horizontal = default(Eina.Iterator); - Eina.Iterator _out_vertical = default(Eina.Iterator); + Eina.Iterator _out_horizontal = default(Eina.Iterator); + Eina.Iterator _out_vertical = default(Eina.Iterator); try { @@ -1378,8 +1682,8 @@ sealed public class IImageConcrete : var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - var _in_horizontal = new Eina.Iterator(horizontal, false); - var _in_vertical = new Eina.Iterator(vertical, false); + var _in_horizontal = new Eina.Iterator(horizontal, false); + var _in_vertical = new Eina.Iterator(vertical, false); Eina.Error _ret_var = default(Eina.Error); try { @@ -1624,6 +1928,50 @@ sealed public class IImageConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_GfxIImageConcrete_ExtensionMethods { + public static Efl.BindableProperty SmoothScale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IImage { + return new Efl.BindableProperty("smooth_scale", fac); + } + + public static Efl.BindableProperty ScaleType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IImage { + return new Efl.BindableProperty("scale_type", fac); + } + + public static Efl.BindableProperty CanUpscale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IImage { + return new Efl.BindableProperty("can_upscale", fac); + } + + public static Efl.BindableProperty CanDownscale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IImage { + return new Efl.BindableProperty("can_downscale", fac); + } + + + + + public static Efl.BindableProperty BorderScale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IImage { + return new Efl.BindableProperty("border_scale", fac); + } + + public static Efl.BindableProperty BorderCenterFill(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IImage { + return new Efl.BindableProperty("border_center_fill", fac); + } + + + + public static Efl.BindableProperty ContentHint(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IImage { + return new Efl.BindableProperty("content_hint", fac); + } + + public static Efl.BindableProperty ScaleHint(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IImage { + return new Efl.BindableProperty("scale_hint", fac); + } + + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Gfx { @@ -1672,16 +2020,20 @@ namespace Gfx { [Efl.Eo.BindingEntity] public enum ImageScaleType { +/// Use the image's natural size. +None = 0, /// Scale the image so that it matches the object's area exactly. The image's aspect ratio might be changed. -Fill = 0, -/// Scale the image so that it fits inside the object's area while maintaining the aspect ratio. At least one of the dimensions of the image should be equal to the corresponding dimension of the object. -FitInside = 1, -/// Scale the image so that it covers the entire object area while maintaining the aspect ratio. At least one of the dimensions of the image should be equal to the corresponding dimension of the object. -FitOutside = 2, +Fill = 1, +/// Scale the image so that it fits completely inside the object's area while maintaining the aspect ratio. At least one of the dimensions of the image will be equal to the corresponding dimension of the object. +Fit = 2, +/// Scale the image so that it covers the entire object area horizontally while maintaining the aspect ratio. The image may become taller than the object. +FitWidth = 3, +/// Scale the image so that it covers the entire object area vertically while maintaining the aspect ratio. The image may become wider than the object. +FitHeight = 4, +/// Scale the image so that it covers the entire object area on one axis while maintaining the aspect ratio, preferring whichever axis is largest. The image may become larger than the object. +Expand = 5, /// Tile image at its original size. -Tile = 3, -/// Not scale the image -None = 4, +Tile = 6, } } @@ -1692,20 +2044,20 @@ namespace Efl { namespace Gfx { -namespace Image { - /// This struct holds the description of a stretchable region in one dimension (vertical or horizontal). Used when scaling an image. /// offset + length should be smaller than image size in that dimension. [StructLayout(LayoutKind.Sequential)] [Efl.Eo.BindingEntity] -public struct StretchRegion +public struct ImageStretchRegion { /// First pixel of the stretchable region, starting at 0. public uint Offset; /// Length of the stretchable region in pixels. public uint Length; - ///Constructor for StretchRegion. - public StretchRegion( + /// Constructor for ImageStretchRegion. + /// First pixel of the stretchable region, starting at 0.; + /// Length of the stretchable region in pixels.; + public ImageStretchRegion( uint Offset = default(uint), uint Length = default(uint) ) { @@ -1713,17 +2065,17 @@ public struct StretchRegion this.Length = Length; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. - public static implicit operator StretchRegion(IntPtr ptr) + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. + public static implicit operator ImageStretchRegion(IntPtr ptr) { - var tmp = (StretchRegion.NativeStruct)Marshal.PtrToStructure(ptr, typeof(StretchRegion.NativeStruct)); + var tmp = (ImageStretchRegion.NativeStruct)Marshal.PtrToStructure(ptr, typeof(ImageStretchRegion.NativeStruct)); return tmp; } #pragma warning disable CS1591 - ///Internal wrapper for struct StretchRegion. + /// Internal wrapper for struct ImageStretchRegion. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -1731,19 +2083,19 @@ public struct StretchRegion public uint Offset; public uint Length; - ///Implicit conversion to the internal/marshalling representation. - public static implicit operator StretchRegion.NativeStruct(StretchRegion _external_struct) + /// Implicit conversion to the internal/marshalling representation. + public static implicit operator ImageStretchRegion.NativeStruct(ImageStretchRegion _external_struct) { - var _internal_struct = new StretchRegion.NativeStruct(); + var _internal_struct = new ImageStretchRegion.NativeStruct(); _internal_struct.Offset = _external_struct.Offset; _internal_struct.Length = _external_struct.Length; return _internal_struct; } - ///Implicit conversion to the managed representation. - public static implicit operator StretchRegion(StretchRegion.NativeStruct _internal_struct) + /// Implicit conversion to the managed representation. + public static implicit operator ImageStretchRegion(ImageStretchRegion.NativeStruct _internal_struct) { - var _external_struct = new StretchRegion(); + var _external_struct = new ImageStretchRegion(); _external_struct.Offset = _internal_struct.Offset; _external_struct.Length = _internal_struct.Length; return _external_struct; @@ -1759,5 +2111,3 @@ public struct StretchRegion } -} - diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_image_load_controller.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_image_load_controller.eo.cs old mode 100644 new mode 100755 index c438536b4..d3738464c --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_image_load_controller.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_image_load_controller.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Gfx { /// Common APIs for all loadable 2D images. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Gfx.IImageLoadControllerConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IImageLoadController : @@ -77,6 +79,7 @@ void LoadAsyncCancel(); /// Called when he image was loaded event EventHandler LoadDoneEvt; /// Called when an error happened during image loading + /// event EventHandler LoadErrorEvt; /// The load size of an image. /// The image will be loaded into memory as if it was the specified size instead of its original size. This can save a lot of memory and is important for scalable types like svg. @@ -84,33 +87,33 @@ void LoadAsyncCancel(); /// By default, the load size is not specified, so it is 0x0. /// The image load size. Eina.Size2D LoadSize { - get ; - set ; + get; + set; } /// Get the DPI resolution of a loaded image object in the canvas. /// This function returns the DPI resolution of the given canvas image. /// The DPI resolution. double LoadDpi { - get ; - set ; + get; + set; } /// Indicates whether the property is supported for the current file. /// true if region load of the image is supported, false otherwise bool LoadRegionSupport { - get ; + get; } /// Retrieve the coordinates of a given image object's selective (source image) load region. /// A region of the image. Eina.Rect LoadRegion { - get ; - set ; + get; + set; } /// Defines whether the orientation information in the image file should be honored. /// The orientation can for instance be set in the EXIF tags of a JPEG image. If this flag is false, then the orientation will be ignored at load time, otherwise the image will be loaded with the proper orientation. /// true means that it should honor the orientation information. bool LoadOrientation { - get ; - set ; + get; + set; } /// The scale down factor is a divider on the original image size. /// Setting the scale down factor can reduce load time and memory usage at the cost of having a scaled down image in memory. @@ -120,30 +123,32 @@ void LoadAsyncCancel(); /// Powers of two (2, 4, 8) are best supported (especially with JPEG) /// The scale down dividing factor. int LoadScaleDown { - get ; - set ; + get; + set; } /// Initial load should skip header check and leave it all to data load /// If this is true, then future loads of images will defer header loading to a preload stage and/or data load later on rather than at the start when the load begins (e.g. when file is set). /// Will be true if header is to be skipped. bool LoadSkipHeader { - get ; - set ; + get; + set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IImageLoadControllerLoadErrorEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when an error happened during image loading public Eina.Error arg { get; set; } } /// Common APIs for all loadable 2D images. -sealed public class IImageLoadControllerConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IImageLoadControllerConcrete : Efl.Eo.EoWrapper , IImageLoadController { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -159,7 +164,8 @@ sealed public class IImageLoadControllerConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IImageLoadControllerConcrete(ConstructingHandle ch) : base(ch) { @@ -213,7 +219,7 @@ sealed public class IImageLoadControllerConcrete : } } } - ///Method to raise event LoadDoneEvt. + /// Method to raise event LoadDoneEvt. public void OnLoadDoneEvt(EventArgs e) { var key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_DONE"; @@ -227,6 +233,7 @@ sealed public class IImageLoadControllerConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when an error happened during image loading + /// public event EventHandler LoadErrorEvt { add @@ -266,7 +273,7 @@ sealed public class IImageLoadControllerConcrete : } } } - ///Method to raise event LoadErrorEvt. + /// Method to raise event LoadErrorEvt. public void OnLoadErrorEvt(Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args e) { var key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_ERROR"; @@ -1171,3 +1178,34 @@ sealed public class IImageLoadControllerConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_GfxIImageLoadControllerConcrete_ExtensionMethods { + public static Efl.BindableProperty LoadSize(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IImageLoadController { + return new Efl.BindableProperty("load_size", fac); + } + + public static Efl.BindableProperty LoadDpi(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IImageLoadController { + return new Efl.BindableProperty("load_dpi", fac); + } + + + public static Efl.BindableProperty LoadRegion(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IImageLoadController { + return new Efl.BindableProperty("load_region", fac); + } + + public static Efl.BindableProperty LoadOrientation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IImageLoadController { + return new Efl.BindableProperty("load_orientation", fac); + } + + public static Efl.BindableProperty LoadScaleDown(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IImageLoadController { + return new Efl.BindableProperty("load_scale_down", fac); + } + + public static Efl.BindableProperty LoadSkipHeader(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IImageLoadController { + return new Efl.BindableProperty("load_skip_header", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_image_orientable.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_image_orientable.eo.cs old mode 100644 new mode 100755 index 2996d4da0..7511d8bb7 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_image_orientable.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_image_orientable.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -27,17 +28,17 @@ void SetImageOrientation(Efl.Gfx.ImageOrientation dir); /// This can be used to set the rotation on an image or a window, for instance. /// The final orientation of the object. Efl.Gfx.ImageOrientation ImageOrientation { - get ; - set ; + get; + set; } } /// Interface for objects which can be oriented. -sealed public class IImageOrientableConcrete : +sealed public class IImageOrientableConcrete : Efl.Eo.EoWrapper , IImageOrientable { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -53,7 +54,8 @@ sealed public class IImageOrientableConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IImageOrientableConcrete(ConstructingHandle ch) : base(ch) { @@ -216,6 +218,16 @@ sealed public class IImageOrientableConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_GfxIImageOrientableConcrete_ExtensionMethods { + public static Efl.BindableProperty ImageOrientation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IImageOrientable { + return new Efl.BindableProperty("image_orientation", fac); + } + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Gfx { diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_mapping.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_mapping.eo.cs old mode 100644 new mode 100755 index 3ee965b33..7f56fb621 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_mapping.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_mapping.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -297,23 +298,23 @@ void Perspective3dAbsolute(double px, double py, double z0, double foc); /// (Since EFL 1.22) /// The number of points of map int MappingPointCount { - get ; - set ; + get; + set; } /// Clockwise state of a map (read-only). /// This determines if the output points (X and Y. Z is not used) are clockwise or counter-clockwise. This can be used for "back-face culling". This is where you hide objects that "face away" from you. In this case objects that are not clockwise. /// (Since EFL 1.22) /// true if clockwise, false if counter clockwise bool MappingClockwise { - get ; + get; } /// Smoothing state for map rendering. /// This sets smoothing for map rendering. If the object is a type that has its own smoothing settings, then both the smooth settings for this object and the map must be turned off. By default smooth maps are enabled. /// (Since EFL 1.22) /// true by default. bool MappingSmooth { - get ; - set ; + get; + set; } /// Alpha flag for map rendering. /// This sets alpha flag for map rendering. If the object is a type that has its own alpha settings, then this will take precedence. Only image objects support this currently ( and its friends). Setting this to off stops alpha blending of the map area, and is useful if you know the object and/or all sub-objects is 100% solid. @@ -322,8 +323,8 @@ void Perspective3dAbsolute(double px, double py, double z0, double foc); /// (Since EFL 1.22) /// true by default. bool MappingAlpha { - get ; - set ; + get; + set; } } /// Texture UV mapping for all objects (rotation, perspective, 3d, ...). @@ -335,12 +336,12 @@ void Perspective3dAbsolute(double px, double py, double z0, double foc); /// /// At the moment of writing, maps can only have 4 points (no more, no less). /// (Since EFL 1.22) -sealed public class IMappingConcrete : +sealed public class IMappingConcrete : Efl.Eo.EoWrapper , IMapping { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -356,7 +357,8 @@ sealed public class IMappingConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IMappingConcrete(ConstructingHandle ch) : base(ch) { @@ -2062,3 +2064,25 @@ sealed public class IMappingConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_GfxIMappingConcrete_ExtensionMethods { + public static Efl.BindableProperty MappingPointCount(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IMapping { + return new Efl.BindableProperty("mapping_point_count", fac); + } + + + public static Efl.BindableProperty MappingSmooth(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IMapping { + return new Efl.BindableProperty("mapping_smooth", fac); + } + + public static Efl.BindableProperty MappingAlpha(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IMapping { + return new Efl.BindableProperty("mapping_alpha", fac); + } + + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_path.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_path.eo.cs old mode 100644 new mode 100755 index c86006129..913874c0e --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_path.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_path.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Gfx { /// EFL graphics path object interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Gfx.IPathConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IPath : @@ -143,14 +145,33 @@ void Reserve(uint cmd_count, uint pts_count); /// Request to update the path object. /// One path object may get appending several path calls (such as append_cubic, append_rect, etc) to construct the final path data. Here commit means all path data is prepared and now object could update its own internal status based on the last path information. void Commit(); - } + /// Set the list of commands and points to be used to create the content of path. + /// Command list + (Efl.Gfx.PathCommandType, double) Path { + get; + set; + } + /// Path length property + (uint, uint) Length { + get; + } + /// Current point coordinates + (double, double) Current { + get; + } + /// Current control point coordinates + (double, double) CurrentCtrl { + get; + } +} /// EFL graphics path object interface -sealed public class IPathConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IPathConcrete : Efl.Eo.EoWrapper , IPath { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -166,7 +187,8 @@ sealed public class IPathConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IPathConcrete(ConstructingHandle ch) : base(ch) { @@ -391,6 +413,44 @@ sealed public class IPathConcrete : Efl.Gfx.IPathConcrete.NativeMethods.efl_gfx_path_commit_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } + /// Set the list of commands and points to be used to create the content of path. + /// Command list + public (Efl.Gfx.PathCommandType, double) Path { + get { + Efl.Gfx.PathCommandType _out_op = default(Efl.Gfx.PathCommandType); + double _out_points = default(double); + GetPath(out _out_op,out _out_points); + return (_out_op,_out_points); + } + set { SetPath( value.Item1, value.Item2); } + } + /// Path length property + public (uint, uint) Length { + get { + uint _out_commands = default(uint); + uint _out_points = default(uint); + GetLength(out _out_commands,out _out_points); + return (_out_commands,_out_points); + } + } + /// Current point coordinates + public (double, double) Current { + get { + double _out_x = default(double); + double _out_y = default(double); + GetCurrent(out _out_x,out _out_y); + return (_out_x,_out_y); + } + } + /// Current control point coordinates + public (double, double) CurrentCtrl { + get { + double _out_x = default(double); + double _out_y = default(double); + GetCurrentCtrl(out _out_x,out _out_y); + return (_out_x,_out_y); + } + } private static IntPtr GetEflClassStatic() { return Efl.Gfx.IPathConcrete.efl_gfx_path_mixin_get(); @@ -1516,3 +1576,13 @@ sealed public class IPathConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_GfxIPathConcrete_ExtensionMethods { + + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_shape.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_shape.eo.cs old mode 100644 new mode 100755 index df28224d1..5fca4e87e --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_shape.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_shape.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Gfx { /// EFL graphics shape object interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Gfx.IShapeConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IShape : @@ -72,58 +74,84 @@ Efl.Gfx.Join GetStrokeJoin(); /// See also . /// Join style to use, default is void SetStrokeJoin(Efl.Gfx.Join j); + /// The stroke_miterlimit is a presentation defining a limit on the ratio of the miter length to the stroke-width used to draw a miter join. +/// Limit value on the ratio of the miter. +double GetStrokeMiterlimit(); + /// The stroke_miterlimit is a presentation defining a limit on the ratio of the miter length to the stroke-width used to draw a miter join. +/// Limit value on the ratio of the miter. +void SetStrokeMiterlimit(double miterlimit); /// The fill rule of the given shape object. or . /// The current fill rule of the shape object. One of or Efl.Gfx.FillRule GetFillRule(); /// The fill rule of the given shape object. or . /// The current fill rule of the shape object. One of or void SetFillRule(Efl.Gfx.FillRule fill_rule); - /// The stroke scale to be used for stroking the path. Will be used along with stroke width property. + /// The stroke scale to be used for stroking the path. Will be used along with stroke width property. /// Stroke scale value double StrokeScale { - get ; - set ; + get; + set; + } + /// The color to be used for stroking the path. + /// The red component of the given color. + (int, int, int, int) StrokeColor { + get; + set; } /// The stroke width to be used for stroking the path. /// Stroke width to be used double StrokeWidth { - get ; - set ; + get; + set; } /// Not implemented /// Centered stroke location double StrokeLocation { - get ; - set ; + get; + set; + } + /// Set stroke dash pattern. A dash pattern is specified by dashes, an array of . values(length, gap) must be positive. + /// See also + /// Stroke dash + (Efl.Gfx.Dash, uint) StrokeDash { + get; + set; } /// The cap style to be used for stroking the path. The cap will be used for capping the end point of a open subpath. /// See also . /// Cap style to use, default is Efl.Gfx.Cap StrokeCap { - get ; - set ; + get; + set; } /// The join style to be used for stroking the path. The join style will be used for joining the two line segment while stroking the path. /// See also . /// Join style to use, default is Efl.Gfx.Join StrokeJoin { - get ; - set ; + get; + set; + } + /// The stroke_miterlimit is a presentation defining a limit on the ratio of the miter length to the stroke-width used to draw a miter join. + /// Limit value on the ratio of the miter. + double StrokeMiterlimit { + get; + set; } /// The fill rule of the given shape object. or . /// The current fill rule of the shape object. One of or Efl.Gfx.FillRule FillRule { - get ; - set ; + get; + set; } } /// EFL graphics shape object interface -sealed public class IShapeConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IShapeConcrete : Efl.Eo.EoWrapper , IShape , Efl.Gfx.IPath { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -139,7 +167,8 @@ sealed public class IShapeConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IShapeConcrete(ConstructingHandle ch) : base(ch) { @@ -261,6 +290,19 @@ sealed public class IShapeConcrete : Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_join_set_ptr.Value.Delegate(this.NativeHandle,j); Eina.Error.RaiseIfUnhandledException(); } + /// The stroke_miterlimit is a presentation defining a limit on the ratio of the miter length to the stroke-width used to draw a miter join. + /// Limit value on the ratio of the miter. + public double GetStrokeMiterlimit() { + var _ret_var = Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_miterlimit_get_ptr.Value.Delegate(this.NativeHandle); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// The stroke_miterlimit is a presentation defining a limit on the ratio of the miter length to the stroke-width used to draw a miter join. + /// Limit value on the ratio of the miter. + public void SetStrokeMiterlimit(double miterlimit) { + Efl.Gfx.IShapeConcrete.NativeMethods.efl_gfx_shape_stroke_miterlimit_set_ptr.Value.Delegate(this.NativeHandle,miterlimit); + Eina.Error.RaiseIfUnhandledException(); + } /// The fill rule of the given shape object. or . /// The current fill rule of the shape object. One of or public Efl.Gfx.FillRule GetFillRule() { @@ -490,6 +532,19 @@ sealed public class IShapeConcrete : get { return GetStrokeScale(); } set { SetStrokeScale(value); } } + /// The color to be used for stroking the path. + /// The red component of the given color. + public (int, int, int, int) StrokeColor { + get { + int _out_r = default(int); + int _out_g = default(int); + int _out_b = default(int); + int _out_a = default(int); + GetStrokeColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetStrokeColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// The stroke width to be used for stroking the path. /// Stroke width to be used public double StrokeWidth { @@ -502,6 +557,18 @@ sealed public class IShapeConcrete : get { return GetStrokeLocation(); } set { SetStrokeLocation(value); } } + /// Set stroke dash pattern. A dash pattern is specified by dashes, an array of . values(length, gap) must be positive. + /// See also + /// Stroke dash + public (Efl.Gfx.Dash, uint) StrokeDash { + get { + Efl.Gfx.Dash _out_dash = default(Efl.Gfx.Dash); + uint _out_length = default(uint); + GetStrokeDash(out _out_dash,out _out_length); + return (_out_dash,_out_length); + } + set { SetStrokeDash(ref value.Item1, value.Item2); } + } /// The cap style to be used for stroking the path. The cap will be used for capping the end point of a open subpath. /// See also . /// Cap style to use, default is @@ -516,12 +583,56 @@ sealed public class IShapeConcrete : get { return GetStrokeJoin(); } set { SetStrokeJoin(value); } } + /// The stroke_miterlimit is a presentation defining a limit on the ratio of the miter length to the stroke-width used to draw a miter join. + /// Limit value on the ratio of the miter. + public double StrokeMiterlimit { + get { return GetStrokeMiterlimit(); } + set { SetStrokeMiterlimit(value); } + } /// The fill rule of the given shape object. or . /// The current fill rule of the shape object. One of or public Efl.Gfx.FillRule FillRule { get { return GetFillRule(); } set { SetFillRule(value); } } + /// Set the list of commands and points to be used to create the content of path. + /// Command list + public (Efl.Gfx.PathCommandType, double) Path { + get { + Efl.Gfx.PathCommandType _out_op = default(Efl.Gfx.PathCommandType); + double _out_points = default(double); + GetPath(out _out_op,out _out_points); + return (_out_op,_out_points); + } + set { SetPath( value.Item1, value.Item2); } + } + /// Path length property + public (uint, uint) Length { + get { + uint _out_commands = default(uint); + uint _out_points = default(uint); + GetLength(out _out_commands,out _out_points); + return (_out_commands,_out_points); + } + } + /// Current point coordinates + public (double, double) Current { + get { + double _out_x = default(double); + double _out_y = default(double); + GetCurrent(out _out_x,out _out_y); + return (_out_x,_out_y); + } + } + /// Current control point coordinates + public (double, double) CurrentCtrl { + get { + double _out_x = default(double); + double _out_y = default(double); + GetCurrentCtrl(out _out_x,out _out_y); + return (_out_x,_out_y); + } + } private static IntPtr GetEflClassStatic() { return Efl.Gfx.IShapeConcrete.efl_gfx_shape_mixin_get(); @@ -678,6 +789,26 @@ sealed public class IShapeConcrete : descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_join_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_join_set_static_delegate) }); } + if (efl_gfx_shape_stroke_miterlimit_get_static_delegate == null) + { + efl_gfx_shape_stroke_miterlimit_get_static_delegate = new efl_gfx_shape_stroke_miterlimit_get_delegate(stroke_miterlimit_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetStrokeMiterlimit") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_miterlimit_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_miterlimit_get_static_delegate) }); + } + + if (efl_gfx_shape_stroke_miterlimit_set_static_delegate == null) + { + efl_gfx_shape_stroke_miterlimit_set_static_delegate = new efl_gfx_shape_stroke_miterlimit_set_delegate(stroke_miterlimit_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetStrokeMiterlimit") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_shape_stroke_miterlimit_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_shape_stroke_miterlimit_set_static_delegate) }); + } + if (efl_gfx_shape_fill_rule_get_static_delegate == null) { efl_gfx_shape_fill_rule_get_static_delegate = new efl_gfx_shape_fill_rule_get_delegate(fill_rule_get); @@ -1449,6 +1580,77 @@ sealed public class IShapeConcrete : private static efl_gfx_shape_stroke_join_set_delegate efl_gfx_shape_stroke_join_set_static_delegate; + private delegate double efl_gfx_shape_stroke_miterlimit_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_shape_stroke_miterlimit_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_miterlimit_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_miterlimit_get"); + + private static double stroke_miterlimit_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_miterlimit_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((IShape)ws.Target).GetStrokeMiterlimit(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_shape_stroke_miterlimit_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_shape_stroke_miterlimit_get_delegate efl_gfx_shape_stroke_miterlimit_get_static_delegate; + + + private delegate void efl_gfx_shape_stroke_miterlimit_set_delegate(System.IntPtr obj, System.IntPtr pd, double miterlimit); + + + public delegate void efl_gfx_shape_stroke_miterlimit_set_api_delegate(System.IntPtr obj, double miterlimit); + + public static Efl.Eo.FunctionWrapper efl_gfx_shape_stroke_miterlimit_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_shape_stroke_miterlimit_set"); + + private static void stroke_miterlimit_set(System.IntPtr obj, System.IntPtr pd, double miterlimit) + { + Eina.Log.Debug("function efl_gfx_shape_stroke_miterlimit_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((IShape)ws.Target).SetStrokeMiterlimit(miterlimit); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_shape_stroke_miterlimit_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), miterlimit); + } + } + + private static efl_gfx_shape_stroke_miterlimit_set_delegate efl_gfx_shape_stroke_miterlimit_set_static_delegate; + + private delegate Efl.Gfx.FillRule efl_gfx_shape_fill_rule_get_delegate(System.IntPtr obj, System.IntPtr pd); @@ -2377,3 +2579,43 @@ sealed public class IShapeConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_GfxIShapeConcrete_ExtensionMethods { + public static Efl.BindableProperty StrokeScale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IShape { + return new Efl.BindableProperty("stroke_scale", fac); + } + + + public static Efl.BindableProperty StrokeWidth(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IShape { + return new Efl.BindableProperty("stroke_width", fac); + } + + public static Efl.BindableProperty StrokeLocation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IShape { + return new Efl.BindableProperty("stroke_location", fac); + } + + + public static Efl.BindableProperty StrokeCap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IShape { + return new Efl.BindableProperty("stroke_cap", fac); + } + + public static Efl.BindableProperty StrokeJoin(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IShape { + return new Efl.BindableProperty("stroke_join", fac); + } + + public static Efl.BindableProperty StrokeMiterlimit(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IShape { + return new Efl.BindableProperty("stroke_miterlimit", fac); + } + + public static Efl.BindableProperty FillRule(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IShape { + return new Efl.BindableProperty("fill_rule", fac); + } + + + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_size_class.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_size_class.eo.cs old mode 100644 new mode 100755 index 15d0616b1..0045164d9 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_size_class.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_size_class.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Gfx { /// Efl Gfx Size Class interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Gfx.ISizeClassConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface ISizeClass : @@ -41,12 +43,13 @@ bool SetSizeClass(System.String size_class, int minw, int minh, int maxw, int ma void DelSizeClass(System.String size_class); } /// Efl Gfx Size Class interface -sealed public class ISizeClassConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class ISizeClassConcrete : Efl.Eo.EoWrapper , ISizeClass { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -62,7 +65,8 @@ sealed public class ISizeClassConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ISizeClassConcrete(ConstructingHandle ch) : base(ch) { @@ -284,3 +288,10 @@ sealed public class ISizeClassConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_GfxISizeClassConcrete_ExtensionMethods { + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_stack.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_stack.eo.cs old mode 100644 new mode 100755 index 85b968637..cccd94144 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_stack.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_stack.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -118,8 +119,8 @@ void LowerToBottom(); /// (Since EFL 1.22) /// The number of the layer to place the object on. Must be between and . short Layer { - get ; - set ; + get; + set; } /// Get the Evas object stacked right below obj /// This function will traverse layers in its search, if there are objects on layers below the one obj is placed at. @@ -128,7 +129,7 @@ void LowerToBottom(); /// (Since EFL 1.22) /// The object directly below obj, if any, or null, if none. Efl.Gfx.IStack Below { - get ; + get; } /// Get the Evas object stacked right above obj /// This function will traverse layers in its search, if there are objects on layers above the one obj is placed at. @@ -137,17 +138,17 @@ void LowerToBottom(); /// (Since EFL 1.22) /// The object directly below obj, if any, or null, if none. Efl.Gfx.IStack Above { - get ; + get; } } /// Efl graphics stack interface /// (Since EFL 1.22) -sealed public class IStackConcrete : +sealed public class IStackConcrete : Efl.Eo.EoWrapper , IStack { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -163,7 +164,8 @@ sealed public class IStackConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IStackConcrete(ConstructingHandle ch) : base(ch) { @@ -218,7 +220,7 @@ sealed public class IStackConcrete : } } } - ///Method to raise event StackingChangedEvt. + /// Method to raise event StackingChangedEvt. public void OnStackingChangedEvt(EventArgs e) { var key = "_EFL_GFX_ENTITY_EVENT_STACKING_CHANGED"; @@ -750,3 +752,15 @@ sealed public class IStackConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_GfxIStackConcrete_ExtensionMethods { + public static Efl.BindableProperty Layer(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IStack { + return new Efl.BindableProperty("layer", fac); + } + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_text_class.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_text_class.eo.cs old mode 100644 new mode 100755 index 46320c558..03b3e93b2 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_text_class.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_text_class.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Gfx { /// Efl Gfx Text Class interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Gfx.ITextClassConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface ITextClass : @@ -37,12 +39,13 @@ bool SetTextClass(System.String text_class, System.String font, Efl.Font.Size si void DelTextClass(System.String text_class); } /// Efl Gfx Text Class interface -sealed public class ITextClassConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class ITextClassConcrete : Efl.Eo.EoWrapper , ITextClass { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -58,7 +61,8 @@ sealed public class ITextClassConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ITextClassConcrete(ConstructingHandle ch) : base(ch) { @@ -278,3 +282,10 @@ sealed public class ITextClassConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_GfxITextClassConcrete_ExtensionMethods { + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_types.eot.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_types.eot.cs old mode 100644 new mode 100755 index fbd718772..070faff67 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_types.eot.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_types.eot.cs @@ -338,7 +338,9 @@ public struct Dash public double Length; /// Distance between two dashes. public double Gap; - ///Constructor for Dash. + /// Constructor for Dash. + /// Dash drawing length.; + /// Distance between two dashes.; public Dash( double Length = default(double), double Gap = default(double) ) @@ -347,8 +349,8 @@ public struct Dash this.Gap = Gap; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator Dash(IntPtr ptr) { var tmp = (Dash.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Dash.NativeStruct)); @@ -357,7 +359,7 @@ public struct Dash #pragma warning disable CS1591 - ///Internal wrapper for struct Dash. + /// Internal wrapper for struct Dash. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -365,7 +367,7 @@ public struct Dash public double Length; public double Gap; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator Dash.NativeStruct(Dash _external_struct) { var _internal_struct = new Dash.NativeStruct(); @@ -374,7 +376,7 @@ public struct Dash return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator Dash(Dash.NativeStruct _internal_struct) { var _external_struct = new Dash(); @@ -413,7 +415,12 @@ public struct GradientStop public int B; /// The component A color of the gradient stop public int A; - ///Constructor for GradientStop. + /// Constructor for GradientStop. + /// The location of the gradient stop within the gradient vector; + /// The component R color of the gradient stop; + /// The component G color of the gradient stop; + /// The component B color of the gradient stop; + /// The component A color of the gradient stop; public GradientStop( double Offset = default(double), int R = default(int), @@ -428,8 +435,8 @@ public struct GradientStop this.A = A; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator GradientStop(IntPtr ptr) { var tmp = (GradientStop.NativeStruct)Marshal.PtrToStructure(ptr, typeof(GradientStop.NativeStruct)); @@ -438,7 +445,7 @@ public struct GradientStop #pragma warning disable CS1591 - ///Internal wrapper for struct GradientStop. + /// Internal wrapper for struct GradientStop. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -452,7 +459,7 @@ public struct GradientStop public int B; public int A; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator GradientStop.NativeStruct(GradientStop _external_struct) { var _internal_struct = new GradientStop.NativeStruct(); @@ -464,7 +471,7 @@ public struct GradientStop return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator GradientStop(GradientStop.NativeStruct _internal_struct) { var _external_struct = new GradientStop(); @@ -503,7 +510,11 @@ public struct StrokeColor public int B; /// The component A color of the stroke public int A; - ///Constructor for StrokeColor. + /// Constructor for StrokeColor. + /// The component R color of the stroke; + /// The component G color of the stroke; + /// The component B color of the stroke; + /// The component A color of the stroke; public StrokeColor( int R = default(int), int G = default(int), @@ -516,8 +527,8 @@ public struct StrokeColor this.A = A; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator StrokeColor(IntPtr ptr) { var tmp = (StrokeColor.NativeStruct)Marshal.PtrToStructure(ptr, typeof(StrokeColor.NativeStruct)); @@ -526,7 +537,7 @@ public struct StrokeColor #pragma warning disable CS1591 - ///Internal wrapper for struct StrokeColor. + /// Internal wrapper for struct StrokeColor. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -538,7 +549,7 @@ public struct StrokeColor public int B; public int A; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator StrokeColor.NativeStruct(StrokeColor _external_struct) { var _internal_struct = new StrokeColor.NativeStruct(); @@ -549,7 +560,7 @@ public struct StrokeColor return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator StrokeColor(StrokeColor.NativeStruct _internal_struct) { var _external_struct = new StrokeColor(); @@ -587,16 +598,31 @@ public struct Stroke /// Stroke centered public double Centered; /// Stroke color + /// Internal structure for @Efl.Gfx.Stroke. public Efl.Gfx.StrokeColor Color; /// Stroke dash + /// Type describing dash. @Efl.Gfx.Shape.stroke_dash.set public Efl.Gfx.Dash Dash; /// Stroke dash length public uint Dash_length; /// Stroke cap + /// These values determine how the end of opened sub-paths are rendered in a stroke. @Efl.Gfx.Shape.stroke_cap.set public Efl.Gfx.Cap Cap; /// Stroke join + /// These values determine how two joining lines are rendered in a stroker. @Efl.Gfx.Shape.stroke_join.set public Efl.Gfx.Join Join; - ///Constructor for Stroke. + /// Stroke miterlimit + public double Miterlimit; + /// Constructor for Stroke. + /// Stroke scale; + /// Stroke width; + /// Stroke centered; + /// Stroke color; + /// Stroke dash; + /// Stroke dash length; + /// Stroke cap; + /// Stroke join; + /// Stroke miterlimit; public Stroke( double Scale = default(double), double Width = default(double), @@ -605,7 +631,8 @@ public struct Stroke Efl.Gfx.Dash Dash = default(Efl.Gfx.Dash), uint Dash_length = default(uint), Efl.Gfx.Cap Cap = default(Efl.Gfx.Cap), - Efl.Gfx.Join Join = default(Efl.Gfx.Join) ) + Efl.Gfx.Join Join = default(Efl.Gfx.Join), + double Miterlimit = default(double) ) { this.Scale = Scale; this.Width = Width; @@ -615,10 +642,11 @@ public struct Stroke this.Dash_length = Dash_length; this.Cap = Cap; this.Join = Join; + this.Miterlimit = Miterlimit; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator Stroke(IntPtr ptr) { var tmp = (Stroke.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Stroke.NativeStruct)); @@ -627,7 +655,7 @@ public struct Stroke #pragma warning disable CS1591 - ///Internal wrapper for struct Stroke. + /// Internal wrapper for struct Stroke. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -647,7 +675,9 @@ public struct Stroke public Efl.Gfx.Cap Cap; public Efl.Gfx.Join Join; - ///Implicit conversion to the internal/marshalling representation. + + public double Miterlimit; + /// Implicit conversion to the internal/marshalling representation. public static implicit operator Stroke.NativeStruct(Stroke _external_struct) { var _internal_struct = new Stroke.NativeStruct(); @@ -659,10 +689,11 @@ public struct Stroke _internal_struct.Dash_length = _external_struct.Dash_length; _internal_struct.Cap = _external_struct.Cap; _internal_struct.Join = _external_struct.Join; + _internal_struct.Miterlimit = _external_struct.Miterlimit; return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator Stroke(Stroke.NativeStruct _internal_struct) { var _external_struct = new Stroke(); @@ -674,6 +705,7 @@ public struct Stroke _external_struct.Dash_length = _internal_struct.Dash_length; _external_struct.Cap = _internal_struct.Cap; _external_struct.Join = _internal_struct.Join; + _external_struct.Miterlimit = _internal_struct.Miterlimit; return _external_struct; } @@ -697,16 +729,18 @@ namespace Gfx { public struct ShapePublic { /// Internal representation as stroke + /// Type defining stroke information. Describes the properties to define the path stroke. public Efl.Gfx.Stroke Stroke; - ///Constructor for ShapePublic. + /// Constructor for ShapePublic. + /// Internal representation as stroke; public ShapePublic( Efl.Gfx.Stroke Stroke = default(Efl.Gfx.Stroke) ) { this.Stroke = Stroke; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator ShapePublic(IntPtr ptr) { var tmp = (ShapePublic.NativeStruct)Marshal.PtrToStructure(ptr, typeof(ShapePublic.NativeStruct)); @@ -715,13 +749,13 @@ public struct ShapePublic #pragma warning disable CS1591 - ///Internal wrapper for struct ShapePublic. + /// Internal wrapper for struct ShapePublic. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { public Efl.Gfx.Stroke.NativeStruct Stroke; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator ShapePublic.NativeStruct(ShapePublic _external_struct) { var _internal_struct = new ShapePublic.NativeStruct(); @@ -729,7 +763,7 @@ public struct ShapePublic return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator ShapePublic(ShapePublic.NativeStruct _internal_struct) { var _external_struct = new ShapePublic(); @@ -760,15 +794,16 @@ public struct RenderPost { /// A list of rectangles that were updated in the canvas. public Eina.List Updated_area; - ///Constructor for RenderPost. + /// Constructor for RenderPost. + /// A list of rectangles that were updated in the canvas.; public RenderPost( Eina.List Updated_area = default(Eina.List) ) { this.Updated_area = Updated_area; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator RenderPost(IntPtr ptr) { var tmp = (RenderPost.NativeStruct)Marshal.PtrToStructure(ptr, typeof(RenderPost.NativeStruct)); @@ -777,13 +812,13 @@ public struct RenderPost #pragma warning disable CS1591 - ///Internal wrapper for struct RenderPost. + /// Internal wrapper for struct RenderPost. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { public System.IntPtr Updated_area; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator RenderPost.NativeStruct(RenderPost _external_struct) { var _internal_struct = new RenderPost.NativeStruct(); @@ -791,7 +826,7 @@ public struct RenderPost return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator RenderPost(RenderPost.NativeStruct _internal_struct) { var _external_struct = new RenderPost(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_gfx_view.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_gfx_view.eo.cs old mode 100644 new mode 100755 index a41fc5996..3f05a3308 --- a/internals/src/EflSharp/EflSharp/efl/efl_gfx_view.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_gfx_view.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Gfx { /// Efl graphics view interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Gfx.IViewConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IView : @@ -51,17 +53,18 @@ void SetViewSize(Eina.Size2D size); /// Refer to each implementing class specific documentation for more details. /// Size of the view. Eina.Size2D ViewSize { - get ; - set ; + get; + set; } } /// Efl graphics view interface -sealed public class IViewConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IViewConcrete : Efl.Eo.EoWrapper , IView { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -77,7 +80,8 @@ sealed public class IViewConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IViewConcrete(ConstructingHandle ch) : base(ch) { @@ -266,3 +270,13 @@ sealed public class IViewConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_GfxIViewConcrete_ExtensionMethods { + public static Efl.BindableProperty ViewSize(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Gfx.IView { + return new Efl.BindableProperty("view_size", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_input_clickable.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_input_clickable.eo.cs new file mode 100755 index 000000000..0664e37a5 --- /dev/null +++ b/internals/src/EflSharp/EflSharp/efl/efl_input_clickable.eo.cs @@ -0,0 +1,815 @@ +#define EFL_BETA +#pragma warning disable CS1591 +using System; +using System.Runtime.InteropServices; +using System.Collections.Generic; +using System.Linq; +using System.Threading; +using System.ComponentModel; +namespace Efl { + +namespace Input { + +/// Efl input clickable interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +[Efl.Input.IClickableConcrete.NativeMethods] +[Efl.Eo.BindingEntity] +public interface IClickable : + Efl.Eo.IWrapper, IDisposable +{ + /// This returns true if the given object is currently in event emission +bool GetInteraction(); + /// Change internal states that a button got pressed. +/// When the button is already pressed, this is silently ignored. +/// The number of the button. FIXME ensure to have the right interval of possible input +void Press(uint button); + /// Change internal states that a button got unpressed. +/// When the button is not pressed, this is silently ignored. +/// The number of the button. FIXME ensure to have the right interval of possible input +void Unpress(uint button); + /// This aborts the internal state after a press call. +/// This will stop the timer for longpress. And set the state of the clickable mixin back into the unpressed state. +void ResetButtonState(uint button); + /// This aborts ongoing longpress event. +/// That is, this will stop the timer for longpress. +void LongpressAbort(uint button); + /// Called when object is in sequence pressed and unpressed, by the primary button + /// + event EventHandler ClickedEvt; + /// Called when object is in sequence pressed and unpressed by any button. The button that triggered the event can be found in the event information. + /// + event EventHandler ClickedAnyEvt; + /// Called when the object is pressed, event_info is the button that got pressed + /// + event EventHandler PressedEvt; + /// Called when the object is no longer pressed, event_info is the button that got pressed + /// + event EventHandler UnpressedEvt; + /// Called when the object receives a long press, event_info is the button that got pressed + /// + event EventHandler LongpressedEvt; + /// This returns true if the given object is currently in event emission + bool Interaction { + get; + } +} +/// Event argument wrapper for event . +[Efl.Eo.BindingEntity] +public class IClickableClickedEvt_Args : EventArgs { + /// Actual event payload. + /// Called when object is in sequence pressed and unpressed, by the primary button + public Efl.Input.ClickableClicked arg { get; set; } +} +/// Event argument wrapper for event . +[Efl.Eo.BindingEntity] +public class IClickableClickedAnyEvt_Args : EventArgs { + /// Actual event payload. + /// Called when object is in sequence pressed and unpressed by any button. The button that triggered the event can be found in the event information. + public Efl.Input.ClickableClicked arg { get; set; } +} +/// Event argument wrapper for event . +[Efl.Eo.BindingEntity] +public class IClickablePressedEvt_Args : EventArgs { + /// Actual event payload. + /// Called when the object is pressed, event_info is the button that got pressed + public int arg { get; set; } +} +/// Event argument wrapper for event . +[Efl.Eo.BindingEntity] +public class IClickableUnpressedEvt_Args : EventArgs { + /// Actual event payload. + /// Called when the object is no longer pressed, event_info is the button that got pressed + public int arg { get; set; } +} +/// Event argument wrapper for event . +[Efl.Eo.BindingEntity] +public class IClickableLongpressedEvt_Args : EventArgs { + /// Actual event payload. + /// Called when the object receives a long press, event_info is the button that got pressed + public int arg { get; set; } +} +/// Efl input clickable interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IClickableConcrete : + Efl.Eo.EoWrapper + , IClickable + +{ + /// Pointer to the native class description. + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IClickableConcrete)) + { + return GetEflClassStatic(); + } + else + { + return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } + } + } + + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. + /// Tag struct storing the native handle of the object being constructed. + private IClickableConcrete(ConstructingHandle ch) : base(ch) + { + } + + [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr + efl_input_clickable_mixin_get(); + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. + private IClickableConcrete(Efl.Eo.Globals.WrappingHandle wh) : base(wh) + { + } + + /// Called when object is in sequence pressed and unpressed, by the primary button + /// + public event EventHandler ClickedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Input.IClickableClickedEvt_Args args = new Efl.Input.IClickableClickedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_INPUT_EVENT_CLICKED"; + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_INPUT_EVENT_CLICKED"; + RemoveNativeEventHandler(efl.Libs.Evas, key, value); + } + } + } + /// Method to raise event ClickedEvt. + public void OnClickedEvt(Efl.Input.IClickableClickedEvt_Args e) + { + var key = "_EFL_INPUT_EVENT_CLICKED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Called when object is in sequence pressed and unpressed by any button. The button that triggered the event can be found in the event information. + /// + public event EventHandler ClickedAnyEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Input.IClickableClickedAnyEvt_Args args = new Efl.Input.IClickableClickedAnyEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_INPUT_EVENT_CLICKED_ANY"; + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_INPUT_EVENT_CLICKED_ANY"; + RemoveNativeEventHandler(efl.Libs.Evas, key, value); + } + } + } + /// Method to raise event ClickedAnyEvt. + public void OnClickedAnyEvt(Efl.Input.IClickableClickedAnyEvt_Args e) + { + var key = "_EFL_INPUT_EVENT_CLICKED_ANY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Called when the object is pressed, event_info is the button that got pressed + /// + public event EventHandler PressedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Input.IClickablePressedEvt_Args args = new Efl.Input.IClickablePressedEvt_Args(); + args.arg = Marshal.ReadInt32(evt.Info); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_INPUT_EVENT_PRESSED"; + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_INPUT_EVENT_PRESSED"; + RemoveNativeEventHandler(efl.Libs.Evas, key, value); + } + } + } + /// Method to raise event PressedEvt. + public void OnPressedEvt(Efl.Input.IClickablePressedEvt_Args e) + { + var key = "_EFL_INPUT_EVENT_PRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Called when the object is no longer pressed, event_info is the button that got pressed + /// + public event EventHandler UnpressedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Input.IClickableUnpressedEvt_Args args = new Efl.Input.IClickableUnpressedEvt_Args(); + args.arg = Marshal.ReadInt32(evt.Info); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_INPUT_EVENT_UNPRESSED"; + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_INPUT_EVENT_UNPRESSED"; + RemoveNativeEventHandler(efl.Libs.Evas, key, value); + } + } + } + /// Method to raise event UnpressedEvt. + public void OnUnpressedEvt(Efl.Input.IClickableUnpressedEvt_Args e) + { + var key = "_EFL_INPUT_EVENT_UNPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Called when the object receives a long press, event_info is the button that got pressed + /// + public event EventHandler LongpressedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Input.IClickableLongpressedEvt_Args args = new Efl.Input.IClickableLongpressedEvt_Args(); + args.arg = Marshal.ReadInt32(evt.Info); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_INPUT_EVENT_LONGPRESSED"; + AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_INPUT_EVENT_LONGPRESSED"; + RemoveNativeEventHandler(efl.Libs.Evas, key, value); + } + } + } + /// Method to raise event LongpressedEvt. + public void OnLongpressedEvt(Efl.Input.IClickableLongpressedEvt_Args e) + { + var key = "_EFL_INPUT_EVENT_LONGPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// This returns true if the given object is currently in event emission + public bool GetInteraction() { + var _ret_var = Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_interaction_get_ptr.Value.Delegate(this.NativeHandle); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Change internal states that a button got pressed. + /// When the button is already pressed, this is silently ignored. + /// The number of the button. FIXME ensure to have the right interval of possible input + public void Press(uint button) { + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_press_ptr.Value.Delegate(this.NativeHandle,button); + Eina.Error.RaiseIfUnhandledException(); + } + /// Change internal states that a button got unpressed. + /// When the button is not pressed, this is silently ignored. + /// The number of the button. FIXME ensure to have the right interval of possible input + public void Unpress(uint button) { + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_unpress_ptr.Value.Delegate(this.NativeHandle,button); + Eina.Error.RaiseIfUnhandledException(); + } + /// This aborts the internal state after a press call. + /// This will stop the timer for longpress. And set the state of the clickable mixin back into the unpressed state. + public void ResetButtonState(uint button) { + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_button_state_reset_ptr.Value.Delegate(this.NativeHandle,button); + Eina.Error.RaiseIfUnhandledException(); + } + /// This aborts ongoing longpress event. + /// That is, this will stop the timer for longpress. + public void LongpressAbort(uint button) { + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_longpress_abort_ptr.Value.Delegate(this.NativeHandle,button); + Eina.Error.RaiseIfUnhandledException(); + } + /// This returns true if the given object is currently in event emission + public bool Interaction { + get { return GetInteraction(); } + } + private static IntPtr GetEflClassStatic() + { + return Efl.Input.IClickableConcrete.efl_input_clickable_mixin_get(); + } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods + { + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); + /// Gets the list of Eo operations to override. + /// The list of Eo operations to be overload. + public override System.Collections.Generic.List GetEoOps(System.Type type) + { + var descs = new System.Collections.Generic.List(); + var methods = Efl.Eo.Globals.GetUserMethods(type); + + if (efl_input_clickable_interaction_get_static_delegate == null) + { + efl_input_clickable_interaction_get_static_delegate = new efl_input_clickable_interaction_get_delegate(interaction_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetInteraction") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_interaction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_interaction_get_static_delegate) }); + } + + if (efl_input_clickable_press_static_delegate == null) + { + efl_input_clickable_press_static_delegate = new efl_input_clickable_press_delegate(press); + } + + if (methods.FirstOrDefault(m => m.Name == "Press") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_press"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_press_static_delegate) }); + } + + if (efl_input_clickable_unpress_static_delegate == null) + { + efl_input_clickable_unpress_static_delegate = new efl_input_clickable_unpress_delegate(unpress); + } + + if (methods.FirstOrDefault(m => m.Name == "Unpress") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_unpress"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_unpress_static_delegate) }); + } + + if (efl_input_clickable_button_state_reset_static_delegate == null) + { + efl_input_clickable_button_state_reset_static_delegate = new efl_input_clickable_button_state_reset_delegate(button_state_reset); + } + + if (methods.FirstOrDefault(m => m.Name == "ResetButtonState") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_button_state_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_button_state_reset_static_delegate) }); + } + + if (efl_input_clickable_longpress_abort_static_delegate == null) + { + efl_input_clickable_longpress_abort_static_delegate = new efl_input_clickable_longpress_abort_delegate(longpress_abort); + } + + if (methods.FirstOrDefault(m => m.Name == "LongpressAbort") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_longpress_abort"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_longpress_abort_static_delegate) }); + } + + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Input.IClickableConcrete.efl_input_clickable_mixin_get(); + } + + #pragma warning disable CA1707, CS1591, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_clickable_interaction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_clickable_interaction_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_clickable_interaction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_interaction_get"); + + private static bool interaction_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_clickable_interaction_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IClickable)ws.Target).GetInteraction(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_input_clickable_interaction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_input_clickable_interaction_get_delegate efl_input_clickable_interaction_get_static_delegate; + + + private delegate void efl_input_clickable_press_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + + + public delegate void efl_input_clickable_press_api_delegate(System.IntPtr obj, uint button); + + public static Efl.Eo.FunctionWrapper efl_input_clickable_press_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_press"); + + private static void press(System.IntPtr obj, System.IntPtr pd, uint button) + { + Eina.Log.Debug("function efl_input_clickable_press was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((IClickable)ws.Target).Press(button); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_clickable_press_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + } + } + + private static efl_input_clickable_press_delegate efl_input_clickable_press_static_delegate; + + + private delegate void efl_input_clickable_unpress_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + + + public delegate void efl_input_clickable_unpress_api_delegate(System.IntPtr obj, uint button); + + public static Efl.Eo.FunctionWrapper efl_input_clickable_unpress_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_unpress"); + + private static void unpress(System.IntPtr obj, System.IntPtr pd, uint button) + { + Eina.Log.Debug("function efl_input_clickable_unpress was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((IClickable)ws.Target).Unpress(button); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_clickable_unpress_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + } + } + + private static efl_input_clickable_unpress_delegate efl_input_clickable_unpress_static_delegate; + + + private delegate void efl_input_clickable_button_state_reset_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + + + public delegate void efl_input_clickable_button_state_reset_api_delegate(System.IntPtr obj, uint button); + + public static Efl.Eo.FunctionWrapper efl_input_clickable_button_state_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_button_state_reset"); + + private static void button_state_reset(System.IntPtr obj, System.IntPtr pd, uint button) + { + Eina.Log.Debug("function efl_input_clickable_button_state_reset was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((IClickable)ws.Target).ResetButtonState(button); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_clickable_button_state_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + } + } + + private static efl_input_clickable_button_state_reset_delegate efl_input_clickable_button_state_reset_static_delegate; + + + private delegate void efl_input_clickable_longpress_abort_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + + + public delegate void efl_input_clickable_longpress_abort_api_delegate(System.IntPtr obj, uint button); + + public static Efl.Eo.FunctionWrapper efl_input_clickable_longpress_abort_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_longpress_abort"); + + private static void longpress_abort(System.IntPtr obj, System.IntPtr pd, uint button) + { + Eina.Log.Debug("function efl_input_clickable_longpress_abort was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((IClickable)ws.Target).LongpressAbort(button); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_clickable_longpress_abort_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + } + } + + private static efl_input_clickable_longpress_abort_delegate efl_input_clickable_longpress_abort_static_delegate; + + #pragma warning restore CA1707, CS1591, SA1300, SA1600 + +} +} +} + +} + +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_InputIClickableConcrete_ExtensionMethods { + +} +#pragma warning restore CS1591 +#endif +namespace Efl { + +namespace Input { + +/// A struct that expresses a click in elementary. +[StructLayout(LayoutKind.Sequential)] +[Efl.Eo.BindingEntity] +public struct ClickableClicked +{ + /// The amount of how often the clicked event was repeated in a certain amount of time + public uint Repeated; + /// The Button that is pressed + public uint Button; + /// Constructor for ClickableClicked. + /// The amount of how often the clicked event was repeated in a certain amount of time; + /// The Button that is pressed; + public ClickableClicked( + uint Repeated = default(uint), + uint Button = default(uint) ) + { + this.Repeated = Repeated; + this.Button = Button; + } + + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. + public static implicit operator ClickableClicked(IntPtr ptr) + { + var tmp = (ClickableClicked.NativeStruct)Marshal.PtrToStructure(ptr, typeof(ClickableClicked.NativeStruct)); + return tmp; + } + + #pragma warning disable CS1591 + + /// Internal wrapper for struct ClickableClicked. + [StructLayout(LayoutKind.Sequential)] + public struct NativeStruct + { + + public uint Repeated; + + public uint Button; + /// Implicit conversion to the internal/marshalling representation. + public static implicit operator ClickableClicked.NativeStruct(ClickableClicked _external_struct) + { + var _internal_struct = new ClickableClicked.NativeStruct(); + _internal_struct.Repeated = _external_struct.Repeated; + _internal_struct.Button = _external_struct.Button; + return _internal_struct; + } + + /// Implicit conversion to the managed representation. + public static implicit operator ClickableClicked(ClickableClicked.NativeStruct _internal_struct) + { + var _external_struct = new ClickableClicked(); + _external_struct.Repeated = _internal_struct.Repeated; + _external_struct.Button = _internal_struct.Button; + return _external_struct; + } + + } + + #pragma warning restore CS1591 + +} + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_input_device.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_input_device.eo.cs old mode 100644 new mode 100755 index 6622648b2..532221bff --- a/internals/src/EflSharp/EflSharp/efl/efl_input_device.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_input_device.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -14,7 +15,7 @@ namespace Input { [Efl.Eo.BindingEntity] public class Device : Efl.Object { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +41,8 @@ public class Device : Efl.Object FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Device(ConstructingHandle ch) : base(ch) { @@ -667,6 +669,27 @@ public class Device : Efl.Object } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_InputDevice_ExtensionMethods { + public static Efl.BindableProperty DeviceType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Device { + return new Efl.BindableProperty("device_type", fac); + } + + public static Efl.BindableProperty Source(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Device { + return new Efl.BindableProperty("source", fac); + } + + + public static Efl.BindableProperty SeatId(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Device { + return new Efl.BindableProperty("seat_id", fac); + } + + + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Input { diff --git a/internals/src/EflSharp/EflSharp/efl/efl_input_event.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_input_event.eo.cs old mode 100644 new mode 100755 index 746efd620..b28f2ca4f --- a/internals/src/EflSharp/EflSharp/efl/efl_input_event.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_input_event.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -57,47 +58,47 @@ void Reset(); /// If the event is generated by a server (eg. X.org or Wayland), then the time may be set by the server. Usually this time will be based on the monotonic clock, if available, but this class can not guarantee it. /// Time in milliseconds when the event happened. double Timestamp { - get ; - set ; + get; + set; } /// Input device that originated this event. /// Input device origin Efl.Input.Device Device { - get ; - set ; + get; + set; } /// Extra flags for this event, may be changed by the user. /// Input event flags Efl.Input.Flags EventFlags { - get ; - set ; + get; + set; } /// true if indicates the event is on hold. /// true if the event is on hold, false otherwise bool Processed { - get ; - set ; + get; + set; } /// true if indicates the event happened while scrolling. /// true if the event happened while scrolling, false otherwise bool Scrolling { - get ; - set ; + get; + set; } /// true if the event was fake, not triggered by real hardware. /// true if the event was not from real hardware, false otherwise bool Fake { - get ; + get; } } /// Represents a generic event data. /// Note: Most Efl Events do not carry Efl Objects, rather simple data structures. This class is intended to carry more complex event data, such as pointer events. -sealed public class IEventConcrete : +sealed public class IEventConcrete : Efl.Eo.EoWrapper , IEvent , Efl.IDuplicate { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -113,7 +114,8 @@ sealed public class IEventConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IEventConcrete(ConstructingHandle ch) : base(ch) { @@ -877,3 +879,30 @@ sealed public class IEventConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_InputIEventConcrete_ExtensionMethods { + public static Efl.BindableProperty Timestamp(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.IEvent { + return new Efl.BindableProperty("timestamp", fac); + } + + public static Efl.BindableProperty Device(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.IEvent { + return new Efl.BindableProperty("device", fac); + } + + public static Efl.BindableProperty EventFlags(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.IEvent { + return new Efl.BindableProperty("event_flags", fac); + } + + public static Efl.BindableProperty Processed(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.IEvent { + return new Efl.BindableProperty("processed", fac); + } + + public static Efl.BindableProperty Scrolling(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.IEvent { + return new Efl.BindableProperty("scrolling", fac); + } + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_input_focus.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_input_focus.eo.cs old mode 100644 new mode 100755 index 48ed01841..8411c6271 --- a/internals/src/EflSharp/EflSharp/efl/efl_input_focus.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_input_focus.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -15,7 +16,7 @@ namespace Input { [Efl.Eo.BindingEntity] public class Focus : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -41,7 +42,8 @@ public class Focus : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Focus(ConstructingHandle ch) : base(ch) { @@ -925,3 +927,34 @@ public class Focus : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_InputFocus_ExtensionMethods { + public static Efl.BindableProperty Object(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Focus { + return new Efl.BindableProperty("object", fac); + } + + public static Efl.BindableProperty Timestamp(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Focus { + return new Efl.BindableProperty("timestamp", fac); + } + + public static Efl.BindableProperty Device(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Focus { + return new Efl.BindableProperty("device", fac); + } + + public static Efl.BindableProperty EventFlags(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Focus { + return new Efl.BindableProperty("event_flags", fac); + } + + public static Efl.BindableProperty Processed(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Focus { + return new Efl.BindableProperty("processed", fac); + } + + public static Efl.BindableProperty Scrolling(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Focus { + return new Efl.BindableProperty("scrolling", fac); + } + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_input_hold.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_input_hold.eo.cs old mode 100644 new mode 100755 index 6749c74d4..2b96a4cc5 --- a/internals/src/EflSharp/EflSharp/efl/efl_input_hold.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_input_hold.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -14,7 +15,7 @@ namespace Input { [Efl.Eo.BindingEntity] public class Hold : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +41,8 @@ public class Hold : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Hold(ConstructingHandle ch) : base(ch) { @@ -63,14 +65,14 @@ public class Hold : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent /// Property to show if inputs are now on hold. /// true if inputs are on hold, false otherwise - virtual public bool GetHold() { + virtual public bool GetInputHold() { var _ret_var = Efl.Input.Hold.NativeMethods.efl_input_hold_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Property to show if inputs are now on hold. /// true if inputs are on hold, false otherwise - virtual public void SetHold(bool val) { + virtual public void SetInputHold(bool val) { Efl.Input.Hold.NativeMethods.efl_input_hold_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),val); Eina.Error.RaiseIfUnhandledException(); } @@ -160,6 +162,12 @@ public class Hold : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent Efl.Input.IEventConcrete.NativeMethods.efl_input_reset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } + /// Property to show if inputs are now on hold. + /// true if inputs are on hold, false otherwise + public bool InputHold { + get { return GetInputHold(); } + set { SetInputHold(value); } + } /// The time at which an event was generated. /// If the event is generated by a server (eg. X.org or Wayland), then the time may be set by the server. Usually this time will be based on the monotonic clock, if available, but this class can not guarantee it. /// Time in milliseconds when the event happened. @@ -214,20 +222,20 @@ public class Hold : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent if (efl_input_hold_get_static_delegate == null) { - efl_input_hold_get_static_delegate = new efl_input_hold_get_delegate(hold_get); + efl_input_hold_get_static_delegate = new efl_input_hold_get_delegate(input_hold_get); } - if (methods.FirstOrDefault(m => m.Name == "GetHold") != null) + if (methods.FirstOrDefault(m => m.Name == "GetInputHold") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_hold_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_hold_get_static_delegate) }); } if (efl_input_hold_set_static_delegate == null) { - efl_input_hold_set_static_delegate = new efl_input_hold_set_delegate(hold_set); + efl_input_hold_set_static_delegate = new efl_input_hold_set_delegate(input_hold_set); } - if (methods.FirstOrDefault(m => m.Name == "SetHold") != null) + if (methods.FirstOrDefault(m => m.Name == "SetInputHold") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_hold_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_hold_set_static_delegate) }); } @@ -382,7 +390,7 @@ public class Hold : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent public static Efl.Eo.FunctionWrapper efl_input_hold_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_hold_get"); - private static bool hold_get(System.IntPtr obj, System.IntPtr pd) + private static bool input_hold_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_input_hold_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); @@ -391,7 +399,7 @@ public class Hold : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent bool _ret_var = default(bool); try { - _ret_var = ((Hold)ws.Target).GetHold(); + _ret_var = ((Hold)ws.Target).GetInputHold(); } catch (Exception e) { @@ -418,7 +426,7 @@ public class Hold : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent public static Efl.Eo.FunctionWrapper efl_input_hold_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_hold_set"); - private static void hold_set(System.IntPtr obj, System.IntPtr pd, bool val) + private static void input_hold_set(System.IntPtr obj, System.IntPtr pd, bool val) { Eina.Log.Debug("function efl_input_hold_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); @@ -427,7 +435,7 @@ public class Hold : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent try { - ((Hold)ws.Target).SetHold(val); + ((Hold)ws.Target).SetInputHold(val); } catch (Exception e) { @@ -915,3 +923,34 @@ public class Hold : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_InputHold_ExtensionMethods { + public static Efl.BindableProperty InputHold(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Hold { + return new Efl.BindableProperty("input_hold", fac); + } + + public static Efl.BindableProperty Timestamp(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Hold { + return new Efl.BindableProperty("timestamp", fac); + } + + public static Efl.BindableProperty Device(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Hold { + return new Efl.BindableProperty("device", fac); + } + + public static Efl.BindableProperty EventFlags(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Hold { + return new Efl.BindableProperty("event_flags", fac); + } + + public static Efl.BindableProperty Processed(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Hold { + return new Efl.BindableProperty("processed", fac); + } + + public static Efl.BindableProperty Scrolling(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Hold { + return new Efl.BindableProperty("scrolling", fac); + } + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_input_interface.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_input_interface.eo.cs old mode 100644 new mode 100755 index 0e5c2488e..d3271e973 --- a/internals/src/EflSharp/EflSharp/efl/efl_input_interface.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_input_interface.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -22,141 +23,177 @@ namespace Input { public interface IInterface : Efl.Eo.IWrapper, IDisposable { - /// Check if input events from a given seat is enabled. + /// Check if input events from a given seat is enabled. +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The seat to act on. /// true to enable events for a seat or false otherwise. bool GetSeatEventFilter(Efl.Input.Device seat); - /// Add or remove a given seat to the filter list. If the filter list is empty this object will report mouse, keyboard and focus events from any seat, otherwise those events will only be reported if the event comes from a seat that is in the list. + /// Add or remove a given seat to the filter list. If the filter list is empty this object will report mouse, keyboard and focus events from any seat, otherwise those events will only be reported if the event comes from a seat that is in the list. +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The seat to act on. /// true to enable events for a seat or false otherwise. void SetSeatEventFilter(Efl.Input.Device seat, bool enable); /// Main pointer move (current and previous positions are known). + /// event EventHandler PointerMoveEvt; /// Main pointer button pressed (button id is known). + /// event EventHandler PointerDownEvt; /// Main pointer button released (button id is known). + /// event EventHandler PointerUpEvt; /// Main pointer button press was cancelled (button id is known). This can happen in rare cases when the window manager passes the focus to a more urgent window, for instance. You probably don't need to listen to this event, as it will be accompanied by an up event. + /// event EventHandler PointerCancelEvt; /// Pointer entered a window or a widget. + /// event EventHandler PointerInEvt; /// Pointer left a window or a widget. + /// event EventHandler PointerOutEvt; /// Mouse wheel event. + /// event EventHandler PointerWheelEvt; /// Pen or other axis event update. + /// event EventHandler PointerAxisEvt; /// Finger moved (current and previous positions are known). + /// event EventHandler FingerMoveEvt; /// Finger pressed (finger id is known). + /// event EventHandler FingerDownEvt; /// Finger released (finger id is known). + /// event EventHandler FingerUpEvt; /// Keyboard key press. + /// event EventHandler KeyDownEvt; /// Keyboard key release. + /// event EventHandler KeyUpEvt; /// All input events are on hold or resumed. + /// event EventHandler HoldEvt; /// A focus in event. + /// event EventHandler FocusInEvt; /// A focus out event. + /// event EventHandler FocusOutEvt; } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IInterfacePointerMoveEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Main pointer move (current and previous positions are known). public Efl.Input.Pointer arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IInterfacePointerDownEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Main pointer button pressed (button id is known). public Efl.Input.Pointer arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IInterfacePointerUpEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Main pointer button released (button id is known). public Efl.Input.Pointer arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IInterfacePointerCancelEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Main pointer button press was cancelled (button id is known). This can happen in rare cases when the window manager passes the focus to a more urgent window, for instance. You probably don't need to listen to this event, as it will be accompanied by an up event. public Efl.Input.Pointer arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IInterfacePointerInEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Pointer entered a window or a widget. public Efl.Input.Pointer arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IInterfacePointerOutEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Pointer left a window or a widget. public Efl.Input.Pointer arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IInterfacePointerWheelEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Mouse wheel event. public Efl.Input.Pointer arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IInterfacePointerAxisEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Pen or other axis event update. public Efl.Input.Pointer arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IInterfaceFingerMoveEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Finger moved (current and previous positions are known). public Efl.Input.Pointer arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IInterfaceFingerDownEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Finger pressed (finger id is known). public Efl.Input.Pointer arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IInterfaceFingerUpEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Finger released (finger id is known). public Efl.Input.Pointer arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IInterfaceKeyDownEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Keyboard key press. public Efl.Input.Key arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IInterfaceKeyUpEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Keyboard key release. public Efl.Input.Key arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IInterfaceHoldEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// All input events are on hold or resumed. public Efl.Input.Hold arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IInterfaceFocusInEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// A focus in event. public Efl.Input.Focus arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IInterfaceFocusOutEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// A focus out event. public Efl.Input.Focus arg { get; set; } } /// An object implementing this interface can send pointer events. @@ -167,12 +204,12 @@ public class IInterfaceFocusOutEvt_Args : EventArgs { /// A "finger" refers to a single point of input, usually in an absolute coordinates input device, and that can support more than one input position at at time (think multi-touch screens). The first finger (id 0) is sent along with a pointer event, so be careful to not handle those events twice. Note that if the input device can support "hovering", it is entirely possible to receive move events without down coming first. /// /// A "key" is a key press from a keyboard or equivalent type of input device. Long, repeated, key presses will always happen like this: down...up,down...up,down...up (not down...up or down...down...down...up). -sealed public class IInterfaceConcrete : +sealed public class IInterfaceConcrete : Efl.Eo.EoWrapper , IInterface { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -188,7 +225,8 @@ sealed public class IInterfaceConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IInterfaceConcrete(ConstructingHandle ch) : base(ch) { @@ -204,6 +242,7 @@ sealed public class IInterfaceConcrete : } /// Main pointer move (current and previous positions are known). + /// public event EventHandler PointerMoveEvt { add @@ -243,7 +282,7 @@ sealed public class IInterfaceConcrete : } } } - ///Method to raise event PointerMoveEvt. + /// Method to raise event PointerMoveEvt. public void OnPointerMoveEvt(Efl.Input.IInterfacePointerMoveEvt_Args e) { var key = "_EFL_EVENT_POINTER_MOVE"; @@ -258,6 +297,7 @@ sealed public class IInterfaceConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Main pointer button pressed (button id is known). + /// public event EventHandler PointerDownEvt { add @@ -297,7 +337,7 @@ sealed public class IInterfaceConcrete : } } } - ///Method to raise event PointerDownEvt. + /// Method to raise event PointerDownEvt. public void OnPointerDownEvt(Efl.Input.IInterfacePointerDownEvt_Args e) { var key = "_EFL_EVENT_POINTER_DOWN"; @@ -312,6 +352,7 @@ sealed public class IInterfaceConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Main pointer button released (button id is known). + /// public event EventHandler PointerUpEvt { add @@ -351,7 +392,7 @@ sealed public class IInterfaceConcrete : } } } - ///Method to raise event PointerUpEvt. + /// Method to raise event PointerUpEvt. public void OnPointerUpEvt(Efl.Input.IInterfacePointerUpEvt_Args e) { var key = "_EFL_EVENT_POINTER_UP"; @@ -366,6 +407,7 @@ sealed public class IInterfaceConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Main pointer button press was cancelled (button id is known). This can happen in rare cases when the window manager passes the focus to a more urgent window, for instance. You probably don't need to listen to this event, as it will be accompanied by an up event. + /// public event EventHandler PointerCancelEvt { add @@ -405,7 +447,7 @@ sealed public class IInterfaceConcrete : } } } - ///Method to raise event PointerCancelEvt. + /// Method to raise event PointerCancelEvt. public void OnPointerCancelEvt(Efl.Input.IInterfacePointerCancelEvt_Args e) { var key = "_EFL_EVENT_POINTER_CANCEL"; @@ -420,6 +462,7 @@ sealed public class IInterfaceConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Pointer entered a window or a widget. + /// public event EventHandler PointerInEvt { add @@ -459,7 +502,7 @@ sealed public class IInterfaceConcrete : } } } - ///Method to raise event PointerInEvt. + /// Method to raise event PointerInEvt. public void OnPointerInEvt(Efl.Input.IInterfacePointerInEvt_Args e) { var key = "_EFL_EVENT_POINTER_IN"; @@ -474,6 +517,7 @@ sealed public class IInterfaceConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Pointer left a window or a widget. + /// public event EventHandler PointerOutEvt { add @@ -513,7 +557,7 @@ sealed public class IInterfaceConcrete : } } } - ///Method to raise event PointerOutEvt. + /// Method to raise event PointerOutEvt. public void OnPointerOutEvt(Efl.Input.IInterfacePointerOutEvt_Args e) { var key = "_EFL_EVENT_POINTER_OUT"; @@ -528,6 +572,7 @@ sealed public class IInterfaceConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Mouse wheel event. + /// public event EventHandler PointerWheelEvt { add @@ -567,7 +612,7 @@ sealed public class IInterfaceConcrete : } } } - ///Method to raise event PointerWheelEvt. + /// Method to raise event PointerWheelEvt. public void OnPointerWheelEvt(Efl.Input.IInterfacePointerWheelEvt_Args e) { var key = "_EFL_EVENT_POINTER_WHEEL"; @@ -582,6 +627,7 @@ sealed public class IInterfaceConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Pen or other axis event update. + /// public event EventHandler PointerAxisEvt { add @@ -621,7 +667,7 @@ sealed public class IInterfaceConcrete : } } } - ///Method to raise event PointerAxisEvt. + /// Method to raise event PointerAxisEvt. public void OnPointerAxisEvt(Efl.Input.IInterfacePointerAxisEvt_Args e) { var key = "_EFL_EVENT_POINTER_AXIS"; @@ -636,6 +682,7 @@ sealed public class IInterfaceConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Finger moved (current and previous positions are known). + /// public event EventHandler FingerMoveEvt { add @@ -675,7 +722,7 @@ sealed public class IInterfaceConcrete : } } } - ///Method to raise event FingerMoveEvt. + /// Method to raise event FingerMoveEvt. public void OnFingerMoveEvt(Efl.Input.IInterfaceFingerMoveEvt_Args e) { var key = "_EFL_EVENT_FINGER_MOVE"; @@ -690,6 +737,7 @@ sealed public class IInterfaceConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Finger pressed (finger id is known). + /// public event EventHandler FingerDownEvt { add @@ -729,7 +777,7 @@ sealed public class IInterfaceConcrete : } } } - ///Method to raise event FingerDownEvt. + /// Method to raise event FingerDownEvt. public void OnFingerDownEvt(Efl.Input.IInterfaceFingerDownEvt_Args e) { var key = "_EFL_EVENT_FINGER_DOWN"; @@ -744,6 +792,7 @@ sealed public class IInterfaceConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Finger released (finger id is known). + /// public event EventHandler FingerUpEvt { add @@ -783,7 +832,7 @@ sealed public class IInterfaceConcrete : } } } - ///Method to raise event FingerUpEvt. + /// Method to raise event FingerUpEvt. public void OnFingerUpEvt(Efl.Input.IInterfaceFingerUpEvt_Args e) { var key = "_EFL_EVENT_FINGER_UP"; @@ -798,6 +847,7 @@ sealed public class IInterfaceConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Keyboard key press. + /// public event EventHandler KeyDownEvt { add @@ -837,7 +887,7 @@ sealed public class IInterfaceConcrete : } } } - ///Method to raise event KeyDownEvt. + /// Method to raise event KeyDownEvt. public void OnKeyDownEvt(Efl.Input.IInterfaceKeyDownEvt_Args e) { var key = "_EFL_EVENT_KEY_DOWN"; @@ -852,6 +902,7 @@ sealed public class IInterfaceConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Keyboard key release. + /// public event EventHandler KeyUpEvt { add @@ -891,7 +942,7 @@ sealed public class IInterfaceConcrete : } } } - ///Method to raise event KeyUpEvt. + /// Method to raise event KeyUpEvt. public void OnKeyUpEvt(Efl.Input.IInterfaceKeyUpEvt_Args e) { var key = "_EFL_EVENT_KEY_UP"; @@ -906,6 +957,7 @@ sealed public class IInterfaceConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// All input events are on hold or resumed. + /// public event EventHandler HoldEvt { add @@ -945,7 +997,7 @@ sealed public class IInterfaceConcrete : } } } - ///Method to raise event HoldEvt. + /// Method to raise event HoldEvt. public void OnHoldEvt(Efl.Input.IInterfaceHoldEvt_Args e) { var key = "_EFL_EVENT_HOLD"; @@ -960,6 +1012,7 @@ sealed public class IInterfaceConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// A focus in event. + /// public event EventHandler FocusInEvt { add @@ -999,7 +1052,7 @@ sealed public class IInterfaceConcrete : } } } - ///Method to raise event FocusInEvt. + /// Method to raise event FocusInEvt. public void OnFocusInEvt(Efl.Input.IInterfaceFocusInEvt_Args e) { var key = "_EFL_EVENT_FOCUS_IN"; @@ -1014,6 +1067,7 @@ sealed public class IInterfaceConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// A focus out event. + /// public event EventHandler FocusOutEvt { add @@ -1053,7 +1107,7 @@ sealed public class IInterfaceConcrete : } } } - ///Method to raise event FocusOutEvt. + /// Method to raise event FocusOutEvt. public void OnFocusOutEvt(Efl.Input.IInterfaceFocusOutEvt_Args e) { var key = "_EFL_EVENT_FOCUS_OUT"; @@ -1067,7 +1121,9 @@ sealed public class IInterfaceConcrete : IntPtr info = e.arg.NativeHandle; Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } - /// Check if input events from a given seat is enabled. + /// Check if input events from a given seat is enabled. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The seat to act on. /// true to enable events for a seat or false otherwise. public bool GetSeatEventFilter(Efl.Input.Device seat) { @@ -1075,7 +1131,9 @@ sealed public class IInterfaceConcrete : Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Add or remove a given seat to the filter list. If the filter list is empty this object will report mouse, keyboard and focus events from any seat, otherwise those events will only be reported if the event comes from a seat that is in the list. + /// Add or remove a given seat to the filter list. If the filter list is empty this object will report mouse, keyboard and focus events from any seat, otherwise those events will only be reported if the event comes from a seat that is in the list. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The seat to act on. /// true to enable events for a seat or false otherwise. public void SetSeatEventFilter(Efl.Input.Device seat, bool enable) { @@ -1208,3 +1266,10 @@ sealed public class IInterfaceConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_InputIInterfaceConcrete_ExtensionMethods { + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_input_key.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_input_key.eo.cs old mode 100644 new mode 100755 index b49c7708f..7af5e26e0 --- a/internals/src/EflSharp/EflSharp/efl/efl_input_key.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_input_key.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -14,7 +15,7 @@ namespace Input { [Efl.Eo.BindingEntity] public class Key : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent, Efl.Input.IState { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +41,8 @@ public class Key : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent, Efl.Input.IStat FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Key(ConstructingHandle ch) : base(ch) { @@ -62,83 +64,95 @@ public class Key : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent, Efl.Input.IStat } /// true if the key is down, false if it is released. - /// true if the key is pressed, false otherwise + /// true if the key is pressed, false otherwise. virtual public bool GetPressed() { var _ret_var = Efl.Input.Key.NativeMethods.efl_input_key_pressed_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// true if the key is down, false if it is released. - /// true if the key is pressed, false otherwise + /// true if the key is pressed, false otherwise. virtual public void SetPressed(bool val) { Efl.Input.Key.NativeMethods.efl_input_key_pressed_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),val); Eina.Error.RaiseIfUnhandledException(); } - /// Name string of the key. - /// Key name + /// Name string of the physical key that produced this event. + /// This typically matches what is printed on the key. For example, "1" or "a". Note that both "a" and "A" are obtained with the same physical key, so both events will have the same "a" but different . + /// + /// Commonly used in keyboard remapping menus to uniquely identify a physical key. + /// Name of the key that produced this event. virtual public System.String GetKeyName() { var _ret_var = Efl.Input.Key.NativeMethods.efl_input_key_name_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Name string of the key. - /// Key name + /// Name string of the physical key that produced this event. + /// This typically matches what is printed on the key. For example, "1" or "a". Note that both "a" and "A" are obtained with the same physical key, so both events will have the same "a" but different . + /// + /// Commonly used in keyboard remapping menus to uniquely identify a physical key. + /// Name of the key that produced this event. virtual public void SetKeyName(System.String val) { Efl.Input.Key.NativeMethods.efl_input_key_name_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),val); Eina.Error.RaiseIfUnhandledException(); } - /// Logical key. - /// Eg. Shift + 1 = exclamation - /// Logical key name - virtual public System.String GetKey() { - var _ret_var = Efl.Input.Key.NativeMethods.efl_input_key_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + /// Name of the symbol produced by this key event. + /// For example, "a", "A", "1" or "exclam". The same physical key can produce different symbols when combined with other keys like "shift" or "alt gr". For example, "a" and "A" have different but the same "a". + /// + /// This is the field you typically use to uniquely identify a keyboard symbol, in keyboard shortcuts for example. + /// Symbol name produced by key event. + virtual public System.String GetKeySym() { + var _ret_var = Efl.Input.Key.NativeMethods.efl_input_key_sym_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Logical key. - /// Eg. Shift + 1 = exclamation - /// Logical key name - virtual public void SetKey(System.String val) { - Efl.Input.Key.NativeMethods.efl_input_key_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),val); + /// Name of the symbol produced by this key event. + /// For example, "a", "A", "1" or "exclam". The same physical key can produce different symbols when combined with other keys like "shift" or "alt gr". For example, "a" and "A" have different but the same "a". + /// + /// This is the field you typically use to uniquely identify a keyboard symbol, in keyboard shortcuts for example. + /// Symbol name produced by key event. + virtual public void SetKeySym(System.String val) { + Efl.Input.Key.NativeMethods.efl_input_key_sym_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),val); Eina.Error.RaiseIfUnhandledException(); } /// A UTF8 string if this keystroke has produced a visible string to be added. - /// Visible string from key press in UTF8 + /// Visible string produced by this key event, in UTF8. virtual public System.String GetString() { var _ret_var = Efl.Input.Key.NativeMethods.efl_input_key_string_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// A UTF8 string if this keystroke has produced a visible string to be added. - /// Visible string from key press in UTF8 + /// Visible string produced by this key event, in UTF8. virtual public void SetString(System.String val) { Efl.Input.Key.NativeMethods.efl_input_key_string_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),val); Eina.Error.RaiseIfUnhandledException(); } /// A UTF8 string if this keystroke has modified a string in the middle of being composed. - /// Note: This string replaces the previous one - /// Composed key string in UTF8 + /// Note: This string replaces the previous one. + /// Composed string in UTF8. virtual public System.String GetComposeString() { var _ret_var = Efl.Input.Key.NativeMethods.efl_input_key_compose_string_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// A UTF8 string if this keystroke has modified a string in the middle of being composed. - /// Note: This string replaces the previous one - /// Composed key string in UTF8 + /// Note: This string replaces the previous one. + /// Composed string in UTF8. virtual public void SetComposeString(System.String val) { Efl.Input.Key.NativeMethods.efl_input_key_compose_string_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),val); Eina.Error.RaiseIfUnhandledException(); } - /// Key scan code numeric value. - /// Key scan code + /// Keyboard scan code of the physical key that produced this event. + /// You typically do not need to use this field, because the system maps scan codes to the more convenient . Us this in keyboard remapping applications or when trying to use a keyboard unknown to your operating system. + /// Keyboard scan code. virtual public int GetKeyCode() { var _ret_var = Efl.Input.Key.NativeMethods.efl_input_key_code_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Key scan code numeric value. - /// Key scan code + /// Keyboard scan code of the physical key that produced this event. + /// You typically do not need to use this field, because the system maps scan codes to the more convenient . Us this in keyboard remapping applications or when trying to use a keyboard unknown to your operating system. + /// Keyboard scan code. virtual public void SetKeyCode(int val) { Efl.Input.Key.NativeMethods.efl_input_key_code_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),val); Eina.Error.RaiseIfUnhandledException(); @@ -230,7 +244,9 @@ public class Key : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent, Efl.Input.IStat Eina.Error.RaiseIfUnhandledException(); } /// Indicates whether a key modifier is on, such as Ctrl, Shift, ... - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The modifier key to test. /// The seat device, may be null /// true if the key modifier is pressed. @@ -240,7 +256,9 @@ public class Key : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent, Efl.Input.IStat return _ret_var; } /// Indicates whether a key lock is on, such as NumLock, CapsLock, ... - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The lock key to test. /// The seat device, may be null /// true if the key lock is on. @@ -250,32 +268,45 @@ public class Key : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent, Efl.Input.IStat return _ret_var; } /// true if the key is down, false if it is released. - /// true if the key is pressed, false otherwise + /// true if the key is pressed, false otherwise. public bool Pressed { get { return GetPressed(); } set { SetPressed(value); } } - /// Name string of the key. - /// Key name + /// Name string of the physical key that produced this event. + /// This typically matches what is printed on the key. For example, "1" or "a". Note that both "a" and "A" are obtained with the same physical key, so both events will have the same "a" but different . + /// + /// Commonly used in keyboard remapping menus to uniquely identify a physical key. + /// Name of the key that produced this event. public System.String KeyName { get { return GetKeyName(); } set { SetKeyName(value); } } + /// Name of the symbol produced by this key event. + /// For example, "a", "A", "1" or "exclam". The same physical key can produce different symbols when combined with other keys like "shift" or "alt gr". For example, "a" and "A" have different but the same "a". + /// + /// This is the field you typically use to uniquely identify a keyboard symbol, in keyboard shortcuts for example. + /// Symbol name produced by key event. + public System.String KeySym { + get { return GetKeySym(); } + set { SetKeySym(value); } + } /// A UTF8 string if this keystroke has produced a visible string to be added. - /// Visible string from key press in UTF8 + /// Visible string produced by this key event, in UTF8. public System.String String { get { return GetString(); } set { SetString(value); } } /// A UTF8 string if this keystroke has modified a string in the middle of being composed. - /// Note: This string replaces the previous one - /// Composed key string in UTF8 + /// Note: This string replaces the previous one. + /// Composed string in UTF8. public System.String ComposeString { get { return GetComposeString(); } set { SetComposeString(value); } } - /// Key scan code numeric value. - /// Key scan code + /// Keyboard scan code of the physical key that produced this event. + /// You typically do not need to use this field, because the system maps scan codes to the more convenient . Us this in keyboard remapping applications or when trying to use a keyboard unknown to your operating system. + /// Keyboard scan code. public int KeyCode { get { return GetKeyCode(); } set { SetKeyCode(value); } @@ -372,24 +403,24 @@ public class Key : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent, Efl.Input.IStat descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_key_name_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_name_set_static_delegate) }); } - if (efl_input_key_get_static_delegate == null) + if (efl_input_key_sym_get_static_delegate == null) { - efl_input_key_get_static_delegate = new efl_input_key_get_delegate(key_get); + efl_input_key_sym_get_static_delegate = new efl_input_key_sym_get_delegate(key_sym_get); } - if (methods.FirstOrDefault(m => m.Name == "GetKey") != null) + if (methods.FirstOrDefault(m => m.Name == "GetKeySym") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_key_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_key_sym_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_sym_get_static_delegate) }); } - if (efl_input_key_set_static_delegate == null) + if (efl_input_key_sym_set_static_delegate == null) { - efl_input_key_set_static_delegate = new efl_input_key_set_delegate(key_set); + efl_input_key_sym_set_static_delegate = new efl_input_key_sym_set_delegate(key_sym_set); } - if (methods.FirstOrDefault(m => m.Name == "SetKey") != null) + if (methods.FirstOrDefault(m => m.Name == "SetKeySym") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_key_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_set_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_key_sym_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_key_sym_set_static_delegate) }); } if (efl_input_key_string_get_static_delegate == null) @@ -757,23 +788,23 @@ public class Key : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent, Efl.Input.IStat private static efl_input_key_name_set_delegate efl_input_key_name_set_static_delegate; [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - private delegate System.String efl_input_key_get_delegate(System.IntPtr obj, System.IntPtr pd); + private delegate System.String efl_input_key_sym_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - public delegate System.String efl_input_key_get_api_delegate(System.IntPtr obj); + public delegate System.String efl_input_key_sym_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_input_key_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_key_get"); + public static Efl.Eo.FunctionWrapper efl_input_key_sym_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_key_sym_get"); - private static System.String key_get(System.IntPtr obj, System.IntPtr pd) + private static System.String key_sym_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function efl_input_key_get was called"); + Eina.Log.Debug("function efl_input_key_sym_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { System.String _ret_var = default(System.String); try { - _ret_var = ((Key)ws.Target).GetKey(); + _ret_var = ((Key)ws.Target).GetKeySym(); } catch (Exception e) { @@ -786,30 +817,30 @@ public class Key : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent, Efl.Input.IStat } else { - return efl_input_key_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + return efl_input_key_sym_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static efl_input_key_get_delegate efl_input_key_get_static_delegate; + private static efl_input_key_sym_get_delegate efl_input_key_sym_get_static_delegate; - private delegate void efl_input_key_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String val); + private delegate void efl_input_key_sym_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String val); - public delegate void efl_input_key_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String val); + public delegate void efl_input_key_sym_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String val); - public static Efl.Eo.FunctionWrapper efl_input_key_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_key_set"); + public static Efl.Eo.FunctionWrapper efl_input_key_sym_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_key_sym_set"); - private static void key_set(System.IntPtr obj, System.IntPtr pd, System.String val) + private static void key_sym_set(System.IntPtr obj, System.IntPtr pd, System.String val) { - Eina.Log.Debug("function efl_input_key_set was called"); + Eina.Log.Debug("function efl_input_key_sym_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ((Key)ws.Target).SetKey(val); + ((Key)ws.Target).SetKeySym(val); } catch (Exception e) { @@ -821,11 +852,11 @@ public class Key : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent, Efl.Input.IStat } else { - efl_input_key_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); + efl_input_key_sym_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val); } } - private static efl_input_key_set_delegate efl_input_key_set_static_delegate; + private static efl_input_key_sym_set_delegate efl_input_key_sym_set_static_delegate; [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_input_key_string_get_delegate(System.IntPtr obj, System.IntPtr pd); @@ -1582,3 +1613,56 @@ public class Key : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent, Efl.Input.IStat } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_InputKey_ExtensionMethods { + public static Efl.BindableProperty Pressed(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Key { + return new Efl.BindableProperty("pressed", fac); + } + + public static Efl.BindableProperty KeyName(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Key { + return new Efl.BindableProperty("key_name", fac); + } + + public static Efl.BindableProperty KeySym(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Key { + return new Efl.BindableProperty("key_sym", fac); + } + + public static Efl.BindableProperty String(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Key { + return new Efl.BindableProperty("string", fac); + } + + public static Efl.BindableProperty ComposeString(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Key { + return new Efl.BindableProperty("compose_string", fac); + } + + public static Efl.BindableProperty KeyCode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Key { + return new Efl.BindableProperty("key_code", fac); + } + + public static Efl.BindableProperty Timestamp(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Key { + return new Efl.BindableProperty("timestamp", fac); + } + + public static Efl.BindableProperty Device(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Key { + return new Efl.BindableProperty("device", fac); + } + + public static Efl.BindableProperty EventFlags(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Key { + return new Efl.BindableProperty("event_flags", fac); + } + + public static Efl.BindableProperty Processed(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Key { + return new Efl.BindableProperty("processed", fac); + } + + public static Efl.BindableProperty Scrolling(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Key { + return new Efl.BindableProperty("scrolling", fac); + } + + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_input_pointer.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_input_pointer.eo.cs old mode 100644 new mode 100755 index be66ad6fa..4ce288d3e --- a/internals/src/EflSharp/EflSharp/efl/efl_input_pointer.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_input_pointer.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -14,7 +15,7 @@ namespace Input { [Efl.Eo.BindingEntity] public class Pointer : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent, Efl.Input.IState { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +41,8 @@ public class Pointer : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent, Efl.Input.I FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Pointer(ConstructingHandle ch) : base(ch) { @@ -74,7 +76,9 @@ public class Pointer : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent, Efl.Input.I Efl.Input.Pointer.NativeMethods.efl_input_pointer_action_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),act); Eina.Error.RaiseIfUnhandledException(); } - /// true if this event carries a valid value for the specified key. + /// true if this event carries a valid value for the specified key. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Pressed key /// true if input value is valid, false otherwise virtual public bool GetValueHas(Efl.Input.Value key) { @@ -85,7 +89,9 @@ public class Pointer : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent, Efl.Input.I /// Represents a generic value for this event. /// Refer to the documentation of for each value's meaning, type and range. Call to determine whether the returned value is valid or not for this event. /// - /// Most values are precise floating point values, usually in pixels, radians, or in a range of [-1, 1] or [0, 1]. Some values are discrete values (integers) and thus should preferably be queried with the other methods of this class. + /// Most values are precise floating point values, usually in pixels, radians, or in a range of [-1, 1] or [0, 1]. Some values are discrete values (integers) and thus should preferably be queried with the other methods of this class. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// key /// key value virtual public double GetValue(Efl.Input.Value key) { @@ -96,7 +102,9 @@ public class Pointer : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent, Efl.Input.I /// Represents a generic value for this event. /// Refer to the documentation of for each value's meaning, type and range. Call to determine whether the returned value is valid or not for this event. /// - /// Most values are precise floating point values, usually in pixels, radians, or in a range of [-1, 1] or [0, 1]. Some values are discrete values (integers) and thus should preferably be queried with the other methods of this class. + /// Most values are precise floating point values, usually in pixels, radians, or in a range of [-1, 1] or [0, 1]. Some values are discrete values (integers) and thus should preferably be queried with the other methods of this class. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// key /// key value /// false if the value could not be set (eg. delta). @@ -377,7 +385,9 @@ public class Pointer : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent, Efl.Input.I Eina.Error.RaiseIfUnhandledException(); } /// Indicates whether a key modifier is on, such as Ctrl, Shift, ... - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The modifier key to test. /// The seat device, may be null /// true if the key modifier is pressed. @@ -387,7 +397,9 @@ public class Pointer : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent, Efl.Input.I return _ret_var; } /// Indicates whether a key lock is on, such as NumLock, CapsLock, ... - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The lock key to test. /// The seat device, may be null /// true if the key lock is on. @@ -2559,3 +2571,83 @@ public class Pointer : Efl.Object, Efl.IDuplicate, Efl.Input.IEvent, Efl.Input.I } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_InputPointer_ExtensionMethods { + public static Efl.BindableProperty Action(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Pointer { + return new Efl.BindableProperty("action", fac); + } + + + + public static Efl.BindableProperty Button(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Pointer { + return new Efl.BindableProperty("button", fac); + } + + + public static Efl.BindableProperty Position(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Pointer { + return new Efl.BindableProperty("position", fac); + } + + public static Efl.BindableProperty PrecisePosition(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Pointer { + return new Efl.BindableProperty("precise_position", fac); + } + + public static Efl.BindableProperty PreviousPosition(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Pointer { + return new Efl.BindableProperty("previous_position", fac); + } + + public static Efl.BindableProperty TouchId(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Pointer { + return new Efl.BindableProperty("touch_id", fac); + } + + public static Efl.BindableProperty Source(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Pointer { + return new Efl.BindableProperty("source", fac); + } + + public static Efl.BindableProperty ButtonFlags(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Pointer { + return new Efl.BindableProperty("button_flags", fac); + } + + public static Efl.BindableProperty DoubleClick(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Pointer { + return new Efl.BindableProperty("double_click", fac); + } + + public static Efl.BindableProperty TripleClick(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Pointer { + return new Efl.BindableProperty("triple_click", fac); + } + + public static Efl.BindableProperty WheelHorizontal(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Pointer { + return new Efl.BindableProperty("wheel_horizontal", fac); + } + + public static Efl.BindableProperty WheelDelta(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Pointer { + return new Efl.BindableProperty("wheel_delta", fac); + } + + public static Efl.BindableProperty Timestamp(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Pointer { + return new Efl.BindableProperty("timestamp", fac); + } + + public static Efl.BindableProperty Device(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Pointer { + return new Efl.BindableProperty("device", fac); + } + + public static Efl.BindableProperty EventFlags(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Pointer { + return new Efl.BindableProperty("event_flags", fac); + } + + public static Efl.BindableProperty Processed(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Pointer { + return new Efl.BindableProperty("processed", fac); + } + + public static Efl.BindableProperty Scrolling(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Input.Pointer { + return new Efl.BindableProperty("scrolling", fac); + } + + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_input_state.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_input_state.eo.cs old mode 100644 new mode 100755 index 540720d27..9f91fdfe4 --- a/internals/src/EflSharp/EflSharp/efl/efl_input_state.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_input_state.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -17,13 +18,17 @@ public interface IState : Efl.Eo.IWrapper, IDisposable { /// Indicates whether a key modifier is on, such as Ctrl, Shift, ... -/// (Since EFL 1.22) +/// (Since EFL 1.22) +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The modifier key to test. /// The seat device, may be null /// true if the key modifier is pressed. bool GetModifierEnabled(Efl.Input.Modifier mod, Efl.Input.Device seat); /// Indicates whether a key lock is on, such as NumLock, CapsLock, ... -/// (Since EFL 1.22) +/// (Since EFL 1.22) +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The lock key to test. /// The seat device, may be null /// true if the key lock is on. @@ -31,12 +36,12 @@ bool GetLockEnabled(Efl.Input.Lock kw_lock, Efl.Input.Device seat); } /// Efl input state interface. /// (Since EFL 1.22) -sealed public class IStateConcrete : +sealed public class IStateConcrete : Efl.Eo.EoWrapper , IState { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -52,7 +57,8 @@ sealed public class IStateConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IStateConcrete(ConstructingHandle ch) : base(ch) { @@ -68,7 +74,9 @@ sealed public class IStateConcrete : } /// Indicates whether a key modifier is on, such as Ctrl, Shift, ... - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The modifier key to test. /// The seat device, may be null /// true if the key modifier is pressed. @@ -78,7 +86,9 @@ sealed public class IStateConcrete : return _ret_var; } /// Indicates whether a key lock is on, such as NumLock, CapsLock, ... - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The lock key to test. /// The seat device, may be null /// true if the key lock is on. @@ -214,3 +224,11 @@ sealed public class IStateConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_InputIStateConcrete_ExtensionMethods { + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_input_types.eot.cs b/internals/src/EflSharp/EflSharp/efl/efl_input_types.eot.cs old mode 100644 new mode 100755 diff --git a/internals/src/EflSharp/EflSharp/efl/efl_interpolator.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_interpolator.eo.cs old mode 100644 new mode 100755 index 1ac2dd70c..d26be4e7f --- a/internals/src/EflSharp/EflSharp/efl/efl_interpolator.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_interpolator.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,6 +9,7 @@ using System.ComponentModel; namespace Efl { /// Efl interpolator interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.IInterpolatorConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IInterpolator : @@ -19,12 +21,13 @@ public interface IInterpolator : double Interpolate(double progress); } /// Efl interpolator interface -sealed public class IInterpolatorConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IInterpolatorConcrete : Efl.Eo.EoWrapper , IInterpolator { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +43,8 @@ sealed public class IInterpolatorConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IInterpolatorConcrete(ConstructingHandle ch) : base(ch) { @@ -142,3 +146,9 @@ sealed public class IInterpolatorConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflIInterpolatorConcrete_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_io_closer.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_io_closer.eo.cs old mode 100644 new mode 100755 index acfb2a91f..be8c476f0 --- a/internals/src/EflSharp/EflSharp/efl/efl_io_closer.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_io_closer.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -57,23 +58,23 @@ Eina.Error Close(); /// (Since EFL 1.22) /// true if closed, false otherwise bool Closed { - get ; + get; } /// If true will automatically close resources on exec() calls. /// When using file descriptors this should set FD_CLOEXEC so they are not inherited by the processes (children or self) doing exec(). /// (Since EFL 1.22) /// true if close on exec(), false otherwise bool CloseOnExec { - get ; - set ; + get; + set; } /// If true will automatically close() on object invalidate. /// If the object was disconnected from its parent (including the main loop) without close, this property will state whenever it should be closed or not. /// (Since EFL 1.22) /// true if close on invalidate, false otherwise bool CloseOnInvalidate { - get ; - set ; + get; + set; } } /// Generic interface for objects that can close themselves. @@ -81,12 +82,12 @@ Eina.Error Close(); /// /// Calls to may or may not block, that's not up to this interface to specify. /// (Since EFL 1.22) -sealed public class ICloserConcrete : +sealed public class ICloserConcrete : Efl.Eo.EoWrapper , ICloser { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -102,7 +103,8 @@ sealed public class ICloserConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ICloserConcrete(ConstructingHandle ch) : base(ch) { @@ -157,7 +159,7 @@ sealed public class ICloserConcrete : } } } - ///Method to raise event ClosedEvt. + /// Method to raise event ClosedEvt. public void OnClosedEvt(EventArgs e) { var key = "_EFL_IO_CLOSER_EVENT_CLOSED"; @@ -556,3 +558,18 @@ sealed public class ICloserConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_IoICloserConcrete_ExtensionMethods { + + public static Efl.BindableProperty CloseOnExec(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Io.ICloser { + return new Efl.BindableProperty("close_on_exec", fac); + } + + public static Efl.BindableProperty CloseOnInvalidate(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Io.ICloser { + return new Efl.BindableProperty("close_on_invalidate", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_io_positioner.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_io_positioner.eo.cs old mode 100644 new mode 100755 index 3bc495f13..b62b958cf --- a/internals/src/EflSharp/EflSharp/efl/efl_io_positioner.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_io_positioner.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Io { /// Generic interface for objects that can change or report position. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Io.IPositionerConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IPositioner : @@ -32,17 +34,18 @@ Eina.Error Seek(long offset, Efl.Io.PositionerWhence whence); /// Position property /// Position in file or buffer ulong Position { - get ; - set ; + get; + set; } } /// Generic interface for objects that can change or report position. -sealed public class IPositionerConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IPositionerConcrete : Efl.Eo.EoWrapper , IPositioner { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -58,7 +61,8 @@ sealed public class IPositionerConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IPositionerConcrete(ConstructingHandle ch) : base(ch) { @@ -112,7 +116,7 @@ sealed public class IPositionerConcrete : } } } - ///Method to raise event PositionChangedEvt. + /// Method to raise event PositionChangedEvt. public void OnPositionChangedEvt(EventArgs e) { var key = "_EFL_IO_POSITIONER_EVENT_POSITION_CHANGED"; @@ -328,6 +332,16 @@ sealed public class IPositionerConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_IoIPositionerConcrete_ExtensionMethods { + public static Efl.BindableProperty Position(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Io.IPositioner { + return new Efl.BindableProperty("position", fac); + } + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Io { diff --git a/internals/src/EflSharp/EflSharp/efl/efl_io_reader.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_io_reader.eo.cs old mode 100644 new mode 100755 index 22e2fae17..0cdde2c36 --- a/internals/src/EflSharp/EflSharp/efl/efl_io_reader.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_io_reader.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -48,6 +49,7 @@ Eina.Error Read(ref Eina.RwSlice rw_slice); /// /// Note that usually this event is dispatched from inside , thus before it returns. /// (Since EFL 1.22) + /// event EventHandler CanReadChangedEvt; /// Notifies end of stream, when property is marked as true. /// If this is used alongside with an , then it should be emitted before that call. @@ -61,21 +63,22 @@ Eina.Error Read(ref Eina.RwSlice rw_slice); /// (Since EFL 1.22) /// true if it can be read without blocking or failing, false otherwise bool CanRead { - get ; - set ; + get; + set; } /// If true will notify end of stream. /// (Since EFL 1.22) /// true if end of stream, false otherwise bool Eos { - get ; - set ; + get; + set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IReaderCanReadChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Notifies can_read property changed. public bool arg { get; set; } } /// Generic interface for objects that can read data into a provided memory. @@ -83,12 +86,12 @@ public class IReaderCanReadChangedEvt_Args : EventArgs { /// /// Calls to may or may not block, that's not up to this interface to specify. The user can check based on property and signal if the stream reached an end, with event "can_read,changed" or property to known whenever a read would have data to return. /// (Since EFL 1.22) -sealed public class IReaderConcrete : +sealed public class IReaderConcrete : Efl.Eo.EoWrapper , IReader { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -104,7 +107,8 @@ sealed public class IReaderConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IReaderConcrete(ConstructingHandle ch) : base(ch) { @@ -124,6 +128,7 @@ sealed public class IReaderConcrete : /// /// Note that usually this event is dispatched from inside , thus before it returns. /// (Since EFL 1.22) + /// public event EventHandler CanReadChangedEvt { add @@ -163,7 +168,7 @@ sealed public class IReaderConcrete : } } } - ///Method to raise event CanReadChangedEvt. + /// Method to raise event CanReadChangedEvt. public void OnCanReadChangedEvt(Efl.Io.IReaderCanReadChangedEvt_Args e) { var key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED"; @@ -229,7 +234,7 @@ sealed public class IReaderConcrete : } } } - ///Method to raise event EosEvt. + /// Method to raise event EosEvt. public void OnEosEvt(EventArgs e) { var key = "_EFL_IO_READER_EVENT_EOS"; @@ -561,3 +566,17 @@ sealed public class IReaderConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_IoIReaderConcrete_ExtensionMethods { + public static Efl.BindableProperty CanRead(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Io.IReader { + return new Efl.BindableProperty("can_read", fac); + } + + public static Efl.BindableProperty Eos(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Io.IReader { + return new Efl.BindableProperty("eos", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_io_writer.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_io_writer.eo.cs old mode 100644 new mode 100755 index 9344f72b8..53d1ecbb3 --- a/internals/src/EflSharp/EflSharp/efl/efl_io_writer.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_io_writer.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -41,19 +42,21 @@ Eina.Error Write(ref Eina.Slice slice, ref Eina.Slice remaining); /// /// Note that usually this event is dispatched from inside , thus before it returns. /// (Since EFL 1.22) + /// event EventHandler CanWriteChangedEvt; /// If true will notify can be called without blocking or failing. /// (Since EFL 1.22) /// true if it can be written without blocking or failure, false otherwise bool CanWrite { - get ; - set ; + get; + set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IWriterCanWriteChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Notifies can_write property changed. public bool arg { get; set; } } /// Generic interface for objects that can write data from a provided memory. @@ -61,12 +64,12 @@ public class IWriterCanWriteChangedEvt_Args : EventArgs { /// /// Calls to may or may not block: that's not up to this interface to specify. The user can check with event "can_write,changed" or property to known whenever a write could push more data. /// (Since EFL 1.22) -sealed public class IWriterConcrete : +sealed public class IWriterConcrete : Efl.Eo.EoWrapper , IWriter { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -82,7 +85,8 @@ sealed public class IWriterConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IWriterConcrete(ConstructingHandle ch) : base(ch) { @@ -102,6 +106,7 @@ sealed public class IWriterConcrete : /// /// Note that usually this event is dispatched from inside , thus before it returns. /// (Since EFL 1.22) + /// public event EventHandler CanWriteChangedEvt { add @@ -141,7 +146,7 @@ sealed public class IWriterConcrete : } } } - ///Method to raise event CanWriteChangedEvt. + /// Method to raise event CanWriteChangedEvt. public void OnCanWriteChangedEvt(Efl.Io.IWriterCanWriteChangedEvt_Args e) { var key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED"; @@ -369,3 +374,13 @@ sealed public class IWriterConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_IoIWriterConcrete_ExtensionMethods { + public static Efl.BindableProperty CanWrite(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Io.IWriter { + return new Efl.BindableProperty("can_write", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_layout_calc.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_layout_calc.eo.cs old mode 100644 new mode 100755 index 940383087..4796e36b8 --- a/internals/src/EflSharp/EflSharp/efl/efl_layout_calc.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_layout_calc.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -69,6 +70,7 @@ void CalcForce(); event EventHandler RecalcEvt; /// A circular dependency between parts of the object was found. /// (Since EFL 1.22) + /// event EventHandler CircularDependencyEvt; /// Whether this object updates its size hints automatically. /// By default edje doesn't set size hints on itself. If this property is set to true, size hints will be updated after recalculation. Be careful, as recalculation may happen often, enabling this property may have a considerable performance impact as other widgets will be notified of the size hints changes. @@ -77,25 +79,26 @@ void CalcForce(); /// (Since EFL 1.22) /// Whether or not update the size hints. bool CalcAutoUpdateHints { - get ; - set ; + get; + set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ICalcCircularDependencyEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// A circular dependency between parts of the object was found. public Eina.Array arg { get; set; } } /// This interface defines a common set of APIs used to trigger calculations with layout objects. /// This defines all the APIs supported by legacy "Edje" object, known in EO API as Efl.Canvas.Layout. /// (Since EFL 1.22) -sealed public class ICalcConcrete : +sealed public class ICalcConcrete : Efl.Eo.EoWrapper , ICalc { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -111,7 +114,8 @@ sealed public class ICalcConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ICalcConcrete(ConstructingHandle ch) : base(ch) { @@ -166,7 +170,7 @@ sealed public class ICalcConcrete : } } } - ///Method to raise event RecalcEvt. + /// Method to raise event RecalcEvt. public void OnRecalcEvt(EventArgs e) { var key = "_EFL_LAYOUT_EVENT_RECALC"; @@ -181,6 +185,7 @@ sealed public class ICalcConcrete : } /// A circular dependency between parts of the object was found. /// (Since EFL 1.22) + /// public event EventHandler CircularDependencyEvt { add @@ -220,7 +225,7 @@ sealed public class ICalcConcrete : } } } - ///Method to raise event CircularDependencyEvt. + /// Method to raise event CircularDependencyEvt. public void OnCircularDependencyEvt(Efl.Layout.ICalcCircularDependencyEvt_Args e) { var key = "_EFL_LAYOUT_EVENT_CIRCULAR_DEPENDENCY"; @@ -674,3 +679,13 @@ sealed public class ICalcConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_LayoutICalcConcrete_ExtensionMethods { + public static Efl.BindableProperty CalcAutoUpdateHints(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Layout.ICalc { + return new Efl.BindableProperty("calc_auto_update_hints", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_layout_group.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_layout_group.eo.cs old mode 100644 new mode 100755 index 8143c080c..318809fb4 --- a/internals/src/EflSharp/EflSharp/efl/efl_layout_group.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_layout_group.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -66,7 +67,7 @@ bool GetPartExist(System.String part); /// (Since EFL 1.22) /// The minimum size as set in EDC. Eina.Size2D GroupSizeMin { - get ; + get; } /// Gets the maximum size specified -- as an EDC property -- for a given Edje object /// This function retrieves the object's maximum size values, as declared in its EDC group definition. For instance, for an Edje object of maximum size 100x100 pixels: collections { group { name: "a_group"; max: 100 100; } } @@ -79,17 +80,17 @@ bool GetPartExist(System.String part); /// (Since EFL 1.22) /// The maximum size as set in EDC. Eina.Size2D GroupSizeMax { - get ; + get; } } /// APIs representing static data from a group in an edje file. /// (Since EFL 1.22) -sealed public class IGroupConcrete : +sealed public class IGroupConcrete : Efl.Eo.EoWrapper , IGroup { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -105,7 +106,8 @@ sealed public class IGroupConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IGroupConcrete(ConstructingHandle ch) : base(ch) { @@ -420,3 +422,13 @@ sealed public class IGroupConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_LayoutIGroupConcrete_ExtensionMethods { + + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_layout_signal.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_layout_signal.eo.cs old mode 100644 new mode 100755 index 8c41545eb..e0d27c59f --- a/internals/src/EflSharp/EflSharp/efl/efl_layout_signal.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_layout_signal.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -103,7 +104,7 @@ void MessageSend(int id, Eina.Value msg); /// /// Though there are those common uses for the two strings, one is free to use them however they like. /// -/// Signal callback registration is powerful, in the way that blobs may be used to match multiple signals at once. All the "*?[" set of fnmatch() operators can be used, both for emission and source. +/// Signal callback registration is powerful, in the way that blobs may be used to match multiple signals at once. All the "*?[" set of fnmatch() operators can be used, both for emission and source. /// /// Edje has internal signals it will emit, automatically, on various actions taking place on group parts. For example, the mouse cursor being moved, pressed, released, etc., over a given part's area, all generate individual signals. /// @@ -148,12 +149,12 @@ void SignalProcess(bool recurse); } /// Layouts asynchronous messaging and signaling interface. /// (Since EFL 1.22) -sealed public class ISignalConcrete : +sealed public class ISignalConcrete : Efl.Eo.EoWrapper , ISignal { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -169,7 +170,8 @@ sealed public class ISignalConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ISignalConcrete(ConstructingHandle ch) : base(ch) { @@ -204,7 +206,7 @@ sealed public class ISignalConcrete : /// /// Though there are those common uses for the two strings, one is free to use them however they like. /// - /// Signal callback registration is powerful, in the way that blobs may be used to match multiple signals at once. All the "*?[" set of fnmatch() operators can be used, both for emission and source. + /// Signal callback registration is powerful, in the way that blobs may be used to match multiple signals at once. All the "*?[" set of fnmatch() operators can be used, both for emission and source. /// /// Edje has internal signals it will emit, automatically, on various actions taking place on group parts. For example, the mouse cursor being moved, pressed, released, etc., over a given part's area, all generate individual signals. /// @@ -526,3 +528,9 @@ sealed public class ISignalConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_LayoutISignalConcrete_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_libs.cs b/internals/src/EflSharp/EflSharp/efl/efl_libs.cs old mode 100644 new mode 100755 diff --git a/internals/src/EflSharp/EflSharp/efl/efl_linear_interpolator.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_linear_interpolator.eo.cs old mode 100644 new mode 100755 index cba28a007..37e3dc7e1 --- a/internals/src/EflSharp/EflSharp/efl/efl_linear_interpolator.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_linear_interpolator.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,11 +9,12 @@ using System.ComponentModel; namespace Efl { /// Efl linear interpolator class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.LinearInterpolator.NativeMethods] [Efl.Eo.BindingEntity] public class LinearInterpolator : Efl.Object, Efl.IInterpolator { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -38,7 +40,8 @@ public class LinearInterpolator : Efl.Object, Efl.IInterpolator FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected LinearInterpolator(ConstructingHandle ch) : base(ch) { @@ -147,3 +150,9 @@ public class LinearInterpolator : Efl.Object, Efl.IInterpolator } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflLinearInterpolator_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_loop.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_loop.eo.cs old mode 100644 new mode 100755 index 70723b833..158785f48 --- a/internals/src/EflSharp/EflSharp/efl/efl_loop.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_loop.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -7,10 +8,11 @@ using System.Threading; using System.ComponentModel; namespace Efl { -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class LoopArgumentsEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Event happens when args are provided to the loop by args_add(). public Efl.LoopArguments arg { get; set; } } /// The Efl Main Loop @@ -20,7 +22,7 @@ public class LoopArgumentsEvt_Args : EventArgs { [Efl.Eo.BindingEntity] public abstract class Loop : Efl.Task { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +48,8 @@ public abstract class Loop : Efl.Task FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Loop(ConstructingHandle ch) : base(ch) { @@ -114,7 +117,7 @@ public abstract class Loop : Efl.Task } } } - ///Method to raise event IdleEnterEvt. + /// Method to raise event IdleEnterEvt. public void OnIdleEnterEvt(EventArgs e) { var key = "_EFL_LOOP_EVENT_IDLE_ENTER"; @@ -167,7 +170,7 @@ public abstract class Loop : Efl.Task } } } - ///Method to raise event IdleExitEvt. + /// Method to raise event IdleExitEvt. public void OnIdleExitEvt(EventArgs e) { var key = "_EFL_LOOP_EVENT_IDLE_EXIT"; @@ -220,7 +223,7 @@ public abstract class Loop : Efl.Task } } } - ///Method to raise event IdleEvt. + /// Method to raise event IdleEvt. public void OnIdleEvt(EventArgs e) { var key = "_EFL_LOOP_EVENT_IDLE"; @@ -235,6 +238,7 @@ public abstract class Loop : Efl.Task } /// Event happens when args are provided to the loop by args_add(). /// (Since EFL 1.22) + /// public event EventHandler ArgumentsEvt { add @@ -274,7 +278,7 @@ public abstract class Loop : Efl.Task } } } - ///Method to raise event ArgumentsEvt. + /// Method to raise event ArgumentsEvt. public void OnArgumentsEvt(Efl.LoopArgumentsEvt_Args e) { var key = "_EFL_LOOP_EVENT_ARGUMENTS"; @@ -336,7 +340,7 @@ public abstract class Loop : Efl.Task } } } - ///Method to raise event PollHighEvt. + /// Method to raise event PollHighEvt. public void OnPollHighEvt(EventArgs e) { var key = "_EFL_LOOP_EVENT_POLL_HIGH"; @@ -389,7 +393,7 @@ public abstract class Loop : Efl.Task } } } - ///Method to raise event PollMediumEvt. + /// Method to raise event PollMediumEvt. public void OnPollMediumEvt(EventArgs e) { var key = "_EFL_LOOP_EVENT_POLL_MEDIUM"; @@ -442,7 +446,7 @@ public abstract class Loop : Efl.Task } } } - ///Method to raise event PollLowEvt. + /// Method to raise event PollLowEvt. public void OnPollLowEvt(EventArgs e) { var key = "_EFL_LOOP_EVENT_POLL_LOW"; @@ -495,7 +499,7 @@ public abstract class Loop : Efl.Task } } } - ///Method to raise event QuitEvt. + /// Method to raise event QuitEvt. public void OnQuitEvt(EventArgs e) { var key = "_EFL_LOOP_EVENT_QUIT"; @@ -596,26 +600,6 @@ public abstract class Loop : Efl.Task var _ret_var = Efl.Loop.NativeMethods.efl_loop_timeout_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),time); Eina.Error.RaiseIfUnhandledException(); return _ret_var; - } - /// Will register a manager of a specific class to be answered by eo.provider_find. - /// (Since EFL 1.22) - /// The class provided by the registered provider. - /// The provider for the newly registered class that has to provide that said Efl.Class. - /// true if successfully register, false otherwise. - virtual public bool Register(Type klass, Efl.Object provider) { - var _ret_var = Efl.Loop.NativeMethods.efl_loop_register_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),klass, provider); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Will unregister a manager of a specific class that was previously registered and answered by eo.provider_find. - /// (Since EFL 1.22) - /// The class provided by the provider to unregister for. - /// The provider for the registered class to unregister. - /// true if successfully unregistered, false otherwise. - virtual public bool Unregister(Type klass, Efl.Object provider) { - var _ret_var = Efl.Loop.NativeMethods.efl_loop_unregister_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),klass, provider); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; } /// Async wrapper for . /// Token to notify the async operation of external request to cancel. @@ -785,26 +769,6 @@ public abstract class Loop : Efl.Task descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_timeout"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_timeout_static_delegate) }); } - if (efl_loop_register_static_delegate == null) - { - efl_loop_register_static_delegate = new efl_loop_register_delegate(register); - } - - if (methods.FirstOrDefault(m => m.Name == "Register") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_register"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_register_static_delegate) }); - } - - if (efl_loop_unregister_static_delegate == null) - { - efl_loop_unregister_static_delegate = new efl_loop_unregister_delegate(unregister); - } - - if (methods.FirstOrDefault(m => m.Name == "Unregister") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_loop_unregister"), func = Marshal.GetFunctionPointerForDelegate(efl_loop_unregister_static_delegate) }); - } - descs.AddRange(base.GetEoOps(type)); return descs; } @@ -1210,84 +1174,26 @@ public abstract class Loop : Efl.Task private static efl_loop_timeout_delegate efl_loop_timeout_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_loop_register_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object provider); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_loop_register_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object provider); - - public static Efl.Eo.FunctionWrapper efl_loop_register_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_register"); - - private static bool register(System.IntPtr obj, System.IntPtr pd, Type klass, Efl.Object provider) - { - Eina.Log.Debug("function efl_loop_register was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((Loop)ws.Target).Register(klass, provider); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_loop_register_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), klass, provider); - } - } - - private static efl_loop_register_delegate efl_loop_register_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_loop_unregister_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object provider); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_loop_unregister_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object provider); - - public static Efl.Eo.FunctionWrapper efl_loop_unregister_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_loop_unregister"); - - private static bool unregister(System.IntPtr obj, System.IntPtr pd, Type klass, Efl.Object provider) - { - Eina.Log.Debug("function efl_loop_unregister was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((Loop)ws.Target).Unregister(klass, provider); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_loop_unregister_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), klass, provider); - } - } - - private static efl_loop_unregister_delegate efl_loop_unregister_static_delegate; - #pragma warning restore CA1707, CS1591, SA1300, SA1600 } } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflLoop_ExtensionMethods { + public static Efl.BindableProperty Throttle(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Loop { + return new Efl.BindableProperty("throttle", fac); + } + + public static Efl.BindableProperty Time(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Loop { + return new Efl.BindableProperty("time", fac); + } + +} +#pragma warning restore CS1591 +#endif namespace Efl { /// EFL loop arguments data structure @@ -1300,7 +1206,9 @@ public struct LoopArguments public Eina.Array Argv; /// Set to true when the program should initialize its internal state. This happen once per process instance. public bool Initialization; - ///Constructor for LoopArguments. + /// Constructor for LoopArguments. + /// Array with loop arguments; + /// Set to true when the program should initialize its internal state. This happen once per process instance.; public LoopArguments( Eina.Array Argv = default(Eina.Array), bool Initialization = default(bool) ) @@ -1309,8 +1217,8 @@ public struct LoopArguments this.Initialization = Initialization; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator LoopArguments(IntPtr ptr) { var tmp = (LoopArguments.NativeStruct)Marshal.PtrToStructure(ptr, typeof(LoopArguments.NativeStruct)); @@ -1319,15 +1227,15 @@ public struct LoopArguments #pragma warning disable CS1591 - ///Internal wrapper for struct LoopArguments. + /// Internal wrapper for struct LoopArguments. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { public System.IntPtr Argv; - ///Internal wrapper for field Initialization + /// Internal wrapper for field Initialization public System.Byte Initialization; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator LoopArguments.NativeStruct(LoopArguments _external_struct) { var _internal_struct = new LoopArguments.NativeStruct(); @@ -1336,7 +1244,7 @@ public struct LoopArguments return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator LoopArguments(LoopArguments.NativeStruct _internal_struct) { var _external_struct = new LoopArguments(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_loop_consumer.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_loop_consumer.eo.cs old mode 100644 new mode 100755 index 9c66dc65d..8aba1d73e --- a/internals/src/EflSharp/EflSharp/efl/efl_loop_consumer.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_loop_consumer.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -13,7 +14,7 @@ namespace Efl { [Efl.Eo.BindingEntity] public abstract class LoopConsumer : Efl.Object { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -39,7 +40,8 @@ public abstract class LoopConsumer : Efl.Object FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected LoopConsumer(ConstructingHandle ch) : base(ch) { @@ -81,7 +83,7 @@ public abstract class LoopConsumer : Efl.Object /// This is a helper that behaves the same as eina_future_resolved. /// (Since EFL 1.22) /// The value to be delivered. - /// Note that the value contents must survive this function scope, that is, do not use stack allocated blobs, arrays, structures or types that keep references to memory you give. Values will be automatically cleaned up using @ref eina_value_flush() once they are unused (no more future or futures returned a new value) + /// Note that the value contents must survive this function scope, that is, do not use stack allocated blobs, arrays, structures or types that keep references to memory you give. Values will be automatically cleaned up using ref eina_value_flush() once they are unused (no more future or futures returned a new value) /// The future or NULL on error. virtual public Eina.Future FutureResolved(Eina.Value result) { var _in_result = result.GetNative(); @@ -92,7 +94,7 @@ public abstract class LoopConsumer : Efl.Object /// Creates a new future that is already rejected to a specified error using the . /// This function creates a new future with an already known error, that will be resolved and dispatched by the loop scheduler as usual. /// - /// This is a helper that behaves the same as @ref eina_future_rejected. + /// This is a helper that behaves the same as ref eina_future_rejected. /// (Since EFL 1.22) /// An Eina_Error value /// The future or NULL on error. @@ -112,7 +114,7 @@ public abstract class LoopConsumer : Efl.Object } /// Async wrapper for . /// The value to be delivered. - /// Note that the value contents must survive this function scope, that is, do not use stack allocated blobs, arrays, structures or types that keep references to memory you give. Values will be automatically cleaned up using @ref eina_value_flush() once they are unused (no more future or futures returned a new value) + /// Note that the value contents must survive this function scope, that is, do not use stack allocated blobs, arrays, structures or types that keep references to memory you give. Values will be automatically cleaned up using ref eina_value_flush() once they are unused (no more future or futures returned a new value) /// Token to notify the async operation of external request to cancel. /// An async task wrapping the result of the operation. public System.Threading.Tasks.Task FutureResolvedAsync(Eina.Value result, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) @@ -356,3 +358,10 @@ public abstract class LoopConsumer : Efl.Object } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflLoopConsumer_ExtensionMethods { + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_loop_fd.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_loop_fd.eo.cs old mode 100644 new mode 100755 index 985712607..6faea97c3 --- a/internals/src/EflSharp/EflSharp/efl/efl_loop_fd.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_loop_fd.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,11 +10,12 @@ namespace Efl { /// Fds are objects that watch the activity on a given file descriptor. This file descriptor can be a network, a file, provided by a library. /// The object will trigger relevant events depending on what's happening. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.LoopFd.NativeMethods] [Efl.Eo.BindingEntity] public class LoopFd : Efl.LoopConsumer { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -39,7 +41,8 @@ public class LoopFd : Efl.LoopConsumer FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected LoopFd(ConstructingHandle ch) : base(ch) { @@ -99,7 +102,7 @@ public class LoopFd : Efl.LoopConsumer } } } - ///Method to raise event ReadEvt. + /// Method to raise event ReadEvt. public void OnReadEvt(EventArgs e) { var key = "_EFL_LOOP_FD_EVENT_READ"; @@ -151,7 +154,7 @@ public class LoopFd : Efl.LoopConsumer } } } - ///Method to raise event WriteEvt. + /// Method to raise event WriteEvt. public void OnWriteEvt(EventArgs e) { var key = "_EFL_LOOP_FD_EVENT_WRITE"; @@ -203,7 +206,7 @@ public class LoopFd : Efl.LoopConsumer } } } - ///Method to raise event ErrorEvt. + /// Method to raise event ErrorEvt. public void OnErrorEvt(EventArgs e) { var key = "_EFL_LOOP_FD_EVENT_ERROR"; @@ -470,3 +473,17 @@ public class LoopFd : Efl.LoopConsumer } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflLoopFd_ExtensionMethods { + public static Efl.BindableProperty Fd(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.LoopFd { + return new Efl.BindableProperty("fd", fac); + } + + public static Efl.BindableProperty FdFile(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.LoopFd { + return new Efl.BindableProperty("fd_file", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_loop_handler.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_loop_handler.eo.cs old mode 100644 new mode 100755 index 8e109b5c6..ebfcaf74a --- a/internals/src/EflSharp/EflSharp/efl/efl_loop_handler.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_loop_handler.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,11 +9,12 @@ using System.ComponentModel; namespace Efl { /// An object that describes an low-level source of I/O to listen to for available data to be read or written, depending on the OS and data source type. When I/O becomes available various events are produced and the callbacks attached to them will be called. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.LoopHandler.NativeMethods] [Efl.Eo.BindingEntity] public class LoopHandler : Efl.Object { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -38,7 +40,8 @@ public class LoopHandler : Efl.Object FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected LoopHandler(ConstructingHandle ch) : base(ch) { @@ -98,7 +101,7 @@ public class LoopHandler : Efl.Object } } } - ///Method to raise event ReadEvt. + /// Method to raise event ReadEvt. public void OnReadEvt(EventArgs e) { var key = "_EFL_LOOP_HANDLER_EVENT_READ"; @@ -150,7 +153,7 @@ public class LoopHandler : Efl.Object } } } - ///Method to raise event WriteEvt. + /// Method to raise event WriteEvt. public void OnWriteEvt(EventArgs e) { var key = "_EFL_LOOP_HANDLER_EVENT_WRITE"; @@ -202,7 +205,7 @@ public class LoopHandler : Efl.Object } } } - ///Method to raise event ErrorEvt. + /// Method to raise event ErrorEvt. public void OnErrorEvt(EventArgs e) { var key = "_EFL_LOOP_HANDLER_EVENT_ERROR"; @@ -254,7 +257,7 @@ public class LoopHandler : Efl.Object } } } - ///Method to raise event BufferEvt. + /// Method to raise event BufferEvt. public void OnBufferEvt(EventArgs e) { var key = "_EFL_LOOP_HANDLER_EVENT_BUFFER"; @@ -306,7 +309,7 @@ public class LoopHandler : Efl.Object } } } - ///Method to raise event PrepareEvt. + /// Method to raise event PrepareEvt. public void OnPrepareEvt(EventArgs e) { var key = "_EFL_LOOP_HANDLER_EVENT_PREPARE"; @@ -793,6 +796,28 @@ public class LoopHandler : Efl.Object } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflLoopHandler_ExtensionMethods { + public static Efl.BindableProperty Active(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.LoopHandler { + return new Efl.BindableProperty("active", fac); + } + + public static Efl.BindableProperty Fd(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.LoopHandler { + return new Efl.BindableProperty("fd", fac); + } + + public static Efl.BindableProperty FdFile(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.LoopHandler { + return new Efl.BindableProperty("fd_file", fac); + } + + public static Efl.BindableProperty Win32(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.LoopHandler { + return new Efl.BindableProperty("win32", fac); + } + +} +#pragma warning restore CS1591 +#endif namespace Efl { /// A set of flags that can be OR'd together to indicate which are desired diff --git a/internals/src/EflSharp/EflSharp/efl/efl_loop_message.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_loop_message.eo.cs old mode 100644 new mode 100755 index 1477189c9..c2f8da6eb --- a/internals/src/EflSharp/EflSharp/efl/efl_loop_message.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_loop_message.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -7,18 +8,20 @@ using System.Threading; using System.ComponentModel; namespace Efl { -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class LoopMessageMessageEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// The message payload data public Efl.LoopMessage arg { get; set; } } /// Base message payload object class. Inherit this and extend for specific message types. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.LoopMessage.NativeMethods] [Efl.Eo.BindingEntity] public class LoopMessage : Efl.Object { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -44,7 +47,8 @@ public class LoopMessage : Efl.Object FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected LoopMessage(ConstructingHandle ch) : base(ch) { @@ -66,6 +70,7 @@ public class LoopMessage : Efl.Object } /// The message payload data + /// public event EventHandler MessageEvt { add @@ -105,7 +110,7 @@ public class LoopMessage : Efl.Object } } } - ///Method to raise event MessageEvt. + /// Method to raise event MessageEvt. public void OnMessageEvt(Efl.LoopMessageMessageEvt_Args e) { var key = "_EFL_LOOP_MESSAGE_EVENT_MESSAGE"; @@ -150,3 +155,9 @@ public class LoopMessage : Efl.Object } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflLoopMessage_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_loop_message_future.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_loop_message_future.eo.cs old mode 100644 new mode 100755 index 048775605..f8c1fc73a --- a/internals/src/EflSharp/EflSharp/efl/efl_loop_message_future.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_loop_message_future.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,11 +9,12 @@ using System.ComponentModel; namespace Efl { /// Used internally for futures on the loop +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.LoopMessageFuture.NativeMethods] [Efl.Eo.BindingEntity] public class LoopMessageFuture : Efl.LoopMessage { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -38,7 +40,8 @@ public class LoopMessageFuture : Efl.LoopMessage FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected LoopMessageFuture(ConstructingHandle ch) : base(ch) { @@ -203,3 +206,13 @@ public class LoopMessageFuture : Efl.LoopMessage } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflLoopMessageFuture_ExtensionMethods { + public static Efl.BindableProperty Data(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.LoopMessageFuture { + return new Efl.BindableProperty("data", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_loop_message_future_handler.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_loop_message_future_handler.eo.cs old mode 100644 new mode 100755 index 6b7d55099..125d0f961 --- a/internals/src/EflSharp/EflSharp/efl/efl_loop_message_future_handler.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_loop_message_future_handler.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -7,18 +8,20 @@ using System.Threading; using System.ComponentModel; namespace Efl { -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class LoopMessageFutureHandlerMessageFutureEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// No description supplied. public Efl.LoopMessageFuture arg { get; set; } } /// Internal use for future on an efl loop - replacing legacy ecore events +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.LoopMessageFutureHandler.NativeMethods] [Efl.Eo.BindingEntity] public class LoopMessageFutureHandler : Efl.LoopMessageHandler { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -44,7 +47,8 @@ public class LoopMessageFutureHandler : Efl.LoopMessageHandler FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected LoopMessageFutureHandler(ConstructingHandle ch) : base(ch) { @@ -66,6 +70,7 @@ public class LoopMessageFutureHandler : Efl.LoopMessageHandler } /// No description supplied. + /// public event EventHandler MessageFutureEvt { add @@ -105,7 +110,7 @@ public class LoopMessageFutureHandler : Efl.LoopMessageHandler } } } - ///Method to raise event MessageFutureEvt. + /// Method to raise event MessageFutureEvt. public void OnMessageFutureEvt(Efl.LoopMessageFutureHandlerMessageFutureEvt_Args e) { var key = "_EFL_LOOP_MESSAGE_FUTURE_HANDLER_EVENT_MESSAGE_FUTURE"; @@ -206,3 +211,9 @@ public class LoopMessageFutureHandler : Efl.LoopMessageHandler } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflLoopMessageFutureHandler_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_loop_message_handler.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_loop_message_handler.eo.cs old mode 100644 new mode 100755 index 543033cef..e45d75aab --- a/internals/src/EflSharp/EflSharp/efl/efl_loop_message_handler.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_loop_message_handler.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -7,18 +8,20 @@ using System.Threading; using System.ComponentModel; namespace Efl { -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class LoopMessageHandlerMessageEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// The message payload data public Efl.LoopMessage arg { get; set; } } /// Message handlers represent a single message type on the Efl.Loop parent object. These message handlers can be used to listen for that message type by listening to the message event for the generic case or a class specific event type to get specific message object typing correct. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.LoopMessageHandler.NativeMethods] [Efl.Eo.BindingEntity] public class LoopMessageHandler : Efl.Object { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -44,7 +47,8 @@ public class LoopMessageHandler : Efl.Object FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected LoopMessageHandler(ConstructingHandle ch) : base(ch) { @@ -66,6 +70,7 @@ public class LoopMessageHandler : Efl.Object } /// The message payload data + /// public event EventHandler MessageEvt { add @@ -105,7 +110,7 @@ public class LoopMessageHandler : Efl.Object } } } - ///Method to raise event MessageEvt. + /// Method to raise event MessageEvt. public void OnMessageEvt(Efl.LoopMessageHandlerMessageEvt_Args e) { var key = "_EFL_LOOP_MESSAGE_HANDLER_EVENT_MESSAGE"; @@ -361,3 +366,9 @@ public class LoopMessageHandler : Efl.Object } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflLoopMessageHandler_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_loop_model.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_loop_model.eo.cs old mode 100644 new mode 100755 index 16947f94e..5ad7d70e6 --- a/internals/src/EflSharp/EflSharp/efl/efl_loop_model.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_loop_model.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -7,11 +8,12 @@ using System.Threading; using System.ComponentModel; namespace Efl { +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.LoopModel.NativeMethods] [Efl.Eo.BindingEntity] public abstract class LoopModel : Efl.LoopConsumer, Efl.IModel { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -37,7 +39,8 @@ public abstract class LoopModel : Efl.LoopConsumer, Efl.IModel FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected LoopModel(ConstructingHandle ch) : base(ch) { @@ -66,6 +69,7 @@ public abstract class LoopModel : Efl.LoopConsumer, Efl.IModel } /// Event dispatched when properties list is available. + /// public event EventHandler PropertiesChangedEvt { add @@ -105,7 +109,7 @@ public abstract class LoopModel : Efl.LoopConsumer, Efl.IModel } } } - ///Method to raise event PropertiesChangedEvt. + /// Method to raise event PropertiesChangedEvt. public void OnPropertiesChangedEvt(Efl.IModelPropertiesChangedEvt_Args e) { var key = "_EFL_MODEL_EVENT_PROPERTIES_CHANGED"; @@ -128,6 +132,7 @@ public abstract class LoopModel : Efl.LoopConsumer, Efl.IModel } } /// Event dispatched when new child is added. + /// public event EventHandler ChildAddedEvt { add @@ -167,7 +172,7 @@ public abstract class LoopModel : Efl.LoopConsumer, Efl.IModel } } } - ///Method to raise event ChildAddedEvt. + /// Method to raise event ChildAddedEvt. public void OnChildAddedEvt(Efl.IModelChildAddedEvt_Args e) { var key = "_EFL_MODEL_EVENT_CHILD_ADDED"; @@ -190,6 +195,7 @@ public abstract class LoopModel : Efl.LoopConsumer, Efl.IModel } } /// Event dispatched when child is removed. + /// public event EventHandler ChildRemovedEvt { add @@ -229,7 +235,7 @@ public abstract class LoopModel : Efl.LoopConsumer, Efl.IModel } } } - ///Method to raise event ChildRemovedEvt. + /// Method to raise event ChildRemovedEvt. public void OnChildRemovedEvt(Efl.IModelChildRemovedEvt_Args e) { var key = "_EFL_MODEL_EVENT_CHILD_REMOVED"; @@ -290,7 +296,7 @@ public abstract class LoopModel : Efl.LoopConsumer, Efl.IModel } } } - ///Method to raise event ChildrenCountChangedEvt. + /// Method to raise event ChildrenCountChangedEvt. public void OnChildrenCountChangedEvt(EventArgs e) { var key = "_EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED"; @@ -894,3 +900,12 @@ public abstract class LoopModel : Efl.LoopConsumer, Efl.IModel } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflLoopModel_ExtensionMethods { + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_loop_timer.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_loop_timer.eo.cs old mode 100644 new mode 100755 index 1f4eb7dd5..770e951ed --- a/internals/src/EflSharp/EflSharp/efl/efl_loop_timer.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_loop_timer.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -16,7 +17,7 @@ namespace Efl { [Efl.Eo.BindingEntity] public class LoopTimer : Efl.LoopConsumer { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -48,7 +49,8 @@ public class LoopTimer : Efl.LoopConsumer FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected LoopTimer(ConstructingHandle ch) : base(ch) { @@ -109,7 +111,7 @@ public class LoopTimer : Efl.LoopConsumer } } } - ///Method to raise event TimerTickEvt. + /// Method to raise event TimerTickEvt. public void OnTimerTickEvt(EventArgs e) { var key = "_EFL_LOOP_TIMER_EVENT_TIMER_TICK"; @@ -484,3 +486,14 @@ public class LoopTimer : Efl.LoopConsumer } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflLoopTimer_ExtensionMethods { + public static Efl.BindableProperty TimerInterval(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.LoopTimer { + return new Efl.BindableProperty("timer_interval", fac); + } + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_model.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_model.eo.cs old mode 100644 new mode 100755 index 662ca9b9f..7f59b1c46 --- a/internals/src/EflSharp/EflSharp/efl/efl_model.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_model.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,6 +9,7 @@ using System.ComponentModel; namespace Efl { /// Efl model interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.IModelConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IModel : @@ -94,10 +96,13 @@ void DelChild(Efl.Object child); System.Threading.Tasks.Task GetChildrenSliceAsync(uint start,uint count, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)); /// Event dispatched when properties list is available. + /// event EventHandler PropertiesChangedEvt; /// Event dispatched when new child is added. + /// event EventHandler ChildAddedEvt; /// Event dispatched when child is removed. + /// event EventHandler ChildRemovedEvt; /// Event dispatched when children count is finished. event EventHandler ChildrenCountChangedEvt; @@ -107,7 +112,7 @@ void DelChild(Efl.Object child); /// See also . /// Array of current properties Eina.Iterator Properties { - get ; + get; } /// Get children count. /// When efl_model_load is completed can be used to get the number of children. can also be used before calling so a valid range is known. Event is emitted when count is finished. @@ -115,34 +120,38 @@ void DelChild(Efl.Object child); /// See also . /// Current known children count uint ChildrenCount { - get ; + get; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IModelPropertiesChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Event dispatched when properties list is available. public Efl.ModelPropertyEvent arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IModelChildAddedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Event dispatched when new child is added. public Efl.ModelChildrenEvent arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IModelChildRemovedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Event dispatched when child is removed. public Efl.ModelChildrenEvent arg { get; set; } } /// Efl model interface -sealed public class IModelConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IModelConcrete : Efl.Eo.EoWrapper , IModel { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -158,7 +167,8 @@ sealed public class IModelConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IModelConcrete(ConstructingHandle ch) : base(ch) { @@ -174,6 +184,7 @@ sealed public class IModelConcrete : } /// Event dispatched when properties list is available. + /// public event EventHandler PropertiesChangedEvt { add @@ -213,7 +224,7 @@ sealed public class IModelConcrete : } } } - ///Method to raise event PropertiesChangedEvt. + /// Method to raise event PropertiesChangedEvt. public void OnPropertiesChangedEvt(Efl.IModelPropertiesChangedEvt_Args e) { var key = "_EFL_MODEL_EVENT_PROPERTIES_CHANGED"; @@ -236,6 +247,7 @@ sealed public class IModelConcrete : } } /// Event dispatched when new child is added. + /// public event EventHandler ChildAddedEvt { add @@ -275,7 +287,7 @@ sealed public class IModelConcrete : } } } - ///Method to raise event ChildAddedEvt. + /// Method to raise event ChildAddedEvt. public void OnChildAddedEvt(Efl.IModelChildAddedEvt_Args e) { var key = "_EFL_MODEL_EVENT_CHILD_ADDED"; @@ -298,6 +310,7 @@ sealed public class IModelConcrete : } } /// Event dispatched when child is removed. + /// public event EventHandler ChildRemovedEvt { add @@ -337,7 +350,7 @@ sealed public class IModelConcrete : } } } - ///Method to raise event ChildRemovedEvt. + /// Method to raise event ChildRemovedEvt. public void OnChildRemovedEvt(Efl.IModelChildRemovedEvt_Args e) { var key = "_EFL_MODEL_EVENT_CHILD_REMOVED"; @@ -398,7 +411,7 @@ sealed public class IModelConcrete : } } } - ///Method to raise event ChildrenCountChangedEvt. + /// Method to raise event ChildrenCountChangedEvt. public void OnChildrenCountChangedEvt(EventArgs e) { var key = "_EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED"; @@ -950,6 +963,15 @@ sealed public class IModelConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflIModelConcrete_ExtensionMethods { + + + +} +#pragma warning restore CS1591 +#endif namespace Efl { /// EFL model property event data structure @@ -961,7 +983,9 @@ public struct ModelPropertyEvent public Eina.Array Changed_properties; /// Removed properties identified by name public Eina.Array Invalidated_properties; - ///Constructor for ModelPropertyEvent. + /// Constructor for ModelPropertyEvent. + /// List of changed properties; + /// Removed properties identified by name; public ModelPropertyEvent( Eina.Array Changed_properties = default(Eina.Array), Eina.Array Invalidated_properties = default(Eina.Array) ) @@ -970,8 +994,8 @@ public struct ModelPropertyEvent this.Invalidated_properties = Invalidated_properties; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator ModelPropertyEvent(IntPtr ptr) { var tmp = (ModelPropertyEvent.NativeStruct)Marshal.PtrToStructure(ptr, typeof(ModelPropertyEvent.NativeStruct)); @@ -980,7 +1004,7 @@ public struct ModelPropertyEvent #pragma warning disable CS1591 - ///Internal wrapper for struct ModelPropertyEvent. + /// Internal wrapper for struct ModelPropertyEvent. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -988,7 +1012,7 @@ public struct ModelPropertyEvent public System.IntPtr Changed_properties; public System.IntPtr Invalidated_properties; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator ModelPropertyEvent.NativeStruct(ModelPropertyEvent _external_struct) { var _internal_struct = new ModelPropertyEvent.NativeStruct(); @@ -997,7 +1021,7 @@ public struct ModelPropertyEvent return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator ModelPropertyEvent(ModelPropertyEvent.NativeStruct _internal_struct) { var _external_struct = new ModelPropertyEvent(); @@ -1025,7 +1049,9 @@ public struct ModelChildrenEvent public uint Index; /// If an object has been built for this index and it is currently tracked by the parent, it will be available here. public Efl.Object Child; - ///Constructor for ModelChildrenEvent. + /// Constructor for ModelChildrenEvent. + /// index is a hint and is intended to provide a way for applications to control/know children relative positions through listings.; + /// If an object has been built for this index and it is currently tracked by the parent, it will be available here.; public ModelChildrenEvent( uint Index = default(uint), Efl.Object Child = default(Efl.Object) ) @@ -1034,8 +1060,8 @@ public struct ModelChildrenEvent this.Child = Child; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator ModelChildrenEvent(IntPtr ptr) { var tmp = (ModelChildrenEvent.NativeStruct)Marshal.PtrToStructure(ptr, typeof(ModelChildrenEvent.NativeStruct)); @@ -1044,15 +1070,15 @@ public struct ModelChildrenEvent #pragma warning disable CS1591 - ///Internal wrapper for struct ModelChildrenEvent. + /// Internal wrapper for struct ModelChildrenEvent. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { public uint Index; - ///Internal wrapper for field Child + /// Internal wrapper for field Child public System.IntPtr Child; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator ModelChildrenEvent.NativeStruct(ModelChildrenEvent _external_struct) { var _internal_struct = new ModelChildrenEvent.NativeStruct(); @@ -1061,7 +1087,7 @@ public struct ModelChildrenEvent return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator ModelChildrenEvent(ModelChildrenEvent.NativeStruct _internal_struct) { var _external_struct = new ModelChildrenEvent(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_model_provider.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_model_provider.eo.cs new file mode 100755 index 000000000..329b2fe10 --- /dev/null +++ b/internals/src/EflSharp/EflSharp/efl/efl_model_provider.eo.cs @@ -0,0 +1,282 @@ +#define EFL_BETA +#pragma warning disable CS1591 +using System; +using System.Runtime.InteropServices; +using System.Collections.Generic; +using System.Linq; +using System.Threading; +using System.ComponentModel; +namespace Efl { + +/// EFL object that provide a model to all. +/// You can use this when you would otherwise have to call on multiple widgets by registering this object using on a parent that they all depends on. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +[Efl.ModelProvider.NativeMethods] +[Efl.Eo.BindingEntity] +public class ModelProvider : Efl.Object, Efl.Ui.IView +{ + /// Pointer to the native class description. + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ModelProvider)) + { + return GetEflClassStatic(); + } + else + { + return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } + } + } + + [System.Runtime.InteropServices.DllImport("libefl.so.1")] internal static extern System.IntPtr + efl_model_provider_class_get(); + /// Initializes a new instance of the class. + /// Parent instance. + public ModelProvider(Efl.Object parent= null + ) : base(efl_model_provider_class_get(), parent) + { + FinishInstantiation(); + } + + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. + /// Tag struct storing the native handle of the object being constructed. + protected ModelProvider(ConstructingHandle ch) : base(ch) + { + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. + protected ModelProvider(Efl.Eo.Globals.WrappingHandle wh) : base(wh) + { + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The Efl.Object parent of this instance. + protected ModelProvider(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) + { + } + + /// Event dispatched when a new model is set. + /// + public event EventHandler ModelChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.IViewModelChangedEvt_Args args = new Efl.Ui.IViewModelChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_VIEW_EVENT_MODEL_CHANGED"; + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_VIEW_EVENT_MODEL_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Efl, key, value); + } + } + } + /// Method to raise event ModelChangedEvt. + public void OnModelChangedEvt(Efl.Ui.IViewModelChangedEvt_Args e) + { + var key = "_EFL_UI_VIEW_EVENT_MODEL_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Model that is/will be + /// Efl model + virtual public Efl.IModel GetModel() { + var _ret_var = Efl.Ui.IViewConcrete.NativeMethods.efl_ui_view_model_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Model that is/will be + /// Efl model + virtual public void SetModel(Efl.IModel model) { + Efl.Ui.IViewConcrete.NativeMethods.efl_ui_view_model_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),model); + Eina.Error.RaiseIfUnhandledException(); + } + /// Model that is/will be + /// Efl model + public Efl.IModel Model { + get { return GetModel(); } + set { SetModel(value); } + } + private static IntPtr GetEflClassStatic() + { + return Efl.ModelProvider.efl_model_provider_class_get(); + } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods + { + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl); + /// Gets the list of Eo operations to override. + /// The list of Eo operations to be overload. + public override System.Collections.Generic.List GetEoOps(System.Type type) + { + var descs = new System.Collections.Generic.List(); + var methods = Efl.Eo.Globals.GetUserMethods(type); + + if (efl_ui_view_model_get_static_delegate == null) + { + efl_ui_view_model_get_static_delegate = new efl_ui_view_model_get_delegate(model_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetModel") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_view_model_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_view_model_get_static_delegate) }); + } + + if (efl_ui_view_model_set_static_delegate == null) + { + efl_ui_view_model_set_static_delegate = new efl_ui_view_model_set_delegate(model_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetModel") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_view_model_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_view_model_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.ModelProvider.efl_model_provider_class_get(); + } + + #pragma warning disable CA1707, CS1591, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.IModel efl_ui_view_model_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.IModel efl_ui_view_model_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_view_model_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_view_model_get"); + + private static Efl.IModel model_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_view_model_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.IModel _ret_var = default(Efl.IModel); + try + { + _ret_var = ((ModelProvider)ws.Target).GetModel(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_view_model_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_view_model_get_delegate efl_ui_view_model_get_static_delegate; + + + private delegate void efl_ui_view_model_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.IModel model); + + + public delegate void efl_ui_view_model_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.IModel model); + + public static Efl.Eo.FunctionWrapper efl_ui_view_model_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_view_model_set"); + + private static void model_set(System.IntPtr obj, System.IntPtr pd, Efl.IModel model) + { + Eina.Log.Debug("function efl_ui_view_model_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((ModelProvider)ws.Target).SetModel(model); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_view_model_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), model); + } + } + + private static efl_ui_view_model_set_delegate efl_ui_view_model_set_static_delegate; + + #pragma warning restore CA1707, CS1591, SA1300, SA1600 + +} +} +} + +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflModelProvider_ExtensionMethods { + public static Efl.BindableProperty Model(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ModelProvider { + return new Efl.BindableProperty("model", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_mono_model_internal.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_mono_model_internal.eo.cs new file mode 100755 index 000000000..7bcf7f6e7 --- /dev/null +++ b/internals/src/EflSharp/EflSharp/efl/efl_mono_model_internal.eo.cs @@ -0,0 +1,902 @@ +#define EFL_BETA +#pragma warning disable CS1591 +using System; +using System.Runtime.InteropServices; +using System.Collections.Generic; +using System.Linq; +using System.Threading; +using System.ComponentModel; +namespace Efl { + +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +[Efl.MonoModelInternal.NativeMethods] +[Efl.Eo.BindingEntity] +public class MonoModelInternal : Efl.LoopConsumer, Efl.IModel +{ + /// Pointer to the native class description. + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(MonoModelInternal)) + { + return GetEflClassStatic(); + } + else + { + return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } + } + } + + [System.Runtime.InteropServices.DllImport("eflcustomexportsmono")] internal static extern System.IntPtr + efl_mono_model_internal_class_get(); + /// Initializes a new instance of the class. + /// Parent instance. + public MonoModelInternal(Efl.Object parent= null + ) : base(efl_mono_model_internal_class_get(), parent) + { + FinishInstantiation(); + } + + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. + /// Tag struct storing the native handle of the object being constructed. + protected MonoModelInternal(ConstructingHandle ch) : base(ch) + { + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. + protected MonoModelInternal(Efl.Eo.Globals.WrappingHandle wh) : base(wh) + { + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The Efl.Object parent of this instance. + protected MonoModelInternal(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) + { + } + + /// Event dispatched when properties list is available. + /// + public event EventHandler PropertiesChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.IModelPropertiesChangedEvt_Args args = new Efl.IModelPropertiesChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_MODEL_EVENT_PROPERTIES_CHANGED"; + AddNativeEventHandler("eflcustomexportsmono", key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_MODEL_EVENT_PROPERTIES_CHANGED"; + RemoveNativeEventHandler("eflcustomexportsmono", key, value); + } + } + } + /// Method to raise event PropertiesChangedEvt. + public void OnPropertiesChangedEvt(Efl.IModelPropertiesChangedEvt_Args e) + { + var key = "_EFL_MODEL_EVENT_PROPERTIES_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative("eflcustomexportsmono", key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Event dispatched when new child is added. + /// + public event EventHandler ChildAddedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.IModelChildAddedEvt_Args args = new Efl.IModelChildAddedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_MODEL_EVENT_CHILD_ADDED"; + AddNativeEventHandler("eflcustomexportsmono", key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_MODEL_EVENT_CHILD_ADDED"; + RemoveNativeEventHandler("eflcustomexportsmono", key, value); + } + } + } + /// Method to raise event ChildAddedEvt. + public void OnChildAddedEvt(Efl.IModelChildAddedEvt_Args e) + { + var key = "_EFL_MODEL_EVENT_CHILD_ADDED"; + IntPtr desc = Efl.EventDescription.GetNative("eflcustomexportsmono", key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Event dispatched when child is removed. + /// + public event EventHandler ChildRemovedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.IModelChildRemovedEvt_Args args = new Efl.IModelChildRemovedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_MODEL_EVENT_CHILD_REMOVED"; + AddNativeEventHandler("eflcustomexportsmono", key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_MODEL_EVENT_CHILD_REMOVED"; + RemoveNativeEventHandler("eflcustomexportsmono", key, value); + } + } + } + /// Method to raise event ChildRemovedEvt. + public void OnChildRemovedEvt(Efl.IModelChildRemovedEvt_Args e) + { + var key = "_EFL_MODEL_EVENT_CHILD_REMOVED"; + IntPtr desc = Efl.EventDescription.GetNative("eflcustomexportsmono", key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Event dispatched when children count is finished. + public event EventHandler ChildrenCountChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED"; + AddNativeEventHandler("eflcustomexportsmono", key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED"; + RemoveNativeEventHandler("eflcustomexportsmono", key, value); + } + } + } + /// Method to raise event ChildrenCountChangedEvt. + public void OnChildrenCountChangedEvt(EventArgs e) + { + var key = "_EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative("eflcustomexportsmono", key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + virtual public void AddProperty(System.String name, Eina.ValueType type) { + Efl.MonoModelInternal.NativeMethods.efl_mono_model_internal_add_property_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),name, type); + Eina.Error.RaiseIfUnhandledException(); + } + /// Get properties from model. + /// properties_get is due to provide callers a way the fetch the current properties implemented/used by the model. The event will be raised to notify listeners of any modifications in the properties. + /// + /// See also . + /// Array of current properties + virtual public Eina.Iterator GetProperties() { + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_properties_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return new Eina.Iterator(_ret_var, true); + } + /// Retrieve the value of a given property name. + /// At this point the caller is free to get values from properties. The event may be raised to notify listeners of the property/value. + /// + /// See , + /// Property name + /// Property value + virtual public Eina.Value GetProperty(System.String property) { + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_property_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),property); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Set a property value of a given property name. + /// The caller must ensure to call at least efl_model_prop_list before being able to see/set properties. This function sets a new property value into given property name. Once the operation is completed the concrete implementation should raise event in order to notify listeners of the new value of the property. + /// + /// If the model doesn't have the property then there are two possibilities, either raise an error or create the new property in model + /// + /// See , + /// Property name + /// Property value + /// Return an error in case the property could not be set, the value that was set otherwise. + virtual public Eina.Future SetProperty(System.String property, Eina.Value value) { + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_property_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),property, value); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Get children count. + /// When efl_model_load is completed can be used to get the number of children. can also be used before calling so a valid range is known. Event is emitted when count is finished. + /// + /// See also . + /// Current known children count + virtual public uint GetChildrenCount() { + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_children_count_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Get a future value when it changes to something that is not error:EAGAIN + /// can return an error with code EAGAIN when it doesn't have any meaningful value. To make life easier, this future will resolve when the error:EAGAIN disapears. Either into a failed future in case the error code changed to something else or a success with the value of the property whenever the property finally changes. + /// + /// The future can also be canceled if the model itself gets destroyed. + /// Property name. + /// Future to be resolved when the property changes to anything other than error:EAGAIN + virtual public Eina.Future GetPropertyReady(System.String property) { + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_property_ready_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),property); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Get children slice OR full range. + /// behaves in two different ways, it may provide the slice if count is non-zero OR full range otherwise. + /// + /// Since 'slice' is a range, for example if we have 20 children a slice could be the range from 3(start) with 4(count), see: + /// + /// child 0 [no] child 1 [no] child 2 [no] child 3 [yes] child 4 [yes] child 5 [yes] child 6 [yes] child 7 [no] + /// + /// Optionally the user can call to know the number of children so a valid range can be known in advance. + /// + /// See + /// + /// Note: The returned children will live only as long as the future itself. Once the future is done, if you want to keep the object alive, you need to take a reference for yourself. + /// Range begin - start from here. + /// Range size. If count is 0, start is ignored. + /// Array of children + virtual public Eina.Future GetChildrenSlice(uint start, uint count) { + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_children_slice_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),start, count); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Add a new child. + /// Add a new child, possibly dummy, depending on the implementation, of a internal keeping. When the child is effectively added the event is then raised and the new child is kept along with other children. + /// Child object + virtual public Efl.Object AddChild() { + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_child_add_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Remove a child. + /// Remove a child of a internal keeping. When the child is effectively removed the event is then raised to give a chance for listeners to perform any cleanup and/or update references. + /// Child to be removed + virtual public void DelChild(Efl.Object child) { + Efl.IModelConcrete.NativeMethods.efl_model_child_del_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),child); + Eina.Error.RaiseIfUnhandledException(); + } + /// Async wrapper for . + /// Property name + /// Property value + /// Token to notify the async operation of external request to cancel. + /// An async task wrapping the result of the operation. + public System.Threading.Tasks.Task SetPropertyAsync(System.String property,Eina.Value value, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) + { + Eina.Future future = SetProperty( property, value); + return Efl.Eo.Globals.WrapAsync(future, token); + } + + /// Async wrapper for . + /// Property name. + /// Token to notify the async operation of external request to cancel. + /// An async task wrapping the result of the operation. + public System.Threading.Tasks.Task GetPropertyReadyAsync(System.String property, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) + { + Eina.Future future = GetPropertyReady( property); + return Efl.Eo.Globals.WrapAsync(future, token); + } + + /// Async wrapper for . + /// Range begin - start from here. + /// Range size. If count is 0, start is ignored. + /// Token to notify the async operation of external request to cancel. + /// An async task wrapping the result of the operation. + public System.Threading.Tasks.Task GetChildrenSliceAsync(uint start,uint count, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) + { + Eina.Future future = GetChildrenSlice( start, count); + return Efl.Eo.Globals.WrapAsync(future, token); + } + + /// Get properties from model. + /// properties_get is due to provide callers a way the fetch the current properties implemented/used by the model. The event will be raised to notify listeners of any modifications in the properties. + /// + /// See also . + /// Array of current properties + public Eina.Iterator Properties { + get { return GetProperties(); } + } + /// Get children count. + /// When efl_model_load is completed can be used to get the number of children. can also be used before calling so a valid range is known. Event is emitted when count is finished. + /// + /// See also . + /// Current known children count + public uint ChildrenCount { + get { return GetChildrenCount(); } + } + private static IntPtr GetEflClassStatic() + { + return Efl.MonoModelInternal.efl_mono_model_internal_class_get(); + } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.LoopConsumer.NativeMethods + { + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( "eflcustomexportsmono"); + /// Gets the list of Eo operations to override. + /// The list of Eo operations to be overload. + public override System.Collections.Generic.List GetEoOps(System.Type type) + { + var descs = new System.Collections.Generic.List(); + var methods = Efl.Eo.Globals.GetUserMethods(type); + + if (efl_mono_model_internal_add_property_static_delegate == null) + { + efl_mono_model_internal_add_property_static_delegate = new efl_mono_model_internal_add_property_delegate(add_property); + } + + if (methods.FirstOrDefault(m => m.Name == "AddProperty") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_mono_model_internal_add_property"), func = Marshal.GetFunctionPointerForDelegate(efl_mono_model_internal_add_property_static_delegate) }); + } + + if (efl_model_properties_get_static_delegate == null) + { + efl_model_properties_get_static_delegate = new efl_model_properties_get_delegate(properties_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetProperties") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_properties_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_properties_get_static_delegate) }); + } + + if (efl_model_property_get_static_delegate == null) + { + efl_model_property_get_static_delegate = new efl_model_property_get_delegate(property_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetProperty") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_property_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_property_get_static_delegate) }); + } + + if (efl_model_property_set_static_delegate == null) + { + efl_model_property_set_static_delegate = new efl_model_property_set_delegate(property_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetProperty") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_property_set"), func = Marshal.GetFunctionPointerForDelegate(efl_model_property_set_static_delegate) }); + } + + if (efl_model_children_count_get_static_delegate == null) + { + efl_model_children_count_get_static_delegate = new efl_model_children_count_get_delegate(children_count_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetChildrenCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_children_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_children_count_get_static_delegate) }); + } + + if (efl_model_property_ready_get_static_delegate == null) + { + efl_model_property_ready_get_static_delegate = new efl_model_property_ready_get_delegate(property_ready_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetPropertyReady") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_property_ready_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_property_ready_get_static_delegate) }); + } + + if (efl_model_children_slice_get_static_delegate == null) + { + efl_model_children_slice_get_static_delegate = new efl_model_children_slice_get_delegate(children_slice_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetChildrenSlice") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_children_slice_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_children_slice_get_static_delegate) }); + } + + if (efl_model_child_add_static_delegate == null) + { + efl_model_child_add_static_delegate = new efl_model_child_add_delegate(child_add); + } + + if (methods.FirstOrDefault(m => m.Name == "AddChild") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_child_add"), func = Marshal.GetFunctionPointerForDelegate(efl_model_child_add_static_delegate) }); + } + + if (efl_model_child_del_static_delegate == null) + { + efl_model_child_del_static_delegate = new efl_model_child_del_delegate(child_del); + } + + if (methods.FirstOrDefault(m => m.Name == "DelChild") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_child_del"), func = Marshal.GetFunctionPointerForDelegate(efl_model_child_del_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.MonoModelInternal.efl_mono_model_internal_class_get(); + } + + #pragma warning disable CA1707, CS1591, SA1300, SA1600 + + + private delegate void efl_mono_model_internal_add_property_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueTypeMarshaler))] Eina.ValueTypeBox type); + + + public delegate void efl_mono_model_internal_add_property_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueTypeMarshaler))] Eina.ValueTypeBox type); + + public static Efl.Eo.FunctionWrapper efl_mono_model_internal_add_property_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_mono_model_internal_add_property"); + + private static void add_property(System.IntPtr obj, System.IntPtr pd, System.String name, Eina.ValueTypeBox type) + { + Eina.Log.Debug("function efl_mono_model_internal_add_property was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((MonoModelInternal)ws.Target).AddProperty(name, type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_mono_model_internal_add_property_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, type); + } + } + + private static efl_mono_model_internal_add_property_delegate efl_mono_model_internal_add_property_static_delegate; + + + private delegate System.IntPtr efl_model_properties_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_model_properties_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_model_properties_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_properties_get"); + + private static System.IntPtr properties_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_model_properties_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((MonoModelInternal)ws.Target).GetProperties(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + _ret_var.Own = false; return _ret_var.Handle; + + } + else + { + return efl_model_properties_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_model_properties_get_delegate efl_model_properties_get_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] + private delegate Eina.Value efl_model_property_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] + public delegate Eina.Value efl_model_property_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + public static Efl.Eo.FunctionWrapper efl_model_property_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_property_get"); + + private static Eina.Value property_get(System.IntPtr obj, System.IntPtr pd, System.String property) + { + Eina.Log.Debug("function efl_model_property_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Value _ret_var = default(Eina.Value); + try + { + _ret_var = ((MonoModelInternal)ws.Target).GetProperty(property); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_model_property_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), property); + } + } + + private static efl_model_property_get_delegate efl_model_property_get_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + private delegate Eina.Future efl_model_property_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + public delegate Eina.Future efl_model_property_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); + + public static Efl.Eo.FunctionWrapper efl_model_property_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_property_set"); + + private static Eina.Future property_set(System.IntPtr obj, System.IntPtr pd, System.String property, Eina.Value value) + { + Eina.Log.Debug("function efl_model_property_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Future _ret_var = default( Eina.Future); + try + { + _ret_var = ((MonoModelInternal)ws.Target).SetProperty(property, value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_model_property_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), property, value); + } + } + + private static efl_model_property_set_delegate efl_model_property_set_static_delegate; + + + private delegate uint efl_model_children_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate uint efl_model_children_count_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_model_children_count_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_children_count_get"); + + private static uint children_count_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_model_children_count_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + uint _ret_var = default(uint); + try + { + _ret_var = ((MonoModelInternal)ws.Target).GetChildrenCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_model_children_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_model_children_count_get_delegate efl_model_children_count_get_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + private delegate Eina.Future efl_model_property_ready_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + public delegate Eina.Future efl_model_property_ready_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + public static Efl.Eo.FunctionWrapper efl_model_property_ready_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_property_ready_get"); + + private static Eina.Future property_ready_get(System.IntPtr obj, System.IntPtr pd, System.String property) + { + Eina.Log.Debug("function efl_model_property_ready_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Future _ret_var = default( Eina.Future); + try + { + _ret_var = ((MonoModelInternal)ws.Target).GetPropertyReady(property); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_model_property_ready_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), property); + } + } + + private static efl_model_property_ready_get_delegate efl_model_property_ready_get_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + private delegate Eina.Future efl_model_children_slice_get_delegate(System.IntPtr obj, System.IntPtr pd, uint start, uint count); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + public delegate Eina.Future efl_model_children_slice_get_api_delegate(System.IntPtr obj, uint start, uint count); + + public static Efl.Eo.FunctionWrapper efl_model_children_slice_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_children_slice_get"); + + private static Eina.Future children_slice_get(System.IntPtr obj, System.IntPtr pd, uint start, uint count) + { + Eina.Log.Debug("function efl_model_children_slice_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Future _ret_var = default( Eina.Future); + try + { + _ret_var = ((MonoModelInternal)ws.Target).GetChildrenSlice(start, count); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_model_children_slice_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, count); + } + } + + private static efl_model_children_slice_get_delegate efl_model_children_slice_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Object efl_model_child_add_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Object efl_model_child_add_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_model_child_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_child_add"); + + private static Efl.Object child_add(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_model_child_add was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Object _ret_var = default(Efl.Object); + try + { + _ret_var = ((MonoModelInternal)ws.Target).AddChild(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_model_child_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_model_child_add_delegate efl_model_child_add_static_delegate; + + + private delegate void efl_model_child_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object child); + + + public delegate void efl_model_child_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object child); + + public static Efl.Eo.FunctionWrapper efl_model_child_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_child_del"); + + private static void child_del(System.IntPtr obj, System.IntPtr pd, Efl.Object child) + { + Eina.Log.Debug("function efl_model_child_del was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((MonoModelInternal)ws.Target).DelChild(child); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_model_child_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); + } + } + + private static efl_model_child_del_delegate efl_model_child_del_static_delegate; + + #pragma warning restore CA1707, CS1591, SA1300, SA1600 + +} +} +} + +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflMonoModelInternal_ExtensionMethods { + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_mono_model_internal_child.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_mono_model_internal_child.eo.cs new file mode 100755 index 000000000..126f9865b --- /dev/null +++ b/internals/src/EflSharp/EflSharp/efl/efl_mono_model_internal_child.eo.cs @@ -0,0 +1,852 @@ +#define EFL_BETA +#pragma warning disable CS1591 +using System; +using System.Runtime.InteropServices; +using System.Collections.Generic; +using System.Linq; +using System.Threading; +using System.ComponentModel; +namespace Efl { + +[Efl.MonoModelInternalChild.NativeMethods] +[Efl.Eo.BindingEntity] +public class MonoModelInternalChild : Efl.LoopConsumer, Efl.IModel +{ + /// Pointer to the native class description. + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(MonoModelInternalChild)) + { + return GetEflClassStatic(); + } + else + { + return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } + } + } + + [System.Runtime.InteropServices.DllImport("eflcustomexportsmono")] internal static extern System.IntPtr + efl_mono_model_internal_child_class_get(); + /// Initializes a new instance of the class. + /// Parent instance. + public MonoModelInternalChild(Efl.Object parent= null + ) : base(efl_mono_model_internal_child_class_get(), parent) + { + FinishInstantiation(); + } + + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. + /// Tag struct storing the native handle of the object being constructed. + protected MonoModelInternalChild(ConstructingHandle ch) : base(ch) + { + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. + protected MonoModelInternalChild(Efl.Eo.Globals.WrappingHandle wh) : base(wh) + { + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The Efl.Object parent of this instance. + protected MonoModelInternalChild(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) + { + } + + /// Event dispatched when properties list is available. + /// + public event EventHandler PropertiesChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.IModelPropertiesChangedEvt_Args args = new Efl.IModelPropertiesChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_MODEL_EVENT_PROPERTIES_CHANGED"; + AddNativeEventHandler("eflcustomexportsmono", key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_MODEL_EVENT_PROPERTIES_CHANGED"; + RemoveNativeEventHandler("eflcustomexportsmono", key, value); + } + } + } + /// Method to raise event PropertiesChangedEvt. + public void OnPropertiesChangedEvt(Efl.IModelPropertiesChangedEvt_Args e) + { + var key = "_EFL_MODEL_EVENT_PROPERTIES_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative("eflcustomexportsmono", key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Event dispatched when new child is added. + /// + public event EventHandler ChildAddedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.IModelChildAddedEvt_Args args = new Efl.IModelChildAddedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_MODEL_EVENT_CHILD_ADDED"; + AddNativeEventHandler("eflcustomexportsmono", key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_MODEL_EVENT_CHILD_ADDED"; + RemoveNativeEventHandler("eflcustomexportsmono", key, value); + } + } + } + /// Method to raise event ChildAddedEvt. + public void OnChildAddedEvt(Efl.IModelChildAddedEvt_Args e) + { + var key = "_EFL_MODEL_EVENT_CHILD_ADDED"; + IntPtr desc = Efl.EventDescription.GetNative("eflcustomexportsmono", key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Event dispatched when child is removed. + /// + public event EventHandler ChildRemovedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.IModelChildRemovedEvt_Args args = new Efl.IModelChildRemovedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_MODEL_EVENT_CHILD_REMOVED"; + AddNativeEventHandler("eflcustomexportsmono", key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_MODEL_EVENT_CHILD_REMOVED"; + RemoveNativeEventHandler("eflcustomexportsmono", key, value); + } + } + } + /// Method to raise event ChildRemovedEvt. + public void OnChildRemovedEvt(Efl.IModelChildRemovedEvt_Args e) + { + var key = "_EFL_MODEL_EVENT_CHILD_REMOVED"; + IntPtr desc = Efl.EventDescription.GetNative("eflcustomexportsmono", key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Event dispatched when children count is finished. + public event EventHandler ChildrenCountChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED"; + AddNativeEventHandler("eflcustomexportsmono", key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED"; + RemoveNativeEventHandler("eflcustomexportsmono", key, value); + } + } + } + /// Method to raise event ChildrenCountChangedEvt. + public void OnChildrenCountChangedEvt(EventArgs e) + { + var key = "_EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative("eflcustomexportsmono", key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Get properties from model. + /// properties_get is due to provide callers a way the fetch the current properties implemented/used by the model. The event will be raised to notify listeners of any modifications in the properties. + /// + /// See also . + /// Array of current properties + virtual public Eina.Iterator GetProperties() { + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_properties_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return new Eina.Iterator(_ret_var, true); + } + /// Retrieve the value of a given property name. + /// At this point the caller is free to get values from properties. The event may be raised to notify listeners of the property/value. + /// + /// See , + /// Property name + /// Property value + virtual public Eina.Value GetProperty(System.String property) { + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_property_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),property); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Set a property value of a given property name. + /// The caller must ensure to call at least efl_model_prop_list before being able to see/set properties. This function sets a new property value into given property name. Once the operation is completed the concrete implementation should raise event in order to notify listeners of the new value of the property. + /// + /// If the model doesn't have the property then there are two possibilities, either raise an error or create the new property in model + /// + /// See , + /// Property name + /// Property value + /// Return an error in case the property could not be set, the value that was set otherwise. + virtual public Eina.Future SetProperty(System.String property, Eina.Value value) { + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_property_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),property, value); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Get children count. + /// When efl_model_load is completed can be used to get the number of children. can also be used before calling so a valid range is known. Event is emitted when count is finished. + /// + /// See also . + /// Current known children count + virtual public uint GetChildrenCount() { + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_children_count_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Get a future value when it changes to something that is not error:EAGAIN + /// can return an error with code EAGAIN when it doesn't have any meaningful value. To make life easier, this future will resolve when the error:EAGAIN disapears. Either into a failed future in case the error code changed to something else or a success with the value of the property whenever the property finally changes. + /// + /// The future can also be canceled if the model itself gets destroyed. + /// Property name. + /// Future to be resolved when the property changes to anything other than error:EAGAIN + virtual public Eina.Future GetPropertyReady(System.String property) { + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_property_ready_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),property); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Get children slice OR full range. + /// behaves in two different ways, it may provide the slice if count is non-zero OR full range otherwise. + /// + /// Since 'slice' is a range, for example if we have 20 children a slice could be the range from 3(start) with 4(count), see: + /// + /// child 0 [no] child 1 [no] child 2 [no] child 3 [yes] child 4 [yes] child 5 [yes] child 6 [yes] child 7 [no] + /// + /// Optionally the user can call to know the number of children so a valid range can be known in advance. + /// + /// See + /// + /// Note: The returned children will live only as long as the future itself. Once the future is done, if you want to keep the object alive, you need to take a reference for yourself. + /// Range begin - start from here. + /// Range size. If count is 0, start is ignored. + /// Array of children + virtual public Eina.Future GetChildrenSlice(uint start, uint count) { + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_children_slice_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),start, count); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Add a new child. + /// Add a new child, possibly dummy, depending on the implementation, of a internal keeping. When the child is effectively added the event is then raised and the new child is kept along with other children. + /// Child object + virtual public Efl.Object AddChild() { + var _ret_var = Efl.IModelConcrete.NativeMethods.efl_model_child_add_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Remove a child. + /// Remove a child of a internal keeping. When the child is effectively removed the event is then raised to give a chance for listeners to perform any cleanup and/or update references. + /// Child to be removed + virtual public void DelChild(Efl.Object child) { + Efl.IModelConcrete.NativeMethods.efl_model_child_del_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),child); + Eina.Error.RaiseIfUnhandledException(); + } + /// Async wrapper for . + /// Property name + /// Property value + /// Token to notify the async operation of external request to cancel. + /// An async task wrapping the result of the operation. + public System.Threading.Tasks.Task SetPropertyAsync(System.String property,Eina.Value value, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) + { + Eina.Future future = SetProperty( property, value); + return Efl.Eo.Globals.WrapAsync(future, token); + } + + /// Async wrapper for . + /// Property name. + /// Token to notify the async operation of external request to cancel. + /// An async task wrapping the result of the operation. + public System.Threading.Tasks.Task GetPropertyReadyAsync(System.String property, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) + { + Eina.Future future = GetPropertyReady( property); + return Efl.Eo.Globals.WrapAsync(future, token); + } + + /// Async wrapper for . + /// Range begin - start from here. + /// Range size. If count is 0, start is ignored. + /// Token to notify the async operation of external request to cancel. + /// An async task wrapping the result of the operation. + public System.Threading.Tasks.Task GetChildrenSliceAsync(uint start,uint count, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) + { + Eina.Future future = GetChildrenSlice( start, count); + return Efl.Eo.Globals.WrapAsync(future, token); + } + + /// Get properties from model. + /// properties_get is due to provide callers a way the fetch the current properties implemented/used by the model. The event will be raised to notify listeners of any modifications in the properties. + /// + /// See also . + /// Array of current properties + public Eina.Iterator Properties { + get { return GetProperties(); } + } + /// Get children count. + /// When efl_model_load is completed can be used to get the number of children. can also be used before calling so a valid range is known. Event is emitted when count is finished. + /// + /// See also . + /// Current known children count + public uint ChildrenCount { + get { return GetChildrenCount(); } + } + private static IntPtr GetEflClassStatic() + { + return Efl.MonoModelInternalChild.efl_mono_model_internal_child_class_get(); + } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.LoopConsumer.NativeMethods + { + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( "eflcustomexportsmono"); + /// Gets the list of Eo operations to override. + /// The list of Eo operations to be overload. + public override System.Collections.Generic.List GetEoOps(System.Type type) + { + var descs = new System.Collections.Generic.List(); + var methods = Efl.Eo.Globals.GetUserMethods(type); + + if (efl_model_properties_get_static_delegate == null) + { + efl_model_properties_get_static_delegate = new efl_model_properties_get_delegate(properties_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetProperties") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_properties_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_properties_get_static_delegate) }); + } + + if (efl_model_property_get_static_delegate == null) + { + efl_model_property_get_static_delegate = new efl_model_property_get_delegate(property_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetProperty") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_property_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_property_get_static_delegate) }); + } + + if (efl_model_property_set_static_delegate == null) + { + efl_model_property_set_static_delegate = new efl_model_property_set_delegate(property_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetProperty") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_property_set"), func = Marshal.GetFunctionPointerForDelegate(efl_model_property_set_static_delegate) }); + } + + if (efl_model_children_count_get_static_delegate == null) + { + efl_model_children_count_get_static_delegate = new efl_model_children_count_get_delegate(children_count_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetChildrenCount") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_children_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_children_count_get_static_delegate) }); + } + + if (efl_model_property_ready_get_static_delegate == null) + { + efl_model_property_ready_get_static_delegate = new efl_model_property_ready_get_delegate(property_ready_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetPropertyReady") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_property_ready_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_property_ready_get_static_delegate) }); + } + + if (efl_model_children_slice_get_static_delegate == null) + { + efl_model_children_slice_get_static_delegate = new efl_model_children_slice_get_delegate(children_slice_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetChildrenSlice") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_children_slice_get"), func = Marshal.GetFunctionPointerForDelegate(efl_model_children_slice_get_static_delegate) }); + } + + if (efl_model_child_add_static_delegate == null) + { + efl_model_child_add_static_delegate = new efl_model_child_add_delegate(child_add); + } + + if (methods.FirstOrDefault(m => m.Name == "AddChild") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_child_add"), func = Marshal.GetFunctionPointerForDelegate(efl_model_child_add_static_delegate) }); + } + + if (efl_model_child_del_static_delegate == null) + { + efl_model_child_del_static_delegate = new efl_model_child_del_delegate(child_del); + } + + if (methods.FirstOrDefault(m => m.Name == "DelChild") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_model_child_del"), func = Marshal.GetFunctionPointerForDelegate(efl_model_child_del_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.MonoModelInternalChild.efl_mono_model_internal_child_class_get(); + } + + #pragma warning disable CA1707, CS1591, SA1300, SA1600 + + + private delegate System.IntPtr efl_model_properties_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_model_properties_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_model_properties_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_properties_get"); + + private static System.IntPtr properties_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_model_properties_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((MonoModelInternalChild)ws.Target).GetProperties(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + _ret_var.Own = false; return _ret_var.Handle; + + } + else + { + return efl_model_properties_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_model_properties_get_delegate efl_model_properties_get_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] + private delegate Eina.Value efl_model_property_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] + public delegate Eina.Value efl_model_property_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + public static Efl.Eo.FunctionWrapper efl_model_property_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_property_get"); + + private static Eina.Value property_get(System.IntPtr obj, System.IntPtr pd, System.String property) + { + Eina.Log.Debug("function efl_model_property_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Value _ret_var = default(Eina.Value); + try + { + _ret_var = ((MonoModelInternalChild)ws.Target).GetProperty(property); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_model_property_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), property); + } + } + + private static efl_model_property_get_delegate efl_model_property_get_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + private delegate Eina.Future efl_model_property_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + public delegate Eina.Future efl_model_property_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.ValueMarshaler))] Eina.Value value); + + public static Efl.Eo.FunctionWrapper efl_model_property_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_property_set"); + + private static Eina.Future property_set(System.IntPtr obj, System.IntPtr pd, System.String property, Eina.Value value) + { + Eina.Log.Debug("function efl_model_property_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Future _ret_var = default( Eina.Future); + try + { + _ret_var = ((MonoModelInternalChild)ws.Target).SetProperty(property, value); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_model_property_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), property, value); + } + } + + private static efl_model_property_set_delegate efl_model_property_set_static_delegate; + + + private delegate uint efl_model_children_count_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate uint efl_model_children_count_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_model_children_count_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_children_count_get"); + + private static uint children_count_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_model_children_count_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + uint _ret_var = default(uint); + try + { + _ret_var = ((MonoModelInternalChild)ws.Target).GetChildrenCount(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_model_children_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_model_children_count_get_delegate efl_model_children_count_get_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + private delegate Eina.Future efl_model_property_ready_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + public delegate Eina.Future efl_model_property_ready_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + public static Efl.Eo.FunctionWrapper efl_model_property_ready_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_property_ready_get"); + + private static Eina.Future property_ready_get(System.IntPtr obj, System.IntPtr pd, System.String property) + { + Eina.Log.Debug("function efl_model_property_ready_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Future _ret_var = default( Eina.Future); + try + { + _ret_var = ((MonoModelInternalChild)ws.Target).GetPropertyReady(property); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_model_property_ready_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), property); + } + } + + private static efl_model_property_ready_get_delegate efl_model_property_ready_get_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + private delegate Eina.Future efl_model_children_slice_get_delegate(System.IntPtr obj, System.IntPtr pd, uint start, uint count); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + public delegate Eina.Future efl_model_children_slice_get_api_delegate(System.IntPtr obj, uint start, uint count); + + public static Efl.Eo.FunctionWrapper efl_model_children_slice_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_children_slice_get"); + + private static Eina.Future children_slice_get(System.IntPtr obj, System.IntPtr pd, uint start, uint count) + { + Eina.Log.Debug("function efl_model_children_slice_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Future _ret_var = default( Eina.Future); + try + { + _ret_var = ((MonoModelInternalChild)ws.Target).GetChildrenSlice(start, count); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_model_children_slice_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start, count); + } + } + + private static efl_model_children_slice_get_delegate efl_model_children_slice_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Object efl_model_child_add_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Object efl_model_child_add_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_model_child_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_child_add"); + + private static Efl.Object child_add(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_model_child_add was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Object _ret_var = default(Efl.Object); + try + { + _ret_var = ((MonoModelInternalChild)ws.Target).AddChild(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_model_child_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_model_child_add_delegate efl_model_child_add_static_delegate; + + + private delegate void efl_model_child_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object child); + + + public delegate void efl_model_child_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object child); + + public static Efl.Eo.FunctionWrapper efl_model_child_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_model_child_del"); + + private static void child_del(System.IntPtr obj, System.IntPtr pd, Efl.Object child) + { + Eina.Log.Debug("function efl_model_child_del was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((MonoModelInternalChild)ws.Target).DelChild(child); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_model_child_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); + } + } + + private static efl_model_child_del_delegate efl_model_child_del_static_delegate; + + #pragma warning restore CA1707, CS1591, SA1300, SA1600 + +} +} +} + +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflMonoModelInternalChild_ExtensionMethods { + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_object.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_object.eo.cs old mode 100644 new mode 100755 index 9c903a7cc..680004de7 --- a/internals/src/EflSharp/EflSharp/efl/efl_object.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_object.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -72,9 +73,9 @@ namespace Efl { /// (Since EFL 1.22) [Efl.Object.NativeMethods] [Efl.Eo.BindingEntity] -public abstract class Object : Efl.Eo.EoWrapper +public abstract partial class Object : Efl.Eo.EoWrapper { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -100,7 +101,8 @@ public abstract class Object : Efl.Eo.EoWrapper FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Object(ConstructingHandle ch) : base(ch) { @@ -168,7 +170,7 @@ public abstract class Object : Efl.Eo.EoWrapper } } } - ///Method to raise event DelEvt. + /// Method to raise event DelEvt. public void OnDelEvt(EventArgs e) { var key = "_EFL_EVENT_DEL"; @@ -221,7 +223,7 @@ public abstract class Object : Efl.Eo.EoWrapper } } } - ///Method to raise event InvalidateEvt. + /// Method to raise event InvalidateEvt. public void OnInvalidateEvt(EventArgs e) { var key = "_EFL_EVENT_INVALIDATE"; @@ -274,7 +276,7 @@ public abstract class Object : Efl.Eo.EoWrapper } } } - ///Method to raise event NorefEvt. + /// Method to raise event NorefEvt. public void OnNorefEvt(EventArgs e) { var key = "_EFL_EVENT_NOREF"; @@ -327,7 +329,7 @@ public abstract class Object : Efl.Eo.EoWrapper } } } - ///Method to raise event OwnershipUniqueEvt. + /// Method to raise event OwnershipUniqueEvt. public void OnOwnershipUniqueEvt(EventArgs e) { var key = "_EFL_EVENT_OWNERSHIP_UNIQUE"; @@ -380,7 +382,7 @@ public abstract class Object : Efl.Eo.EoWrapper } } } - ///Method to raise event OwnershipSharedEvt. + /// Method to raise event OwnershipSharedEvt. public void OnOwnershipSharedEvt(EventArgs e) { var key = "_EFL_EVENT_OWNERSHIP_SHARED"; @@ -433,7 +435,7 @@ public abstract class Object : Efl.Eo.EoWrapper } } } - ///Method to raise event DestructEvt. + /// Method to raise event DestructEvt. public void OnDestructEvt(EventArgs e) { var key = "_EFL_EVENT_DESTRUCT"; @@ -553,7 +555,9 @@ public abstract class Object : Efl.Eo.EoWrapper /// In a normal object use case, when ownership of an object is given to a caller, said ownership should be released with efl_unref(). If the object has a parent, this will print error messages, as efl_unref() is stealing the ref from the parent. /// /// Warning: Use this function very carefully, unless you're absolutely sure of what you are doing. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Whether to allow efl_unref() to zero even if is not null. virtual public bool GetAllowParentUnref() { var _ret_var = Efl.Object.NativeMethods.efl_allow_parent_unref_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); @@ -566,7 +570,9 @@ public abstract class Object : Efl.Eo.EoWrapper /// In a normal object use case, when ownership of an object is given to a caller, said ownership should be released with efl_unref(). If the object has a parent, this will print error messages, as efl_unref() is stealing the ref from the parent. /// /// Warning: Use this function very carefully, unless you're absolutely sure of what you are doing. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Whether to allow efl_unref() to zero even if is not null. virtual public void SetAllowParentUnref(bool allow) { Efl.Object.NativeMethods.efl_allow_parent_unref_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),allow); @@ -685,7 +691,9 @@ public abstract class Object : Efl.Eo.EoWrapper /// The class of comp_obj must be part of the extensions of the class of the parent. It isn't possible to attach more then 1 composite of the same class. This function also sets the parent of comp_obj to parent. /// /// See , . - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// the object that will be used to composite the parent. /// true if successful. false otherwise. virtual public bool AttachComposite(Efl.Object comp_obj) { @@ -697,7 +705,9 @@ public abstract class Object : Efl.Eo.EoWrapper /// This functions also sets the parent of comp_obj to null. /// /// See , . - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The object that will be removed from the parent. /// true if successful. false otherwise. virtual public bool CompositeDetach(Efl.Object comp_obj) { @@ -707,12 +717,34 @@ public abstract class Object : Efl.Eo.EoWrapper } /// Check if an object is part of a composite object. /// See , . - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// true if it is. false otherwise. virtual public bool IsCompositePart() { var _ret_var = Efl.Object.NativeMethods.efl_composite_part_is_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; + } + /// Will register a manager of a specific class to be answered by eo.provider_find. + /// (Since EFL 1.22) + /// The class provided by the registered provider. + /// The provider for the newly registered class that has to provide that said Efl.Class. + /// true if successfully register, false otherwise. + virtual public bool ProviderRegister(Type klass, Efl.Object provider) { + var _ret_var = Efl.Object.NativeMethods.efl_provider_register_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),klass, provider); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Will unregister a manager of a specific class that was previously registered and answered by eo.provider_find. + /// (Since EFL 1.22) + /// The class provided by the provider to unregister for. + /// The provider for the registered class to unregister. + /// true if successfully unregistered, false otherwise. + virtual public bool ProviderUnregister(Type klass, Efl.Object provider) { + var _ret_var = Efl.Object.NativeMethods.efl_provider_unregister_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),klass, provider); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; } /// The parent of an object. /// Parents keep references to their children and will release these references when destroyed. In this way, objects can be assigned to a parent upon creation, tying their life cycle so the programmer does not need to worry about destroying the child object. In order to destroy an object before its parent, set the parent to NULL and use efl_unref(), or use efl_del() directly. @@ -780,7 +812,9 @@ public abstract class Object : Efl.Eo.EoWrapper /// In a normal object use case, when ownership of an object is given to a caller, said ownership should be released with efl_unref(). If the object has a parent, this will print error messages, as efl_unref() is stealing the ref from the parent. /// /// Warning: Use this function very carefully, unless you're absolutely sure of what you are doing. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Whether to allow efl_unref() to zero even if is not null. public bool AllowParentUnref { get { return GetAllowParentUnref(); } @@ -1062,6 +1096,26 @@ public abstract class Object : Efl.Eo.EoWrapper descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_composite_part_is"), func = Marshal.GetFunctionPointerForDelegate(efl_composite_part_is_static_delegate) }); } + if (efl_provider_register_static_delegate == null) + { + efl_provider_register_static_delegate = new efl_provider_register_delegate(provider_register); + } + + if (methods.FirstOrDefault(m => m.Name == "ProviderRegister") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_provider_register"), func = Marshal.GetFunctionPointerForDelegate(efl_provider_register_static_delegate) }); + } + + if (efl_provider_unregister_static_delegate == null) + { + efl_provider_unregister_static_delegate = new efl_provider_unregister_delegate(provider_unregister); + } + + if (methods.FirstOrDefault(m => m.Name == "ProviderUnregister") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_provider_unregister"), func = Marshal.GetFunctionPointerForDelegate(efl_provider_unregister_static_delegate) }); + } + descs.AddRange(base.GetEoOps(type)); return descs; } @@ -2100,87 +2154,108 @@ public abstract class Object : Efl.Eo.EoWrapper private static efl_composite_part_is_delegate efl_composite_part_is_static_delegate; - #pragma warning restore CA1707, CS1591, SA1300, SA1600 - -} -} -} + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_provider_register_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object provider); -namespace Efl { + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_provider_register_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object provider); -/// A parameter passed in event callbacks holding extra event parameters. -/// This is the full event information passed to callbacks in C. -/// (Since EFL 1.22) -[StructLayout(LayoutKind.Sequential)] -[Efl.Eo.BindingEntity] -public struct Event -{ - /// The object the callback was called on. - /// (Since EFL 1.22) - public Efl.Object Object; - /// The event description. - /// (Since EFL 1.22) - public Efl.EventDescription Desc; - /// Extra event information passed by the event caller. Must be cast to the event type declared in the EO file. Keep in mind that: 1) Objects are passed as a normal Eo*. Event subscribers can call functions on these objects. 2) Structs, built-in types and containers are passed as const pointers, with one level of indirection. - /// (Since EFL 1.22) - public System.IntPtr Info; - ///Constructor for Event. - public Event( - Efl.Object Object = default(Efl.Object), - Efl.EventDescription Desc = default(Efl.EventDescription), - System.IntPtr Info = default(System.IntPtr) ) - { - this.Object = Object; - this.Desc = Desc; - this.Info = Info; - } + public static Efl.Eo.FunctionWrapper efl_provider_register_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_provider_register"); - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. - public static implicit operator Event(IntPtr ptr) - { - var tmp = (Event.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Event.NativeStruct)); - return tmp; - } + private static bool provider_register(System.IntPtr obj, System.IntPtr pd, Type klass, Efl.Object provider) + { + Eina.Log.Debug("function efl_provider_register was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)ws.Target).ProviderRegister(klass, provider); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - #pragma warning disable CS1591 + return _ret_var; - ///Internal wrapper for struct Event. - [StructLayout(LayoutKind.Sequential)] - public struct NativeStruct - { - ///Internal wrapper for field Object - public System.IntPtr Object; - - public System.IntPtr Desc; - - public System.IntPtr Info; - ///Implicit conversion to the internal/marshalling representation. - public static implicit operator Event.NativeStruct(Event _external_struct) - { - var _internal_struct = new Event.NativeStruct(); - _internal_struct.Object = _external_struct.Object?.NativeHandle ?? System.IntPtr.Zero; - _internal_struct.Desc = Eina.PrimitiveConversion.ManagedToPointerAlloc(_external_struct.Desc); - _internal_struct.Info = _external_struct.Info; - return _internal_struct; + } + else + { + return efl_provider_register_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), klass, provider); + } } - ///Implicit conversion to the managed representation. - public static implicit operator Event(Event.NativeStruct _internal_struct) + private static efl_provider_register_delegate efl_provider_register_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_provider_unregister_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object provider); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_provider_unregister_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEflClass))] Type klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Object provider); + + public static Efl.Eo.FunctionWrapper efl_provider_unregister_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_provider_unregister"); + + private static bool provider_unregister(System.IntPtr obj, System.IntPtr pd, Type klass, Efl.Object provider) { - var _external_struct = new Event(); + Eina.Log.Debug("function efl_provider_unregister was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Object)ws.Target).ProviderUnregister(klass, provider); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - _external_struct.Object = (Efl.Object) Efl.Eo.Globals.CreateWrapperFor(_internal_struct.Object); - _external_struct.Desc = Eina.PrimitiveConversion.PointerToManaged(_internal_struct.Desc); - _external_struct.Info = _internal_struct.Info; - return _external_struct; + return _ret_var; + + } + else + { + return efl_provider_unregister_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), klass, provider); + } } - } + private static efl_provider_unregister_delegate efl_provider_unregister_static_delegate; - #pragma warning restore CS1591 + #pragma warning restore CA1707, CS1591, SA1300, SA1600 } - +} } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflObject_ExtensionMethods { + public static Efl.BindableProperty Parent(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Object { + return new Efl.BindableProperty("parent", fac); + } + + public static Efl.BindableProperty Name(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Object { + return new Efl.BindableProperty("name", fac); + } + + public static Efl.BindableProperty Comment(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Object { + return new Efl.BindableProperty("comment", fac); + } + + + + + + + public static Efl.BindableProperty AllowParentUnref(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Object { + return new Efl.BindableProperty("allow_parent_unref", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_observable.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_observable.eo.cs old mode 100644 new mode 100755 index 951fe58b1..5fbde1041 --- a/internals/src/EflSharp/EflSharp/efl/efl_observable.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_observable.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,11 +9,12 @@ using System.ComponentModel; namespace Efl { /// Efl observable class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Observable.NativeMethods] [Efl.Eo.BindingEntity] public class Observable : Efl.Object { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -38,7 +40,8 @@ public class Observable : Efl.Object FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Observable(ConstructingHandle ch) : base(ch) { @@ -409,6 +412,12 @@ public class Observable : Efl.Object } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflObservable_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif namespace Efl { /// This type describes an observable touple @@ -420,7 +429,9 @@ public struct ObservableTuple public System.String Key; /// Touple data public Eina.Iterator Data; - ///Constructor for ObservableTuple. + /// Constructor for ObservableTuple. + /// Touple key; + /// Touple data; public ObservableTuple( System.String Key = default(System.String), Eina.Iterator Data = default(Eina.Iterator) ) @@ -429,8 +440,8 @@ public struct ObservableTuple this.Data = Data; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator ObservableTuple(IntPtr ptr) { var tmp = (ObservableTuple.NativeStruct)Marshal.PtrToStructure(ptr, typeof(ObservableTuple.NativeStruct)); @@ -439,15 +450,15 @@ public struct ObservableTuple #pragma warning disable CS1591 - ///Internal wrapper for struct ObservableTuple. + /// Internal wrapper for struct ObservableTuple. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { - ///Internal wrapper for field Key + /// Internal wrapper for field Key public System.IntPtr Key; public System.IntPtr Data; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator ObservableTuple.NativeStruct(ObservableTuple _external_struct) { var _internal_struct = new ObservableTuple.NativeStruct(); @@ -456,7 +467,7 @@ public struct ObservableTuple return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator ObservableTuple(ObservableTuple.NativeStruct _internal_struct) { var _external_struct = new ObservableTuple(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_observer.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_observer.eo.cs old mode 100644 new mode 100755 index 341741273..0197d49ea --- a/internals/src/EflSharp/EflSharp/efl/efl_observer.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_observer.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,6 +9,7 @@ using System.ComponentModel; namespace Efl { /// Efl observer interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.IObserverConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IObserver : @@ -20,12 +22,13 @@ public interface IObserver : void Update(Efl.Object obs, System.String key, System.IntPtr data); } /// Efl observer interface -sealed public class IObserverConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IObserverConcrete : Efl.Eo.EoWrapper , IObserver { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -41,7 +44,8 @@ sealed public class IObserverConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IObserverConcrete(ConstructingHandle ch) : base(ch) { @@ -142,3 +146,9 @@ sealed public class IObserverConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflIObserverConcrete_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_pack.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_pack.eo.cs old mode 100644 new mode 100755 index e33047322..535e752fe --- a/internals/src/EflSharp/EflSharp/efl/efl_pack.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_pack.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -34,12 +35,12 @@ bool Unpack(Efl.Gfx.IEntity subobj); bool Pack(Efl.Gfx.IEntity subobj); } /// Common interface for objects (containers) with multiple contents (sub-objects) which can be added and removed at runtime. -sealed public class IPackConcrete : +sealed public class IPackConcrete : Efl.Eo.EoWrapper , IPack , Efl.IContainer { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -55,7 +56,8 @@ sealed public class IPackConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IPackConcrete(ConstructingHandle ch) : base(ch) { @@ -72,6 +74,7 @@ sealed public class IPackConcrete : /// Sent after a new sub-object was added. /// (Since EFL 1.22) + /// public event EventHandler ContentAddedEvt { add @@ -111,7 +114,7 @@ sealed public class IPackConcrete : } } } - ///Method to raise event ContentAddedEvt. + /// Method to raise event ContentAddedEvt. public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; @@ -127,6 +130,7 @@ sealed public class IPackConcrete : } /// Sent after a sub-object was removed, before unref. /// (Since EFL 1.22) + /// public event EventHandler ContentRemovedEvt { add @@ -166,7 +170,7 @@ sealed public class IPackConcrete : } } } - ///Method to raise event ContentRemovedEvt. + /// Method to raise event ContentRemovedEvt. public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; @@ -539,3 +543,9 @@ sealed public class IPackConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflIPackConcrete_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_pack_layout.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_pack_layout.eo.cs old mode 100644 new mode 100755 index 107f19343..5946b0644 --- a/internals/src/EflSharp/EflSharp/efl/efl_pack_layout.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_pack_layout.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,6 +10,7 @@ namespace Efl { /// Low-level APIs for object that can lay their children out. /// Used for containers (box, grid). +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.IPackLayoutConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IPackLayout : @@ -27,12 +29,13 @@ void UpdateLayout(); } /// Low-level APIs for object that can lay their children out. /// Used for containers (box, grid). -sealed public class IPackLayoutConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IPackLayoutConcrete : Efl.Eo.EoWrapper , IPackLayout { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -48,7 +51,8 @@ sealed public class IPackLayoutConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IPackLayoutConcrete(ConstructingHandle ch) : base(ch) { @@ -102,7 +106,7 @@ sealed public class IPackLayoutConcrete : } } } - ///Method to raise event LayoutUpdatedEvt. + /// Method to raise event LayoutUpdatedEvt. public void OnLayoutUpdatedEvt(EventArgs e) { var key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; @@ -252,3 +256,9 @@ sealed public class IPackLayoutConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflIPackLayoutConcrete_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_pack_linear.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_pack_linear.eo.cs old mode 100644 new mode 100755 index a9d2e6982..43acc8db2 --- a/internals/src/EflSharp/EflSharp/efl/efl_pack_linear.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_pack_linear.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -72,12 +73,12 @@ Efl.Gfx.IEntity PackUnpackAt(int index); } /// Common interface for objects (containers) with multiple contents (sub-objects) which can be added and removed at runtime in a linear fashion. /// This means the sub-objects are internally organized in an ordered list. -sealed public class IPackLinearConcrete : +sealed public class IPackLinearConcrete : Efl.Eo.EoWrapper , IPackLinear , Efl.IContainer, Efl.IPack { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -93,7 +94,8 @@ sealed public class IPackLinearConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IPackLinearConcrete(ConstructingHandle ch) : base(ch) { @@ -110,6 +112,7 @@ sealed public class IPackLinearConcrete : /// Sent after a new sub-object was added. /// (Since EFL 1.22) + /// public event EventHandler ContentAddedEvt { add @@ -149,7 +152,7 @@ sealed public class IPackLinearConcrete : } } } - ///Method to raise event ContentAddedEvt. + /// Method to raise event ContentAddedEvt. public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; @@ -165,6 +168,7 @@ sealed public class IPackLinearConcrete : } /// Sent after a sub-object was removed, before unref. /// (Since EFL 1.22) + /// public event EventHandler ContentRemovedEvt { add @@ -204,7 +208,7 @@ sealed public class IPackLinearConcrete : } } } - ///Method to raise event ContentRemovedEvt. + /// Method to raise event ContentRemovedEvt. public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; @@ -1031,3 +1035,9 @@ sealed public class IPackLinearConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflIPackLinearConcrete_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_pack_table.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_pack_table.eo.cs old mode 100644 new mode 100755 index aa1628fe1..ec0f9202f --- a/internals/src/EflSharp/EflSharp/efl/efl_pack_table.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_pack_table.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,20 +10,35 @@ namespace Efl { /// Interface for 2D containers which arrange their elements on a table with rows and columns. /// Elements can be positioned on a specific row and column, or they can be simply added to the table using and the container will chose where to put them. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.IPackTableConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IPackTable : Efl.IPack , Efl.Eo.IWrapper, IDisposable { - /// Position and span of the subobj in this container, may be modified to move the subobj + /// column of the subobj in this container. +/// Child object +/// Column number +/// Column span +/// Returns false if item is not a child +bool GetTableCellColumn(Efl.Gfx.IEntity subobj, out int col, out int colspan); + /// column of the subobj in this container. /// Child object /// Column number -/// Row number /// Column span +void SetTableCellColumn(Efl.Gfx.IEntity subobj, int col, int colspan); + /// row of the subobj in this container. +/// Child object +/// Row number /// Row span /// Returns false if item is not a child -bool GetTablePosition(Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); +bool GetTableCellRow(Efl.Gfx.IEntity subobj, out int row, out int rowspan); + /// row of the subobj in this container. +/// Child object +/// Row number +/// Row span +void SetTableCellRow(Efl.Gfx.IEntity subobj, int row, int rowspan); /// Combines and /// Number of columns /// Number of rows @@ -63,27 +79,34 @@ Eina.Iterator GetTableContents(int col, int row, bool below); /// Row number /// Child object Efl.Gfx.IEntity GetTableContent(int col, int row); - /// Specifies the amount of columns the table will have when the fill direction is horizontal. If it is vertical, the amount of columns depends on the amount of cells added and . + /// Combines and + /// Number of columns + (int, int) TableSize { + get; + set; + } + /// Specifies the amount of columns the table will have when the fill direction is horizontal. If it is vertical, the amount of columns depends on the amount of cells added and . /// Amount of columns. int TableColumns { - get ; - set ; + get; + set; } /// Specifies the amount of rows the table will have when the fill direction is vertical. If it is horizontal, the amount of rows depends on the amount of cells added and . /// Amount of rows. int TableRows { - get ; - set ; + get; + set; } } /// Interface for 2D containers which arrange their elements on a table with rows and columns. /// Elements can be positioned on a specific row and column, or they can be simply added to the table using and the container will chose where to put them. -sealed public class IPackTableConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IPackTableConcrete : Efl.Eo.EoWrapper , IPackTable , Efl.IContainer, Efl.IPack { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -99,7 +122,8 @@ sealed public class IPackTableConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IPackTableConcrete(ConstructingHandle ch) : base(ch) { @@ -116,6 +140,7 @@ sealed public class IPackTableConcrete : /// Sent after a new sub-object was added. /// (Since EFL 1.22) + /// public event EventHandler ContentAddedEvt { add @@ -155,7 +180,7 @@ sealed public class IPackTableConcrete : } } } - ///Method to raise event ContentAddedEvt. + /// Method to raise event ContentAddedEvt. public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; @@ -171,6 +196,7 @@ sealed public class IPackTableConcrete : } /// Sent after a sub-object was removed, before unref. /// (Since EFL 1.22) + /// public event EventHandler ContentRemovedEvt { add @@ -210,7 +236,7 @@ sealed public class IPackTableConcrete : } } } - ///Method to raise event ContentRemovedEvt. + /// Method to raise event ContentRemovedEvt. public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; @@ -224,18 +250,42 @@ sealed public class IPackTableConcrete : IntPtr info = e.arg.NativeHandle; Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } - /// Position and span of the subobj in this container, may be modified to move the subobj + /// column of the subobj in this container. /// Child object /// Column number - /// Row number /// Column span + /// Returns false if item is not a child + public bool GetTableCellColumn(Efl.Gfx.IEntity subobj, out int col, out int colspan) { + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_cell_column_get_ptr.Value.Delegate(this.NativeHandle,subobj, out col, out colspan); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// column of the subobj in this container. + /// Child object + /// Column number + /// Column span + public void SetTableCellColumn(Efl.Gfx.IEntity subobj, int col, int colspan) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_cell_column_set_ptr.Value.Delegate(this.NativeHandle,subobj, col, colspan); + Eina.Error.RaiseIfUnhandledException(); + } + /// row of the subobj in this container. + /// Child object + /// Row number /// Row span /// Returns false if item is not a child - public bool GetTablePosition(Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan) { - var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_position_get_ptr.Value.Delegate(this.NativeHandle,subobj, out col, out row, out colspan, out rowspan); + public bool GetTableCellRow(Efl.Gfx.IEntity subobj, out int row, out int rowspan) { + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_cell_row_get_ptr.Value.Delegate(this.NativeHandle,subobj, out row, out rowspan); Eina.Error.RaiseIfUnhandledException(); - return _ret_var; + return _ret_var; } + /// row of the subobj in this container. + /// Child object + /// Row number + /// Row span + public void SetTableCellRow(Efl.Gfx.IEntity subobj, int row, int rowspan) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_cell_row_set_ptr.Value.Delegate(this.NativeHandle,subobj, row, rowspan); + Eina.Error.RaiseIfUnhandledException(); + } /// Combines and /// Number of columns /// Number of rows @@ -358,6 +408,17 @@ sealed public class IPackTableConcrete : Eina.Error.RaiseIfUnhandledException(); return _ret_var; } + /// Combines and + /// Number of columns + public (int, int) TableSize { + get { + int _out_cols = default(int); + int _out_rows = default(int); + GetTableSize(out _out_cols,out _out_rows); + return (_out_cols,_out_rows); + } + set { SetTableSize( value.Item1, value.Item2); } + } /// Specifies the amount of columns the table will have when the fill direction is horizontal. If it is vertical, the amount of columns depends on the amount of cells added and . /// Amount of columns. public int TableColumns { @@ -386,14 +447,44 @@ sealed public class IPackTableConcrete : var descs = new System.Collections.Generic.List(); var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_pack_table_position_get_static_delegate == null) + if (efl_pack_table_cell_column_get_static_delegate == null) + { + efl_pack_table_cell_column_get_static_delegate = new efl_pack_table_cell_column_get_delegate(table_cell_column_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetTableCellColumn") != null) { - efl_pack_table_position_get_static_delegate = new efl_pack_table_position_get_delegate(table_position_get); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_cell_column_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_cell_column_get_static_delegate) }); } - if (methods.FirstOrDefault(m => m.Name == "GetTablePosition") != null) + if (efl_pack_table_cell_column_set_static_delegate == null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_position_get_static_delegate) }); + efl_pack_table_cell_column_set_static_delegate = new efl_pack_table_cell_column_set_delegate(table_cell_column_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetTableCellColumn") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_cell_column_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_cell_column_set_static_delegate) }); + } + + if (efl_pack_table_cell_row_get_static_delegate == null) + { + efl_pack_table_cell_row_get_static_delegate = new efl_pack_table_cell_row_get_delegate(table_cell_row_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetTableCellRow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_cell_row_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_cell_row_get_static_delegate) }); + } + + if (efl_pack_table_cell_row_set_static_delegate == null) + { + efl_pack_table_cell_row_set_static_delegate = new efl_pack_table_cell_row_set_delegate(table_cell_row_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetTableCellRow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_cell_row_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_cell_row_set_static_delegate) }); } if (efl_pack_table_size_get_static_delegate == null) @@ -558,23 +649,23 @@ sealed public class IPackTableConcrete : #pragma warning disable CA1707, CS1591, SA1300, SA1600 [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_pack_table_position_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); + private delegate bool efl_pack_table_cell_column_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int colspan); [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_pack_table_position_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); + public delegate bool efl_pack_table_cell_column_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int colspan); - public static Efl.Eo.FunctionWrapper efl_pack_table_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_position_get"); + public static Efl.Eo.FunctionWrapper efl_pack_table_cell_column_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_cell_column_get"); - private static bool table_position_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan) + private static bool table_cell_column_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, out int col, out int colspan) { - Eina.Log.Debug("function efl_pack_table_position_get was called"); + Eina.Log.Debug("function efl_pack_table_cell_column_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - col = default(int); row = default(int); colspan = default(int); rowspan = default(int); bool _ret_var = default(bool); + col = default(int); colspan = default(int); bool _ret_var = default(bool); try { - _ret_var = ((IPackTable)ws.Target).GetTablePosition(subobj, out col, out row, out colspan, out rowspan); + _ret_var = ((IPackTable)ws.Target).GetTableCellColumn(subobj, out col, out colspan); } catch (Exception e) { @@ -582,16 +673,122 @@ sealed public class IPackTableConcrete : Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; + return _ret_var; } else { - return efl_pack_table_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, out col, out row, out colspan, out rowspan); + return efl_pack_table_cell_column_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, out col, out colspan); } } - private static efl_pack_table_position_get_delegate efl_pack_table_position_get_static_delegate; + private static efl_pack_table_cell_column_get_delegate efl_pack_table_cell_column_get_static_delegate; + + + private delegate void efl_pack_table_cell_column_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int col, int colspan); + + + public delegate void efl_pack_table_cell_column_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int col, int colspan); + + public static Efl.Eo.FunctionWrapper efl_pack_table_cell_column_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_cell_column_set"); + + private static void table_cell_column_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int col, int colspan) + { + Eina.Log.Debug("function efl_pack_table_cell_column_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((IPackTable)ws.Target).SetTableCellColumn(subobj, col, colspan); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_cell_column_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, col, colspan); + } + } + + private static efl_pack_table_cell_column_set_delegate efl_pack_table_cell_column_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_table_cell_row_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int row, out int rowspan); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_table_cell_row_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int row, out int rowspan); + + public static Efl.Eo.FunctionWrapper efl_pack_table_cell_row_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_cell_row_get"); + + private static bool table_cell_row_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, out int row, out int rowspan) + { + Eina.Log.Debug("function efl_pack_table_cell_row_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + row = default(int); rowspan = default(int); bool _ret_var = default(bool); + try + { + _ret_var = ((IPackTable)ws.Target).GetTableCellRow(subobj, out row, out rowspan); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_table_cell_row_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, out row, out rowspan); + } + } + + private static efl_pack_table_cell_row_get_delegate efl_pack_table_cell_row_get_static_delegate; + + + private delegate void efl_pack_table_cell_row_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int row, int rowspan); + + + public delegate void efl_pack_table_cell_row_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int row, int rowspan); + + public static Efl.Eo.FunctionWrapper efl_pack_table_cell_row_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_cell_row_set"); + + private static void table_cell_row_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int row, int rowspan) + { + Eina.Log.Debug("function efl_pack_table_cell_row_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((IPackTable)ws.Target).SetTableCellRow(subobj, row, rowspan); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_cell_row_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, row, rowspan); + } + } + + private static efl_pack_table_cell_row_set_delegate efl_pack_table_cell_row_set_static_delegate; private delegate void efl_pack_table_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int cols, out int rows); @@ -1135,3 +1332,20 @@ sealed public class IPackTableConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflIPackTableConcrete_ExtensionMethods { + + + + public static Efl.BindableProperty TableColumns(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.IPackTable { + return new Efl.BindableProperty("table_columns", fac); + } + + public static Efl.BindableProperty TableRows(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.IPackTable { + return new Efl.BindableProperty("table_rows", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_part.eo.cs old mode 100644 new mode 100755 index 5bb50d241..35334e09b --- a/internals/src/EflSharp/EflSharp/efl/efl_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_part.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -48,12 +49,12 @@ Efl.Object GetPart(System.String name); /// /// part = ref(part(obj, "part")) func1(part, args) func2(part, args) func3(part, args) unref(part) /// (Since EFL 1.22) -sealed public class IPartConcrete : +sealed public class IPartConcrete : Efl.Eo.EoWrapper , IPart { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -69,7 +70,8 @@ sealed public class IPartConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IPartConcrete(ConstructingHandle ch) : base(ch) { @@ -172,3 +174,9 @@ sealed public class IPartConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflIPartConcrete_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_playable.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_playable.eo.cs old mode 100644 new mode 100755 index 4906ff53c..65d11a878 --- a/internals/src/EflSharp/EflSharp/efl/efl_playable.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_playable.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,6 +9,7 @@ using System.ComponentModel; namespace Efl { /// Efl media playable interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.IPlayableConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IPlayable : @@ -23,24 +25,25 @@ bool GetSeekable(); /// Get the length of play for the media file. /// The length of the stream in seconds. double Length { - get ; + get; } bool Playable { - get ; + get; } /// Get whether the media file is seekable. /// true if seekable. bool Seekable { - get ; + get; } } /// Efl media playable interface -sealed public class IPlayableConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IPlayableConcrete : Efl.Eo.EoWrapper , IPlayable { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -56,7 +59,8 @@ sealed public class IPlayableConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IPlayableConcrete(ConstructingHandle ch) : base(ch) { @@ -274,3 +278,12 @@ sealed public class IPlayableConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflIPlayableConcrete_ExtensionMethods { + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_player.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_player.eo.cs old mode 100644 new mode 100755 index af7541364..a7809b75d --- a/internals/src/EflSharp/EflSharp/efl/efl_player.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_player.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,6 +9,7 @@ using System.ComponentModel; namespace Efl { /// Efl media player interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.IPlayerConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IPlayer : @@ -70,65 +72,66 @@ void Stop(); /// Whether or not the playable can be played. /// true if the object have playable data, false otherwise bool Playable { - get ; + get; } /// Get play/pause state of the media file. /// true if playing, false otherwise. bool Play { - get ; - set ; + get; + set; } /// Get the position in the media file. /// The position is returned as the number of seconds since the beginning of the media file. /// The position (in seconds). double Pos { - get ; - set ; + get; + set; } /// Get how much of the file has been played. /// This function gets the progress in playing the file, the return value is in the [0, 1] range. /// The progress within the [0, 1] range. double Progress { - get ; + get; } /// Control the play speed of the media file. /// This function control the speed with which the media file will be played. 1.0 represents the normal speed, 2 double speed, 0.5 half speed and so on. /// The play speed in the [0, infinity) range. double PlaySpeed { - get ; - set ; + get; + set; } /// Control the audio volume. /// Controls the audio volume of the stream being played. This has nothing to do with the system volume. This volume will be multiplied by the system volume. e.g.: if the current volume level is 0.5, and the system volume is 50%, it will be 0.5 * 0.5 = 0.25. /// The volume level double Volume { - get ; - set ; + get; + set; } /// This property controls the audio mute state. /// The mute state. true or false. bool Mute { - get ; - set ; + get; + set; } /// Get the length of play for the media file. /// The length of the stream in seconds. double Length { - get ; + get; } /// Get whether the media file is seekable. /// true if seekable. bool Seekable { - get ; + get; } } /// Efl media player interface -sealed public class IPlayerConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IPlayerConcrete : Efl.Eo.EoWrapper , IPlayer { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -144,7 +147,8 @@ sealed public class IPlayerConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IPlayerConcrete(ConstructingHandle ch) : base(ch) { @@ -1086,3 +1090,33 @@ sealed public class IPlayerConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflIPlayerConcrete_ExtensionMethods { + + public static Efl.BindableProperty Play(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.IPlayer { + return new Efl.BindableProperty("play", fac); + } + + public static Efl.BindableProperty Pos(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.IPlayer { + return new Efl.BindableProperty("pos", fac); + } + + + public static Efl.BindableProperty PlaySpeed(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.IPlayer { + return new Efl.BindableProperty("play_speed", fac); + } + + public static Efl.BindableProperty Volume(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.IPlayer { + return new Efl.BindableProperty("volume", fac); + } + + public static Efl.BindableProperty Mute(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.IPlayer { + return new Efl.BindableProperty("mute", fac); + } + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_screen.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_screen.eo.cs old mode 100644 new mode 100755 index 3f4bf4b5d..403a80270 --- a/internals/src/EflSharp/EflSharp/efl/efl_screen.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_screen.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -41,7 +42,7 @@ void GetScreenDpi(out int xdpi, out int ydpi); /// (Since EFL 1.22) /// The screen size in pixels. Eina.Size2D ScreenSizeInPixels { - get ; + get; } /// Get screen scaling factor. /// This is the factor by which window contents will be scaled on the screen. @@ -50,24 +51,29 @@ void GetScreenDpi(out int xdpi, out int ydpi); /// (Since EFL 1.22) /// The screen scaling factor. float ScreenScaleFactor { - get ; + get; } /// Get the rotation of the screen. /// Most engines only return multiples of 90. /// (Since EFL 1.22) /// Screen rotation in degrees. int ScreenRotation { - get ; + get; + } + /// Get the pixel density in DPI (Dots Per Inch) for the screen that a window is on. + /// (Since EFL 1.22) + (int, int) ScreenDpi { + get; } } /// Efl screen interface /// (Since EFL 1.22) -sealed public class IScreenConcrete : +sealed public class IScreenConcrete : Efl.Eo.EoWrapper , IScreen { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -83,7 +89,8 @@ sealed public class IScreenConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IScreenConcrete(ConstructingHandle ch) : base(ch) { @@ -158,6 +165,16 @@ sealed public class IScreenConcrete : public int ScreenRotation { get { return GetScreenRotation(); } } + /// Get the pixel density in DPI (Dots Per Inch) for the screen that a window is on. + /// (Since EFL 1.22) + public (int, int) ScreenDpi { + get { + int _out_xdpi = default(int); + int _out_ydpi = default(int); + GetScreenDpi(out _out_xdpi,out _out_ydpi); + return (_out_xdpi,_out_ydpi); + } + } private static IntPtr GetEflClassStatic() { return Efl.IScreenConcrete.efl_screen_interface_get(); @@ -374,3 +391,13 @@ sealed public class IScreenConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflIScreenConcrete_ExtensionMethods { + + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_select_model.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_select_model.eo.cs old mode 100644 new mode 100755 index fb9a702d2..a88b437c0 --- a/internals/src/EflSharp/EflSharp/efl/efl_select_model.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_select_model.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -7,24 +8,27 @@ using System.Threading; using System.ComponentModel; namespace Efl { -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class SelectModelSelectedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// public Efl.Object arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class SelectModelUnselectedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// public Efl.Object arg { get; set; } } /// Efl select model class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.SelectModel.NativeMethods] [Efl.Eo.BindingEntity] public class SelectModel : Efl.BooleanModel { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -62,7 +66,8 @@ public class SelectModel : Efl.BooleanModel FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected SelectModel(ConstructingHandle ch) : base(ch) { @@ -83,6 +88,7 @@ public class SelectModel : Efl.BooleanModel { } + /// public event EventHandler SelectedEvt { add @@ -122,7 +128,7 @@ public class SelectModel : Efl.BooleanModel } } } - ///Method to raise event SelectedEvt. + /// Method to raise event SelectedEvt. public void OnSelectedEvt(Efl.SelectModelSelectedEvt_Args e) { var key = "_EFL_SELECT_MODEL_EVENT_SELECTED"; @@ -136,6 +142,7 @@ public class SelectModel : Efl.BooleanModel IntPtr info = e.arg.NativeHandle; Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } + /// public event EventHandler UnselectedEvt { add @@ -175,7 +182,7 @@ public class SelectModel : Efl.BooleanModel } } } - ///Method to raise event UnselectedEvt. + /// Method to raise event UnselectedEvt. public void OnUnselectedEvt(Efl.SelectModelUnselectedEvt_Args e) { var key = "_EFL_SELECT_MODEL_EVENT_UNSELECTED"; @@ -442,3 +449,13 @@ public class SelectModel : Efl.BooleanModel } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflSelectModel_ExtensionMethods { + public static Efl.BindableProperty SingleSelection(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.SelectModel { + return new Efl.BindableProperty("single_selection", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_sinusoidal_interpolator.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_sinusoidal_interpolator.eo.cs old mode 100644 new mode 100755 index fa4ba9b5f..8606f9d9c --- a/internals/src/EflSharp/EflSharp/efl/efl_sinusoidal_interpolator.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_sinusoidal_interpolator.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,11 +10,12 @@ namespace Efl { /// Efl sinusoidal interpolator class /// output = (1 - cos(input * Pi)) / 2; +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.SinusoidalInterpolator.NativeMethods] [Efl.Eo.BindingEntity] public class SinusoidalInterpolator : Efl.Object, Efl.IInterpolator { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -39,7 +41,8 @@ public class SinusoidalInterpolator : Efl.Object, Efl.IInterpolator FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected SinusoidalInterpolator(ConstructingHandle ch) : base(ch) { @@ -258,3 +261,13 @@ public class SinusoidalInterpolator : Efl.Object, Efl.IInterpolator } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflSinusoidalInterpolator_ExtensionMethods { + public static Efl.BindableProperty Factor(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.SinusoidalInterpolator { + return new Efl.BindableProperty("factor", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_spring_interpolator.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_spring_interpolator.eo.cs old mode 100644 new mode 100755 index 63a598407..e82f1fe71 --- a/internals/src/EflSharp/EflSharp/efl/efl_spring_interpolator.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_spring_interpolator.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,11 +9,12 @@ using System.ComponentModel; namespace Efl { /// Efl spring interpolator class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.SpringInterpolator.NativeMethods] [Efl.Eo.BindingEntity] public class SpringInterpolator : Efl.Object, Efl.IInterpolator { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -38,7 +40,8 @@ public class SpringInterpolator : Efl.Object, Efl.IInterpolator FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected SpringInterpolator(ConstructingHandle ch) : base(ch) { @@ -81,6 +84,17 @@ public class SpringInterpolator : Efl.Object, Efl.IInterpolator Eina.Error.RaiseIfUnhandledException(); return _ret_var; } + /// Factors property + /// First factor of the interpolation function. + public (double, double) Factors { + get { + double _out_factor1 = default(double); + double _out_factor2 = default(double); + GetFactors(out _out_factor1,out _out_factor2); + return (_out_factor1,_out_factor2); + } + set { SetFactors( value.Item1, value.Item2); } + } private static IntPtr GetEflClassStatic() { return Efl.SpringInterpolator.efl_spring_interpolator_class_get(); @@ -251,3 +265,10 @@ public class SpringInterpolator : Efl.Object, Efl.IInterpolator } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflSpringInterpolator_ExtensionMethods { + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_task.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_task.eo.cs old mode 100644 new mode 100755 index e4d3da112..684904753 --- a/internals/src/EflSharp/EflSharp/efl/efl_task.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_task.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -13,7 +14,7 @@ namespace Efl { [Efl.Eo.BindingEntity] public abstract class Task : Efl.LoopConsumer { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -39,7 +40,8 @@ public abstract class Task : Efl.LoopConsumer FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Task(ConstructingHandle ch) : base(ch) { @@ -90,7 +92,7 @@ public abstract class Task : Efl.LoopConsumer Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Flags to further customize task's behavior. + /// Flags to further customize task's behavior. The default value: exit_with_parent /// (Since EFL 1.22) /// Desired task flags. virtual public Efl.TaskFlags GetFlags() { @@ -98,7 +100,7 @@ public abstract class Task : Efl.LoopConsumer Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Flags to further customize task's behavior. + /// Flags to further customize task's behavior. The default value: exit_with_parent /// (Since EFL 1.22) /// Desired task flags. virtual public void SetFlags(Efl.TaskFlags flags) { @@ -141,7 +143,7 @@ public abstract class Task : Efl.LoopConsumer public int ExitCode { get { return GetExitCode(); } } - /// Flags to further customize task's behavior. + /// Flags to further customize task's behavior. The default value: exit_with_parent /// (Since EFL 1.22) /// Desired task flags. public Efl.TaskFlags Flags { @@ -501,6 +503,21 @@ public abstract class Task : Efl.LoopConsumer } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflTask_ExtensionMethods { + public static Efl.BindableProperty Priority(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Task { + return new Efl.BindableProperty("priority", fac); + } + + + public static Efl.BindableProperty Flags(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Task { + return new Efl.BindableProperty("flags", fac); + } + +} +#pragma warning restore CS1591 +#endif namespace Efl { /// How much processor time will this task get compared to other tasks running on the same processor. @@ -537,6 +554,8 @@ UseStdin = 1, UseStdout = 2, /// Task will not produce an exit code upon termination. NoExitCodeError = 4, +/// Exit when parent exits. +ExitWithParent = 8, } } diff --git a/internals/src/EflSharp/EflSharp/efl/efl_text.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_text.eo.cs old mode 100644 new mode 100755 index 3683e50bb..d94f24a72 --- a/internals/src/EflSharp/EflSharp/efl/efl_text.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_text.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -29,12 +30,12 @@ void SetText(System.String text); } /// Efl text interface /// (Since EFL 1.22) -sealed public class ITextConcrete : +sealed public class ITextConcrete : Efl.Eo.EoWrapper , IText { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -50,7 +51,8 @@ sealed public class ITextConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ITextConcrete(ConstructingHandle ch) : base(ch) { @@ -208,3 +210,10 @@ sealed public class ITextConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflITextConcrete_ExtensionMethods { + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_text_annotate.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_text_annotate.eo.cs old mode 100644 new mode 100755 index ce58909cc..57d9c30ca --- a/internals/src/EflSharp/EflSharp/efl/efl_text_annotate.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_text_annotate.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,6 +9,7 @@ using System.ComponentModel; namespace Efl { /// Cursor API +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.ITextAnnotateConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface ITextAnnotate : @@ -74,12 +76,13 @@ bool GetItemGeometry(Efl.TextAnnotateAnnotation an, out int x, out int y, out in Efl.TextAnnotateAnnotation CursorItemInsert(Efl.TextCursorCursor cur, System.String item, System.String format); } /// Cursor API -sealed public class ITextAnnotateConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class ITextAnnotateConcrete : Efl.Eo.EoWrapper , ITextAnnotate { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -95,7 +98,8 @@ sealed public class ITextAnnotateConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ITextAnnotateConcrete(ConstructingHandle ch) : base(ch) { @@ -700,3 +704,11 @@ sealed public class ITextAnnotateConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflITextAnnotateConcrete_ExtensionMethods { + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_text_cursor.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_text_cursor.eo.cs old mode 100644 new mode 100755 index 5bfc22b2c..43affe968 --- a/internals/src/EflSharp/EflSharp/efl/efl_text_cursor.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_text_cursor.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,6 +9,7 @@ using System.ComponentModel; namespace Efl { /// Cursor API +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.ITextCursorConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface ITextCursor : @@ -129,12 +131,13 @@ int CursorTextInsert(Efl.TextCursorCursor cur, System.String text); void CursorCharDelete(Efl.TextCursorCursor cur); } /// Cursor API -sealed public class ITextCursorConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class ITextCursorConcrete : Efl.Eo.EoWrapper , ITextCursor { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -150,7 +153,8 @@ sealed public class ITextCursorConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ITextCursorConcrete(ConstructingHandle ch) : base(ch) { @@ -1720,6 +1724,16 @@ sealed public class ITextCursorConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflITextCursorConcrete_ExtensionMethods { + + + + +} +#pragma warning restore CS1591 +#endif namespace Efl { /// All available cursor states diff --git a/internals/src/EflSharp/EflSharp/efl/efl_text_font.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_text_font.eo.cs old mode 100644 new mode 100755 index f8b4a14f5..b087c2dcb --- a/internals/src/EflSharp/EflSharp/efl/efl_text_font.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_text_font.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,6 +9,7 @@ using System.ComponentModel; namespace Efl { /// Font settings of the text +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.ITextFontConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface ITextFont : @@ -23,6 +25,8 @@ void GetFont(out System.String font, out Efl.Font.Size size); /// Set the font family, filename and size for a given text object. /// This function allows the font name and size of a text object to be set. The font string has to follow fontconfig's convention for naming fonts, as it's the underlying library used to query system fonts by Evas (see the fc-list command's output, on your system, to get an idea). Alternatively, youe can use the full path to a font file. /// +/// To skip changing font family pass null as font family. To skip changing font size pass 0 as font size. +/// /// See also , . /// The font family name or filename. /// The font size, in points. @@ -85,63 +89,73 @@ Efl.TextFontBitmapScalable GetFontBitmapScalable(); /// Default is . /// Scalable void SetFontBitmapScalable(Efl.TextFontBitmapScalable scalable); - /// Get the font file's path which is being used on a given text object. + /// Retrieve the font family and size in use on a given text object. + /// This function allows the font name and size of a text object to be queried. Remember that the font name string is still owned by Evas and should not have free() called on it by the caller of the function. + /// + /// See also . + /// The font family name or filename. + (System.String, Efl.Font.Size) Font { + get; + set; + } + /// Get the font file's path which is being used on a given text object. /// See for more details. /// The font file's path. System.String FontSource { - get ; - set ; + get; + set; } /// Comma-separated list of font fallbacks /// Will be used in case the primary font isn't available. /// Font name fallbacks System.String FontFallbacks { - get ; - set ; + get; + set; } /// Type of weight of the displayed font /// Default is . /// Font weight Efl.TextFontWeight FontWeight { - get ; - set ; + get; + set; } /// Type of slant of the displayed font /// Default is . /// Font slant Efl.TextFontSlant FontSlant { - get ; - set ; + get; + set; } /// Type of width of the displayed font /// Default is . /// Font width Efl.TextFontWidth FontWidth { - get ; - set ; + get; + set; } /// Specific language of the displayed font /// This is used to lookup fonts suitable to the specified language, as well as helping the font shaper backend. The language lang can be either a code e.g "en_US", "auto" to use the system locale, or "none". /// Language System.String FontLang { - get ; - set ; + get; + set; } /// The bitmap fonts have fixed size glyphs for several available sizes. Basically, it is not scalable. But, it needs to be scalable for some use cases. (ex. colorful emoji fonts) /// Default is . /// Scalable Efl.TextFontBitmapScalable FontBitmapScalable { - get ; - set ; + get; + set; } } /// Font settings of the text -sealed public class ITextFontConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class ITextFontConcrete : Efl.Eo.EoWrapper , ITextFont { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -157,7 +171,8 @@ sealed public class ITextFontConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ITextFontConcrete(ConstructingHandle ch) : base(ch) { @@ -185,6 +200,8 @@ sealed public class ITextFontConcrete : /// Set the font family, filename and size for a given text object. /// This function allows the font name and size of a text object to be set. The font string has to follow fontconfig's convention for naming fonts, as it's the underlying library used to query system fonts by Evas (see the fc-list command's output, on your system, to get an idea). Alternatively, youe can use the full path to a font file. /// + /// To skip changing font family pass null as font family. To skip changing font size pass 0 as font size. + /// /// See also , . /// The font family name or filename. /// The font size, in points. @@ -299,6 +316,20 @@ sealed public class ITextFontConcrete : Efl.ITextFontConcrete.NativeMethods.efl_text_font_bitmap_scalable_set_ptr.Value.Delegate(this.NativeHandle,scalable); Eina.Error.RaiseIfUnhandledException(); } + /// Retrieve the font family and size in use on a given text object. + /// This function allows the font name and size of a text object to be queried. Remember that the font name string is still owned by Evas and should not have free() called on it by the caller of the function. + /// + /// See also . + /// The font family name or filename. + public (System.String, Efl.Font.Size) Font { + get { + System.String _out_font = default(System.String); + Efl.Font.Size _out_size = default(Efl.Font.Size); + GetFont(out _out_font,out _out_size); + return (_out_font,_out_size); + } + set { SetFont( value.Item1, value.Item2); } + } /// Get the font file's path which is being used on a given text object. /// See for more details. /// The font file's path. @@ -1110,6 +1141,41 @@ sealed public class ITextFontConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflITextFontConcrete_ExtensionMethods { + + public static Efl.BindableProperty FontSource(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextFont { + return new Efl.BindableProperty("font_source", fac); + } + + public static Efl.BindableProperty FontFallbacks(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextFont { + return new Efl.BindableProperty("font_fallbacks", fac); + } + + public static Efl.BindableProperty FontWeight(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextFont { + return new Efl.BindableProperty("font_weight", fac); + } + + public static Efl.BindableProperty FontSlant(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextFont { + return new Efl.BindableProperty("font_slant", fac); + } + + public static Efl.BindableProperty FontWidth(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextFont { + return new Efl.BindableProperty("font_width", fac); + } + + public static Efl.BindableProperty FontLang(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextFont { + return new Efl.BindableProperty("font_lang", fac); + } + + public static Efl.BindableProperty FontBitmapScalable(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextFont { + return new Efl.BindableProperty("font_bitmap_scalable", fac); + } + +} +#pragma warning restore CS1591 +#endif namespace Efl { /// Type of font weight diff --git a/internals/src/EflSharp/EflSharp/efl/efl_text_format.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_text_format.eo.cs old mode 100644 new mode 100755 index a5529cc47..e4d8cd610 --- a/internals/src/EflSharp/EflSharp/efl/efl_text_format.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_text_format.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,6 +10,7 @@ namespace Efl { /// The look and layout of the text /// The text format can affect the geometry of the text object, as well as how characters are presented. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.ITextFormatConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface ITextFormat : @@ -89,81 +91,82 @@ void SetReplacementChar(System.String repch); /// Ellipsis value (number from -1.0 to 1.0) /// Ellipsis value double Ellipsis { - get ; - set ; + get; + set; } /// Wrap mode for use in the text /// Wrap mode Efl.TextFormatWrap Wrap { - get ; - set ; + get; + set; } /// Multiline is enabled or not /// true if multiline is enabled, false otherwise bool Multiline { - get ; - set ; + get; + set; } /// Horizontal alignment of text /// Alignment type Efl.TextFormatHorizontalAlignmentAutoType HalignAutoType { - get ; - set ; + get; + set; } /// Horizontal alignment of text /// Horizontal alignment value double Halign { - get ; - set ; + get; + set; } /// Vertical alignment of text /// Vertical alignment value double Valign { - get ; - set ; + get; + set; } /// Minimal line gap (top and bottom) for each line in the text /// value is absolute size. /// Line gap value double Linegap { - get ; - set ; + get; + set; } /// Relative line gap (top and bottom) for each line in the text /// The original line gap value is multiplied by value. /// Relative line gap value double Linerelgap { - get ; - set ; + get; + set; } /// Tabstops value /// Tapstops value int Tabstops { - get ; - set ; + get; + set; } /// Whether text is a password /// true if the text is a password, false otherwise bool Password { - get ; - set ; + get; + set; } /// The character used to replace characters that can't be displayed /// Currently only used to replace characters if is enabled. /// Replacement character System.String ReplacementChar { - get ; - set ; + get; + set; } } /// The look and layout of the text /// The text format can affect the geometry of the text object, as well as how characters are presented. -sealed public class ITextFormatConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class ITextFormatConcrete : Efl.Eo.EoWrapper , ITextFormat { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -179,7 +182,8 @@ sealed public class ITextFormatConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ITextFormatConcrete(ConstructingHandle ch) : base(ch) { @@ -1446,6 +1450,56 @@ sealed public class ITextFormatConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflITextFormatConcrete_ExtensionMethods { + public static Efl.BindableProperty Ellipsis(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextFormat { + return new Efl.BindableProperty("ellipsis", fac); + } + + public static Efl.BindableProperty Wrap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextFormat { + return new Efl.BindableProperty("wrap", fac); + } + + public static Efl.BindableProperty Multiline(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextFormat { + return new Efl.BindableProperty("multiline", fac); + } + + public static Efl.BindableProperty HalignAutoType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextFormat { + return new Efl.BindableProperty("halign_auto_type", fac); + } + + public static Efl.BindableProperty Halign(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextFormat { + return new Efl.BindableProperty("halign", fac); + } + + public static Efl.BindableProperty Valign(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextFormat { + return new Efl.BindableProperty("valign", fac); + } + + public static Efl.BindableProperty Linegap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextFormat { + return new Efl.BindableProperty("linegap", fac); + } + + public static Efl.BindableProperty Linerelgap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextFormat { + return new Efl.BindableProperty("linerelgap", fac); + } + + public static Efl.BindableProperty Tabstops(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextFormat { + return new Efl.BindableProperty("tabstops", fac); + } + + public static Efl.BindableProperty Password(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextFormat { + return new Efl.BindableProperty("password", fac); + } + + public static Efl.BindableProperty ReplacementChar(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextFormat { + return new Efl.BindableProperty("replacement_char", fac); + } + +} +#pragma warning restore CS1591 +#endif namespace Efl { /// Wrap mode of the text (not in effect if not multiline) diff --git a/internals/src/EflSharp/EflSharp/efl/efl_text_interactive.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_text_interactive.eo.cs old mode 100644 new mode 100755 index 839af1550..478c1332a --- a/internals/src/EflSharp/EflSharp/efl/efl_text_interactive.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_text_interactive.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,6 +9,7 @@ using System.ComponentModel; namespace Efl { /// This is an interface interactive text inputs should implement +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.ITextInteractiveConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface ITextInteractive : @@ -45,24 +47,32 @@ void SelectNone(); /// Whether or not selection is allowed on this object /// true if enabled, false otherwise bool SelectionAllowed { - get ; - set ; + get; + set; + } + /// The cursors used for selection handling. + /// If the cursors are equal there's no selection. + /// + /// You are allowed to retain and modify them. Modifying them modifies the selection of the object. + (Efl.TextCursorCursor, Efl.TextCursorCursor) SelectionCursors { + get; } /// Whether the entry is editable. /// By default text interactives are editable. However setting this property to false will make it so that key input will be disregarded. /// If true, user input will be inserted in the entry, if not, the entry is read-only and no user input is allowed. bool Editable { - get ; - set ; + get; + set; } } /// This is an interface interactive text inputs should implement -sealed public class ITextInteractiveConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class ITextInteractiveConcrete : Efl.Eo.EoWrapper , ITextInteractive , Efl.IText, Efl.ITextFont, Efl.ITextFormat, Efl.ITextStyle { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -78,7 +88,8 @@ sealed public class ITextInteractiveConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ITextInteractiveConcrete(ConstructingHandle ch) : base(ch) { @@ -132,7 +143,7 @@ sealed public class ITextInteractiveConcrete : } } } - ///Method to raise event TextSelectionChangedEvt. + /// Method to raise event TextSelectionChangedEvt. public void OnTextSelectionChangedEvt(EventArgs e) { var key = "_EFL_TEXT_INTERACTIVE_EVENT_TEXT_SELECTION_CHANGED"; @@ -220,6 +231,8 @@ sealed public class ITextInteractiveConcrete : /// Set the font family, filename and size for a given text object. /// This function allows the font name and size of a text object to be set. The font string has to follow fontconfig's convention for naming fonts, as it's the underlying library used to query system fonts by Evas (see the fc-list command's output, on your system, to get an idea). Alternatively, youe can use the full path to a font file. /// + /// To skip changing font family pass null as font family. To skip changing font size pass 0 as font size. + /// /// See also , . /// The font family name or filename. /// The font size, in points. @@ -788,6 +801,18 @@ sealed public class ITextInteractiveConcrete : get { return GetSelectionAllowed(); } set { SetSelectionAllowed(value); } } + /// The cursors used for selection handling. + /// If the cursors are equal there's no selection. + /// + /// You are allowed to retain and modify them. Modifying them modifies the selection of the object. + public (Efl.TextCursorCursor, Efl.TextCursorCursor) SelectionCursors { + get { + Efl.TextCursorCursor _out_start = default(Efl.TextCursorCursor); + Efl.TextCursorCursor _out_end = default(Efl.TextCursorCursor); + GetSelectionCursors(out _out_start,out _out_end); + return (_out_start,_out_end); + } + } /// Whether the entry is editable. /// By default text interactives are editable. However setting this property to false will make it so that key input will be disregarded. /// If true, user input will be inserted in the entry, if not, the entry is read-only and no user input is allowed. @@ -795,6 +820,20 @@ sealed public class ITextInteractiveConcrete : get { return GetEditable(); } set { SetEditable(value); } } + /// Retrieve the font family and size in use on a given text object. + /// This function allows the font name and size of a text object to be queried. Remember that the font name string is still owned by Evas and should not have free() called on it by the caller of the function. + /// + /// See also . + /// The font family name or filename. + public (System.String, Efl.Font.Size) Font { + get { + System.String _out_font = default(System.String); + Efl.Font.Size _out_size = default(Efl.Font.Size); + GetFont(out _out_font,out _out_size); + return (_out_font,_out_size); + } + set { SetFont( value.Item1, value.Item2); } + } /// Get the font file's path which is being used on a given text object. /// See for more details. /// The font file's path. @@ -913,24 +952,76 @@ sealed public class ITextInteractiveConcrete : get { return GetReplacementChar(); } set { SetReplacementChar(value); } } + /// Color of text, excluding style + /// Red component + public (byte, byte, byte, byte) NormalColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetNormalColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetNormalColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Enable or disable backing type /// Backing type public Efl.TextStyleBackingType BackingType { get { return GetBackingType(); } set { SetBackingType(value); } } + /// Backing color + /// Red component + public (byte, byte, byte, byte) BackingColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetBackingColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetBackingColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Sets an underline style on the text /// Underline type public Efl.TextStyleUnderlineType UnderlineType { get { return GetUnderlineType(); } set { SetUnderlineType(value); } } + /// Color of normal underline style + /// Red component + public (byte, byte, byte, byte) UnderlineColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetUnderlineColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetUnderlineColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Height of underline style /// Height public double UnderlineHeight { get { return GetUnderlineHeight(); } set { SetUnderlineHeight(value); } } + /// Color of dashed underline style + /// Red component + public (byte, byte, byte, byte) UnderlineDashedColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetUnderlineDashedColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetUnderlineDashedColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Width of dashed underline style /// Width public int UnderlineDashedWidth { @@ -943,24 +1034,102 @@ sealed public class ITextInteractiveConcrete : get { return GetUnderlineDashedGap(); } set { SetUnderlineDashedGap(value); } } + /// Color of underline2 style + /// Red component + public (byte, byte, byte, byte) Underline2Color { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetUnderline2Color(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetUnderline2Color( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Type of strikethrough style /// Strikethrough type public Efl.TextStyleStrikethroughType StrikethroughType { get { return GetStrikethroughType(); } set { SetStrikethroughType(value); } } + /// Color of strikethrough_style + /// Red component + public (byte, byte, byte, byte) StrikethroughColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetStrikethroughColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetStrikethroughColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Type of effect used for the displayed text /// Effect type public Efl.TextStyleEffectType EffectType { get { return GetEffectType(); } set { SetEffectType(value); } } + /// Color of outline effect + /// Red component + public (byte, byte, byte, byte) OutlineColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetOutlineColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetOutlineColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Direction of shadow effect /// Shadow direction public Efl.TextStyleShadowDirection ShadowDirection { get { return GetShadowDirection(); } set { SetShadowDirection(value); } } + /// Color of shadow effect + /// Red component + public (byte, byte, byte, byte) ShadowColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetShadowColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetShadowColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } + /// Color of glow effect + /// Red component + public (byte, byte, byte, byte) GlowColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetGlowColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetGlowColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } + /// Second color of the glow effect + /// Red component + public (byte, byte, byte, byte) Glow2Color { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetGlow2Color(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetGlow2Color( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Program that applies a special filter /// See . /// Filter code @@ -4813,3 +4982,138 @@ sealed public class ITextInteractiveConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflITextInteractiveConcrete_ExtensionMethods { + public static Efl.BindableProperty SelectionAllowed(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("selection_allowed", fac); + } + + + public static Efl.BindableProperty Editable(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("editable", fac); + } + + + + public static Efl.BindableProperty FontSource(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("font_source", fac); + } + + public static Efl.BindableProperty FontFallbacks(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("font_fallbacks", fac); + } + + public static Efl.BindableProperty FontWeight(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("font_weight", fac); + } + + public static Efl.BindableProperty FontSlant(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("font_slant", fac); + } + + public static Efl.BindableProperty FontWidth(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("font_width", fac); + } + + public static Efl.BindableProperty FontLang(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("font_lang", fac); + } + + public static Efl.BindableProperty FontBitmapScalable(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("font_bitmap_scalable", fac); + } + + public static Efl.BindableProperty Ellipsis(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("ellipsis", fac); + } + + public static Efl.BindableProperty Wrap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("wrap", fac); + } + + public static Efl.BindableProperty Multiline(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("multiline", fac); + } + + public static Efl.BindableProperty HalignAutoType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("halign_auto_type", fac); + } + + public static Efl.BindableProperty Halign(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("halign", fac); + } + + public static Efl.BindableProperty Valign(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("valign", fac); + } + + public static Efl.BindableProperty Linegap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("linegap", fac); + } + + public static Efl.BindableProperty Linerelgap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("linerelgap", fac); + } + + public static Efl.BindableProperty Tabstops(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("tabstops", fac); + } + + public static Efl.BindableProperty Password(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("password", fac); + } + + public static Efl.BindableProperty ReplacementChar(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("replacement_char", fac); + } + + + public static Efl.BindableProperty BackingType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("backing_type", fac); + } + + + public static Efl.BindableProperty UnderlineType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("underline_type", fac); + } + + + public static Efl.BindableProperty UnderlineHeight(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("underline_height", fac); + } + + + public static Efl.BindableProperty UnderlineDashedWidth(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("underline_dashed_width", fac); + } + + public static Efl.BindableProperty UnderlineDashedGap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("underline_dashed_gap", fac); + } + + + public static Efl.BindableProperty StrikethroughType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("strikethrough_type", fac); + } + + + public static Efl.BindableProperty EffectType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("effect_type", fac); + } + + + public static Efl.BindableProperty ShadowDirection(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("shadow_direction", fac); + } + + + + + public static Efl.BindableProperty GfxFilter(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextInteractive { + return new Efl.BindableProperty("gfx_filter", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_text_markup.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_text_markup.eo.cs old mode 100644 new mode 100755 index 89baeb265..2caeef160 --- a/internals/src/EflSharp/EflSharp/efl/efl_text_markup.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_text_markup.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,6 +9,7 @@ using System.ComponentModel; namespace Efl { /// Markup data that populates the text object's style and format +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.ITextMarkupConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface ITextMarkup : @@ -22,17 +24,18 @@ void SetMarkup(System.String markup); /// Markup property /// The markup-text representation set to this text. System.String Markup { - get ; - set ; + get; + set; } } /// Markup data that populates the text object's style and format -sealed public class ITextMarkupConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class ITextMarkupConcrete : Efl.Eo.EoWrapper , ITextMarkup { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -48,7 +51,8 @@ sealed public class ITextMarkupConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ITextMarkupConcrete(ConstructingHandle ch) : base(ch) { @@ -206,3 +210,13 @@ sealed public class ITextMarkupConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflITextMarkupConcrete_ExtensionMethods { + public static Efl.BindableProperty Markup(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextMarkup { + return new Efl.BindableProperty("markup", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_text_markup_interactive.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_text_markup_interactive.eo.cs old mode 100644 new mode 100755 index 9ea4abed9..56f88bd98 --- a/internals/src/EflSharp/EflSharp/efl/efl_text_markup_interactive.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_text_markup_interactive.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,6 +9,7 @@ using System.ComponentModel; namespace Efl { /// Markup data that populates the text object's style and format +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.ITextMarkupInteractiveConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface ITextMarkupInteractive : @@ -30,12 +32,13 @@ void SetMarkupRange(Efl.TextCursorCursor start, Efl.TextCursorCursor end, System void CursorMarkupInsert(Efl.TextCursorCursor cur, System.String markup); } /// Markup data that populates the text object's style and format -sealed public class ITextMarkupInteractiveConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class ITextMarkupInteractiveConcrete : Efl.Eo.EoWrapper , ITextMarkupInteractive , Efl.ITextCursor { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -51,7 +54,8 @@ sealed public class ITextMarkupInteractiveConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ITextMarkupInteractiveConcrete(ConstructingHandle ch) : base(ch) { @@ -1781,3 +1785,14 @@ sealed public class ITextMarkupInteractiveConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflITextMarkupInteractiveConcrete_ExtensionMethods { + + + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_text_markup_util.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_text_markup_util.eo.cs old mode 100644 new mode 100755 index 7ffaca089..2f0249fcf --- a/internals/src/EflSharp/EflSharp/efl/efl_text_markup_util.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_text_markup_util.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -8,11 +9,12 @@ using System.ComponentModel; namespace Efl { /// Utility class for markup, such as conversions +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.TextMarkupUtil.NativeMethods] [Efl.Eo.BindingEntity] public class TextMarkupUtil : Efl.Eo.EoWrapper { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -38,7 +40,8 @@ public class TextMarkupUtil : Efl.Eo.EoWrapper FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected TextMarkupUtil(ConstructingHandle ch) : base(ch) { @@ -175,3 +178,9 @@ public class TextMarkupUtil : Efl.Eo.EoWrapper } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflTextMarkupUtil_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_text_style.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_text_style.eo.cs old mode 100644 new mode 100755 index 375cd87f5..169873696 --- a/internals/src/EflSharp/EflSharp/efl/efl_text_style.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_text_style.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,6 +10,7 @@ namespace Efl { /// Style to apply to the text /// A style can be coloring, effects, underline, strikethrough etc. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.ITextStyleConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface ITextStyle : @@ -190,70 +192,131 @@ System.String GetGfxFilter(); /// See . /// Filter code void SetGfxFilter(System.String code); - /// Enable or disable backing type + /// Color of text, excluding style + /// Red component + (byte, byte, byte, byte) NormalColor { + get; + set; + } + /// Enable or disable backing type /// Backing type Efl.TextStyleBackingType BackingType { - get ; - set ; + get; + set; + } + /// Backing color + /// Red component + (byte, byte, byte, byte) BackingColor { + get; + set; } /// Sets an underline style on the text /// Underline type Efl.TextStyleUnderlineType UnderlineType { - get ; - set ; + get; + set; + } + /// Color of normal underline style + /// Red component + (byte, byte, byte, byte) UnderlineColor { + get; + set; } /// Height of underline style /// Height double UnderlineHeight { - get ; - set ; + get; + set; + } + /// Color of dashed underline style + /// Red component + (byte, byte, byte, byte) UnderlineDashedColor { + get; + set; } /// Width of dashed underline style /// Width int UnderlineDashedWidth { - get ; - set ; + get; + set; } /// Gap of dashed underline style /// Gap int UnderlineDashedGap { - get ; - set ; + get; + set; + } + /// Color of underline2 style + /// Red component + (byte, byte, byte, byte) Underline2Color { + get; + set; } /// Type of strikethrough style /// Strikethrough type Efl.TextStyleStrikethroughType StrikethroughType { - get ; - set ; + get; + set; + } + /// Color of strikethrough_style + /// Red component + (byte, byte, byte, byte) StrikethroughColor { + get; + set; } /// Type of effect used for the displayed text /// Effect type Efl.TextStyleEffectType EffectType { - get ; - set ; + get; + set; + } + /// Color of outline effect + /// Red component + (byte, byte, byte, byte) OutlineColor { + get; + set; } /// Direction of shadow effect /// Shadow direction Efl.TextStyleShadowDirection ShadowDirection { - get ; - set ; + get; + set; + } + /// Color of shadow effect + /// Red component + (byte, byte, byte, byte) ShadowColor { + get; + set; + } + /// Color of glow effect + /// Red component + (byte, byte, byte, byte) GlowColor { + get; + set; + } + /// Second color of the glow effect + /// Red component + (byte, byte, byte, byte) Glow2Color { + get; + set; } /// Program that applies a special filter /// See . /// Filter code System.String GfxFilter { - get ; - set ; + get; + set; } } /// Style to apply to the text /// A style can be coloring, effects, underline, strikethrough etc. -sealed public class ITextStyleConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class ITextStyleConcrete : Efl.Eo.EoWrapper , ITextStyle { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -269,7 +332,8 @@ sealed public class ITextStyleConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ITextStyleConcrete(ConstructingHandle ch) : base(ch) { @@ -583,24 +647,76 @@ sealed public class ITextStyleConcrete : Efl.ITextStyleConcrete.NativeMethods.efl_text_gfx_filter_set_ptr.Value.Delegate(this.NativeHandle,code); Eina.Error.RaiseIfUnhandledException(); } + /// Color of text, excluding style + /// Red component + public (byte, byte, byte, byte) NormalColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetNormalColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetNormalColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Enable or disable backing type /// Backing type public Efl.TextStyleBackingType BackingType { get { return GetBackingType(); } set { SetBackingType(value); } } + /// Backing color + /// Red component + public (byte, byte, byte, byte) BackingColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetBackingColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetBackingColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Sets an underline style on the text /// Underline type public Efl.TextStyleUnderlineType UnderlineType { get { return GetUnderlineType(); } set { SetUnderlineType(value); } } + /// Color of normal underline style + /// Red component + public (byte, byte, byte, byte) UnderlineColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetUnderlineColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetUnderlineColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Height of underline style /// Height public double UnderlineHeight { get { return GetUnderlineHeight(); } set { SetUnderlineHeight(value); } } + /// Color of dashed underline style + /// Red component + public (byte, byte, byte, byte) UnderlineDashedColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetUnderlineDashedColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetUnderlineDashedColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Width of dashed underline style /// Width public int UnderlineDashedWidth { @@ -613,24 +729,102 @@ sealed public class ITextStyleConcrete : get { return GetUnderlineDashedGap(); } set { SetUnderlineDashedGap(value); } } + /// Color of underline2 style + /// Red component + public (byte, byte, byte, byte) Underline2Color { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetUnderline2Color(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetUnderline2Color( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Type of strikethrough style /// Strikethrough type public Efl.TextStyleStrikethroughType StrikethroughType { get { return GetStrikethroughType(); } set { SetStrikethroughType(value); } } + /// Color of strikethrough_style + /// Red component + public (byte, byte, byte, byte) StrikethroughColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetStrikethroughColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetStrikethroughColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Type of effect used for the displayed text /// Effect type public Efl.TextStyleEffectType EffectType { get { return GetEffectType(); } set { SetEffectType(value); } } + /// Color of outline effect + /// Red component + public (byte, byte, byte, byte) OutlineColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetOutlineColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetOutlineColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Direction of shadow effect /// Shadow direction public Efl.TextStyleShadowDirection ShadowDirection { get { return GetShadowDirection(); } set { SetShadowDirection(value); } } + /// Color of shadow effect + /// Red component + public (byte, byte, byte, byte) ShadowColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetShadowColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetShadowColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } + /// Color of glow effect + /// Red component + public (byte, byte, byte, byte) GlowColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetGlowColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetGlowColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } + /// Second color of the glow effect + /// Red component + public (byte, byte, byte, byte) Glow2Color { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetGlow2Color(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetGlow2Color( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Program that applies a special filter /// See . /// Filter code @@ -2390,6 +2584,58 @@ sealed public class ITextStyleConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflITextStyleConcrete_ExtensionMethods { + + public static Efl.BindableProperty BackingType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextStyle { + return new Efl.BindableProperty("backing_type", fac); + } + + + public static Efl.BindableProperty UnderlineType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextStyle { + return new Efl.BindableProperty("underline_type", fac); + } + + + public static Efl.BindableProperty UnderlineHeight(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextStyle { + return new Efl.BindableProperty("underline_height", fac); + } + + + public static Efl.BindableProperty UnderlineDashedWidth(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextStyle { + return new Efl.BindableProperty("underline_dashed_width", fac); + } + + public static Efl.BindableProperty UnderlineDashedGap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextStyle { + return new Efl.BindableProperty("underline_dashed_gap", fac); + } + + + public static Efl.BindableProperty StrikethroughType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextStyle { + return new Efl.BindableProperty("strikethrough_type", fac); + } + + + public static Efl.BindableProperty EffectType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextStyle { + return new Efl.BindableProperty("effect_type", fac); + } + + + public static Efl.BindableProperty ShadowDirection(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextStyle { + return new Efl.BindableProperty("shadow_direction", fac); + } + + + + + public static Efl.BindableProperty GfxFilter(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ITextStyle { + return new Efl.BindableProperty("gfx_filter", fac); + } + +} +#pragma warning restore CS1591 +#endif namespace Efl { /// Whether to apply backing style to the displayed text or not diff --git a/internals/src/EflSharp/EflSharp/efl/efl_text_types.eot.cs b/internals/src/EflSharp/EflSharp/efl/efl_text_types.eot.cs old mode 100644 new mode 100755 index b98300c38..62bd32ef1 --- a/internals/src/EflSharp/EflSharp/efl/efl_text_types.eot.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_text_types.eot.cs @@ -21,7 +21,7 @@ Ltr = 1, Rtl = 2, /// Inherit text type Inherit = 3, -/// @internal EVAS_BIDI_DIRECTION_ANY_RTL is not made for public. It should be opened to public when it is accepted to EFL upstream. +/// internal EVAS_BIDI_DIRECTION_ANY_RTL is not made for public. It should be opened to public when it is accepted to EFL upstream. AnyRtl = 4, } @@ -47,7 +47,12 @@ public struct TextChangeInfo public bool Insert; /// true if can be merged with the previous one. Used for example with insertion when something is already selected public bool Merge; - ///Constructor for TextChangeInfo. + /// Constructor for TextChangeInfo. + /// The content added/removed; + /// The position where it was added/removed; + /// The length of content in characters (not bytes, actual unicode characters); + /// true if the content was inserted, false if removei; + /// true if can be merged with the previous one. Used for example with insertion when something is already selected; public TextChangeInfo( System.String Content = default(System.String), uint Position = default(uint), @@ -62,8 +67,8 @@ public struct TextChangeInfo this.Merge = Merge; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator TextChangeInfo(IntPtr ptr) { var tmp = (TextChangeInfo.NativeStruct)Marshal.PtrToStructure(ptr, typeof(TextChangeInfo.NativeStruct)); @@ -72,21 +77,21 @@ public struct TextChangeInfo #pragma warning disable CS1591 - ///Internal wrapper for struct TextChangeInfo. + /// Internal wrapper for struct TextChangeInfo. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { - ///Internal wrapper for field Content + /// Internal wrapper for field Content public System.IntPtr Content; public uint Position; public uint Length; - ///Internal wrapper for field Insert + /// Internal wrapper for field Insert public System.Byte Insert; - ///Internal wrapper for field Merge + /// Internal wrapper for field Merge public System.Byte Merge; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator TextChangeInfo.NativeStruct(TextChangeInfo _external_struct) { var _internal_struct = new TextChangeInfo.NativeStruct(); @@ -98,7 +103,7 @@ public struct TextChangeInfo return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator TextChangeInfo(TextChangeInfo.NativeStruct _internal_struct) { var _external_struct = new TextChangeInfo(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_thread.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_thread.eo.cs old mode 100644 new mode 100755 index 95b358e36..5b4f28598 --- a/internals/src/EflSharp/EflSharp/efl/efl_thread.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_thread.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -7,11 +8,12 @@ using System.Threading; using System.ComponentModel; namespace Efl { +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Thread.NativeMethods] [Efl.Eo.BindingEntity] public class Thread : Efl.Task, Efl.IThreadIO, Efl.Core.ICommandLine, Efl.Io.ICloser, Efl.Io.IReader, Efl.Io.IWriter { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -37,7 +39,8 @@ public class Thread : Efl.Task, Efl.IThreadIO, Efl.Core.ICommandLine, Efl.Io.ICl FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Thread(ConstructingHandle ch) : base(ch) { @@ -98,7 +101,7 @@ public class Thread : Efl.Task, Efl.IThreadIO, Efl.Core.ICommandLine, Efl.Io.ICl } } } - ///Method to raise event ClosedEvt. + /// Method to raise event ClosedEvt. public void OnClosedEvt(EventArgs e) { var key = "_EFL_IO_CLOSER_EVENT_CLOSED"; @@ -116,6 +119,7 @@ public class Thread : Efl.Task, Efl.IThreadIO, Efl.Core.ICommandLine, Efl.Io.ICl /// /// Note that usually this event is dispatched from inside , thus before it returns. /// (Since EFL 1.22) + /// public event EventHandler CanReadChangedEvt { add @@ -155,7 +159,7 @@ public class Thread : Efl.Task, Efl.IThreadIO, Efl.Core.ICommandLine, Efl.Io.ICl } } } - ///Method to raise event CanReadChangedEvt. + /// Method to raise event CanReadChangedEvt. public void OnCanReadChangedEvt(Efl.Io.IReaderCanReadChangedEvt_Args e) { var key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED"; @@ -221,7 +225,7 @@ public class Thread : Efl.Task, Efl.IThreadIO, Efl.Core.ICommandLine, Efl.Io.ICl } } } - ///Method to raise event EosEvt. + /// Method to raise event EosEvt. public void OnEosEvt(EventArgs e) { var key = "_EFL_IO_READER_EVENT_EOS"; @@ -239,6 +243,7 @@ public class Thread : Efl.Task, Efl.IThreadIO, Efl.Core.ICommandLine, Efl.Io.ICl /// /// Note that usually this event is dispatched from inside , thus before it returns. /// (Since EFL 1.22) + /// public event EventHandler CanWriteChangedEvt { add @@ -278,7 +283,7 @@ public class Thread : Efl.Task, Efl.IThreadIO, Efl.Core.ICommandLine, Efl.Io.ICl } } } - ///Method to raise event CanWriteChangedEvt. + /// Method to raise event CanWriteChangedEvt. public void OnCanWriteChangedEvt(Efl.Io.IWriterCanWriteChangedEvt_Args e) { var key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED"; @@ -322,16 +327,16 @@ public class Thread : Efl.Task, Efl.IThreadIO, Efl.Core.ICommandLine, Efl.Io.ICl Eina.Error.RaiseIfUnhandledException(); } /// No description supplied. - virtual public void Call(EFlThreadIOCall func) { + virtual public void Call(EflThreadIOCall func) { GCHandle func_handle = GCHandle.Alloc(func); - Efl.IThreadIOConcrete.NativeMethods.efl_threadio_call_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),GCHandle.ToIntPtr(func_handle), EFlThreadIOCallWrapper.Cb, Efl.Eo.Globals.free_gchandle); + Efl.IThreadIOConcrete.NativeMethods.efl_threadio_call_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),GCHandle.ToIntPtr(func_handle), EflThreadIOCallWrapper.Cb, Efl.Eo.Globals.free_gchandle); Eina.Error.RaiseIfUnhandledException(); } /// No description supplied. /// No description supplied. - virtual public System.IntPtr CallSync(EFlThreadIOCallSync func) { + virtual public System.IntPtr CallSync(EflThreadIOCallSync func) { GCHandle func_handle = GCHandle.Alloc(func); - var _ret_var = Efl.IThreadIOConcrete.NativeMethods.efl_threadio_call_sync_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),GCHandle.ToIntPtr(func_handle), EFlThreadIOCallSyncWrapper.Cb, Efl.Eo.Globals.free_gchandle); + var _ret_var = Efl.IThreadIOConcrete.NativeMethods.efl_threadio_call_sync_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),GCHandle.ToIntPtr(func_handle), EflThreadIOCallSyncWrapper.Cb, Efl.Eo.Globals.free_gchandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -986,20 +991,20 @@ array.OwnContent = false; private static efl_threadio_outdata_set_delegate efl_threadio_outdata_set_static_delegate; - private delegate void efl_threadio_call_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb); + private delegate void efl_threadio_call_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EflThreadIOCallInternal func, EinaFreeCb func_free_cb); - public delegate void efl_threadio_call_api_delegate(System.IntPtr obj, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb); + public delegate void efl_threadio_call_api_delegate(System.IntPtr obj, IntPtr func_data, EflThreadIOCallInternal func, EinaFreeCb func_free_cb); public static Efl.Eo.FunctionWrapper efl_threadio_call_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_threadio_call"); - private static void call(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb) + private static void call(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EflThreadIOCallInternal func, EinaFreeCb func_free_cb) { Eina.Log.Debug("function efl_threadio_call was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - EFlThreadIOCallWrapper func_wrapper = new EFlThreadIOCallWrapper(func, func_data, func_free_cb); + EflThreadIOCallWrapper func_wrapper = new EflThreadIOCallWrapper(func, func_data, func_free_cb); try { @@ -1022,20 +1027,20 @@ array.OwnContent = false; private static efl_threadio_call_delegate efl_threadio_call_static_delegate; - private delegate System.IntPtr efl_threadio_call_sync_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb); + private delegate System.IntPtr efl_threadio_call_sync_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EflThreadIOCallSyncInternal func, EinaFreeCb func_free_cb); - public delegate System.IntPtr efl_threadio_call_sync_api_delegate(System.IntPtr obj, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb); + public delegate System.IntPtr efl_threadio_call_sync_api_delegate(System.IntPtr obj, IntPtr func_data, EflThreadIOCallSyncInternal func, EinaFreeCb func_free_cb); public static Efl.Eo.FunctionWrapper efl_threadio_call_sync_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_threadio_call_sync"); - private static System.IntPtr call_sync(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb) + private static System.IntPtr call_sync(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EflThreadIOCallSyncInternal func, EinaFreeCb func_free_cb) { Eina.Log.Debug("function efl_threadio_call_sync was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - EFlThreadIOCallSyncWrapper func_wrapper = new EFlThreadIOCallSyncWrapper(func, func_data, func_free_cb); + EflThreadIOCallSyncWrapper func_wrapper = new EflThreadIOCallSyncWrapper(func, func_data, func_free_cb); System.IntPtr _ret_var = default(System.IntPtr); try { @@ -1709,3 +1714,47 @@ array.OwnContent = false; } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflThread_ExtensionMethods { + public static Efl.BindableProperty Indata(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Thread { + return new Efl.BindableProperty("indata", fac); + } + + public static Efl.BindableProperty Outdata(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Thread { + return new Efl.BindableProperty("outdata", fac); + } + + + public static Efl.BindableProperty> CommandArray(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Thread { + return new Efl.BindableProperty>("command_array", fac); + } + + public static Efl.BindableProperty CommandString(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Thread { + return new Efl.BindableProperty("command_string", fac); + } + + + public static Efl.BindableProperty CloseOnExec(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Thread { + return new Efl.BindableProperty("close_on_exec", fac); + } + + public static Efl.BindableProperty CloseOnInvalidate(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Thread { + return new Efl.BindableProperty("close_on_invalidate", fac); + } + + public static Efl.BindableProperty CanRead(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Thread { + return new Efl.BindableProperty("can_read", fac); + } + + public static Efl.BindableProperty Eos(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Thread { + return new Efl.BindableProperty("eos", fac); + } + + public static Efl.BindableProperty CanWrite(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Thread { + return new Efl.BindableProperty("can_write", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_threadio.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_threadio.eo.cs old mode 100644 new mode 100755 index e70f5690b..7ad9fb021 --- a/internals/src/EflSharp/EflSharp/efl/efl_threadio.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_threadio.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -7,23 +8,23 @@ using System.Threading; using System.ComponentModel; /// No description supplied. [Efl.Eo.BindingEntity] -public delegate void EFlThreadIOCall(ref Efl.Event kw_event); -public delegate void EFlThreadIOCallInternal(IntPtr data, ref Efl.Event.NativeStruct kw_event); -internal class EFlThreadIOCallWrapper : IDisposable +public delegate void EflThreadIOCall(Efl.Event kw_event); +public delegate void EflThreadIOCallInternal(IntPtr data, Efl.Event.NativeStruct kw_event); +internal class EflThreadIOCallWrapper : IDisposable { - private EFlThreadIOCallInternal _cb; + private EflThreadIOCallInternal _cb; private IntPtr _cb_data; private EinaFreeCb _cb_free_cb; - internal EFlThreadIOCallWrapper (EFlThreadIOCallInternal _cb, IntPtr _cb_data, EinaFreeCb _cb_free_cb) + internal EflThreadIOCallWrapper (EflThreadIOCallInternal _cb, IntPtr _cb_data, EinaFreeCb _cb_free_cb) { this._cb = _cb; this._cb_data = _cb_data; this._cb_free_cb = _cb_free_cb; } - ~EFlThreadIOCallWrapper() + ~EflThreadIOCallWrapper() { Dispose(false); } @@ -52,50 +53,46 @@ internal class EFlThreadIOCallWrapper : IDisposable GC.SuppressFinalize(this); } - internal void ManagedCb(ref Efl.Event kw_event) + internal void ManagedCb(Efl.Event kw_event) { - Efl.Event.NativeStruct _in_kw_event = kw_event; - _cb(_cb_data, ref _in_kw_event); + _cb(_cb_data, kw_event); Eina.Error.RaiseIfUnhandledException(); - kw_event = _in_kw_event; - } + } - internal static void Cb(IntPtr cb_data, ref Efl.Event.NativeStruct kw_event) + internal static void Cb(IntPtr cb_data, Efl.Event.NativeStruct kw_event) { GCHandle handle = GCHandle.FromIntPtr(cb_data); - EFlThreadIOCall cb = (EFlThreadIOCall)handle.Target; - Efl.Event _in_kw_event = kw_event; - + EflThreadIOCall cb = (EflThreadIOCall)handle.Target; + try { - cb(ref _in_kw_event); + cb(kw_event); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - kw_event = _in_kw_event; - } + } } /// No description supplied. [Efl.Eo.BindingEntity] -public delegate System.IntPtr EFlThreadIOCallSync(ref Efl.Event kw_event); -public delegate System.IntPtr EFlThreadIOCallSyncInternal(IntPtr data, ref Efl.Event.NativeStruct kw_event); -internal class EFlThreadIOCallSyncWrapper : IDisposable +public delegate System.IntPtr EflThreadIOCallSync(Efl.Event kw_event); +public delegate System.IntPtr EflThreadIOCallSyncInternal(IntPtr data, Efl.Event.NativeStruct kw_event); +internal class EflThreadIOCallSyncWrapper : IDisposable { - private EFlThreadIOCallSyncInternal _cb; + private EflThreadIOCallSyncInternal _cb; private IntPtr _cb_data; private EinaFreeCb _cb_free_cb; - internal EFlThreadIOCallSyncWrapper (EFlThreadIOCallSyncInternal _cb, IntPtr _cb_data, EinaFreeCb _cb_free_cb) + internal EflThreadIOCallSyncWrapper (EflThreadIOCallSyncInternal _cb, IntPtr _cb_data, EinaFreeCb _cb_free_cb) { this._cb = _cb; this._cb_data = _cb_data; this._cb_free_cb = _cb_free_cb; } - ~EFlThreadIOCallSyncWrapper() + ~EflThreadIOCallSyncWrapper() { Dispose(false); } @@ -124,29 +121,25 @@ internal class EFlThreadIOCallSyncWrapper : IDisposable GC.SuppressFinalize(this); } - internal System.IntPtr ManagedCb(ref Efl.Event kw_event) + internal System.IntPtr ManagedCb(Efl.Event kw_event) { - Efl.Event.NativeStruct _in_kw_event = kw_event; - var _ret_var = _cb(_cb_data, ref _in_kw_event); + var _ret_var = _cb(_cb_data, kw_event); Eina.Error.RaiseIfUnhandledException(); - kw_event = _in_kw_event; - return _ret_var; + return _ret_var; } - internal static System.IntPtr Cb(IntPtr cb_data, ref Efl.Event.NativeStruct kw_event) + internal static System.IntPtr Cb(IntPtr cb_data, Efl.Event.NativeStruct kw_event) { GCHandle handle = GCHandle.FromIntPtr(cb_data); - EFlThreadIOCallSync cb = (EFlThreadIOCallSync)handle.Target; - Efl.Event _in_kw_event = kw_event; - System.IntPtr _ret_var = default(System.IntPtr); + EflThreadIOCallSync cb = (EflThreadIOCallSync)handle.Target; + System.IntPtr _ret_var = default(System.IntPtr); try { - _ret_var = cb(ref _in_kw_event); + _ret_var = cb(kw_event); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - kw_event = _in_kw_event; - return _ret_var; + return _ret_var; } } @@ -154,6 +147,7 @@ internal class EFlThreadIOCallSyncWrapper : IDisposable namespace Efl { /// No description supplied. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.IThreadIOConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IThreadIO : @@ -168,28 +162,29 @@ System.IntPtr GetOutdata(); /// No description supplied. void SetOutdata(System.IntPtr data); /// No description supplied. -void Call(EFlThreadIOCall func); +void Call(EflThreadIOCall func); /// No description supplied. /// No description supplied. -System.IntPtr CallSync(EFlThreadIOCallSync func); +System.IntPtr CallSync(EflThreadIOCallSync func); /// No description supplied. System.IntPtr Indata { - get ; - set ; + get; + set; } /// No description supplied. System.IntPtr Outdata { - get ; - set ; + get; + set; } } /// No description supplied. -sealed public class IThreadIOConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IThreadIOConcrete : Efl.Eo.EoWrapper , IThreadIO { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -205,7 +200,8 @@ sealed public class IThreadIOConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IThreadIOConcrete(ConstructingHandle ch) : base(ch) { @@ -243,16 +239,16 @@ sealed public class IThreadIOConcrete : Eina.Error.RaiseIfUnhandledException(); } /// No description supplied. - public void Call(EFlThreadIOCall func) { + public void Call(EflThreadIOCall func) { GCHandle func_handle = GCHandle.Alloc(func); - Efl.IThreadIOConcrete.NativeMethods.efl_threadio_call_ptr.Value.Delegate(this.NativeHandle,GCHandle.ToIntPtr(func_handle), EFlThreadIOCallWrapper.Cb, Efl.Eo.Globals.free_gchandle); + Efl.IThreadIOConcrete.NativeMethods.efl_threadio_call_ptr.Value.Delegate(this.NativeHandle,GCHandle.ToIntPtr(func_handle), EflThreadIOCallWrapper.Cb, Efl.Eo.Globals.free_gchandle); Eina.Error.RaiseIfUnhandledException(); } /// No description supplied. /// No description supplied. - public System.IntPtr CallSync(EFlThreadIOCallSync func) { + public System.IntPtr CallSync(EflThreadIOCallSync func) { GCHandle func_handle = GCHandle.Alloc(func); - var _ret_var = Efl.IThreadIOConcrete.NativeMethods.efl_threadio_call_sync_ptr.Value.Delegate(this.NativeHandle,GCHandle.ToIntPtr(func_handle), EFlThreadIOCallSyncWrapper.Cb, Efl.Eo.Globals.free_gchandle); + var _ret_var = Efl.IThreadIOConcrete.NativeMethods.efl_threadio_call_sync_ptr.Value.Delegate(this.NativeHandle,GCHandle.ToIntPtr(func_handle), EflThreadIOCallSyncWrapper.Cb, Efl.Eo.Globals.free_gchandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -496,20 +492,20 @@ sealed public class IThreadIOConcrete : private static efl_threadio_outdata_set_delegate efl_threadio_outdata_set_static_delegate; - private delegate void efl_threadio_call_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb); + private delegate void efl_threadio_call_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EflThreadIOCallInternal func, EinaFreeCb func_free_cb); - public delegate void efl_threadio_call_api_delegate(System.IntPtr obj, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb); + public delegate void efl_threadio_call_api_delegate(System.IntPtr obj, IntPtr func_data, EflThreadIOCallInternal func, EinaFreeCb func_free_cb); public static Efl.Eo.FunctionWrapper efl_threadio_call_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_threadio_call"); - private static void call(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb) + private static void call(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EflThreadIOCallInternal func, EinaFreeCb func_free_cb) { Eina.Log.Debug("function efl_threadio_call was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - EFlThreadIOCallWrapper func_wrapper = new EFlThreadIOCallWrapper(func, func_data, func_free_cb); + EflThreadIOCallWrapper func_wrapper = new EflThreadIOCallWrapper(func, func_data, func_free_cb); try { @@ -532,20 +528,20 @@ sealed public class IThreadIOConcrete : private static efl_threadio_call_delegate efl_threadio_call_static_delegate; - private delegate System.IntPtr efl_threadio_call_sync_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb); + private delegate System.IntPtr efl_threadio_call_sync_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EflThreadIOCallSyncInternal func, EinaFreeCb func_free_cb); - public delegate System.IntPtr efl_threadio_call_sync_api_delegate(System.IntPtr obj, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb); + public delegate System.IntPtr efl_threadio_call_sync_api_delegate(System.IntPtr obj, IntPtr func_data, EflThreadIOCallSyncInternal func, EinaFreeCb func_free_cb); public static Efl.Eo.FunctionWrapper efl_threadio_call_sync_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_threadio_call_sync"); - private static System.IntPtr call_sync(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb) + private static System.IntPtr call_sync(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EflThreadIOCallSyncInternal func, EinaFreeCb func_free_cb) { Eina.Log.Debug("function efl_threadio_call_sync was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - EFlThreadIOCallSyncWrapper func_wrapper = new EFlThreadIOCallSyncWrapper(func, func_data, func_free_cb); + EflThreadIOCallSyncWrapper func_wrapper = new EflThreadIOCallSyncWrapper(func, func_data, func_free_cb); System.IntPtr _ret_var = default(System.IntPtr); try { @@ -574,3 +570,17 @@ sealed public class IThreadIOConcrete : } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflIThreadIOConcrete_ExtensionMethods { + public static Efl.BindableProperty Indata(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.IThreadIO { + return new Efl.BindableProperty("indata", fac); + } + + public static Efl.BindableProperty Outdata(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.IThreadIO { + return new Efl.BindableProperty("outdata", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_types.eot.cs b/internals/src/EflSharp/EflSharp/efl/efl_types.eot.cs old mode 100644 new mode 100755 index 4ea5f93b2..71c37c4fb --- a/internals/src/EflSharp/EflSharp/efl/efl_types.eot.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_types.eot.cs @@ -31,7 +31,16 @@ public struct Time public int Tm_yday; /// DST. [-1/0/1] public int Tm_isdst; - ///Constructor for Time. + /// Constructor for Time. + /// Seconds. [0-60] (1 leap second); + /// Minutes. [0-59]; + /// Hours. [0-23]; + /// Day. [1-31]; + /// Month. [0-11]; + /// Year - 1900.; + /// Day of week. [0-6]; + /// Days in year.[0-365]; + /// DST. [-1/0/1]; public Time( int Tm_sec = default(int), int Tm_min = default(int), @@ -54,8 +63,8 @@ public struct Time this.Tm_isdst = Tm_isdst; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator Time(IntPtr ptr) { var tmp = (Time.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Time.NativeStruct)); @@ -64,7 +73,7 @@ public struct Time #pragma warning disable CS1591 - ///Internal wrapper for struct Time. + /// Internal wrapper for struct Time. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -86,7 +95,7 @@ public struct Time public int Tm_yday; public int Tm_isdst; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator Time.NativeStruct(Time _external_struct) { var _internal_struct = new Time.NativeStruct(); @@ -102,7 +111,7 @@ public struct Time return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator Time(Time.NativeStruct _internal_struct) { var _external_struct = new Time(); @@ -147,7 +156,13 @@ public struct Version public System.String Flavor; /// Contains EFL_BUILD_ID. public System.String Build_id; - ///Constructor for Version. + /// Constructor for Version. + /// Major component of the version (>= 1).; + /// Minor component of the version (>= 0).; + /// Micro component of the version (>= 0).; + /// Revision component of the version (>= 0).; + /// Special version string for this build of EFL, null for vanilla (upstream) EFL. Contains EFL_VERSION_FLAVOR.; + /// Contains EFL_BUILD_ID.; public Version( int Major = default(int), int Minor = default(int), @@ -164,8 +179,8 @@ public struct Version this.Build_id = Build_id; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator Version(IntPtr ptr) { var tmp = (Version.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Version.NativeStruct)); @@ -174,7 +189,7 @@ public struct Version #pragma warning disable CS1591 - ///Internal wrapper for struct Version. + /// Internal wrapper for struct Version. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -186,11 +201,11 @@ public struct Version public int Micro; public int Revision; - ///Internal wrapper for field Flavor + /// Internal wrapper for field Flavor public System.IntPtr Flavor; - ///Internal wrapper for field Build_id + /// Internal wrapper for field Build_id public System.IntPtr Build_id; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator Version.NativeStruct(Version _external_struct) { var _internal_struct = new Version.NativeStruct(); @@ -203,7 +218,7 @@ public struct Version return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator Version(Version.NativeStruct _internal_struct) { var _external_struct = new Version(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui.eot.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui.eot.cs old mode 100644 new mode 100755 diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_clickable_util.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_action_connector.eo.cs old mode 100644 new mode 100755 similarity index 51% rename from internals/src/EflSharp/EflSharp/efl/efl_ui_clickable_util.eo.cs rename to internals/src/EflSharp/EflSharp/efl/efl_ui_action_connector.eo.cs index f65a00df9..4a16c427b --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_clickable_util.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_action_connector.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,18 +10,19 @@ namespace Efl { namespace Ui { -/// Helper class that connects theme signals or object events to the interface. -/// This simplifies creating widgets that implement the interface. -[Efl.Ui.ClickableUtil.NativeMethods] +/// Helper class that connects theme signals or object events to the interfaces which are for actions. +/// For example, this simplifies creating widgets that implement the interface. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +[Efl.Ui.ActionConnector.NativeMethods] [Efl.Eo.BindingEntity] -public class ClickableUtil : Efl.Eo.EoWrapper +public class ActionConnector : Efl.Eo.EoWrapper { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get { - if (((object)this).GetType() == typeof(ClickableUtil)) + if (((object)this).GetType() == typeof(ActionConnector)) { return GetEflClassStatic(); } @@ -32,59 +34,60 @@ public class ClickableUtil : Efl.Eo.EoWrapper } [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - efl_ui_clickable_util_class_get(); - /// Initializes a new instance of the class. + efl_ui_action_connector_class_get(); + /// Initializes a new instance of the class. /// Parent instance. - public ClickableUtil(Efl.Object parent= null - ) : base(efl_ui_clickable_util_class_get(), parent) + public ActionConnector(Efl.Object parent= null + ) : base(efl_ui_action_connector_class_get(), parent) { FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. - protected ClickableUtil(ConstructingHandle ch) : base(ch) + protected ActionConnector(ConstructingHandle ch) : base(ch) { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. /// The native pointer to be wrapped. - protected ClickableUtil(Efl.Eo.Globals.WrappingHandle wh) : base(wh) + protected ActionConnector(Efl.Eo.Globals.WrappingHandle wh) : base(wh) { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. /// The pointer to the base native Eo class. /// The Efl.Object parent of this instance. - protected ClickableUtil(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) + protected ActionConnector(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) { } - /// This will listen to the standard "click" events on a theme and emit the appropriate events through the interface. + /// This will listen to the standard "click" events on a theme and emit the appropriate events through the interface. /// Using these methods widgets do not need to listen to the theme signals. This class does it and calls the correct clickable functions. /// /// This handles theme signals "efl,action,press", "efl,action,unpress" and "efl,action,mouse_out", and the event. /// The object to listen on. /// The object to call the clickable methods on. - public static void BindToTheme(Efl.Canvas.Layout kw_object, Efl.Ui.IClickable clickable) { - Efl.Ui.ClickableUtil.NativeMethods.efl_ui_clickable_util_bind_to_theme_ptr.Value.Delegate(kw_object, clickable); + public static void BindClickableToTheme(Efl.Canvas.Layout kw_object, Efl.Input.IClickable clickable) { + Efl.Ui.ActionConnector.NativeMethods.efl_ui_action_connector_bind_clickable_to_theme_ptr.Value.Delegate(kw_object, clickable); Eina.Error.RaiseIfUnhandledException(); } - /// This will listen to the standard "click" events on an object, and emit the appropriate events through the interface. + /// This will listen to the standard "click" events on an object, and emit the appropriate events through the interface. /// Using these methods widgets do not need to listen to the object events. This class does it and calls the correct clickable functions. /// /// The handled events are and . /// The object to listen on. /// The object to call the clickable methods on. - public static void BindToObject(Efl.Input.IInterface kw_object, Efl.Ui.IClickable clickable) { - Efl.Ui.ClickableUtil.NativeMethods.efl_ui_clickable_util_bind_to_object_ptr.Value.Delegate(kw_object, clickable); + public static void BindClickableToObject(Efl.Input.IInterface kw_object, Efl.Input.IClickable clickable) { + Efl.Ui.ActionConnector.NativeMethods.efl_ui_action_connector_bind_clickable_to_object_ptr.Value.Delegate(kw_object, clickable); Eina.Error.RaiseIfUnhandledException(); } private static IntPtr GetEflClassStatic() { - return Efl.Ui.ClickableUtil.efl_ui_clickable_util_class_get(); + return Efl.Ui.ActionConnector.efl_ui_action_connector_class_get(); } /// Wrapper for native methods and virtual method delegates. /// For internal use by generated code only. @@ -103,29 +106,29 @@ public class ClickableUtil : Efl.Eo.EoWrapper /// The native class pointer. public override IntPtr GetEflClass() { - return Efl.Ui.ClickableUtil.efl_ui_clickable_util_class_get(); + return Efl.Ui.ActionConnector.efl_ui_action_connector_class_get(); } #pragma warning disable CA1707, CS1591, SA1300, SA1600 - private delegate void efl_ui_clickable_util_bind_to_theme_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Layout kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.IClickable clickable); + private delegate void efl_ui_action_connector_bind_clickable_to_theme_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Layout kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.IClickable clickable); - public delegate void efl_ui_clickable_util_bind_to_theme_api_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Layout kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.IClickable clickable); + public delegate void efl_ui_action_connector_bind_clickable_to_theme_api_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Layout kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.IClickable clickable); - public static Efl.Eo.FunctionWrapper efl_ui_clickable_util_bind_to_theme_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clickable_util_bind_to_theme"); + public static Efl.Eo.FunctionWrapper efl_ui_action_connector_bind_clickable_to_theme_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_action_connector_bind_clickable_to_theme"); - private static void bind_to_theme(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Layout kw_object, Efl.Ui.IClickable clickable) + private static void bind_clickable_to_theme(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Layout kw_object, Efl.Input.IClickable clickable) { - Eina.Log.Debug("function efl_ui_clickable_util_bind_to_theme was called"); + Eina.Log.Debug("function efl_ui_action_connector_bind_clickable_to_theme was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ClickableUtil.BindToTheme(kw_object, clickable); + ActionConnector.BindClickableToTheme(kw_object, clickable); } catch (Exception e) { @@ -137,28 +140,28 @@ public class ClickableUtil : Efl.Eo.EoWrapper } else { - efl_ui_clickable_util_bind_to_theme_ptr.Value.Delegate(kw_object, clickable); + efl_ui_action_connector_bind_clickable_to_theme_ptr.Value.Delegate(kw_object, clickable); } } - private delegate void efl_ui_clickable_util_bind_to_object_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.IInterface kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.IClickable clickable); + private delegate void efl_ui_action_connector_bind_clickable_to_object_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.IInterface kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.IClickable clickable); - public delegate void efl_ui_clickable_util_bind_to_object_api_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.IInterface kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.IClickable clickable); + public delegate void efl_ui_action_connector_bind_clickable_to_object_api_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.IInterface kw_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Input.IClickable clickable); - public static Efl.Eo.FunctionWrapper efl_ui_clickable_util_bind_to_object_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clickable_util_bind_to_object"); + public static Efl.Eo.FunctionWrapper efl_ui_action_connector_bind_clickable_to_object_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_action_connector_bind_clickable_to_object"); - private static void bind_to_object(System.IntPtr obj, System.IntPtr pd, Efl.Input.IInterface kw_object, Efl.Ui.IClickable clickable) + private static void bind_clickable_to_object(System.IntPtr obj, System.IntPtr pd, Efl.Input.IInterface kw_object, Efl.Input.IClickable clickable) { - Eina.Log.Debug("function efl_ui_clickable_util_bind_to_object was called"); + Eina.Log.Debug("function efl_ui_action_connector_bind_clickable_to_object was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ClickableUtil.BindToObject(kw_object, clickable); + ActionConnector.BindClickableToObject(kw_object, clickable); } catch (Exception e) { @@ -170,7 +173,7 @@ public class ClickableUtil : Efl.Eo.EoWrapper } else { - efl_ui_clickable_util_bind_to_object_ptr.Value.Delegate(kw_object, clickable); + efl_ui_action_connector_bind_clickable_to_object_ptr.Value.Delegate(kw_object, clickable); } } @@ -182,3 +185,9 @@ public class ClickableUtil : Efl.Eo.EoWrapper } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiActionConnector_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_alert_popup.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_alert_popup.eo.cs old mode 100644 new mode 100755 index 06e2235e4..d7a292574 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_alert_popup.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_alert_popup.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,18 +10,20 @@ namespace Efl { namespace Ui { -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class AlertPopupButtonClickedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when alert popup was clicked public Efl.Ui.AlertPopupButtonClickedEvent arg { get; set; } } /// EFL UI Alert Popup class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.AlertPopup.NativeMethods] [Efl.Eo.BindingEntity] public class AlertPopup : Efl.Ui.Popup { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -52,7 +55,8 @@ public class AlertPopup : Efl.Ui.Popup FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected AlertPopup(ConstructingHandle ch) : base(ch) { @@ -74,6 +78,7 @@ public class AlertPopup : Efl.Ui.Popup } /// Called when alert popup was clicked + /// public event EventHandler ButtonClickedEvt { add @@ -113,7 +118,7 @@ public class AlertPopup : Efl.Ui.Popup } } } - ///Method to raise event ButtonClickedEvt. + /// Method to raise event ButtonClickedEvt. public void OnButtonClickedEvt(Efl.Ui.AlertPopupButtonClickedEvt_Args e) { var key = "_EFL_UI_ALERT_POPUP_EVENT_BUTTON_CLICKED"; @@ -143,6 +148,11 @@ public class AlertPopup : Efl.Ui.Popup Efl.Ui.AlertPopup.NativeMethods.efl_ui_alert_popup_button_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),type, text, icon); Eina.Error.RaiseIfUnhandledException(); } + /// Set popup buttons. + /// Alert popup button type + public (Efl.Ui.AlertPopupButton, System.String, Efl.Object) Button { + set { SetButton( value.Item1, value.Item2, value.Item3); } + } private static IntPtr GetEflClassStatic() { return Efl.Ui.AlertPopup.efl_ui_alert_popup_class_get(); @@ -224,6 +234,13 @@ public class AlertPopup : Efl.Ui.Popup } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiAlertPopup_ExtensionMethods { + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Ui { @@ -254,16 +271,18 @@ namespace Ui { public struct AlertPopupButtonClickedEvent { /// Clicked button type + /// Defines the type of the alert button. public Efl.Ui.AlertPopupButton Button_type; - ///Constructor for AlertPopupButtonClickedEvent. + /// Constructor for AlertPopupButtonClickedEvent. + /// Clicked button type; public AlertPopupButtonClickedEvent( Efl.Ui.AlertPopupButton Button_type = default(Efl.Ui.AlertPopupButton) ) { this.Button_type = Button_type; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator AlertPopupButtonClickedEvent(IntPtr ptr) { var tmp = (AlertPopupButtonClickedEvent.NativeStruct)Marshal.PtrToStructure(ptr, typeof(AlertPopupButtonClickedEvent.NativeStruct)); @@ -272,13 +291,13 @@ public struct AlertPopupButtonClickedEvent #pragma warning disable CS1591 - ///Internal wrapper for struct AlertPopupButtonClickedEvent. + /// Internal wrapper for struct AlertPopupButtonClickedEvent. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { public Efl.Ui.AlertPopupButton Button_type; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator AlertPopupButtonClickedEvent.NativeStruct(AlertPopupButtonClickedEvent _external_struct) { var _internal_struct = new AlertPopupButtonClickedEvent.NativeStruct(); @@ -286,7 +305,7 @@ public struct AlertPopupButtonClickedEvent return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator AlertPopupButtonClickedEvent(AlertPopupButtonClickedEvent.NativeStruct _internal_struct) { var _external_struct = new AlertPopupButtonClickedEvent(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_alert_popup_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_alert_popup_part.eo.cs old mode 100644 new mode 100755 index 4347b5cd4..f82d9859b --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_alert_popup_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_alert_popup_part.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Efl UI Alert Popup internal part class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.AlertPopupPart.NativeMethods] [Efl.Eo.BindingEntity] public class AlertPopupPart : Efl.Ui.LayoutPartText { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class AlertPopupPart : Efl.Ui.LayoutPartText FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected AlertPopupPart(ConstructingHandle ch) : base(ch) { @@ -94,3 +97,9 @@ public class AlertPopupPart : Efl.Ui.LayoutPartText } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiAlertPopupPart_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_anchor_popup.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_anchor_popup.eo.cs deleted file mode 100644 index 30c60bbf9..000000000 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_anchor_popup.eo.cs +++ /dev/null @@ -1,325 +0,0 @@ -#pragma warning disable CS1591 -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.ComponentModel; -namespace Efl { - -namespace Ui { - -/// EFL UI Anchor Popup class -[Efl.Ui.AnchorPopup.NativeMethods] -[Efl.Eo.BindingEntity] -public class AnchorPopup : Efl.Ui.Popup -{ - ///Pointer to the native class description. - public override System.IntPtr NativeClass - { - get - { - if (((object)this).GetType() == typeof(AnchorPopup)) - { - return GetEflClassStatic(); - } - else - { - return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; - } - } - } - - [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - efl_ui_anchor_popup_class_get(); - /// Initializes a new instance of the class. - /// Parent instance. - /// The widget style to use. See - public AnchorPopup(Efl.Object parent - , System.String style = null) : base(efl_ui_anchor_popup_class_get(), parent) - { - if (Efl.Eo.Globals.ParamHelperCheck(style)) - { - SetStyle(Efl.Eo.Globals.GetParamHelper(style)); - } - - FinishInstantiation(); - } - - /// Constructor to be used when objects are expected to be constructed from native code. - /// Tag struct storing the native handle of the object being constructed. - protected AnchorPopup(ConstructingHandle ch) : base(ch) - { - } - - /// Initializes a new instance of the class. - /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. - /// The native pointer to be wrapped. - protected AnchorPopup(Efl.Eo.Globals.WrappingHandle wh) : base(wh) - { - } - - /// Initializes a new instance of the class. - /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - /// The pointer to the base native Eo class. - /// The Efl.Object parent of this instance. - protected AnchorPopup(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) - { - } - - /// Returns the anchor object which the popup is following. - /// The object which popup is following. - virtual public Efl.Canvas.Object GetAnchor() { - var _ret_var = Efl.Ui.AnchorPopup.NativeMethods.efl_ui_anchor_popup_anchor_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Set anchor popup to follow an anchor object. If anchor object is moved or parent window is resized, the anchor popup moves to the new position. If anchor object is set to NULL, the anchor popup stops following the anchor object. When the popup is moved by using gfx_position_set, anchor is set NULL. - /// The object which popup is following. - virtual public void SetAnchor(Efl.Canvas.Object anchor) { - Efl.Ui.AnchorPopup.NativeMethods.efl_ui_anchor_popup_anchor_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),anchor); - Eina.Error.RaiseIfUnhandledException(); - } - /// Get the align priority of a popup. - /// First align priority - /// Second align priority - /// Third align priority - /// Fourth align priority - /// Fifth align priority - virtual public void GetAlignPriority(out Efl.Ui.PopupAlign first, out Efl.Ui.PopupAlign second, out Efl.Ui.PopupAlign third, out Efl.Ui.PopupAlign fourth, out Efl.Ui.PopupAlign fifth) { - Efl.Ui.AnchorPopup.NativeMethods.efl_ui_anchor_popup_align_priority_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out first, out second, out third, out fourth, out fifth); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the align priority of a popup. - /// First align priority - /// Second align priority - /// Third align priority - /// Fourth align priority - /// Fifth align priority - virtual public void SetAlignPriority(Efl.Ui.PopupAlign first, Efl.Ui.PopupAlign second, Efl.Ui.PopupAlign third, Efl.Ui.PopupAlign fourth, Efl.Ui.PopupAlign fifth) { - Efl.Ui.AnchorPopup.NativeMethods.efl_ui_anchor_popup_align_priority_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),first, second, third, fourth, fifth); - Eina.Error.RaiseIfUnhandledException(); - } - /// Returns the anchor object which the popup is following. - /// The object which popup is following. - public Efl.Canvas.Object Anchor { - get { return GetAnchor(); } - set { SetAnchor(value); } - } - private static IntPtr GetEflClassStatic() - { - return Efl.Ui.AnchorPopup.efl_ui_anchor_popup_class_get(); - } - /// Wrapper for native methods and virtual method delegates. - /// For internal use by generated code only. - public new class NativeMethods : Efl.Ui.Popup.NativeMethods - { - private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); - /// Gets the list of Eo operations to override. - /// The list of Eo operations to be overload. - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - - if (efl_ui_anchor_popup_anchor_get_static_delegate == null) - { - efl_ui_anchor_popup_anchor_get_static_delegate = new efl_ui_anchor_popup_anchor_get_delegate(anchor_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetAnchor") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_anchor_popup_anchor_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_anchor_popup_anchor_get_static_delegate) }); - } - - if (efl_ui_anchor_popup_anchor_set_static_delegate == null) - { - efl_ui_anchor_popup_anchor_set_static_delegate = new efl_ui_anchor_popup_anchor_set_delegate(anchor_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetAnchor") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_anchor_popup_anchor_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_anchor_popup_anchor_set_static_delegate) }); - } - - if (efl_ui_anchor_popup_align_priority_get_static_delegate == null) - { - efl_ui_anchor_popup_align_priority_get_static_delegate = new efl_ui_anchor_popup_align_priority_get_delegate(align_priority_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetAlignPriority") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_anchor_popup_align_priority_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_anchor_popup_align_priority_get_static_delegate) }); - } - - if (efl_ui_anchor_popup_align_priority_set_static_delegate == null) - { - efl_ui_anchor_popup_align_priority_set_static_delegate = new efl_ui_anchor_popup_align_priority_set_delegate(align_priority_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetAlignPriority") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_anchor_popup_align_priority_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_anchor_popup_align_priority_set_static_delegate) }); - } - - descs.AddRange(base.GetEoOps(type)); - return descs; - } - /// Returns the Eo class for the native methods of this class. - /// The native class pointer. - public override IntPtr GetEflClass() - { - return Efl.Ui.AnchorPopup.efl_ui_anchor_popup_class_get(); - } - - #pragma warning disable CA1707, CS1591, SA1300, SA1600 - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Canvas.Object efl_ui_anchor_popup_anchor_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Canvas.Object efl_ui_anchor_popup_anchor_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_anchor_popup_anchor_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_anchor_popup_anchor_get"); - - private static Efl.Canvas.Object anchor_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_anchor_popup_anchor_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); - try - { - _ret_var = ((AnchorPopup)ws.Target).GetAnchor(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_anchor_popup_anchor_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_anchor_popup_anchor_get_delegate efl_ui_anchor_popup_anchor_get_static_delegate; - - - private delegate void efl_ui_anchor_popup_anchor_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object anchor); - - - public delegate void efl_ui_anchor_popup_anchor_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object anchor); - - public static Efl.Eo.FunctionWrapper efl_ui_anchor_popup_anchor_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_anchor_popup_anchor_set"); - - private static void anchor_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object anchor) - { - Eina.Log.Debug("function efl_ui_anchor_popup_anchor_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((AnchorPopup)ws.Target).SetAnchor(anchor); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_anchor_popup_anchor_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), anchor); - } - } - - private static efl_ui_anchor_popup_anchor_set_delegate efl_ui_anchor_popup_anchor_set_static_delegate; - - - private delegate void efl_ui_anchor_popup_align_priority_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.PopupAlign first, out Efl.Ui.PopupAlign second, out Efl.Ui.PopupAlign third, out Efl.Ui.PopupAlign fourth, out Efl.Ui.PopupAlign fifth); - - - public delegate void efl_ui_anchor_popup_align_priority_get_api_delegate(System.IntPtr obj, out Efl.Ui.PopupAlign first, out Efl.Ui.PopupAlign second, out Efl.Ui.PopupAlign third, out Efl.Ui.PopupAlign fourth, out Efl.Ui.PopupAlign fifth); - - public static Efl.Eo.FunctionWrapper efl_ui_anchor_popup_align_priority_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_anchor_popup_align_priority_get"); - - private static void align_priority_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.PopupAlign first, out Efl.Ui.PopupAlign second, out Efl.Ui.PopupAlign third, out Efl.Ui.PopupAlign fourth, out Efl.Ui.PopupAlign fifth) - { - Eina.Log.Debug("function efl_ui_anchor_popup_align_priority_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - first = default(Efl.Ui.PopupAlign); second = default(Efl.Ui.PopupAlign); third = default(Efl.Ui.PopupAlign); fourth = default(Efl.Ui.PopupAlign); fifth = default(Efl.Ui.PopupAlign); - try - { - ((AnchorPopup)ws.Target).GetAlignPriority(out first, out second, out third, out fourth, out fifth); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_anchor_popup_align_priority_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out first, out second, out third, out fourth, out fifth); - } - } - - private static efl_ui_anchor_popup_align_priority_get_delegate efl_ui_anchor_popup_align_priority_get_static_delegate; - - - private delegate void efl_ui_anchor_popup_align_priority_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.PopupAlign first, Efl.Ui.PopupAlign second, Efl.Ui.PopupAlign third, Efl.Ui.PopupAlign fourth, Efl.Ui.PopupAlign fifth); - - - public delegate void efl_ui_anchor_popup_align_priority_set_api_delegate(System.IntPtr obj, Efl.Ui.PopupAlign first, Efl.Ui.PopupAlign second, Efl.Ui.PopupAlign third, Efl.Ui.PopupAlign fourth, Efl.Ui.PopupAlign fifth); - - public static Efl.Eo.FunctionWrapper efl_ui_anchor_popup_align_priority_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_anchor_popup_align_priority_set"); - - private static void align_priority_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.PopupAlign first, Efl.Ui.PopupAlign second, Efl.Ui.PopupAlign third, Efl.Ui.PopupAlign fourth, Efl.Ui.PopupAlign fifth) - { - Eina.Log.Debug("function efl_ui_anchor_popup_align_priority_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((AnchorPopup)ws.Target).SetAlignPriority(first, second, third, fourth, fifth); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_anchor_popup_align_priority_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), first, second, third, fourth, fifth); - } - } - - private static efl_ui_anchor_popup_align_priority_set_delegate efl_ui_anchor_popup_align_priority_set_static_delegate; - - #pragma warning restore CA1707, CS1591, SA1300, SA1600 - -} -} -} - -} - diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_autorepeat.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_autorepeat.eo.cs old mode 100644 new mode 100755 index d5b83a130..94bcb438c --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_autorepeat.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_autorepeat.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -56,8 +57,8 @@ void SetAutorepeatEnabled(bool on); /// See also and . /// Timeout in seconds. double AutorepeatInitialTimeout { - get ; - set ; + get; + set; } /// The interval between each generated autorepeat event. /// After the first repeated event is fired, all subsequent ones will follow after a delay of t seconds for each. @@ -65,25 +66,25 @@ void SetAutorepeatEnabled(bool on); /// See also . /// Time interval in seconds. double AutorepeatGapTimeout { - get ; - set ; + get; + set; } /// Turn on/off the autorepeat event generated when a button is kept pressed. /// When off, no autorepeat is performed and buttons emit a normal clicked event when they are clicked. /// A bool to turn on/off the repeat event generation. bool AutorepeatEnabled { - get ; - set ; + get; + set; } } /// Interface for autorepeating clicks. /// This interface abstracts functions for enabling / disabling this feature. When enabled, keeping a button pressed will continuously emit the repeated event until the button is released. The time it takes until it starts emitting the event is given by , and the time between each new emission by . -sealed public class IAutorepeatConcrete : +sealed public class IAutorepeatConcrete : Efl.Eo.EoWrapper , IAutorepeat { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -99,7 +100,8 @@ sealed public class IAutorepeatConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IAutorepeatConcrete(ConstructingHandle ch) : base(ch) { @@ -153,7 +155,7 @@ sealed public class IAutorepeatConcrete : } } } - ///Method to raise event RepeatedEvt. + /// Method to raise event RepeatedEvt. public void OnRepeatedEvt(EventArgs e) { var key = "_EFL_UI_AUTOREPEAT_EVENT_REPEATED"; @@ -552,3 +554,21 @@ sealed public class IAutorepeatConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiIAutorepeatConcrete_ExtensionMethods { + public static Efl.BindableProperty AutorepeatInitialTimeout(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IAutorepeat { + return new Efl.BindableProperty("autorepeat_initial_timeout", fac); + } + + public static Efl.BindableProperty AutorepeatGapTimeout(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IAutorepeat { + return new Efl.BindableProperty("autorepeat_gap_timeout", fac); + } + + public static Efl.BindableProperty AutorepeatEnabled(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IAutorepeat { + return new Efl.BindableProperty("autorepeat_enabled", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_bg.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_bg.eo.cs old mode 100644 new mode 100755 index 80e8059d9..121cfeb5f --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_bg.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_bg.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// The bg (background) widget is used for setting (solid) background decorations for a window (unless it has transparency enabled) or for any container object. It works just like an image, but has some properties useful for backgrounds, such as setting it to tiled, centered, scaled or stretched. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Bg.NativeMethods] [Efl.Eo.BindingEntity] public class Bg : Efl.Ui.LayoutBase, Efl.IFile, Efl.Gfx.IImage, Efl.Gfx.IImageLoadController { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +48,8 @@ public class Bg : Efl.Ui.LayoutBase, Efl.IFile, Efl.Gfx.IImage, Efl.Gfx.IImageLo FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Bg(ConstructingHandle ch) : base(ch) { @@ -106,7 +109,7 @@ public class Bg : Efl.Ui.LayoutBase, Efl.IFile, Efl.Gfx.IImage, Efl.Gfx.IImageLo } } } - ///Method to raise event ImagePreloadEvt. + /// Method to raise event ImagePreloadEvt. public void OnImagePreloadEvt(EventArgs e) { var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_PRELOAD"; @@ -158,7 +161,7 @@ public class Bg : Efl.Ui.LayoutBase, Efl.IFile, Efl.Gfx.IImage, Efl.Gfx.IImageLo } } } - ///Method to raise event ImageResizeEvt. + /// Method to raise event ImageResizeEvt. public void OnImageResizeEvt(EventArgs e) { var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_RESIZE"; @@ -210,7 +213,7 @@ public class Bg : Efl.Ui.LayoutBase, Efl.IFile, Efl.Gfx.IImage, Efl.Gfx.IImageLo } } } - ///Method to raise event ImageUnloadEvt. + /// Method to raise event ImageUnloadEvt. public void OnImageUnloadEvt(EventArgs e) { var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_UNLOAD"; @@ -262,7 +265,7 @@ public class Bg : Efl.Ui.LayoutBase, Efl.IFile, Efl.Gfx.IImage, Efl.Gfx.IImageLo } } } - ///Method to raise event LoadDoneEvt. + /// Method to raise event LoadDoneEvt. public void OnLoadDoneEvt(EventArgs e) { var key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_DONE"; @@ -276,6 +279,7 @@ public class Bg : Efl.Ui.LayoutBase, Efl.IFile, Efl.Gfx.IImage, Efl.Gfx.IImageLo Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when an error happened during image loading + /// public event EventHandler LoadErrorEvt { add @@ -315,7 +319,7 @@ public class Bg : Efl.Ui.LayoutBase, Efl.IFile, Efl.Gfx.IImage, Efl.Gfx.IImageLo } } } - ///Method to raise event LoadErrorEvt. + /// Method to raise event LoadErrorEvt. public void OnLoadErrorEvt(Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args e) { var key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_ERROR"; @@ -452,6 +456,32 @@ public class Bg : Efl.Ui.LayoutBase, Efl.IFile, Efl.Gfx.IImage, Efl.Gfx.IImageLo Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_type_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),scale_type); Eina.Error.RaiseIfUnhandledException(); } + /// If true, the image may be scaled to a larger size. If false, the image will never be resized larger than its native size. This is set to true by default. + /// Allow image upscaling + virtual public bool GetCanUpscale() { + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_can_upscale_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// If true, the image may be scaled to a larger size. If false, the image will never be resized larger than its native size. This is set to true by default. + /// Allow image upscaling + virtual public void SetCanUpscale(bool upscale) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_can_upscale_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),upscale); + Eina.Error.RaiseIfUnhandledException(); + } + /// If true, the image may be scaled to a smaller size. If false, the image will never be resized smaller than its native size. This is set to true by default. + /// Allow image downscaling + virtual public bool GetCanDownscale() { + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_can_downscale_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// If true, the image may be scaled to a smaller size. If false, the image will never be resized smaller than its native size. This is set to true by default. + /// Allow image downscaling + virtual public void SetCanDownscale(bool downscale) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_can_downscale_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),downscale); + Eina.Error.RaiseIfUnhandledException(); + } /// Returns 1.0 if not applicable (eg. height = 0). /// The image's ratio. virtual public double GetRatio() { @@ -547,20 +577,20 @@ public class Bg : Efl.Ui.LayoutBase, Efl.IFile, Efl.Gfx.IImage, Efl.Gfx.IImageLo /// When the regions are set by the user, the method will walk the iterators once and then destroy them. When the regions are retrieved by the user, it is his responsibility to destroy the iterators.. It will remember the information for the lifetime of the object. It will ignore all value of , and . To reset the object you can just pass null to both horizontal and vertical at the same time. /// Representation of area that are stretchable in the image horizontal space. /// Representation of area that are stretchable in the image vertical space. - virtual public void GetStretchRegion(out Eina.Iterator horizontal, out Eina.Iterator vertical) { + virtual public void GetStretchRegion(out Eina.Iterator horizontal, out Eina.Iterator vertical) { System.IntPtr _out_horizontal = System.IntPtr.Zero; System.IntPtr _out_vertical = System.IntPtr.Zero; Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_stretch_region_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out _out_horizontal, out _out_vertical); Eina.Error.RaiseIfUnhandledException(); - horizontal = new Eina.Iterator(_out_horizontal, false); - vertical = new Eina.Iterator(_out_vertical, false); + horizontal = new Eina.Iterator(_out_horizontal, false); + vertical = new Eina.Iterator(_out_vertical, false); } /// This property defines the stretchable pixels region of an image. /// When the regions are set by the user, the method will walk the iterators once and then destroy them. When the regions are retrieved by the user, it is his responsibility to destroy the iterators.. It will remember the information for the lifetime of the object. It will ignore all value of , and . To reset the object you can just pass null to both horizontal and vertical at the same time. /// Representation of area that are stretchable in the image horizontal space. /// Representation of area that are stretchable in the image vertical space. /// return an error code if the stretch_region provided are incorrect. - virtual public Eina.Error SetStretchRegion(Eina.Iterator horizontal, Eina.Iterator vertical) { + virtual public Eina.Error SetStretchRegion(Eina.Iterator horizontal, Eina.Iterator vertical) { var _in_horizontal = horizontal.Handle; var _in_vertical = vertical.Handle; var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_stretch_region_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_horizontal, _in_vertical); @@ -773,6 +803,18 @@ public class Bg : Efl.Ui.LayoutBase, Efl.IFile, Efl.Gfx.IImage, Efl.Gfx.IImageLo get { return GetScaleType(); } set { SetScaleType(value); } } + /// If true, the image may be scaled to a larger size. If false, the image will never be resized larger than its native size. This is set to true by default. + /// Allow image upscaling + public bool CanUpscale { + get { return GetCanUpscale(); } + set { SetCanUpscale(value); } + } + /// If true, the image may be scaled to a smaller size. If false, the image will never be resized smaller than its native size. This is set to true by default. + /// Allow image downscaling + public bool CanDownscale { + get { return GetCanDownscale(); } + set { SetCanDownscale(value); } + } /// The native width/height ratio of the image. /// The image's ratio. public double Ratio { @@ -786,6 +828,28 @@ public class Bg : Efl.Ui.LayoutBase, Efl.IFile, Efl.Gfx.IImage, Efl.Gfx.IImageLo public Eina.Rect ContentRegion { get { return GetContentRegion(); } } + /// Dimensions of this image's border, a region that does not scale with the center area. + /// When EFL renders an image, its source may be scaled to fit the size of the object. This function sets an area from the borders of the image inwards which is not to be scaled. This function is useful for making frames and for widget theming, where, for example, buttons may be of varying sizes, but their border size must remain constant. + /// + /// The units used for l, r, t and b are canvas units (pixels). + /// + /// Note: The border region itself may be scaled by the function. + /// + /// Note: By default, image objects have no borders set, i.e. l, r, t and b start as 0. + /// + /// Note: Similar to the concepts of 9-patch images or cap insets. + /// The border's left width. + public (int, int, int, int) Border { + get { + int _out_l = default(int); + int _out_r = default(int); + int _out_t = default(int); + int _out_b = default(int); + GetBorder(out _out_l,out _out_r,out _out_t,out _out_b); + return (_out_l,_out_r,_out_t,_out_b); + } + set { SetBorder( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Scaling factor applied to the image borders. /// This value multiplies the size of the when scaling an object. /// @@ -804,6 +868,18 @@ public class Bg : Efl.Ui.LayoutBase, Efl.IFile, Efl.Gfx.IImage, Efl.Gfx.IImageLo get { return GetBorderCenterFill(); } set { SetBorderCenterFill(value); } } + /// This property defines the stretchable pixels region of an image. + /// When the regions are set by the user, the method will walk the iterators once and then destroy them. When the regions are retrieved by the user, it is his responsibility to destroy the iterators.. It will remember the information for the lifetime of the object. It will ignore all value of , and . To reset the object you can just pass null to both horizontal and vertical at the same time. + /// Representation of area that are stretchable in the image horizontal space. + public (Eina.Iterator, Eina.Iterator) StretchRegion { + get { + Eina.Iterator _out_horizontal = default(Eina.Iterator); + Eina.Iterator _out_vertical = default(Eina.Iterator); + GetStretchRegion(out _out_horizontal,out _out_vertical); + return (_out_horizontal,_out_vertical); + } + set { SetStretchRegion( value.Item1, value.Item2); } + } /// This represents the size of the original image in pixels. /// This may be different from the actual geometry on screen or even the size of the loaded pixel buffer. This is the size of the image as stored in the original file. /// @@ -1029,6 +1105,46 @@ public class Bg : Efl.Ui.LayoutBase, Efl.IFile, Efl.Gfx.IImage, Efl.Gfx.IImageLo descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_set_static_delegate) }); } + if (efl_gfx_image_can_upscale_get_static_delegate == null) + { + efl_gfx_image_can_upscale_get_static_delegate = new efl_gfx_image_can_upscale_get_delegate(can_upscale_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetCanUpscale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_can_upscale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_can_upscale_get_static_delegate) }); + } + + if (efl_gfx_image_can_upscale_set_static_delegate == null) + { + efl_gfx_image_can_upscale_set_static_delegate = new efl_gfx_image_can_upscale_set_delegate(can_upscale_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetCanUpscale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_can_upscale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_can_upscale_set_static_delegate) }); + } + + if (efl_gfx_image_can_downscale_get_static_delegate == null) + { + efl_gfx_image_can_downscale_get_static_delegate = new efl_gfx_image_can_downscale_get_delegate(can_downscale_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetCanDownscale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_can_downscale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_can_downscale_get_static_delegate) }); + } + + if (efl_gfx_image_can_downscale_set_static_delegate == null) + { + efl_gfx_image_can_downscale_set_static_delegate = new efl_gfx_image_can_downscale_set_delegate(can_downscale_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetCanDownscale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_can_downscale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_can_downscale_set_static_delegate) }); + } + if (efl_gfx_image_ratio_get_static_delegate == null) { efl_gfx_image_ratio_get_static_delegate = new efl_gfx_image_ratio_get_delegate(ratio_get); @@ -1815,6 +1931,148 @@ public class Bg : Efl.Ui.LayoutBase, Efl.IFile, Efl.Gfx.IImage, Efl.Gfx.IImageLo private static efl_gfx_image_scale_type_set_delegate efl_gfx_image_scale_type_set_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_can_upscale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_can_upscale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_can_upscale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_can_upscale_get"); + + private static bool can_upscale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_can_upscale_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Bg)ws.Target).GetCanUpscale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_can_upscale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_can_upscale_get_delegate efl_gfx_image_can_upscale_get_static_delegate; + + + private delegate void efl_gfx_image_can_upscale_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool upscale); + + + public delegate void efl_gfx_image_can_upscale_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool upscale); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_can_upscale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_can_upscale_set"); + + private static void can_upscale_set(System.IntPtr obj, System.IntPtr pd, bool upscale) + { + Eina.Log.Debug("function efl_gfx_image_can_upscale_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Bg)ws.Target).SetCanUpscale(upscale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_can_upscale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), upscale); + } + } + + private static efl_gfx_image_can_upscale_set_delegate efl_gfx_image_can_upscale_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_can_downscale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_can_downscale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_can_downscale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_can_downscale_get"); + + private static bool can_downscale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_can_downscale_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Bg)ws.Target).GetCanDownscale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_can_downscale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_can_downscale_get_delegate efl_gfx_image_can_downscale_get_static_delegate; + + + private delegate void efl_gfx_image_can_downscale_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool downscale); + + + public delegate void efl_gfx_image_can_downscale_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool downscale); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_can_downscale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_can_downscale_set"); + + private static void can_downscale_set(System.IntPtr obj, System.IntPtr pd, bool downscale) + { + Eina.Log.Debug("function efl_gfx_image_can_downscale_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Bg)ws.Target).SetCanDownscale(downscale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_can_downscale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), downscale); + } + } + + private static efl_gfx_image_can_downscale_set_delegate efl_gfx_image_can_downscale_set_static_delegate; + private delegate double efl_gfx_image_ratio_get_delegate(System.IntPtr obj, System.IntPtr pd); @@ -2113,8 +2371,8 @@ public class Bg : Efl.Ui.LayoutBase, Efl.IFile, Efl.Gfx.IImage, Efl.Gfx.IImageLo var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - Eina.Iterator _out_horizontal = default(Eina.Iterator); - Eina.Iterator _out_vertical = default(Eina.Iterator); + Eina.Iterator _out_horizontal = default(Eina.Iterator); + Eina.Iterator _out_vertical = default(Eina.Iterator); try { @@ -2152,8 +2410,8 @@ public class Bg : Efl.Ui.LayoutBase, Efl.IFile, Efl.Gfx.IImage, Efl.Gfx.IImageLo var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - var _in_horizontal = new Eina.Iterator(horizontal, false); - var _in_vertical = new Eina.Iterator(vertical, false); + var _in_horizontal = new Eina.Iterator(horizontal, false); + var _in_vertical = new Eina.Iterator(vertical, false); Eina.Error _ret_var = default(Eina.Error); try { @@ -2932,3 +3190,85 @@ public class Bg : Efl.Ui.LayoutBase, Efl.IFile, Efl.Gfx.IImage, Efl.Gfx.IImageLo } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiBg_ExtensionMethods { + public static Efl.BindableProperty Mmap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Bg { + return new Efl.BindableProperty("mmap", fac); + } + + public static Efl.BindableProperty File(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Bg { + return new Efl.BindableProperty("file", fac); + } + + public static Efl.BindableProperty Key(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Bg { + return new Efl.BindableProperty("key", fac); + } + + + public static Efl.BindableProperty SmoothScale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Bg { + return new Efl.BindableProperty("smooth_scale", fac); + } + + public static Efl.BindableProperty ScaleType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Bg { + return new Efl.BindableProperty("scale_type", fac); + } + + public static Efl.BindableProperty CanUpscale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Bg { + return new Efl.BindableProperty("can_upscale", fac); + } + + public static Efl.BindableProperty CanDownscale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Bg { + return new Efl.BindableProperty("can_downscale", fac); + } + + + + + public static Efl.BindableProperty BorderScale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Bg { + return new Efl.BindableProperty("border_scale", fac); + } + + public static Efl.BindableProperty BorderCenterFill(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Bg { + return new Efl.BindableProperty("border_center_fill", fac); + } + + + + public static Efl.BindableProperty ContentHint(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Bg { + return new Efl.BindableProperty("content_hint", fac); + } + + public static Efl.BindableProperty ScaleHint(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Bg { + return new Efl.BindableProperty("scale_hint", fac); + } + + + public static Efl.BindableProperty LoadSize(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Bg { + return new Efl.BindableProperty("load_size", fac); + } + + public static Efl.BindableProperty LoadDpi(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Bg { + return new Efl.BindableProperty("load_dpi", fac); + } + + + public static Efl.BindableProperty LoadRegion(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Bg { + return new Efl.BindableProperty("load_region", fac); + } + + public static Efl.BindableProperty LoadOrientation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Bg { + return new Efl.BindableProperty("load_orientation", fac); + } + + public static Efl.BindableProperty LoadScaleDown(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Bg { + return new Efl.BindableProperty("load_scale_down", fac); + } + + public static Efl.BindableProperty LoadSkipHeader(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Bg { + return new Efl.BindableProperty("load_skip_header", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_box.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_box.eo.cs old mode 100644 new mode 100755 index af4d8b716..f3707e560 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_box.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_box.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -23,7 +24,7 @@ namespace Ui { [Efl.Eo.BindingEntity] public class Box : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLayout, Efl.IPackLinear, Efl.Gfx.IArrangement, Efl.Ui.ILayoutOrientable { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -55,7 +56,8 @@ public class Box : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLayout, Ef FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Box(ConstructingHandle ch) : base(ch) { @@ -78,6 +80,7 @@ public class Box : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLayout, Ef /// Sent after a new sub-object was added. /// (Since EFL 1.22) + /// public event EventHandler ContentAddedEvt { add @@ -117,7 +120,7 @@ public class Box : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLayout, Ef } } } - ///Method to raise event ContentAddedEvt. + /// Method to raise event ContentAddedEvt. public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; @@ -133,6 +136,7 @@ public class Box : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLayout, Ef } /// Sent after a sub-object was removed, before unref. /// (Since EFL 1.22) + /// public event EventHandler ContentRemovedEvt { add @@ -172,7 +176,7 @@ public class Box : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLayout, Ef } } } - ///Method to raise event ContentRemovedEvt. + /// Method to raise event ContentRemovedEvt. public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; @@ -225,7 +229,7 @@ public class Box : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLayout, Ef } } } - ///Method to raise event LayoutUpdatedEvt. + /// Method to raise event LayoutUpdatedEvt. public void OnLayoutUpdatedEvt(EventArgs e) { var key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; @@ -456,6 +460,29 @@ public class Box : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLayout, Ef get { return GetHomogeneous(); } set { SetHomogeneous(value); } } + /// Alignment of the container within its bounds + /// Horizontal alignment + public (double, double) ContentAlign { + get { + double _out_align_horiz = default(double); + double _out_align_vert = default(double); + GetContentAlign(out _out_align_horiz,out _out_align_vert); + return (_out_align_horiz,_out_align_vert); + } + set { SetContentAlign( value.Item1, value.Item2); } + } + /// Padding between items contained in this object. + /// Horizontal padding + public (double, double, bool) ContentPadding { + get { + double _out_pad_horiz = default(double); + double _out_pad_vert = default(double); + bool _out_scalable = default(bool); + GetContentPadding(out _out_pad_horiz,out _out_pad_vert,out _out_scalable); + return (_out_pad_horiz,_out_pad_vert,_out_scalable); + } + set { SetContentPadding( value.Item1, value.Item2, value.Item3); } + } /// Control the direction of a given widget. /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. /// @@ -1597,3 +1624,19 @@ public class Box : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLayout, Ef } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiBox_ExtensionMethods { + public static Efl.BindableProperty Homogeneous(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Box { + return new Efl.BindableProperty("homogeneous", fac); + } + + + + public static Efl.BindableProperty Orientation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Box { + return new Efl.BindableProperty("orientation", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_box_flow.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_box_flow.eo.cs old mode 100644 new mode 100755 index 00f249585..6ba7c58db --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_box_flow.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_box_flow.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// A custom layout engine for . +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.BoxFlow.NativeMethods] [Efl.Eo.BindingEntity] public class BoxFlow : Efl.Ui.Box { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +48,8 @@ public class BoxFlow : Efl.Ui.Box FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected BoxFlow(ConstructingHandle ch) : base(ch) { @@ -100,3 +103,9 @@ public class BoxFlow : Efl.Ui.Box } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiBoxFlow_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_box_stack.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_box_stack.eo.cs old mode 100644 new mode 100755 index 18f3e17e7..dff8bafeb --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_box_stack.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_box_stack.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Ui { /// A custom layout engine for that stacks items. /// Items will be stacked on top of each other (in the Z direction). +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.BoxStack.NativeMethods] [Efl.Eo.BindingEntity] public class BoxStack : Efl.Ui.Box { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -47,7 +49,8 @@ public class BoxStack : Efl.Ui.Box FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected BoxStack(ConstructingHandle ch) : base(ch) { @@ -101,3 +104,9 @@ public class BoxStack : Efl.Ui.Box } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiBoxStack_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_button.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_button.eo.cs old mode 100644 new mode 100755 index ed5fa97c4..e26e7f390 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_button.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_button.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -13,9 +14,9 @@ namespace Ui { /// Press it and run some function. It can contain a simple label and icon object and it also has an autorepeat feature. [Efl.Ui.Button.NativeMethods] [Efl.Eo.BindingEntity] -public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutorepeat, Efl.Ui.IClickable +public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Input.IClickable, Efl.Ui.IAutorepeat { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -47,7 +48,8 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Button(ConstructingHandle ch) : base(ch) { @@ -70,6 +72,7 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) + /// public event EventHandler ContentChangedEvt { add @@ -109,7 +112,7 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore } } } - ///Method to raise event ContentChangedEvt. + /// Method to raise event ContentChangedEvt. public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; @@ -123,8 +126,9 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore IntPtr info = e.arg.NativeHandle; Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } - /// Called when a repeated event is emitted - public event EventHandler RepeatedEvt + /// Called when object is in sequence pressed and unpressed, by the primary button + /// + public event EventHandler ClickedEvt { add { @@ -135,7 +139,8 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - EventArgs args = EventArgs.Empty; + Efl.Input.IClickableClickedEvt_Args args = new Efl.Input.IClickableClickedEvt_Args(); + args.arg = evt.Info; try { value?.Invoke(obj, args); @@ -148,7 +153,7 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore } }; - string key = "_EFL_UI_AUTOREPEAT_EVENT_REPEATED"; + string key = "_EFL_INPUT_EVENT_CLICKED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -157,15 +162,15 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore { lock (eflBindingEventLock) { - string key = "_EFL_UI_AUTOREPEAT_EVENT_REPEATED"; + string key = "_EFL_INPUT_EVENT_CLICKED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event RepeatedEvt. - public void OnRepeatedEvt(EventArgs e) + /// Method to raise event ClickedEvt. + public void OnClickedEvt(Efl.Input.IClickableClickedEvt_Args e) { - var key = "_EFL_UI_AUTOREPEAT_EVENT_REPEATED"; + var key = "_EFL_INPUT_EVENT_CLICKED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -173,10 +178,20 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore return; } - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } - /// Called when object is in sequence pressed and unpressed, by the primary button - public event EventHandler ClickedEvt + /// Called when object is in sequence pressed and unpressed by any button. The button that triggered the event can be found in the event information. + /// + public event EventHandler ClickedAnyEvt { add { @@ -187,7 +202,7 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickableClickedEvt_Args args = new Efl.Ui.IClickableClickedEvt_Args(); + Efl.Input.IClickableClickedAnyEvt_Args args = new Efl.Input.IClickableClickedAnyEvt_Args(); args.arg = evt.Info; try { @@ -201,7 +216,7 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore } }; - string key = "_EFL_UI_EVENT_CLICKED"; + string key = "_EFL_INPUT_EVENT_CLICKED_ANY"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -210,15 +225,15 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_CLICKED"; + string key = "_EFL_INPUT_EVENT_CLICKED_ANY"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ClickedEvt. - public void OnClickedEvt(Efl.Ui.IClickableClickedEvt_Args e) + /// Method to raise event ClickedAnyEvt. + public void OnClickedAnyEvt(Efl.Input.IClickableClickedAnyEvt_Args e) { - var key = "_EFL_UI_EVENT_CLICKED"; + var key = "_EFL_INPUT_EVENT_CLICKED_ANY"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -237,8 +252,9 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore Marshal.FreeHGlobal(info); } } - /// Called when object is in sequence pressed and unpressed by any button. The button that triggered the event can be found in the event information. - public event EventHandler ClickedAnyEvt + /// Called when the object is pressed, event_info is the button that got pressed + /// + public event EventHandler PressedEvt { add { @@ -249,8 +265,8 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickableClickedAnyEvt_Args args = new Efl.Ui.IClickableClickedAnyEvt_Args(); - args.arg = evt.Info; + Efl.Input.IClickablePressedEvt_Args args = new Efl.Input.IClickablePressedEvt_Args(); + args.arg = Marshal.ReadInt32(evt.Info); try { value?.Invoke(obj, args); @@ -263,7 +279,7 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore } }; - string key = "_EFL_UI_EVENT_CLICKED_ANY"; + string key = "_EFL_INPUT_EVENT_PRESSED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -272,15 +288,15 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_CLICKED_ANY"; + string key = "_EFL_INPUT_EVENT_PRESSED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ClickedAnyEvt. - public void OnClickedAnyEvt(Efl.Ui.IClickableClickedAnyEvt_Args e) + /// Method to raise event PressedEvt. + public void OnPressedEvt(Efl.Input.IClickablePressedEvt_Args e) { - var key = "_EFL_UI_EVENT_CLICKED_ANY"; + var key = "_EFL_INPUT_EVENT_PRESSED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -288,10 +304,9 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore return; } - IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); try { - Marshal.StructureToPtr(e.arg, info, false); Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } finally @@ -299,8 +314,9 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore Marshal.FreeHGlobal(info); } } - /// Called when the object is pressed, event_info is the button that got pressed - public event EventHandler PressedEvt + /// Called when the object is no longer pressed, event_info is the button that got pressed + /// + public event EventHandler UnpressedEvt { add { @@ -311,7 +327,7 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); + Efl.Input.IClickableUnpressedEvt_Args args = new Efl.Input.IClickableUnpressedEvt_Args(); args.arg = Marshal.ReadInt32(evt.Info); try { @@ -325,7 +341,7 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore } }; - string key = "_EFL_UI_EVENT_PRESSED"; + string key = "_EFL_INPUT_EVENT_UNPRESSED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -334,15 +350,15 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_PRESSED"; + string key = "_EFL_INPUT_EVENT_UNPRESSED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event PressedEvt. - public void OnPressedEvt(Efl.Ui.IClickablePressedEvt_Args e) + /// Method to raise event UnpressedEvt. + public void OnUnpressedEvt(Efl.Input.IClickableUnpressedEvt_Args e) { - var key = "_EFL_UI_EVENT_PRESSED"; + var key = "_EFL_INPUT_EVENT_UNPRESSED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -360,8 +376,9 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore Marshal.FreeHGlobal(info); } } - /// Called when the object is no longer pressed, event_info is the button that got pressed - public event EventHandler UnpressedEvt + /// Called when the object receives a long press, event_info is the button that got pressed + /// + public event EventHandler LongpressedEvt { add { @@ -372,7 +389,7 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); + Efl.Input.IClickableLongpressedEvt_Args args = new Efl.Input.IClickableLongpressedEvt_Args(); args.arg = Marshal.ReadInt32(evt.Info); try { @@ -386,7 +403,7 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore } }; - string key = "_EFL_UI_EVENT_UNPRESSED"; + string key = "_EFL_INPUT_EVENT_LONGPRESSED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -395,15 +412,15 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_UNPRESSED"; + string key = "_EFL_INPUT_EVENT_LONGPRESSED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event UnpressedEvt. - public void OnUnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) + /// Method to raise event LongpressedEvt. + public void OnLongpressedEvt(Efl.Input.IClickableLongpressedEvt_Args e) { - var key = "_EFL_UI_EVENT_UNPRESSED"; + var key = "_EFL_INPUT_EVENT_LONGPRESSED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -421,8 +438,8 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore Marshal.FreeHGlobal(info); } } - /// Called when the object receives a long press, event_info is the button that got pressed - public event EventHandler LongpressedEvt + /// Called when a repeated event is emitted + public event EventHandler RepeatedEvt { add { @@ -433,8 +450,7 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); - args.arg = Marshal.ReadInt32(evt.Info); + EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); @@ -447,7 +463,7 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore } }; - string key = "_EFL_UI_EVENT_LONGPRESSED"; + string key = "_EFL_UI_AUTOREPEAT_EVENT_REPEATED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -456,15 +472,15 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_LONGPRESSED"; + string key = "_EFL_UI_AUTOREPEAT_EVENT_REPEATED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event LongpressedEvt. - public void OnLongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) + /// Method to raise event RepeatedEvt. + public void OnRepeatedEvt(EventArgs e) { - var key = "_EFL_UI_EVENT_LONGPRESSED"; + var key = "_EFL_UI_AUTOREPEAT_EVENT_REPEATED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -472,15 +488,7 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore return; } - IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); - try - { - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - finally - { - Marshal.FreeHGlobal(info); - } + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Sub-object currently set as this object's single content. /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). @@ -528,6 +536,38 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),text); Eina.Error.RaiseIfUnhandledException(); } + /// This returns true if the given object is currently in event emission + virtual public bool GetInteraction() { + var _ret_var = Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_interaction_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Change internal states that a button got pressed. + /// When the button is already pressed, this is silently ignored. + /// The number of the button. FIXME ensure to have the right interval of possible input + virtual public void Press(uint button) { + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_press_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Eina.Error.RaiseIfUnhandledException(); + } + /// Change internal states that a button got unpressed. + /// When the button is not pressed, this is silently ignored. + /// The number of the button. FIXME ensure to have the right interval of possible input + virtual public void Unpress(uint button) { + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_unpress_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Eina.Error.RaiseIfUnhandledException(); + } + /// This aborts the internal state after a press call. + /// This will stop the timer for longpress. And set the state of the clickable mixin back into the unpressed state. + virtual public void ResetButtonState(uint button) { + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_button_state_reset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Eina.Error.RaiseIfUnhandledException(); + } + /// This aborts ongoing longpress event. + /// That is, this will stop the timer for longpress. + virtual public void LongpressAbort(uint button) { + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_longpress_abort_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Eina.Error.RaiseIfUnhandledException(); + } /// The initial timeout before the autorepeat event is generated. /// Sets the timeout, in seconds, since the button is pressed until the first repeated signal is emitted. If t is 0.0 or less, there won't be any delay and the event will be fired the moment the button is pressed. /// @@ -581,26 +621,6 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore Efl.Ui.IAutorepeatConcrete.NativeMethods.efl_ui_autorepeat_enabled_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),on); Eina.Error.RaiseIfUnhandledException(); } - /// Change internal states that a button got pressed. - /// When the button is already pressed, this is silently ignored. - /// The number of the button. FIXME ensure to have the right interval of possible input - virtual public void Press(uint button) { - Efl.Ui.IClickableConcrete.NativeMethods.efl_ui_clickable_press_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); - Eina.Error.RaiseIfUnhandledException(); - } - /// Change internal states that a button got unpressed. - /// When the button is not pressed, this is silently ignored. - /// The number of the button. FIXME ensure to have the right interval of possible input - virtual public void Unpress(uint button) { - Efl.Ui.IClickableConcrete.NativeMethods.efl_ui_clickable_unpress_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); - Eina.Error.RaiseIfUnhandledException(); - } - /// This aborts the internal state after a press call. - /// This will stop the timer for longpress. And set the state of the clickable mixin back into the unpressed state. - virtual public void ResetButtonState(uint button) { - Efl.Ui.IClickableConcrete.NativeMethods.efl_ui_clickable_button_state_reset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); - Eina.Error.RaiseIfUnhandledException(); - } /// Sub-object currently set as this object's single content. /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) @@ -609,6 +629,10 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore get { return GetContent(); } set { SetContent(value); } } + /// This returns true if the given object is currently in event emission + public bool Interaction { + get { return GetInteraction(); } + } /// The initial timeout before the autorepeat event is generated. /// Sets the timeout, in seconds, since the button is pressed until the first repeated signal is emitted. If t is 0.0 or less, there won't be any delay and the event will be fired the moment the button is pressed. /// @@ -700,6 +724,56 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); } + if (efl_input_clickable_interaction_get_static_delegate == null) + { + efl_input_clickable_interaction_get_static_delegate = new efl_input_clickable_interaction_get_delegate(interaction_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetInteraction") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_interaction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_interaction_get_static_delegate) }); + } + + if (efl_input_clickable_press_static_delegate == null) + { + efl_input_clickable_press_static_delegate = new efl_input_clickable_press_delegate(press); + } + + if (methods.FirstOrDefault(m => m.Name == "Press") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_press"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_press_static_delegate) }); + } + + if (efl_input_clickable_unpress_static_delegate == null) + { + efl_input_clickable_unpress_static_delegate = new efl_input_clickable_unpress_delegate(unpress); + } + + if (methods.FirstOrDefault(m => m.Name == "Unpress") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_unpress"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_unpress_static_delegate) }); + } + + if (efl_input_clickable_button_state_reset_static_delegate == null) + { + efl_input_clickable_button_state_reset_static_delegate = new efl_input_clickable_button_state_reset_delegate(button_state_reset); + } + + if (methods.FirstOrDefault(m => m.Name == "ResetButtonState") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_button_state_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_button_state_reset_static_delegate) }); + } + + if (efl_input_clickable_longpress_abort_static_delegate == null) + { + efl_input_clickable_longpress_abort_static_delegate = new efl_input_clickable_longpress_abort_delegate(longpress_abort); + } + + if (methods.FirstOrDefault(m => m.Name == "LongpressAbort") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_longpress_abort"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_longpress_abort_static_delegate) }); + } + if (efl_ui_autorepeat_initial_timeout_get_static_delegate == null) { efl_ui_autorepeat_initial_timeout_get_static_delegate = new efl_ui_autorepeat_initial_timeout_get_delegate(autorepeat_initial_timeout_get); @@ -760,36 +834,6 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_autorepeat_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_enabled_set_static_delegate) }); } - if (efl_ui_clickable_press_static_delegate == null) - { - efl_ui_clickable_press_static_delegate = new efl_ui_clickable_press_delegate(press); - } - - if (methods.FirstOrDefault(m => m.Name == "Press") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clickable_press"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clickable_press_static_delegate) }); - } - - if (efl_ui_clickable_unpress_static_delegate == null) - { - efl_ui_clickable_unpress_static_delegate = new efl_ui_clickable_unpress_delegate(unpress); - } - - if (methods.FirstOrDefault(m => m.Name == "Unpress") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clickable_unpress"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clickable_unpress_static_delegate) }); - } - - if (efl_ui_clickable_button_state_reset_static_delegate == null) - { - efl_ui_clickable_button_state_reset_static_delegate = new efl_ui_clickable_button_state_reset_delegate(button_state_reset); - } - - if (methods.FirstOrDefault(m => m.Name == "ResetButtonState") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clickable_button_state_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clickable_button_state_reset_static_delegate) }); - } - descs.AddRange(base.GetEoOps(type)); return descs; } @@ -981,24 +1025,24 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore private static efl_text_set_delegate efl_text_set_static_delegate; - - private delegate double efl_ui_autorepeat_initial_timeout_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_clickable_interaction_get_delegate(System.IntPtr obj, System.IntPtr pd); - - public delegate double efl_ui_autorepeat_initial_timeout_get_api_delegate(System.IntPtr obj); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_clickable_interaction_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_initial_timeout_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_autorepeat_initial_timeout_get"); + public static Efl.Eo.FunctionWrapper efl_input_clickable_interaction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_interaction_get"); - private static double autorepeat_initial_timeout_get(System.IntPtr obj, System.IntPtr pd) + private static bool interaction_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function efl_ui_autorepeat_initial_timeout_get was called"); + Eina.Log.Debug("function efl_input_clickable_interaction_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - double _ret_var = default(double); + bool _ret_var = default(bool); try { - _ret_var = ((Button)ws.Target).GetAutorepeatInitialTimeout(); + _ret_var = ((Button)ws.Target).GetInteraction(); } catch (Exception e) { @@ -1011,30 +1055,30 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore } else { - return efl_ui_autorepeat_initial_timeout_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + return efl_input_clickable_interaction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static efl_ui_autorepeat_initial_timeout_get_delegate efl_ui_autorepeat_initial_timeout_get_static_delegate; + private static efl_input_clickable_interaction_get_delegate efl_input_clickable_interaction_get_static_delegate; - private delegate void efl_ui_autorepeat_initial_timeout_set_delegate(System.IntPtr obj, System.IntPtr pd, double t); + private delegate void efl_input_clickable_press_delegate(System.IntPtr obj, System.IntPtr pd, uint button); - public delegate void efl_ui_autorepeat_initial_timeout_set_api_delegate(System.IntPtr obj, double t); + public delegate void efl_input_clickable_press_api_delegate(System.IntPtr obj, uint button); - public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_initial_timeout_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_autorepeat_initial_timeout_set"); + public static Efl.Eo.FunctionWrapper efl_input_clickable_press_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_press"); - private static void autorepeat_initial_timeout_set(System.IntPtr obj, System.IntPtr pd, double t) + private static void press(System.IntPtr obj, System.IntPtr pd, uint button) { - Eina.Log.Debug("function efl_ui_autorepeat_initial_timeout_set was called"); + Eina.Log.Debug("function efl_input_clickable_press was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ((Button)ws.Target).SetAutorepeatInitialTimeout(t); + ((Button)ws.Target).Press(button); } catch (Exception e) { @@ -1046,30 +1090,30 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore } else { - efl_ui_autorepeat_initial_timeout_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), t); + efl_input_clickable_press_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); } } - private static efl_ui_autorepeat_initial_timeout_set_delegate efl_ui_autorepeat_initial_timeout_set_static_delegate; + private static efl_input_clickable_press_delegate efl_input_clickable_press_static_delegate; - private delegate double efl_ui_autorepeat_gap_timeout_get_delegate(System.IntPtr obj, System.IntPtr pd); + private delegate void efl_input_clickable_unpress_delegate(System.IntPtr obj, System.IntPtr pd, uint button); - public delegate double efl_ui_autorepeat_gap_timeout_get_api_delegate(System.IntPtr obj); + public delegate void efl_input_clickable_unpress_api_delegate(System.IntPtr obj, uint button); - public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_gap_timeout_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_autorepeat_gap_timeout_get"); + public static Efl.Eo.FunctionWrapper efl_input_clickable_unpress_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_unpress"); - private static double autorepeat_gap_timeout_get(System.IntPtr obj, System.IntPtr pd) + private static void unpress(System.IntPtr obj, System.IntPtr pd, uint button) { - Eina.Log.Debug("function efl_ui_autorepeat_gap_timeout_get was called"); + Eina.Log.Debug("function efl_input_clickable_unpress was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - double _ret_var = default(double); + try { - _ret_var = ((Button)ws.Target).GetAutorepeatGapTimeout(); + ((Button)ws.Target).Unpress(button); } catch (Exception e) { @@ -1077,35 +1121,69 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; + + } + else + { + efl_input_clickable_unpress_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + } + } + + private static efl_input_clickable_unpress_delegate efl_input_clickable_unpress_static_delegate; + + + private delegate void efl_input_clickable_button_state_reset_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + + + public delegate void efl_input_clickable_button_state_reset_api_delegate(System.IntPtr obj, uint button); + public static Efl.Eo.FunctionWrapper efl_input_clickable_button_state_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_button_state_reset"); + + private static void button_state_reset(System.IntPtr obj, System.IntPtr pd, uint button) + { + Eina.Log.Debug("function efl_input_clickable_button_state_reset was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Button)ws.Target).ResetButtonState(button); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + } else { - return efl_ui_autorepeat_gap_timeout_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + efl_input_clickable_button_state_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); } } - private static efl_ui_autorepeat_gap_timeout_get_delegate efl_ui_autorepeat_gap_timeout_get_static_delegate; + private static efl_input_clickable_button_state_reset_delegate efl_input_clickable_button_state_reset_static_delegate; - private delegate void efl_ui_autorepeat_gap_timeout_set_delegate(System.IntPtr obj, System.IntPtr pd, double t); + private delegate void efl_input_clickable_longpress_abort_delegate(System.IntPtr obj, System.IntPtr pd, uint button); - public delegate void efl_ui_autorepeat_gap_timeout_set_api_delegate(System.IntPtr obj, double t); + public delegate void efl_input_clickable_longpress_abort_api_delegate(System.IntPtr obj, uint button); - public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_gap_timeout_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_autorepeat_gap_timeout_set"); + public static Efl.Eo.FunctionWrapper efl_input_clickable_longpress_abort_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_longpress_abort"); - private static void autorepeat_gap_timeout_set(System.IntPtr obj, System.IntPtr pd, double t) + private static void longpress_abort(System.IntPtr obj, System.IntPtr pd, uint button) { - Eina.Log.Debug("function efl_ui_autorepeat_gap_timeout_set was called"); + Eina.Log.Debug("function efl_input_clickable_longpress_abort was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ((Button)ws.Target).SetAutorepeatGapTimeout(t); + ((Button)ws.Target).LongpressAbort(button); } catch (Exception e) { @@ -1117,30 +1195,30 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore } else { - efl_ui_autorepeat_gap_timeout_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), t); + efl_input_clickable_longpress_abort_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); } } - private static efl_ui_autorepeat_gap_timeout_set_delegate efl_ui_autorepeat_gap_timeout_set_static_delegate; + private static efl_input_clickable_longpress_abort_delegate efl_input_clickable_longpress_abort_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_ui_autorepeat_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate double efl_ui_autorepeat_initial_timeout_get_delegate(System.IntPtr obj, System.IntPtr pd); - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_ui_autorepeat_enabled_get_api_delegate(System.IntPtr obj); + + public delegate double efl_ui_autorepeat_initial_timeout_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_autorepeat_enabled_get"); + public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_initial_timeout_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_autorepeat_initial_timeout_get"); - private static bool autorepeat_enabled_get(System.IntPtr obj, System.IntPtr pd) + private static double autorepeat_initial_timeout_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function efl_ui_autorepeat_enabled_get was called"); + Eina.Log.Debug("function efl_ui_autorepeat_initial_timeout_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - bool _ret_var = default(bool); + double _ret_var = default(double); try { - _ret_var = ((Button)ws.Target).GetAutorepeatEnabled(); + _ret_var = ((Button)ws.Target).GetAutorepeatInitialTimeout(); } catch (Exception e) { @@ -1153,30 +1231,30 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore } else { - return efl_ui_autorepeat_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + return efl_ui_autorepeat_initial_timeout_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static efl_ui_autorepeat_enabled_get_delegate efl_ui_autorepeat_enabled_get_static_delegate; + private static efl_ui_autorepeat_initial_timeout_get_delegate efl_ui_autorepeat_initial_timeout_get_static_delegate; - private delegate void efl_ui_autorepeat_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool on); + private delegate void efl_ui_autorepeat_initial_timeout_set_delegate(System.IntPtr obj, System.IntPtr pd, double t); - public delegate void efl_ui_autorepeat_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool on); + public delegate void efl_ui_autorepeat_initial_timeout_set_api_delegate(System.IntPtr obj, double t); - public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_enabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_autorepeat_enabled_set"); + public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_initial_timeout_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_autorepeat_initial_timeout_set"); - private static void autorepeat_enabled_set(System.IntPtr obj, System.IntPtr pd, bool on) + private static void autorepeat_initial_timeout_set(System.IntPtr obj, System.IntPtr pd, double t) { - Eina.Log.Debug("function efl_ui_autorepeat_enabled_set was called"); + Eina.Log.Debug("function efl_ui_autorepeat_initial_timeout_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ((Button)ws.Target).SetAutorepeatEnabled(on); + ((Button)ws.Target).SetAutorepeatInitialTimeout(t); } catch (Exception e) { @@ -1188,30 +1266,30 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore } else { - efl_ui_autorepeat_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), on); + efl_ui_autorepeat_initial_timeout_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), t); } } - private static efl_ui_autorepeat_enabled_set_delegate efl_ui_autorepeat_enabled_set_static_delegate; + private static efl_ui_autorepeat_initial_timeout_set_delegate efl_ui_autorepeat_initial_timeout_set_static_delegate; - private delegate void efl_ui_clickable_press_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + private delegate double efl_ui_autorepeat_gap_timeout_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_ui_clickable_press_api_delegate(System.IntPtr obj, uint button); + public delegate double efl_ui_autorepeat_gap_timeout_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_clickable_press_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clickable_press"); + public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_gap_timeout_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_autorepeat_gap_timeout_get"); - private static void press(System.IntPtr obj, System.IntPtr pd, uint button) + private static double autorepeat_gap_timeout_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function efl_ui_clickable_press was called"); + Eina.Log.Debug("function efl_ui_autorepeat_gap_timeout_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + double _ret_var = default(double); try { - ((Button)ws.Target).Press(button); + _ret_var = ((Button)ws.Target).GetAutorepeatGapTimeout(); } catch (Exception e) { @@ -1219,34 +1297,35 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + return _ret_var; + } else { - efl_ui_clickable_press_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + return efl_ui_autorepeat_gap_timeout_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static efl_ui_clickable_press_delegate efl_ui_clickable_press_static_delegate; + private static efl_ui_autorepeat_gap_timeout_get_delegate efl_ui_autorepeat_gap_timeout_get_static_delegate; - private delegate void efl_ui_clickable_unpress_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + private delegate void efl_ui_autorepeat_gap_timeout_set_delegate(System.IntPtr obj, System.IntPtr pd, double t); - public delegate void efl_ui_clickable_unpress_api_delegate(System.IntPtr obj, uint button); + public delegate void efl_ui_autorepeat_gap_timeout_set_api_delegate(System.IntPtr obj, double t); - public static Efl.Eo.FunctionWrapper efl_ui_clickable_unpress_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clickable_unpress"); + public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_gap_timeout_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_autorepeat_gap_timeout_set"); - private static void unpress(System.IntPtr obj, System.IntPtr pd, uint button) + private static void autorepeat_gap_timeout_set(System.IntPtr obj, System.IntPtr pd, double t) { - Eina.Log.Debug("function efl_ui_clickable_unpress was called"); + Eina.Log.Debug("function efl_ui_autorepeat_gap_timeout_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ((Button)ws.Target).Unpress(button); + ((Button)ws.Target).SetAutorepeatGapTimeout(t); } catch (Exception e) { @@ -1258,30 +1337,66 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore } else { - efl_ui_clickable_unpress_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + efl_ui_autorepeat_gap_timeout_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), t); + } + } + + private static efl_ui_autorepeat_gap_timeout_set_delegate efl_ui_autorepeat_gap_timeout_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_autorepeat_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_autorepeat_enabled_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_autorepeat_enabled_get"); + + private static bool autorepeat_enabled_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_autorepeat_enabled_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Button)ws.Target).GetAutorepeatEnabled(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_autorepeat_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static efl_ui_clickable_unpress_delegate efl_ui_clickable_unpress_static_delegate; + private static efl_ui_autorepeat_enabled_get_delegate efl_ui_autorepeat_enabled_get_static_delegate; - private delegate void efl_ui_clickable_button_state_reset_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + private delegate void efl_ui_autorepeat_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool on); - public delegate void efl_ui_clickable_button_state_reset_api_delegate(System.IntPtr obj, uint button); + public delegate void efl_ui_autorepeat_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool on); - public static Efl.Eo.FunctionWrapper efl_ui_clickable_button_state_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clickable_button_state_reset"); + public static Efl.Eo.FunctionWrapper efl_ui_autorepeat_enabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_autorepeat_enabled_set"); - private static void button_state_reset(System.IntPtr obj, System.IntPtr pd, uint button) + private static void autorepeat_enabled_set(System.IntPtr obj, System.IntPtr pd, bool on) { - Eina.Log.Debug("function efl_ui_clickable_button_state_reset was called"); + Eina.Log.Debug("function efl_ui_autorepeat_enabled_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ((Button)ws.Target).ResetButtonState(button); + ((Button)ws.Target).SetAutorepeatEnabled(on); } catch (Exception e) { @@ -1293,11 +1408,11 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore } else { - efl_ui_clickable_button_state_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + efl_ui_autorepeat_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), on); } } - private static efl_ui_clickable_button_state_reset_delegate efl_ui_clickable_button_state_reset_static_delegate; + private static efl_ui_autorepeat_enabled_set_delegate efl_ui_autorepeat_enabled_set_static_delegate; #pragma warning restore CA1707, CS1591, SA1300, SA1600 @@ -1307,3 +1422,27 @@ public class Button : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Ui.IAutore } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiButton_ExtensionMethods { + public static Efl.BindableProperty Content(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Button { + return new Efl.BindableProperty("content", fac); + } + + + + public static Efl.BindableProperty AutorepeatInitialTimeout(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Button { + return new Efl.BindableProperty("autorepeat_initial_timeout", fac); + } + + public static Efl.BindableProperty AutorepeatGapTimeout(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Button { + return new Efl.BindableProperty("autorepeat_gap_timeout", fac); + } + + public static Efl.BindableProperty AutorepeatEnabled(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Button { + return new Efl.BindableProperty("autorepeat_enabled", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_button_legacy_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_button_legacy_part.eo.cs old mode 100644 new mode 100755 index 79ab7ba49..e44b85a54 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_button_legacy_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_button_legacy_part.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Elementary button internal part class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.ButtonLegacyPart.NativeMethods] [Efl.Eo.BindingEntity] public class ButtonLegacyPart : Efl.Ui.LayoutPartContent { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class ButtonLegacyPart : Efl.Ui.LayoutPartContent FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected ButtonLegacyPart(ConstructingHandle ch) : base(ch) { @@ -94,3 +97,9 @@ public class ButtonLegacyPart : Efl.Ui.LayoutPartContent } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiButtonLegacyPart_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_caching_factory.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_caching_factory.eo.cs old mode 100644 new mode 100755 index 2957df8e5..b4b7d6808 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_caching_factory.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_caching_factory.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -15,11 +16,12 @@ namespace Ui { /// Creating objects is costly and time consuming, keeping a few on hand for when you next will need them helps a lot. This is what this factory caching infrastructure provides. It will create the object from the class defined on it and set the parent and the model as needed for all created items. The View has to release the Item using the release function of the Factory interface for all of this to work properly. /// /// The cache might decide to flush itself when the application event pause is triggered. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.CachingFactory.NativeMethods] [Efl.Eo.BindingEntity] public class CachingFactory : Efl.Ui.WidgetFactory { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -51,7 +53,8 @@ public class CachingFactory : Efl.Ui.WidgetFactory FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected CachingFactory(ConstructingHandle ch) : base(ch) { @@ -328,3 +331,17 @@ public class CachingFactory : Efl.Ui.WidgetFactory } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiCachingFactory_ExtensionMethods { + public static Efl.BindableProperty MemoryLimit(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.CachingFactory { + return new Efl.BindableProperty("memory_limit", fac); + } + + public static Efl.BindableProperty ItemsLimit(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.CachingFactory { + return new Efl.BindableProperty("items_limit", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_calendar.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_calendar.eo.cs old mode 100644 new mode 100755 index fa72c7324..8d9496a6f --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_calendar.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_calendar.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Ui { /// Calendar widget /// It helps applications to flexibly display a calendar with day of the week, date, year and month. Applications are able to set specific dates to be reported back, when selected, in the smart callbacks of the calendar widget. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Calendar.NativeMethods] [Efl.Eo.BindingEntity] public class Calendar : Efl.Ui.LayoutBase, Efl.Ui.IFormat, Efl.Ui.Focus.IComposition { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -47,7 +49,8 @@ public class Calendar : Efl.Ui.LayoutBase, Efl.Ui.IFormat, Efl.Ui.Focus.IComposi FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Calendar(ConstructingHandle ch) : base(ch) { @@ -107,7 +110,7 @@ public class Calendar : Efl.Ui.LayoutBase, Efl.Ui.IFormat, Efl.Ui.Focus.IComposi } } } - ///Method to raise event ChangedEvt. + /// Method to raise event ChangedEvt. public void OnChangedEvt(EventArgs e) { var key = "_EFL_UI_CALENDAR_EVENT_CHANGED"; @@ -357,6 +360,24 @@ logical_order.Own = false; get { return GetFormatValues(); } set { SetFormatValues(value); } } + /// A user-provided, string used to format the numerical value. + /// For example, "%1.2f meters", "%.0%%" or "%d items". + /// + /// This is the simplest formatting mechanism, working pretty much like printf. + /// + /// Different format specifiers (the character after the %) are available, depending on the type used. Use for simple numerical values and for time and date values. For instance, %d means "integer" when the first type is used, but it means "day of the month as a decimal number" in the second. + /// + /// Pass NULL to disable this mechanism. + /// Formatting string containing regular characters and format specifiers. + public (System.String, Efl.Ui.FormatStringType) FormatString { + get { + System.String _out_kw_string = default(System.String); + Efl.Ui.FormatStringType _out_type = default(Efl.Ui.FormatStringType); + GetFormatString(out _out_kw_string,out _out_type); + return (_out_kw_string,_out_type); + } + set { SetFormatString( value.Item1, value.Item2); } + } /// Set the order of elements that will be used for composition /// Elements of the list can be either an Efl.Ui.Widget, an Efl.Ui.Focus.Object or an Efl.Gfx. /// @@ -1467,6 +1488,45 @@ logical_order.Own = false; } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiCalendar_ExtensionMethods { + public static Efl.BindableProperty FirstDayOfWeek(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Calendar { + return new Efl.BindableProperty("first_day_of_week", fac); + } + + public static Efl.BindableProperty DateMin(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Calendar { + return new Efl.BindableProperty("date_min", fac); + } + + public static Efl.BindableProperty DateMax(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Calendar { + return new Efl.BindableProperty("date_max", fac); + } + + public static Efl.BindableProperty Date(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Calendar { + return new Efl.BindableProperty("date", fac); + } + + public static Efl.BindableProperty FormatFunc(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Calendar { + return new Efl.BindableProperty("format_func", fac); + } + + public static Efl.BindableProperty> FormatValues(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Calendar { + return new Efl.BindableProperty>("format_values", fac); + } + + + public static Efl.BindableProperty> CompositionElements(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Calendar { + return new Efl.BindableProperty>("composition_elements", fac); + } + + public static Efl.BindableProperty LogicalMode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Calendar { + return new Efl.BindableProperty("logical_mode", fac); + } + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Ui { diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_calendar_item.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_calendar_item.eo.cs old mode 100644 new mode 100755 index e173d9cad..6bb671f8c --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_calendar_item.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_calendar_item.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// EFL UI Calendar Item class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.CalendarItem.NativeMethods] [Efl.Eo.BindingEntity] public class CalendarItem : Efl.Object, Efl.Ui.Focus.IObject { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class CalendarItem : Efl.Object, Efl.Ui.Focus.IObject FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected CalendarItem(ConstructingHandle ch) : base(ch) { @@ -63,6 +66,7 @@ public class CalendarItem : Efl.Object, Efl.Ui.Focus.IObject /// Emitted if the focus state has changed. /// (Since EFL 1.22) + /// public event EventHandler FocusChangedEvt { add @@ -102,7 +106,7 @@ public class CalendarItem : Efl.Object, Efl.Ui.Focus.IObject } } } - ///Method to raise event FocusChangedEvt. + /// Method to raise event FocusChangedEvt. public void OnFocusChangedEvt(Efl.Ui.Focus.IObjectFocusChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED"; @@ -125,6 +129,7 @@ public class CalendarItem : Efl.Object, Efl.Ui.Focus.IObject } /// Emitted when a new manager is the parent for this object. /// (Since EFL 1.22) + /// public event EventHandler FocusManagerChangedEvt { add @@ -164,7 +169,7 @@ public class CalendarItem : Efl.Object, Efl.Ui.Focus.IObject } } } - ///Method to raise event FocusManagerChangedEvt. + /// Method to raise event FocusManagerChangedEvt. public void OnFocusManagerChangedEvt(Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_MANAGER_CHANGED"; @@ -180,6 +185,7 @@ public class CalendarItem : Efl.Object, Efl.Ui.Focus.IObject } /// Emitted when a new logical parent should be used. /// (Since EFL 1.22) + /// public event EventHandler FocusParentChangedEvt { add @@ -219,7 +225,7 @@ public class CalendarItem : Efl.Object, Efl.Ui.Focus.IObject } } } - ///Method to raise event FocusParentChangedEvt. + /// Method to raise event FocusParentChangedEvt. public void OnFocusParentChangedEvt(Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_PARENT_CHANGED"; @@ -235,6 +241,7 @@ public class CalendarItem : Efl.Object, Efl.Ui.Focus.IObject } /// Emitted if child_focus has changed. /// (Since EFL 1.22) + /// public event EventHandler ChildFocusChangedEvt { add @@ -274,7 +281,7 @@ public class CalendarItem : Efl.Object, Efl.Ui.Focus.IObject } } } - ///Method to raise event ChildFocusChangedEvt. + /// Method to raise event ChildFocusChangedEvt. public void OnChildFocusChangedEvt(Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_OBJECT_EVENT_CHILD_FOCUS_CHANGED"; @@ -297,6 +304,7 @@ public class CalendarItem : Efl.Object, Efl.Ui.Focus.IObject } /// Emitted if focus geometry of this object has changed. /// (Since EFL 1.22) + /// public event EventHandler FocusGeometryChangedEvt { add @@ -336,7 +344,7 @@ public class CalendarItem : Efl.Object, Efl.Ui.Focus.IObject } } } - ///Method to raise event FocusGeometryChangedEvt. + /// Method to raise event FocusGeometryChangedEvt. public void OnFocusGeometryChangedEvt(Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_GEOMETRY_CHANGED"; @@ -1067,3 +1075,24 @@ public class CalendarItem : Efl.Object, Efl.Ui.Focus.IObject } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiCalendarItem_ExtensionMethods { + public static Efl.BindableProperty DayNumber(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.CalendarItem { + return new Efl.BindableProperty("day_number", fac); + } + + + public static Efl.BindableProperty Focus(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.CalendarItem { + return new Efl.BindableProperty("focus", fac); + } + + + + public static Efl.BindableProperty ChildFocus(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.CalendarItem { + return new Efl.BindableProperty("child_focus", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_check.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_check.eo.cs old mode 100644 new mode 100755 index 9d1a11493..3ad69309a --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_check.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_check.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,19 +10,14 @@ namespace Efl { namespace Ui { -///Event argument wrapper for event . -[Efl.Eo.BindingEntity] -public class CheckSelectedChangedEvt_Args : EventArgs { - ///Actual event payload. - public bool arg { get; set; } -} /// Check widget /// The check widget allows for toggling a value between true and false. Check objects are a lot like radio objects in layout and functionality, except they do not work as a group, but independently, and only toggle the value of a boolean between false and true. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Check.NativeMethods] [Efl.Eo.BindingEntity] -public class Check : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText +public class Check : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.Input.IClickable, Efl.Ui.ISelectable { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -53,7 +49,8 @@ public class Check : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Check(ConstructingHandle ch) : base(ch) { @@ -74,8 +71,10 @@ public class Check : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText { } - /// Emitted each time selected has changed - public event EventHandler SelectedChangedEvt + /// Sent after the content is set or unset using the current content object. + /// (Since EFL 1.22) + /// + public event EventHandler ContentChangedEvt { add { @@ -86,8 +85,8 @@ public class Check : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.CheckSelectedChangedEvt_Args args = new Efl.Ui.CheckSelectedChangedEvt_Args(); - args.arg = Marshal.ReadByte(evt.Info) != 0; + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); try { value?.Invoke(obj, args); @@ -100,7 +99,7 @@ public class Check : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText } }; - string key = "_EFL_UI_CHECK_EVENT_SELECTED_CHANGED"; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -109,15 +108,15 @@ public class Check : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText { lock (eflBindingEventLock) { - string key = "_EFL_UI_CHECK_EVENT_SELECTED_CHANGED"; + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event SelectedChangedEvt. - public void OnSelectedChangedEvt(Efl.Ui.CheckSelectedChangedEvt_Args e) + /// Method to raise event ContentChangedEvt. + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { - var key = "_EFL_UI_CHECK_EVENT_SELECTED_CHANGED"; + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -125,9 +124,65 @@ public class Check : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText return; } - IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + /// Called when object is in sequence pressed and unpressed, by the primary button + /// + public event EventHandler ClickedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Input.IClickableClickedEvt_Args args = new Efl.Input.IClickableClickedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_INPUT_EVENT_CLICKED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_INPUT_EVENT_CLICKED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ClickedEvt. + public void OnClickedEvt(Efl.Input.IClickableClickedEvt_Args e) + { + var key = "_EFL_INPUT_EVENT_CLICKED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); try { + Marshal.StructureToPtr(e.arg, info, false); Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } finally @@ -135,9 +190,9 @@ public class Check : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText Marshal.FreeHGlobal(info); } } - /// Sent after the content is set or unset using the current content object. - /// (Since EFL 1.22) - public event EventHandler ContentChangedEvt + /// Called when object is in sequence pressed and unpressed by any button. The button that triggered the event can be found in the event information. + /// + public event EventHandler ClickedAnyEvt { add { @@ -148,8 +203,8 @@ public class Check : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + Efl.Input.IClickableClickedAnyEvt_Args args = new Efl.Input.IClickableClickedAnyEvt_Args(); + args.arg = evt.Info; try { value?.Invoke(obj, args); @@ -162,7 +217,7 @@ public class Check : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText } }; - string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + string key = "_EFL_INPUT_EVENT_CLICKED_ANY"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -171,15 +226,15 @@ public class Check : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText { lock (eflBindingEventLock) { - string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + string key = "_EFL_INPUT_EVENT_CLICKED_ANY"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ContentChangedEvt. - public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) + /// Method to raise event ClickedAnyEvt. + public void OnClickedAnyEvt(Efl.Input.IClickableClickedAnyEvt_Args e) { - var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + var key = "_EFL_INPUT_EVENT_CLICKED_ANY"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -187,22 +242,265 @@ public class Check : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText return; } - IntPtr info = e.arg.NativeHandle; - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Called when the object is pressed, event_info is the button that got pressed + /// + public event EventHandler PressedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Input.IClickablePressedEvt_Args args = new Efl.Input.IClickablePressedEvt_Args(); + args.arg = Marshal.ReadInt32(evt.Info); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_INPUT_EVENT_PRESSED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_INPUT_EVENT_PRESSED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event PressedEvt. + public void OnPressedEvt(Efl.Input.IClickablePressedEvt_Args e) + { + var key = "_EFL_INPUT_EVENT_PRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Called when the object is no longer pressed, event_info is the button that got pressed + /// + public event EventHandler UnpressedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Input.IClickableUnpressedEvt_Args args = new Efl.Input.IClickableUnpressedEvt_Args(); + args.arg = Marshal.ReadInt32(evt.Info); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_INPUT_EVENT_UNPRESSED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_INPUT_EVENT_UNPRESSED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event UnpressedEvt. + public void OnUnpressedEvt(Efl.Input.IClickableUnpressedEvt_Args e) + { + var key = "_EFL_INPUT_EVENT_UNPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Called when the object receives a long press, event_info is the button that got pressed + /// + public event EventHandler LongpressedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Input.IClickableLongpressedEvt_Args args = new Efl.Input.IClickableLongpressedEvt_Args(); + args.arg = Marshal.ReadInt32(evt.Info); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_INPUT_EVENT_LONGPRESSED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_INPUT_EVENT_LONGPRESSED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event LongpressedEvt. + public void OnLongpressedEvt(Efl.Input.IClickableLongpressedEvt_Args e) + { + var key = "_EFL_INPUT_EVENT_LONGPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Called when the selected state has changed + /// + public event EventHandler SelectedChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.ISelectableSelectedChangedEvt_Args args = new Efl.Ui.ISelectableSelectedChangedEvt_Args(); + args.arg = Marshal.ReadByte(evt.Info) != 0; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_SELECTED_CHANGED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_SELECTED_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event SelectedChangedEvt. + public void OnSelectedChangedEvt(Efl.Ui.ISelectableSelectedChangedEvt_Args e) + { + var key = "_EFL_UI_EVENT_SELECTED_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } - /// The on/off state of the check object. - /// true if the check object is selected, false otherwise - virtual public bool GetSelected() { - var _ret_var = Efl.Ui.Check.NativeMethods.efl_ui_check_selected_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// The on/off state of the check object. - /// true if the check object is selected, false otherwise - virtual public void SetSelected(bool value) { - Efl.Ui.Check.NativeMethods.efl_ui_check_selected_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),value); - Eina.Error.RaiseIfUnhandledException(); - } /// Sub-object currently set as this object's single content. /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) @@ -249,12 +547,53 @@ public class Check : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),text); Eina.Error.RaiseIfUnhandledException(); } - /// The on/off state of the check object. - /// true if the check object is selected, false otherwise - public bool Selected { - get { return GetSelected(); } - set { SetSelected(value); } - } + /// This returns true if the given object is currently in event emission + virtual public bool GetInteraction() { + var _ret_var = Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_interaction_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Change internal states that a button got pressed. + /// When the button is already pressed, this is silently ignored. + /// The number of the button. FIXME ensure to have the right interval of possible input + virtual public void Press(uint button) { + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_press_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Eina.Error.RaiseIfUnhandledException(); + } + /// Change internal states that a button got unpressed. + /// When the button is not pressed, this is silently ignored. + /// The number of the button. FIXME ensure to have the right interval of possible input + virtual public void Unpress(uint button) { + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_unpress_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Eina.Error.RaiseIfUnhandledException(); + } + /// This aborts the internal state after a press call. + /// This will stop the timer for longpress. And set the state of the clickable mixin back into the unpressed state. + virtual public void ResetButtonState(uint button) { + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_button_state_reset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Eina.Error.RaiseIfUnhandledException(); + } + /// This aborts ongoing longpress event. + /// That is, this will stop the timer for longpress. + virtual public void LongpressAbort(uint button) { + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_longpress_abort_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Eina.Error.RaiseIfUnhandledException(); + } + /// The selected state of this object + /// A change to this property emits the changed event. + /// The selected state of this object + virtual public bool GetSelected() { + var _ret_var = Efl.Ui.ISelectableConcrete.NativeMethods.efl_ui_selectable_selected_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// The selected state of this object + /// A change to this property emits the changed event. + /// The selected state of this object + virtual public void SetSelected(bool selected) { + Efl.Ui.ISelectableConcrete.NativeMethods.efl_ui_selectable_selected_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),selected); + Eina.Error.RaiseIfUnhandledException(); + } /// Sub-object currently set as this object's single content. /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) @@ -263,6 +602,17 @@ public class Check : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText get { return GetContent(); } set { SetContent(value); } } + /// This returns true if the given object is currently in event emission + public bool Interaction { + get { return GetInteraction(); } + } + /// The selected state of this object + /// A change to this property emits the changed event. + /// The selected state of this object + public bool Selected { + get { return GetSelected(); } + set { SetSelected(value); } + } private static IntPtr GetEflClassStatic() { return Efl.Ui.Check.efl_ui_check_class_get(); @@ -279,106 +629,335 @@ public class Check : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText var descs = new System.Collections.Generic.List(); var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_ui_check_selected_get_static_delegate == null) - { - efl_ui_check_selected_get_static_delegate = new efl_ui_check_selected_get_delegate(selected_get); - } + if (efl_content_get_static_delegate == null) + { + efl_content_get_static_delegate = new efl_content_get_delegate(content_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); + } + + if (efl_content_set_static_delegate == null) + { + efl_content_set_static_delegate = new efl_content_set_delegate(content_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); + } + + if (efl_content_unset_static_delegate == null) + { + efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); + } + + if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + } + + if (efl_text_get_static_delegate == null) + { + efl_text_get_static_delegate = new efl_text_get_delegate(text_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); + } + + if (efl_text_set_static_delegate == null) + { + efl_text_set_static_delegate = new efl_text_set_delegate(text_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); + } + + if (efl_input_clickable_interaction_get_static_delegate == null) + { + efl_input_clickable_interaction_get_static_delegate = new efl_input_clickable_interaction_get_delegate(interaction_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetInteraction") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_interaction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_interaction_get_static_delegate) }); + } + + if (efl_input_clickable_press_static_delegate == null) + { + efl_input_clickable_press_static_delegate = new efl_input_clickable_press_delegate(press); + } + + if (methods.FirstOrDefault(m => m.Name == "Press") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_press"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_press_static_delegate) }); + } + + if (efl_input_clickable_unpress_static_delegate == null) + { + efl_input_clickable_unpress_static_delegate = new efl_input_clickable_unpress_delegate(unpress); + } + + if (methods.FirstOrDefault(m => m.Name == "Unpress") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_unpress"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_unpress_static_delegate) }); + } + + if (efl_input_clickable_button_state_reset_static_delegate == null) + { + efl_input_clickable_button_state_reset_static_delegate = new efl_input_clickable_button_state_reset_delegate(button_state_reset); + } + + if (methods.FirstOrDefault(m => m.Name == "ResetButtonState") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_button_state_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_button_state_reset_static_delegate) }); + } + + if (efl_input_clickable_longpress_abort_static_delegate == null) + { + efl_input_clickable_longpress_abort_static_delegate = new efl_input_clickable_longpress_abort_delegate(longpress_abort); + } + + if (methods.FirstOrDefault(m => m.Name == "LongpressAbort") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_longpress_abort"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_longpress_abort_static_delegate) }); + } + + if (efl_ui_selectable_selected_get_static_delegate == null) + { + efl_ui_selectable_selected_get_static_delegate = new efl_ui_selectable_selected_get_delegate(selected_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetSelected") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_selectable_selected_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selectable_selected_get_static_delegate) }); + } + + if (efl_ui_selectable_selected_set_static_delegate == null) + { + efl_ui_selectable_selected_set_static_delegate = new efl_ui_selectable_selected_set_delegate(selected_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetSelected") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_selectable_selected_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selectable_selected_set_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Check.efl_ui_check_class_get(); + } + + #pragma warning disable CA1707, CS1591, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Check)ws.Target).GetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; - if (methods.FirstOrDefault(m => m.Name == "GetSelected") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_check_selected_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_check_selected_get_static_delegate) }); } - - if (efl_ui_check_selected_set_static_delegate == null) + else { - efl_ui_check_selected_set_static_delegate = new efl_ui_check_selected_set_delegate(selected_set); + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } - if (methods.FirstOrDefault(m => m.Name == "SetSelected") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_check_selected_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_check_selected_set_static_delegate) }); - } + private static efl_content_get_delegate efl_content_get_static_delegate; - if (efl_content_get_static_delegate == null) - { - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - } + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); - } + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); - if (efl_content_set_static_delegate == null) + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + { + Eina.Log.Debug("function efl_content_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) { - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - } + bool _ret_var = default(bool); + try + { + _ret_var = ((Check)ws.Target).SetContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) + return _ret_var; + + } + else { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); } + } - if (efl_content_unset_static_delegate == null) + private static efl_content_set_delegate efl_content_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_content_unset was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) { - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - } + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Check)ws.Target).UnsetContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) + return _ret_var; + + } + else { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } - if (efl_text_get_static_delegate == null) + private static efl_content_unset_delegate efl_content_unset_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); + + private static System.String text_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) { - efl_text_get_static_delegate = new efl_text_get_delegate(text_get); - } + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Check)ws.Target).GetText(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - if (methods.FirstOrDefault(m => m.Name == "GetText") != null) + return _ret_var; + + } + else { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); + return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } - if (efl_text_set_static_delegate == null) + private static efl_text_get_delegate efl_text_get_static_delegate; + + + private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + + public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); + + private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) + { + Eina.Log.Debug("function efl_text_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) { - efl_text_set_static_delegate = new efl_text_set_delegate(text_set); - } + + try + { + ((Check)ws.Target).SetText(text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - if (methods.FirstOrDefault(m => m.Name == "SetText") != null) + + } + else { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); + efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); } - - descs.AddRange(base.GetEoOps(type)); - return descs; - } - /// Returns the Eo class for the native methods of this class. - /// The native class pointer. - public override IntPtr GetEflClass() - { - return Efl.Ui.Check.efl_ui_check_class_get(); } - #pragma warning disable CA1707, CS1591, SA1300, SA1600 + private static efl_text_set_delegate efl_text_set_static_delegate; [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_ui_check_selected_get_delegate(System.IntPtr obj, System.IntPtr pd); + private delegate bool efl_input_clickable_interaction_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_ui_check_selected_get_api_delegate(System.IntPtr obj); + public delegate bool efl_input_clickable_interaction_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_check_selected_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_check_selected_get"); + public static Efl.Eo.FunctionWrapper efl_input_clickable_interaction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_interaction_get"); - private static bool selected_get(System.IntPtr obj, System.IntPtr pd) + private static bool interaction_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function efl_ui_check_selected_get was called"); + Eina.Log.Debug("function efl_input_clickable_interaction_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { - _ret_var = ((Check)ws.Target).GetSelected(); + _ret_var = ((Check)ws.Target).GetInteraction(); } catch (Exception e) { @@ -391,30 +970,30 @@ public class Check : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText } else { - return efl_ui_check_selected_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + return efl_input_clickable_interaction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static efl_ui_check_selected_get_delegate efl_ui_check_selected_get_static_delegate; + private static efl_input_clickable_interaction_get_delegate efl_input_clickable_interaction_get_static_delegate; - private delegate void efl_ui_check_selected_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool value); + private delegate void efl_input_clickable_press_delegate(System.IntPtr obj, System.IntPtr pd, uint button); - public delegate void efl_ui_check_selected_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool value); + public delegate void efl_input_clickable_press_api_delegate(System.IntPtr obj, uint button); - public static Efl.Eo.FunctionWrapper efl_ui_check_selected_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_check_selected_set"); + public static Efl.Eo.FunctionWrapper efl_input_clickable_press_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_press"); - private static void selected_set(System.IntPtr obj, System.IntPtr pd, bool value) + private static void press(System.IntPtr obj, System.IntPtr pd, uint button) { - Eina.Log.Debug("function efl_ui_check_selected_set was called"); + Eina.Log.Debug("function efl_input_clickable_press was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ((Check)ws.Target).SetSelected(value); + ((Check)ws.Target).Press(button); } catch (Exception e) { @@ -426,30 +1005,30 @@ public class Check : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText } else { - efl_ui_check_selected_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), value); + efl_input_clickable_press_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); } } - private static efl_ui_check_selected_set_delegate efl_ui_check_selected_set_static_delegate; + private static efl_input_clickable_press_delegate efl_input_clickable_press_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_input_clickable_unpress_delegate(System.IntPtr obj, System.IntPtr pd, uint button); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); + + public delegate void efl_input_clickable_unpress_api_delegate(System.IntPtr obj, uint button); - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); + public static Efl.Eo.FunctionWrapper efl_input_clickable_unpress_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_unpress"); - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) + private static void unpress(System.IntPtr obj, System.IntPtr pd, uint button) { - Eina.Log.Debug("function efl_content_get was called"); + Eina.Log.Debug("function efl_input_clickable_unpress was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try { - _ret_var = ((Check)ws.Target).GetContent(); + ((Check)ws.Target).Unpress(button); } catch (Exception e) { @@ -457,35 +1036,34 @@ public class Check : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - + } else { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + efl_input_clickable_unpress_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); } } - private static efl_content_get_delegate efl_content_get_static_delegate; + private static efl_input_clickable_unpress_delegate efl_input_clickable_unpress_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + private delegate void efl_input_clickable_button_state_reset_delegate(System.IntPtr obj, System.IntPtr pd, uint button); - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); + + public delegate void efl_input_clickable_button_state_reset_api_delegate(System.IntPtr obj, uint button); - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); + public static Efl.Eo.FunctionWrapper efl_input_clickable_button_state_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_button_state_reset"); - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) + private static void button_state_reset(System.IntPtr obj, System.IntPtr pd, uint button) { - Eina.Log.Debug("function efl_content_set was called"); + Eina.Log.Debug("function efl_input_clickable_button_state_reset was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - bool _ret_var = default(bool); + try { - _ret_var = ((Check)ws.Target).SetContent(content); + ((Check)ws.Target).ResetButtonState(button); } catch (Exception e) { @@ -493,35 +1071,34 @@ public class Check : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - + } else { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + efl_input_clickable_button_state_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); } } - private static efl_content_set_delegate efl_content_set_static_delegate; + private static efl_input_clickable_button_state_reset_delegate efl_input_clickable_button_state_reset_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_input_clickable_longpress_abort_delegate(System.IntPtr obj, System.IntPtr pd, uint button); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); + + public delegate void efl_input_clickable_longpress_abort_api_delegate(System.IntPtr obj, uint button); - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); + public static Efl.Eo.FunctionWrapper efl_input_clickable_longpress_abort_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_longpress_abort"); - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) + private static void longpress_abort(System.IntPtr obj, System.IntPtr pd, uint button) { - Eina.Log.Debug("function efl_content_unset was called"); + Eina.Log.Debug("function efl_input_clickable_longpress_abort was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try { - _ret_var = ((Check)ws.Target).UnsetContent(); + ((Check)ws.Target).LongpressAbort(button); } catch (Exception e) { @@ -529,35 +1106,34 @@ public class Check : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - + } else { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + efl_input_clickable_longpress_abort_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); } } - private static efl_content_unset_delegate efl_content_unset_static_delegate; + private static efl_input_clickable_longpress_abort_delegate efl_input_clickable_longpress_abort_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_selectable_selected_get_delegate(System.IntPtr obj, System.IntPtr pd); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_selectable_selected_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); + public static Efl.Eo.FunctionWrapper efl_ui_selectable_selected_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_selectable_selected_get"); - private static System.String text_get(System.IntPtr obj, System.IntPtr pd) + private static bool selected_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function efl_text_get was called"); + Eina.Log.Debug("function efl_ui_selectable_selected_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - System.String _ret_var = default(System.String); + bool _ret_var = default(bool); try { - _ret_var = ((Check)ws.Target).GetText(); + _ret_var = ((Check)ws.Target).GetSelected(); } catch (Exception e) { @@ -570,30 +1146,30 @@ public class Check : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText } else { - return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + return efl_ui_selectable_selected_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static efl_text_get_delegate efl_text_get_static_delegate; + private static efl_ui_selectable_selected_get_delegate efl_ui_selectable_selected_get_static_delegate; - private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + private delegate void efl_ui_selectable_selected_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool selected); - public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + public delegate void efl_ui_selectable_selected_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool selected); - public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); + public static Efl.Eo.FunctionWrapper efl_ui_selectable_selected_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_selectable_selected_set"); - private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) + private static void selected_set(System.IntPtr obj, System.IntPtr pd, bool selected) { - Eina.Log.Debug("function efl_text_set was called"); + Eina.Log.Debug("function efl_ui_selectable_selected_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ((Check)ws.Target).SetText(text); + ((Check)ws.Target).SetSelected(selected); } catch (Exception e) { @@ -605,11 +1181,11 @@ public class Check : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText } else { - efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); + efl_ui_selectable_selected_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), selected); } } - private static efl_text_set_delegate efl_text_set_static_delegate; + private static efl_ui_selectable_selected_set_delegate efl_ui_selectable_selected_set_static_delegate; #pragma warning restore CA1707, CS1591, SA1300, SA1600 @@ -619,3 +1195,19 @@ public class Check : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiCheck_ExtensionMethods { + public static Efl.BindableProperty Content(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Check { + return new Efl.BindableProperty("content", fac); + } + + + + public static Efl.BindableProperty Selected(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Check { + return new Efl.BindableProperty("selected", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_check_legacy_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_check_legacy_part.eo.cs old mode 100644 new mode 100755 index 833f01511..427f511de --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_check_legacy_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_check_legacy_part.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Elementary check internal part class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.CheckLegacyPart.NativeMethods] [Efl.Eo.BindingEntity] public class CheckLegacyPart : Efl.Ui.LayoutPartContent { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class CheckLegacyPart : Efl.Ui.LayoutPartContent FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected CheckLegacyPart(ConstructingHandle ch) : base(ch) { @@ -94,3 +97,9 @@ public class CheckLegacyPart : Efl.Ui.LayoutPartContent } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiCheckLegacyPart_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_clickable.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_clickable.eo.cs deleted file mode 100644 index 8f954b18b..000000000 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_clickable.eo.cs +++ /dev/null @@ -1,671 +0,0 @@ -#pragma warning disable CS1591 -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.ComponentModel; -namespace Efl { - -namespace Ui { - -/// Efl UI clickable interface -[Efl.Ui.IClickableConcrete.NativeMethods] -[Efl.Eo.BindingEntity] -public interface IClickable : - Efl.Eo.IWrapper, IDisposable -{ - /// Change internal states that a button got pressed. -/// When the button is already pressed, this is silently ignored. -/// The number of the button. FIXME ensure to have the right interval of possible input -void Press(uint button); - /// Change internal states that a button got unpressed. -/// When the button is not pressed, this is silently ignored. -/// The number of the button. FIXME ensure to have the right interval of possible input -void Unpress(uint button); - /// This aborts the internal state after a press call. -/// This will stop the timer for longpress. And set the state of the clickable mixin back into the unpressed state. -void ResetButtonState(uint button); - /// Called when object is in sequence pressed and unpressed, by the primary button - event EventHandler ClickedEvt; - /// Called when object is in sequence pressed and unpressed by any button. The button that triggered the event can be found in the event information. - event EventHandler ClickedAnyEvt; - /// Called when the object is pressed, event_info is the button that got pressed - event EventHandler PressedEvt; - /// Called when the object is no longer pressed, event_info is the button that got pressed - event EventHandler UnpressedEvt; - /// Called when the object receives a long press, event_info is the button that got pressed - event EventHandler LongpressedEvt; -} -///Event argument wrapper for event . -[Efl.Eo.BindingEntity] -public class IClickableClickedEvt_Args : EventArgs { - ///Actual event payload. - public Efl.Ui.ClickableClicked arg { get; set; } -} -///Event argument wrapper for event . -[Efl.Eo.BindingEntity] -public class IClickableClickedAnyEvt_Args : EventArgs { - ///Actual event payload. - public Efl.Ui.ClickableClicked arg { get; set; } -} -///Event argument wrapper for event . -[Efl.Eo.BindingEntity] -public class IClickablePressedEvt_Args : EventArgs { - ///Actual event payload. - public int arg { get; set; } -} -///Event argument wrapper for event . -[Efl.Eo.BindingEntity] -public class IClickableUnpressedEvt_Args : EventArgs { - ///Actual event payload. - public int arg { get; set; } -} -///Event argument wrapper for event . -[Efl.Eo.BindingEntity] -public class IClickableLongpressedEvt_Args : EventArgs { - ///Actual event payload. - public int arg { get; set; } -} -/// Efl UI clickable interface -sealed public class IClickableConcrete : - Efl.Eo.EoWrapper - , IClickable - -{ - ///Pointer to the native class description. - public override System.IntPtr NativeClass - { - get - { - if (((object)this).GetType() == typeof(IClickableConcrete)) - { - return GetEflClassStatic(); - } - else - { - return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; - } - } - } - - /// Constructor to be used when objects are expected to be constructed from native code. - /// Tag struct storing the native handle of the object being constructed. - private IClickableConcrete(ConstructingHandle ch) : base(ch) - { - } - - [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - efl_ui_clickable_mixin_get(); - /// Initializes a new instance of the class. - /// Internal usage: This is used when interacting with C code and should not be used directly. - /// The native pointer to be wrapped. - private IClickableConcrete(Efl.Eo.Globals.WrappingHandle wh) : base(wh) - { - } - - /// Called when object is in sequence pressed and unpressed, by the primary button - public event EventHandler ClickedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.IClickableClickedEvt_Args args = new Efl.Ui.IClickableClickedEvt_Args(); - args.arg = evt.Info; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_CLICKED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_CLICKED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ClickedEvt. - public void OnClickedEvt(Efl.Ui.IClickableClickedEvt_Args e) - { - var key = "_EFL_UI_EVENT_CLICKED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); - try - { - Marshal.StructureToPtr(e.arg, info, false); - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - finally - { - Marshal.FreeHGlobal(info); - } - } - /// Called when object is in sequence pressed and unpressed by any button. The button that triggered the event can be found in the event information. - public event EventHandler ClickedAnyEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.IClickableClickedAnyEvt_Args args = new Efl.Ui.IClickableClickedAnyEvt_Args(); - args.arg = evt.Info; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_CLICKED_ANY"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_CLICKED_ANY"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ClickedAnyEvt. - public void OnClickedAnyEvt(Efl.Ui.IClickableClickedAnyEvt_Args e) - { - var key = "_EFL_UI_EVENT_CLICKED_ANY"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); - try - { - Marshal.StructureToPtr(e.arg, info, false); - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - finally - { - Marshal.FreeHGlobal(info); - } - } - /// Called when the object is pressed, event_info is the button that got pressed - public event EventHandler PressedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); - args.arg = Marshal.ReadInt32(evt.Info); - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_PRESSED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_PRESSED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event PressedEvt. - public void OnPressedEvt(Efl.Ui.IClickablePressedEvt_Args e) - { - var key = "_EFL_UI_EVENT_PRESSED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); - try - { - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - finally - { - Marshal.FreeHGlobal(info); - } - } - /// Called when the object is no longer pressed, event_info is the button that got pressed - public event EventHandler UnpressedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); - args.arg = Marshal.ReadInt32(evt.Info); - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_UNPRESSED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_UNPRESSED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event UnpressedEvt. - public void OnUnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) - { - var key = "_EFL_UI_EVENT_UNPRESSED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); - try - { - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - finally - { - Marshal.FreeHGlobal(info); - } - } - /// Called when the object receives a long press, event_info is the button that got pressed - public event EventHandler LongpressedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); - args.arg = Marshal.ReadInt32(evt.Info); - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_LONGPRESSED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_LONGPRESSED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event LongpressedEvt. - public void OnLongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) - { - var key = "_EFL_UI_EVENT_LONGPRESSED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); - try - { - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - finally - { - Marshal.FreeHGlobal(info); - } - } - /// Change internal states that a button got pressed. - /// When the button is already pressed, this is silently ignored. - /// The number of the button. FIXME ensure to have the right interval of possible input - public void Press(uint button) { - Efl.Ui.IClickableConcrete.NativeMethods.efl_ui_clickable_press_ptr.Value.Delegate(this.NativeHandle,button); - Eina.Error.RaiseIfUnhandledException(); - } - /// Change internal states that a button got unpressed. - /// When the button is not pressed, this is silently ignored. - /// The number of the button. FIXME ensure to have the right interval of possible input - public void Unpress(uint button) { - Efl.Ui.IClickableConcrete.NativeMethods.efl_ui_clickable_unpress_ptr.Value.Delegate(this.NativeHandle,button); - Eina.Error.RaiseIfUnhandledException(); - } - /// This aborts the internal state after a press call. - /// This will stop the timer for longpress. And set the state of the clickable mixin back into the unpressed state. - public void ResetButtonState(uint button) { - Efl.Ui.IClickableConcrete.NativeMethods.efl_ui_clickable_button_state_reset_ptr.Value.Delegate(this.NativeHandle,button); - Eina.Error.RaiseIfUnhandledException(); - } - private static IntPtr GetEflClassStatic() - { - return Efl.Ui.IClickableConcrete.efl_ui_clickable_mixin_get(); - } - /// Wrapper for native methods and virtual method delegates. - /// For internal use by generated code only. - public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods - { - private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); - /// Gets the list of Eo operations to override. - /// The list of Eo operations to be overload. - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - - if (efl_ui_clickable_press_static_delegate == null) - { - efl_ui_clickable_press_static_delegate = new efl_ui_clickable_press_delegate(press); - } - - if (methods.FirstOrDefault(m => m.Name == "Press") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clickable_press"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clickable_press_static_delegate) }); - } - - if (efl_ui_clickable_unpress_static_delegate == null) - { - efl_ui_clickable_unpress_static_delegate = new efl_ui_clickable_unpress_delegate(unpress); - } - - if (methods.FirstOrDefault(m => m.Name == "Unpress") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clickable_unpress"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clickable_unpress_static_delegate) }); - } - - if (efl_ui_clickable_button_state_reset_static_delegate == null) - { - efl_ui_clickable_button_state_reset_static_delegate = new efl_ui_clickable_button_state_reset_delegate(button_state_reset); - } - - if (methods.FirstOrDefault(m => m.Name == "ResetButtonState") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clickable_button_state_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clickable_button_state_reset_static_delegate) }); - } - - return descs; - } - /// Returns the Eo class for the native methods of this class. - /// The native class pointer. - public override IntPtr GetEflClass() - { - return Efl.Ui.IClickableConcrete.efl_ui_clickable_mixin_get(); - } - - #pragma warning disable CA1707, CS1591, SA1300, SA1600 - - - private delegate void efl_ui_clickable_press_delegate(System.IntPtr obj, System.IntPtr pd, uint button); - - - public delegate void efl_ui_clickable_press_api_delegate(System.IntPtr obj, uint button); - - public static Efl.Eo.FunctionWrapper efl_ui_clickable_press_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clickable_press"); - - private static void press(System.IntPtr obj, System.IntPtr pd, uint button) - { - Eina.Log.Debug("function efl_ui_clickable_press was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IClickable)ws.Target).Press(button); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_clickable_press_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); - } - } - - private static efl_ui_clickable_press_delegate efl_ui_clickable_press_static_delegate; - - - private delegate void efl_ui_clickable_unpress_delegate(System.IntPtr obj, System.IntPtr pd, uint button); - - - public delegate void efl_ui_clickable_unpress_api_delegate(System.IntPtr obj, uint button); - - public static Efl.Eo.FunctionWrapper efl_ui_clickable_unpress_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clickable_unpress"); - - private static void unpress(System.IntPtr obj, System.IntPtr pd, uint button) - { - Eina.Log.Debug("function efl_ui_clickable_unpress was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IClickable)ws.Target).Unpress(button); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_clickable_unpress_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); - } - } - - private static efl_ui_clickable_unpress_delegate efl_ui_clickable_unpress_static_delegate; - - - private delegate void efl_ui_clickable_button_state_reset_delegate(System.IntPtr obj, System.IntPtr pd, uint button); - - - public delegate void efl_ui_clickable_button_state_reset_api_delegate(System.IntPtr obj, uint button); - - public static Efl.Eo.FunctionWrapper efl_ui_clickable_button_state_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clickable_button_state_reset"); - - private static void button_state_reset(System.IntPtr obj, System.IntPtr pd, uint button) - { - Eina.Log.Debug("function efl_ui_clickable_button_state_reset was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IClickable)ws.Target).ResetButtonState(button); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_clickable_button_state_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); - } - } - - private static efl_ui_clickable_button_state_reset_delegate efl_ui_clickable_button_state_reset_static_delegate; - - #pragma warning restore CA1707, CS1591, SA1300, SA1600 - -} -} -} - -} - -namespace Efl { - -namespace Ui { - -/// A struct that expresses a click in elementary. -[StructLayout(LayoutKind.Sequential)] -[Efl.Eo.BindingEntity] -public struct ClickableClicked -{ - /// The amount of how often the clicked event was repeated in a certain amount of time - public int Repeated; - /// The Button that is pressed - public int Button; - ///Constructor for ClickableClicked. - public ClickableClicked( - int Repeated = default(int), - int Button = default(int) ) - { - this.Repeated = Repeated; - this.Button = Button; - } - - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. - public static implicit operator ClickableClicked(IntPtr ptr) - { - var tmp = (ClickableClicked.NativeStruct)Marshal.PtrToStructure(ptr, typeof(ClickableClicked.NativeStruct)); - return tmp; - } - - #pragma warning disable CS1591 - - ///Internal wrapper for struct ClickableClicked. - [StructLayout(LayoutKind.Sequential)] - public struct NativeStruct - { - - public int Repeated; - - public int Button; - ///Implicit conversion to the internal/marshalling representation. - public static implicit operator ClickableClicked.NativeStruct(ClickableClicked _external_struct) - { - var _internal_struct = new ClickableClicked.NativeStruct(); - _internal_struct.Repeated = _external_struct.Repeated; - _internal_struct.Button = _external_struct.Button; - return _internal_struct; - } - - ///Implicit conversion to the managed representation. - public static implicit operator ClickableClicked(ClickableClicked.NativeStruct _internal_struct) - { - var _external_struct = new ClickableClicked(); - _external_struct.Repeated = _internal_struct.Repeated; - _external_struct.Button = _internal_struct.Button; - return _external_struct; - } - - } - - #pragma warning restore CS1591 - -} - -} - -} - diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_clock.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_clock.eo.cs old mode 100644 new mode 100755 index 3b35f4831..f9b4e137d --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_clock.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_clock.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Efl UI clock class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Clock.NativeMethods] [Efl.Eo.BindingEntity] public class Clock : Efl.Ui.LayoutBase { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +48,8 @@ public class Clock : Efl.Ui.LayoutBase FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Clock(ConstructingHandle ch) : base(ch) { @@ -106,7 +109,7 @@ public class Clock : Efl.Ui.LayoutBase } } } - ///Method to raise event ChangedEvt. + /// Method to raise event ChangedEvt. public void OnChangedEvt(EventArgs e) { var key = "_EFL_UI_CLOCK_EVENT_CHANGED"; @@ -1150,6 +1153,38 @@ public class Clock : Efl.Ui.LayoutBase } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiClock_ExtensionMethods { + public static Efl.BindableProperty Format(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Clock { + return new Efl.BindableProperty("format", fac); + } + + public static Efl.BindableProperty Pause(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Clock { + return new Efl.BindableProperty("pause", fac); + } + + public static Efl.BindableProperty EditMode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Clock { + return new Efl.BindableProperty("edit_mode", fac); + } + + public static Efl.BindableProperty TimeMin(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Clock { + return new Efl.BindableProperty("time_min", fac); + } + + public static Efl.BindableProperty TimeMax(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Clock { + return new Efl.BindableProperty("time_max", fac); + } + + public static Efl.BindableProperty Time(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Clock { + return new Efl.BindableProperty("time", fac); + } + + + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Ui { diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_collection.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_collection.eo.cs new file mode 100755 index 000000000..4d41f0441 --- /dev/null +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_collection.eo.cs @@ -0,0 +1,6292 @@ +#define EFL_BETA +#pragma warning disable CS1591 +using System; +using System.Runtime.InteropServices; +using System.Collections.Generic; +using System.Linq; +using System.Threading; +using System.ComponentModel; +namespace Efl { + +namespace Ui { + +/// Event argument wrapper for event . +[Efl.Eo.BindingEntity] +public class CollectionItemPressedEvt_Args : EventArgs { + /// Actual event payload. + /// A press event occurred over an item. + public Efl.Ui.Item arg { get; set; } +} +/// Event argument wrapper for event . +[Efl.Eo.BindingEntity] +public class CollectionItemUnpressedEvt_Args : EventArgs { + /// Actual event payload. + /// A unpress event occurred over an item. + public Efl.Ui.Item arg { get; set; } +} +/// Event argument wrapper for event . +[Efl.Eo.BindingEntity] +public class CollectionItemLongpressedEvt_Args : EventArgs { + /// Actual event payload. + /// A longpressed event occurred over an item. + public Efl.Ui.Item arg { get; set; } +} +/// Event argument wrapper for event . +[Efl.Eo.BindingEntity] +public class CollectionItemClickedEvt_Args : EventArgs { + /// Actual event payload. + /// A clicked event occurred over an item. + public Efl.Ui.Item arg { get; set; } +} +/// Event argument wrapper for event . +[Efl.Eo.BindingEntity] +public class CollectionItemClickedAnyEvt_Args : EventArgs { + /// Actual event payload. + /// A clicked,any event occurred over an item. + public Efl.Ui.Item arg { get; set; } +} +/// This widget displays a list of items in an arrangement controlled by an external position_manager object. By using different position_manager objects this widget can show lists of items or two-dimensional grids of items, for example. +/// Items inside this widget can be selected according to the select_mode policy, and retrieved with selected_items_get. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +[Efl.Ui.Collection.NativeMethods] +[Efl.Eo.BindingEntity] +public class Collection : Efl.Ui.LayoutBase, Efl.IPack, Efl.IPackLayout, Efl.IPackLinear, Efl.Ui.ILayoutOrientable, Efl.Ui.IMultiSelectable, Efl.Ui.IScrollable, Efl.Ui.IScrollableInteractive, Efl.Ui.IScrollbar, Efl.Ui.ISingleSelectable, Efl.Ui.IWidgetFocusManager, Efl.Ui.Focus.IManager, Efl.Ui.Focus.IManagerSub +{ + /// Pointer to the native class description. + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Collection)) + { + return GetEflClassStatic(); + } + else + { + return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } + } + } + + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr + efl_ui_collection_class_get(); + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See + public Collection(Efl.Object parent + , System.String style = null) : base(efl_ui_collection_class_get(), parent) + { + if (Efl.Eo.Globals.ParamHelperCheck(style)) + { + SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + + FinishInstantiation(); + } + + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. + /// Tag struct storing the native handle of the object being constructed. + protected Collection(ConstructingHandle ch) : base(ch) + { + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. + protected Collection(Efl.Eo.Globals.WrappingHandle wh) : base(wh) + { + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The Efl.Object parent of this instance. + protected Collection(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) + { + } + + /// A press event occurred over an item. + /// + public event EventHandler ItemPressedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.CollectionItemPressedEvt_Args args = new Efl.Ui.CollectionItemPressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Item); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_ITEM_PRESSED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_ITEM_PRESSED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ItemPressedEvt. + public void OnItemPressedEvt(Efl.Ui.CollectionItemPressedEvt_Args e) + { + var key = "_EFL_UI_EVENT_ITEM_PRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + /// A unpress event occurred over an item. + /// + public event EventHandler ItemUnpressedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.CollectionItemUnpressedEvt_Args args = new Efl.Ui.CollectionItemUnpressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Item); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_ITEM_UNPRESSED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_ITEM_UNPRESSED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ItemUnpressedEvt. + public void OnItemUnpressedEvt(Efl.Ui.CollectionItemUnpressedEvt_Args e) + { + var key = "_EFL_UI_EVENT_ITEM_UNPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + /// A longpressed event occurred over an item. + /// + public event EventHandler ItemLongpressedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.CollectionItemLongpressedEvt_Args args = new Efl.Ui.CollectionItemLongpressedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Item); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_ITEM_LONGPRESSED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_ITEM_LONGPRESSED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ItemLongpressedEvt. + public void OnItemLongpressedEvt(Efl.Ui.CollectionItemLongpressedEvt_Args e) + { + var key = "_EFL_UI_EVENT_ITEM_LONGPRESSED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + /// A clicked event occurred over an item. + /// + public event EventHandler ItemClickedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.CollectionItemClickedEvt_Args args = new Efl.Ui.CollectionItemClickedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Item); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_ITEM_CLICKED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_ITEM_CLICKED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ItemClickedEvt. + public void OnItemClickedEvt(Efl.Ui.CollectionItemClickedEvt_Args e) + { + var key = "_EFL_UI_EVENT_ITEM_CLICKED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + /// A clicked,any event occurred over an item. + /// + public event EventHandler ItemClickedAnyEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.CollectionItemClickedAnyEvt_Args args = new Efl.Ui.CollectionItemClickedAnyEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Item); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_ITEM_CLICKED_ANY"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_ITEM_CLICKED_ANY"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ItemClickedAnyEvt. + public void OnItemClickedAnyEvt(Efl.Ui.CollectionItemClickedAnyEvt_Args e) + { + var key = "_EFL_UI_EVENT_ITEM_CLICKED_ANY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + /// Sent after the layout was updated. + public event EventHandler LayoutUpdatedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event LayoutUpdatedEvt. + public void OnLayoutUpdatedEvt(EventArgs e) + { + var key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Called when scroll operation starts + public event EventHandler ScrollStartEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_SCROLL_START"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_SCROLL_START"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ScrollStartEvt. + public void OnScrollStartEvt(EventArgs e) + { + var key = "_EFL_UI_EVENT_SCROLL_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Called when scrolling + public event EventHandler ScrollEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_SCROLL"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_SCROLL"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ScrollEvt. + public void OnScrollEvt(EventArgs e) + { + var key = "_EFL_UI_EVENT_SCROLL"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Called when scroll operation stops + public event EventHandler ScrollStopEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_SCROLL_STOP"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_SCROLL_STOP"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ScrollStopEvt. + public void OnScrollStopEvt(EventArgs e) + { + var key = "_EFL_UI_EVENT_SCROLL_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Called when scrolling upwards + public event EventHandler ScrollUpEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_SCROLL_UP"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_SCROLL_UP"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ScrollUpEvt. + public void OnScrollUpEvt(EventArgs e) + { + var key = "_EFL_UI_EVENT_SCROLL_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Called when scrolling downwards + public event EventHandler ScrollDownEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_SCROLL_DOWN"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_SCROLL_DOWN"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ScrollDownEvt. + public void OnScrollDownEvt(EventArgs e) + { + var key = "_EFL_UI_EVENT_SCROLL_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Called when scrolling left + public event EventHandler ScrollLeftEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_SCROLL_LEFT"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_SCROLL_LEFT"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ScrollLeftEvt. + public void OnScrollLeftEvt(EventArgs e) + { + var key = "_EFL_UI_EVENT_SCROLL_LEFT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Called when scrolling right + public event EventHandler ScrollRightEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ScrollRightEvt. + public void OnScrollRightEvt(EventArgs e) + { + var key = "_EFL_UI_EVENT_SCROLL_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Called when hitting the top edge + public event EventHandler EdgeUpEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_EDGE_UP"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_EDGE_UP"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event EdgeUpEvt. + public void OnEdgeUpEvt(EventArgs e) + { + var key = "_EFL_UI_EVENT_EDGE_UP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Called when hitting the bottom edge + public event EventHandler EdgeDownEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_EDGE_DOWN"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_EDGE_DOWN"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event EdgeDownEvt. + public void OnEdgeDownEvt(EventArgs e) + { + var key = "_EFL_UI_EVENT_EDGE_DOWN"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Called when hitting the left edge + public event EventHandler EdgeLeftEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_EDGE_LEFT"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_EDGE_LEFT"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event EdgeLeftEvt. + public void OnEdgeLeftEvt(EventArgs e) + { + var key = "_EFL_UI_EVENT_EDGE_LEFT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Called when hitting the right edge + public event EventHandler EdgeRightEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_EDGE_RIGHT"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_EDGE_RIGHT"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event EdgeRightEvt. + public void OnEdgeRightEvt(EventArgs e) + { + var key = "_EFL_UI_EVENT_EDGE_RIGHT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Called when scroll animation starts + public event EventHandler ScrollAnimStartEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ScrollAnimStartEvt. + public void OnScrollAnimStartEvt(EventArgs e) + { + var key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Called when scroll animation stopps + public event EventHandler ScrollAnimStopEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ScrollAnimStopEvt. + public void OnScrollAnimStopEvt(EventArgs e) + { + var key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Called when scroll drag starts + public event EventHandler ScrollDragStartEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ScrollDragStartEvt. + public void OnScrollDragStartEvt(EventArgs e) + { + var key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Called when scroll drag stops + public event EventHandler ScrollDragStopEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ScrollDragStopEvt. + public void OnScrollDragStopEvt(EventArgs e) + { + var key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Called when bar is pressed. + /// + public event EventHandler BarPressEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.IScrollbarBarPressEvt_Args args = new Efl.Ui.IScrollbarBarPressEvt_Args(); + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event BarPressEvt. + public void OnBarPressEvt(Efl.Ui.IScrollbarBarPressEvt_Args e) + { + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Called when bar is unpressed. + /// + public event EventHandler BarUnpressEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.IScrollbarBarUnpressEvt_Args args = new Efl.Ui.IScrollbarBarUnpressEvt_Args(); + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event BarUnpressEvt. + public void OnBarUnpressEvt(Efl.Ui.IScrollbarBarUnpressEvt_Args e) + { + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Called when bar is dragged. + /// + public event EventHandler BarDragEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.IScrollbarBarDragEvt_Args args = new Efl.Ui.IScrollbarBarDragEvt_Args(); + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event BarDragEvt. + public void OnBarDragEvt(Efl.Ui.IScrollbarBarDragEvt_Args e) + { + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Called when bar size is changed. + public event EventHandler BarSizeChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event BarSizeChangedEvt. + public void OnBarSizeChangedEvt(EventArgs e) + { + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Called when bar position is changed. + public event EventHandler BarPosChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event BarPosChangedEvt. + public void OnBarPosChangedEvt(EventArgs e) + { + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Callend when bar is shown. + /// + public event EventHandler BarShowEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.IScrollbarBarShowEvt_Args args = new Efl.Ui.IScrollbarBarShowEvt_Args(); + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event BarShowEvt. + public void OnBarShowEvt(Efl.Ui.IScrollbarBarShowEvt_Args e) + { + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Called when bar is hidden. + /// + public event EventHandler BarHideEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.IScrollbarBarHideEvt_Args args = new Efl.Ui.IScrollbarBarHideEvt_Args(); + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event BarHideEvt. + public void OnBarHideEvt(Efl.Ui.IScrollbarBarHideEvt_Args e) + { + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Called when there is a change in the selection state, this event will collect all the item selection change events that are happening within one loop iteration. This means, you will only get this event once, even if a lot of items have changed. If you are interested in detailed changes, subscribe to the selection,changed event of Efl.Ui.Selectable. + public event EventHandler SelectionChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_SINGLE_SELECTABLE_EVENT_SELECTION_CHANGED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_SINGLE_SELECTABLE_EVENT_SELECTION_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event SelectionChangedEvt. + public void OnSelectionChangedEvt(EventArgs e) + { + var key = "_EFL_UI_SINGLE_SELECTABLE_EVENT_SELECTION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Redirect object has changed, the old manager is passed as an event argument. + /// (Since EFL 1.22) + /// + public event EventHandler RedirectChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event RedirectChangedEvt. + public void OnRedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) + { + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + /// After this event, the manager object will calculate relations in the graph. Can be used to add / remove children in a lazy fashion. + /// (Since EFL 1.22) + public event EventHandler FlushPreEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event FlushPreEvt. + public void OnFlushPreEvt(EventArgs e) + { + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Cached relationship calculation results have been invalidated. + /// (Since EFL 1.22) + public event EventHandler CoordsDirtyEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event CoordsDirtyEvt. + public void OnCoordsDirtyEvt(EventArgs e) + { + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// The manager_focus property has changed. The previously focused object is passed as an event argument. + /// (Since EFL 1.22) + /// + public event EventHandler ManagerFocusChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ManagerFocusChangedEvt. + public void OnManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) + { + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + /// Called when this focus manager is frozen or thawed, even_info being true indicates that it is now frozen, false indicates that it is thawed. + /// (Since EFL 1.22) + /// + public event EventHandler DirtyLogicFreezeChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args(); + args.arg = Marshal.ReadByte(evt.Info) != 0; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event DirtyLogicFreezeChangedEvt. + public void OnDirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) + { + var key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Position manager object that handles placement of items. + /// The objects ownership is passed to the item container. + virtual public Efl.Ui.PositionManager.IEntity GetPositionManager() { + var _ret_var = Efl.Ui.Collection.NativeMethods.efl_ui_collection_position_manager_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Position manager object that handles placement of items. + /// The objects ownership is passed to the item container. + virtual public void SetPositionManager(Efl.Ui.PositionManager.IEntity position_manager) { + Efl.Ui.Collection.NativeMethods.efl_ui_collection_position_manager_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),position_manager); + Eina.Error.RaiseIfUnhandledException(); + } + /// Bring the passed item into the viewport. + /// The target to move in. + /// If you want to have an animation or not. + virtual public void ItemScroll(Efl.Ui.Item item, bool animation) { + Efl.Ui.Collection.NativeMethods.efl_ui_collection_item_scroll_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),item, animation); + Eina.Error.RaiseIfUnhandledException(); + } + /// Bring the passed item into the viewport, place the item accordingly to align in the viewport. + /// align selects the final position of the object inside the viewport. 0.0 will move the object to the first visible position inside the viewport, 1.0 will move it to the last visible position, and values in between will move it accordingly to positions in between, along the scrolling axis. + /// The target to move in. + /// 0.0 to have this item at the upper or left side of the viewport, 1.0 to have this item at the lower or right side of the viewport + /// If you want to have an animation or not. + virtual public void ItemScrollAlign(Efl.Ui.Item item, double align, bool animation) { + Efl.Ui.Collection.NativeMethods.efl_ui_collection_item_scroll_align_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),item, align, animation); + Eina.Error.RaiseIfUnhandledException(); + } + /// Removes all packed sub-objects and unreferences them. + /// true on success, false otherwise. + virtual public bool ClearPack() { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_clear_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Removes all packed sub-objects without unreferencing them. + /// Use with caution. + /// true on success, false otherwise. + virtual public bool UnpackAll() { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_all_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Removes an existing sub-object from the container without deleting it. + /// The sub-object to unpack. + /// false if subobj wasn't in the container or couldn't be removed. + virtual public bool Unpack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Adds a sub-object to this container. + /// Depending on the container this will either fill in the default spot, replacing any already existing element or append to the end of the container if there is no default part. + /// + /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. + /// The object to pack. + /// false if subobj could not be packed. + virtual public bool Pack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Requests EFL to call the method on this object. + /// This may be called asynchronously. + virtual public void LayoutRequest() { + Efl.IPackLayoutConcrete.NativeMethods.efl_pack_layout_request_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + } + /// Implementation of this container's layout algorithm. + /// EFL will call this function whenever the contents of this container need to be re-laid out on the canvas. + /// + /// This can be overriden to implement custom layout behaviors. + virtual public void UpdateLayout() { + Efl.IPackLayoutConcrete.NativeMethods.efl_pack_layout_update_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + } + /// Prepend an object at the beginning of this container. + /// This is the same as (subobj, 0). + /// + /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. + /// Object to pack at the beginning. + /// false if subobj could not be packed. + virtual public bool PackBegin(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_begin_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Append object at the end of this container. + /// This is the same as (subobj, -1). + /// + /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. + /// Object to pack at the end. + /// false if subobj could not be packed. + virtual public bool PackEnd(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_end_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Prepend an object before an existing sub-object. + /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. + /// Object to pack before existing. + /// Existing reference sub-object. + /// false if existing could not be found or subobj could not be packed. + virtual public bool PackBefore(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_before_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, existing); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Append an object after an existing sub-object. + /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. + /// Object to pack after existing. + /// Existing reference sub-object. + /// false if existing could not be found or subobj could not be packed. + virtual public bool PackAfter(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_after_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, existing); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Inserts subobj BEFORE the sub-object at position index. + /// index ranges from -count to count-1, where positive numbers go from first sub-object (0) to last (count-1), and negative numbers go from last sub-object (-1) to first (-count). count is the number of sub-objects currently in the container as returned by . + /// + /// If index is less than -count, it will trigger (subobj) whereas index greater than count-1 will trigger (subobj). + /// + /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. + /// Object to pack. + /// Index of existing sub-object to insert BEFORE. Valid range is -count to (count-1). + /// false if subobj could not be packed. + virtual public bool PackAt(Efl.Gfx.IEntity subobj, int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_at_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, index); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Sub-object at a given index in this container. + /// index ranges from -count to count-1, where positive numbers go from first sub-object (0) to last (count-1), and negative numbers go from last sub-object (-1) to first (-count). count is the number of sub-objects currently in the container as returned by . + /// + /// If index is less than -count, it will return the first sub-object whereas index greater than count-1 will return the last sub-object. + /// Index of the existing sub-object to retrieve. Valid range is -count to (count-1). + /// The sub-object contained at the given index. + virtual public Efl.Gfx.IEntity GetPackContent(int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_content_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),index); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Get the index of a sub-object in this container. + /// An existing sub-object in this container. + /// -1 in case subobj is not found, or the index of subobj in the range 0 to (count-1). + virtual public int GetPackIndex(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_index_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Pop out (remove) the sub-object at the specified index. + /// index ranges from -count to count-1, where positive numbers go from first sub-object (0) to last (count-1), and negative numbers go from last sub-object (-1) to first (-count). count is the number of sub-objects currently in the container as returned by . + /// + /// If index is less than -count, it will remove the first sub-object whereas index greater than count-1 will remove the last sub-object. + /// Index of the sub-object to remove. Valid range is -count to (count-1). + /// The sub-object if it could be removed. + virtual public Efl.Gfx.IEntity PackUnpackAt(int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_unpack_at_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),index); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Control the direction of a given widget. + /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. + /// + /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. + /// Direction of the widget. + virtual public Efl.Ui.LayoutOrientation GetOrientation() { + var _ret_var = Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Control the direction of a given widget. + /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. + /// + /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. + /// Direction of the widget. + virtual public void SetOrientation(Efl.Ui.LayoutOrientation dir) { + Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),dir); + Eina.Error.RaiseIfUnhandledException(); + } + /// The mode type for children selection. + /// Type of selection of children + virtual public Efl.Ui.SelectMode GetSelectMode() { + var _ret_var = Efl.Ui.IMultiSelectableConcrete.NativeMethods.efl_ui_select_mode_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// The mode type for children selection. + /// Type of selection of children + virtual public void SetSelectMode(Efl.Ui.SelectMode mode) { + Efl.Ui.IMultiSelectableConcrete.NativeMethods.efl_ui_select_mode_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),mode); + Eina.Error.RaiseIfUnhandledException(); + } + /// Get the selected items in a iterator. The iterator sequence will be decided by selection. + /// User has to free the iterator after usage. + virtual public Eina.Iterator GetSelectedItems() { + var _ret_var = Efl.Ui.IMultiSelectableConcrete.NativeMethods.efl_ui_selected_items_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return new Eina.Iterator(_ret_var, true); + } + /// Select a range of . + /// This will select the range of selectables from a to b or from b to a depending on which one comes first. If a or b are not part of the widget, a error is returned, and no change is applied. null is not allowed as either of the parameters. Both of the passed values will also be selected. + /// One side of the range. + /// The other side of the range. + virtual public void SelectRange(Efl.Ui.ISelectable a, Efl.Ui.ISelectable b) { + Efl.Ui.IMultiSelectableConcrete.NativeMethods.efl_ui_select_range_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),a, b); + Eina.Error.RaiseIfUnhandledException(); + } + /// Unselect a range of . + /// This will unselect the range of selectables from a to b or from b to a depending on which one comes first. If a or b are not part of the widget, a error is returned, and no change is applied. null is not allowed as either of the parameters. Both of the passed values will also be unselected. + /// One side of the range. + /// The other side of the range. + virtual public void UnselectRange(Efl.Ui.ISelectable a, Efl.Ui.ISelectable b) { + Efl.Ui.IMultiSelectableConcrete.NativeMethods.efl_ui_unselect_range_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),a, b); + Eina.Error.RaiseIfUnhandledException(); + } + /// Select all + virtual public void SelectAll() { + Efl.Ui.IMultiSelectableConcrete.NativeMethods.efl_ui_select_all_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + } + /// Unselect all + virtual public void UnselectAll() { + Efl.Ui.IMultiSelectableConcrete.NativeMethods.efl_ui_unselect_all_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + } + /// The content position + /// The position is virtual value, (0, 0) starting at the top-left. + virtual public Eina.Position2D GetContentPos() { + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_pos_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// The content position + /// The position is virtual value, (0, 0) starting at the top-left. + virtual public void SetContentPos(Eina.Position2D pos) { + Eina.Position2D.NativeStruct _in_pos = pos; + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_pos_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_pos); + Eina.Error.RaiseIfUnhandledException(); + } + /// The content size + /// The content size in pixels. + virtual public Eina.Size2D GetContentSize() { + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_size_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// The viewport geometry + /// It is absolute geometry. + virtual public Eina.Rect GetViewportGeometry() { + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Bouncing behavior + /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. + /// Horizontal bounce policy. + /// Vertical bounce policy. + virtual public void GetBounceEnabled(out bool horiz, out bool vert) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out horiz, out vert); + Eina.Error.RaiseIfUnhandledException(); + } + /// Bouncing behavior + /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. + /// Horizontal bounce policy. + /// Vertical bounce policy. + virtual public void SetBounceEnabled(bool horiz, bool vert) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),horiz, vert); + Eina.Error.RaiseIfUnhandledException(); + } + /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . + /// true if freeze, false otherwise + virtual public bool GetScrollFreeze() { + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . + /// true if freeze, false otherwise + virtual public void SetScrollFreeze(bool freeze) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),freeze); + Eina.Error.RaiseIfUnhandledException(); + } + /// Hold property When hold turns on, it only scrolls by holding action. + /// true if hold, false otherwise + virtual public bool GetScrollHold() { + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Hold property When hold turns on, it only scrolls by holding action. + /// true if hold, false otherwise + virtual public void SetScrollHold(bool hold) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),hold); + Eina.Error.RaiseIfUnhandledException(); + } + /// Controls an infinite loop for a scroller. + /// The scrolling horizontal loop + /// The Scrolling vertical loop + virtual public void GetLooping(out bool loop_h, out bool loop_v) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_looping_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out loop_h, out loop_v); + Eina.Error.RaiseIfUnhandledException(); + } + /// Controls an infinite loop for a scroller. + /// The scrolling horizontal loop + /// The Scrolling vertical loop + virtual public void SetLooping(bool loop_h, bool loop_v) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_looping_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),loop_h, loop_v); + Eina.Error.RaiseIfUnhandledException(); + } + /// Blocking of scrolling (per axis) + /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. + /// Which axis (or axes) to block + virtual public Efl.Ui.ScrollBlock GetMovementBlock() { + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_movement_block_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Blocking of scrolling (per axis) + /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. + /// Which axis (or axes) to block + virtual public void SetMovementBlock(Efl.Ui.ScrollBlock block) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_movement_block_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),block); + Eina.Error.RaiseIfUnhandledException(); + } + /// Control scrolling gravity on the scrollable + /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. + /// + /// The scroller will adjust the view to glue itself as follows. + /// + /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content + /// + /// Default values for x and y are 0.0 + /// Horizontal scrolling gravity + /// Vertical scrolling gravity + virtual public void GetGravity(out double x, out double y) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_gravity_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out x, out y); + Eina.Error.RaiseIfUnhandledException(); + } + /// Control scrolling gravity on the scrollable + /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. + /// + /// The scroller will adjust the view to glue itself as follows. + /// + /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content + /// + /// Default values for x and y are 0.0 + /// Horizontal scrolling gravity + /// Vertical scrolling gravity + virtual public void SetGravity(double x, double y) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_gravity_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),x, y); + Eina.Error.RaiseIfUnhandledException(); + } + /// Prevent the scrollable from being smaller than the minimum size of the content. + /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. + /// Whether to limit the minimum horizontal size + /// Whether to limit the minimum vertical size + virtual public void SetMatchContent(bool w, bool h) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_match_content_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),w, h); + Eina.Error.RaiseIfUnhandledException(); + } + /// Control the step size + /// Use this call to set step size. This value is used when scroller scroll by arrow key event. + /// The step size in pixels + virtual public Eina.Position2D GetStepSize() { + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_step_size_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Control the step size + /// Use this call to set step size. This value is used when scroller scroll by arrow key event. + /// The step size in pixels + virtual public void SetStepSize(Eina.Position2D step) { + Eina.Position2D.NativeStruct _in_step = step; + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_step_size_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_step); + Eina.Error.RaiseIfUnhandledException(); + } + /// Show a specific virtual region within the scroller content object. + /// This will ensure all (or part if it does not fit) of the designated region in the virtual content object (0, 0 starting at the top-left of the virtual content object) is shown within the scroller. This allows the scroller to "smoothly slide" to this location (if configuration in general calls for transitions). It may not jump immediately to the new location and make take a while and show other content along the way. + /// The position where to scroll. and The size user want to see + /// Whether to scroll with animation or not + virtual public void Scroll(Eina.Rect rect, bool animation) { + Eina.Rect.NativeStruct _in_rect = rect; + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_rect, animation); + Eina.Error.RaiseIfUnhandledException(); + } + /// Scrollbar visibility policy + /// Horizontal scrollbar. + /// Vertical scrollbar. + virtual public void GetBarMode(out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out hbar, out vbar); + Eina.Error.RaiseIfUnhandledException(); + } + /// Scrollbar visibility policy + /// Horizontal scrollbar. + /// Vertical scrollbar. + virtual public void SetBarMode(Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),hbar, vbar); + Eina.Error.RaiseIfUnhandledException(); + } + /// Scrollbar size. It is calculated based on viewport size-content sizes. + /// Value between 0.0 and 1.0. + /// Value between 0.0 and 1.0. + virtual public void GetBarSize(out double width, out double height) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out width, out height); + Eina.Error.RaiseIfUnhandledException(); + } + /// Scrollbar position. It is calculated based on current position-maximum positions. + /// Value between 0.0 and 1.0. + /// Value between 0.0 and 1.0. + virtual public void GetBarPosition(out double posx, out double posy) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out posx, out posy); + Eina.Error.RaiseIfUnhandledException(); + } + /// Scrollbar position. It is calculated based on current position-maximum positions. + /// Value between 0.0 and 1.0. + /// Value between 0.0 and 1.0. + virtual public void SetBarPosition(double posx, double posy) { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),posx, posy); + Eina.Error.RaiseIfUnhandledException(); + } + /// Update bar visibility. + /// The object will call this function whenever the bar needs to be shown or hidden. + virtual public void UpdateBarVisibility() { + Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + } + /// The selectable that was selected most recently. + /// The latest selected item. + virtual public Efl.Ui.ISelectable GetLastSelected() { + var _ret_var = Efl.Ui.ISingleSelectableConcrete.NativeMethods.efl_ui_single_selectable_last_selected_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// A object that will be selected in case nothing is selected + /// A object set to this property will be selected instead of no item beeing selected. Which means, there will be always at least one element selected. If this property is NULL, the state of "no item is selected" can be reached. + /// + /// Setting this property as a result of selection events results in undefined behavior. + virtual public Efl.Ui.ISelectable GetFallbackSelection() { + var _ret_var = Efl.Ui.ISingleSelectableConcrete.NativeMethods.efl_ui_single_selectable_fallback_selection_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// A object that will be selected in case nothing is selected + /// A object set to this property will be selected instead of no item beeing selected. Which means, there will be always at least one element selected. If this property is NULL, the state of "no item is selected" can be reached. + /// + /// Setting this property as a result of selection events results in undefined behavior. + virtual public void SetFallbackSelection(Efl.Ui.ISelectable fallback) { + Efl.Ui.ISingleSelectableConcrete.NativeMethods.efl_ui_single_selectable_fallback_selection_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),fallback); + Eina.Error.RaiseIfUnhandledException(); + } + /// If the widget needs a focus manager, this function will be called. + /// It can be used and overriden to inject your own manager or set custom options on the focus manager. + /// (Since EFL 1.22) + /// The logical root object for focus. + /// The focus manager. + virtual public Efl.Ui.Focus.IManager FocusManagerCreate(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.IWidgetFocusManagerConcrete.NativeMethods.efl_ui_widget_focus_manager_create_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),root); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// The element which is currently focused by this manager + /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. + /// (Since EFL 1.22) + /// Currently focused element. + virtual public Efl.Ui.Focus.IObject GetManagerFocus() { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// The element which is currently focused by this manager + /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. + /// (Since EFL 1.22) + /// Currently focused element. + virtual public void SetManagerFocus(Efl.Ui.Focus.IObject focus) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),focus); + Eina.Error.RaiseIfUnhandledException(); + } + /// Add another manager to serve the move requests. + /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. + /// (Since EFL 1.22) + /// The redirect manager. + virtual public Efl.Ui.Focus.IManager GetRedirect() { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Add another manager to serve the move requests. + /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. + /// (Since EFL 1.22) + /// The redirect manager. + virtual public void SetRedirect(Efl.Ui.Focus.IManager redirect) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),redirect); + Eina.Error.RaiseIfUnhandledException(); + } + /// The list of elements which are at the border of the graph. + /// This means one of the relations right,left or down,up are not set. This call flushes all changes. See + /// (Since EFL 1.22) + /// An iterator over the border objects. + virtual public Eina.Iterator GetBorderElements() { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return new Eina.Iterator(_ret_var, false); + } + /// Get all elements that are at the border of the viewport + /// Every element returned by this is located inside the viewport rectangle, but has a right, left, down or up neighbor outside the viewport. + /// (Since EFL 1.22) + /// The rectangle defining the viewport. + /// The list of border objects. + virtual public Eina.Iterator GetViewportElements(Eina.Rect viewport) { + Eina.Rect.NativeStruct _in_viewport = viewport; + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_viewport); + Eina.Error.RaiseIfUnhandledException(); + return new Eina.Iterator(_ret_var, false); + } + /// Root node for all logical subtrees. + /// This property can only be set once. + /// (Since EFL 1.22) + /// Will be registered into this manager object. + virtual public Efl.Ui.Focus.IObject GetRoot() { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Root node for all logical subtrees. + /// This property can only be set once. + /// (Since EFL 1.22) + /// Will be registered into this manager object. + /// If true, this is the root node + virtual public bool SetRoot(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),root); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Move the focus in the given direction. + /// This call flushes all changes. This means all changes between the last flush and now are computed. + /// (Since EFL 1.22) + /// The direction to move to. + /// The element which is now focused. + virtual public Efl.Ui.Focus.IObject Move(Efl.Ui.Focus.Direction direction) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_move_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),direction); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Return the object in the direction from child. + /// (Since EFL 1.22) + /// Direction to move focus. + /// The child to move from. Pass null to indicate the currently focused child. + /// Wether you want to have a logical node as result or a non-logical. Note, in a call no logical node will get focus. + /// Object that would receive focus if moved in the given direction. + virtual public Efl.Ui.Focus.IObject MoveRequest(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_move_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),direction, child, logical); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Return the widget in the direction next. + /// The returned widget is a child of root. It's guaranteed that child will not be prepared once again, so you can call this function inside a call. + /// (Since EFL 1.22) + /// Parent for returned child. + /// Child of passed parameter. + virtual public Efl.Ui.Focus.IObject RequestSubchild(Efl.Ui.Focus.IObject root) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),root); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// This will fetch the data from a registered node. + /// Be aware this function will trigger a computation of all dirty nodes. + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. + /// The child object to inspect. + /// The list of relations starting from child. + virtual public Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child) { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_fetch_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),child); + Eina.Error.RaiseIfUnhandledException(); + var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged(_ret_var); + Marshal.FreeHGlobal(_ret_var); + return __ret_tmp; + } + /// Return the last logical object. + /// The returned object is the last object that would be returned if you start at the root and move the direction into next. + /// (Since EFL 1.22) + /// Last object. + virtual public Efl.Ui.Focus.ManagerLogicalEndDetail LogicalEnd() { + var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_logical_end_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Reset the history stack of this manager object. This means the uppermost element will be unfocused, and all other elements will be removed from the remembered list. + /// You should focus another element immediately after calling this, in order to always have a focused object. + /// (Since EFL 1.22) + virtual public void ResetHistory() { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_reset_history_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + } + /// Remove the uppermost history element, and focus the previous one. + /// If there is an element that was focused before, it will be used. Otherwise, the best fitting element from the registered elements will be focused. + /// (Since EFL 1.22) + virtual public void PopHistoryStack() { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + } + /// Called when this manager is set as redirect. + /// In case that this is called as an result of a move call, direction and entry will be set to the direction of the move call, and the entry object will be set to the object that had this manager as redirect property. + /// (Since EFL 1.22) + /// The direction in which this should be setup. + /// The object that caused this manager to be redirect. + virtual public void SetupOnFirstTouch(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),direction, entry); + Eina.Error.RaiseIfUnhandledException(); + } + /// This disables the cache invalidation when an object is moved. + /// Even if an object is moved, the focus manager will not recalculate its relations. This can be used when you know that the set of widgets in the focus manager is moved the same way, so the relations between the widets in the set do not change and the complex calculations can be avoided. Use to re-enable relationship calculation. + /// (Since EFL 1.22) + virtual public void FreezeDirtyLogic() { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + } + /// This enables the cache invalidation when an object is moved. + /// This is the counterpart to . + /// (Since EFL 1.22) + virtual public void DirtyLogicUnfreeze() { + Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + } + /// Position manager object that handles placement of items. + /// The objects ownership is passed to the item container. + public Efl.Ui.PositionManager.IEntity PositionManager { + get { return GetPositionManager(); } + set { SetPositionManager(value); } + } + /// Control the direction of a given widget. + /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. + /// + /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. + /// Direction of the widget. + public Efl.Ui.LayoutOrientation Orientation { + get { return GetOrientation(); } + set { SetOrientation(value); } + } + /// The mode type for children selection. + /// Type of selection of children + public Efl.Ui.SelectMode SelectMode { + get { return GetSelectMode(); } + set { SetSelectMode(value); } + } + /// The content position + /// The position is virtual value, (0, 0) starting at the top-left. + public Eina.Position2D ContentPos { + get { return GetContentPos(); } + set { SetContentPos(value); } + } + /// The content size + /// The content size in pixels. + public Eina.Size2D ContentSize { + get { return GetContentSize(); } + } + /// The viewport geometry + /// It is absolute geometry. + public Eina.Rect ViewportGeometry { + get { return GetViewportGeometry(); } + } + /// Bouncing behavior + /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. + /// Horizontal bounce policy. + public (bool, bool) BounceEnabled { + get { + bool _out_horiz = default(bool); + bool _out_vert = default(bool); + GetBounceEnabled(out _out_horiz,out _out_vert); + return (_out_horiz,_out_vert); + } + set { SetBounceEnabled( value.Item1, value.Item2); } + } + /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . + /// true if freeze, false otherwise + public bool ScrollFreeze { + get { return GetScrollFreeze(); } + set { SetScrollFreeze(value); } + } + /// Hold property When hold turns on, it only scrolls by holding action. + /// true if hold, false otherwise + public bool ScrollHold { + get { return GetScrollHold(); } + set { SetScrollHold(value); } + } + /// Controls an infinite loop for a scroller. + /// The scrolling horizontal loop + public (bool, bool) Looping { + get { + bool _out_loop_h = default(bool); + bool _out_loop_v = default(bool); + GetLooping(out _out_loop_h,out _out_loop_v); + return (_out_loop_h,_out_loop_v); + } + set { SetLooping( value.Item1, value.Item2); } + } + /// Blocking of scrolling (per axis) + /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. + /// Which axis (or axes) to block + public Efl.Ui.ScrollBlock MovementBlock { + get { return GetMovementBlock(); } + set { SetMovementBlock(value); } + } + /// Control scrolling gravity on the scrollable + /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. + /// + /// The scroller will adjust the view to glue itself as follows. + /// + /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content + /// + /// Default values for x and y are 0.0 + /// Horizontal scrolling gravity + public (double, double) Gravity { + get { + double _out_x = default(double); + double _out_y = default(double); + GetGravity(out _out_x,out _out_y); + return (_out_x,_out_y); + } + set { SetGravity( value.Item1, value.Item2); } + } + /// Prevent the scrollable from being smaller than the minimum size of the content. + /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. + /// Whether to limit the minimum horizontal size + public (bool, bool) MatchContent { + set { SetMatchContent( value.Item1, value.Item2); } + } + /// Control the step size + /// Use this call to set step size. This value is used when scroller scroll by arrow key event. + /// The step size in pixels + public Eina.Position2D StepSize { + get { return GetStepSize(); } + set { SetStepSize(value); } + } + /// Scrollbar visibility policy + /// Horizontal scrollbar. + public (Efl.Ui.ScrollbarMode, Efl.Ui.ScrollbarMode) BarMode { + get { + Efl.Ui.ScrollbarMode _out_hbar = default(Efl.Ui.ScrollbarMode); + Efl.Ui.ScrollbarMode _out_vbar = default(Efl.Ui.ScrollbarMode); + GetBarMode(out _out_hbar,out _out_vbar); + return (_out_hbar,_out_vbar); + } + set { SetBarMode( value.Item1, value.Item2); } + } + /// Scrollbar size. It is calculated based on viewport size-content sizes. + public (double, double) BarSize { + get { + double _out_width = default(double); + double _out_height = default(double); + GetBarSize(out _out_width,out _out_height); + return (_out_width,_out_height); + } + } + /// Scrollbar position. It is calculated based on current position-maximum positions. + /// Value between 0.0 and 1.0. + public (double, double) BarPosition { + get { + double _out_posx = default(double); + double _out_posy = default(double); + GetBarPosition(out _out_posx,out _out_posy); + return (_out_posx,_out_posy); + } + set { SetBarPosition( value.Item1, value.Item2); } + } + /// The selectable that was selected most recently. + /// The latest selected item. + public Efl.Ui.ISelectable LastSelected { + get { return GetLastSelected(); } + } + /// A object that will be selected in case nothing is selected + /// A object set to this property will be selected instead of no item beeing selected. Which means, there will be always at least one element selected. If this property is NULL, the state of "no item is selected" can be reached. + /// + /// Setting this property as a result of selection events results in undefined behavior. + public Efl.Ui.ISelectable FallbackSelection { + get { return GetFallbackSelection(); } + set { SetFallbackSelection(value); } + } + /// The element which is currently focused by this manager + /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. + /// (Since EFL 1.22) + /// Currently focused element. + public Efl.Ui.Focus.IObject ManagerFocus { + get { return GetManagerFocus(); } + set { SetManagerFocus(value); } + } + /// Add another manager to serve the move requests. + /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. + /// (Since EFL 1.22) + /// The redirect manager. + public Efl.Ui.Focus.IManager Redirect { + get { return GetRedirect(); } + set { SetRedirect(value); } + } + /// The list of elements which are at the border of the graph. + /// This means one of the relations right,left or down,up are not set. This call flushes all changes. See + /// (Since EFL 1.22) + /// An iterator over the border objects. + public Eina.Iterator BorderElements { + get { return GetBorderElements(); } + } + /// Root node for all logical subtrees. + /// This property can only be set once. + /// (Since EFL 1.22) + /// Will be registered into this manager object. + public Efl.Ui.Focus.IObject Root { + get { return GetRoot(); } + set { SetRoot(value); } + } + private static IntPtr GetEflClassStatic() + { + return Efl.Ui.Collection.efl_ui_collection_class_get(); + } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods + { + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// Gets the list of Eo operations to override. + /// The list of Eo operations to be overload. + public override System.Collections.Generic.List GetEoOps(System.Type type) + { + var descs = new System.Collections.Generic.List(); + var methods = Efl.Eo.Globals.GetUserMethods(type); + + if (efl_ui_collection_position_manager_get_static_delegate == null) + { + efl_ui_collection_position_manager_get_static_delegate = new efl_ui_collection_position_manager_get_delegate(position_manager_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetPositionManager") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_collection_position_manager_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_collection_position_manager_get_static_delegate) }); + } + + if (efl_ui_collection_position_manager_set_static_delegate == null) + { + efl_ui_collection_position_manager_set_static_delegate = new efl_ui_collection_position_manager_set_delegate(position_manager_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetPositionManager") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_collection_position_manager_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_collection_position_manager_set_static_delegate) }); + } + + if (efl_ui_collection_item_scroll_static_delegate == null) + { + efl_ui_collection_item_scroll_static_delegate = new efl_ui_collection_item_scroll_delegate(item_scroll); + } + + if (methods.FirstOrDefault(m => m.Name == "ItemScroll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_collection_item_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_collection_item_scroll_static_delegate) }); + } + + if (efl_ui_collection_item_scroll_align_static_delegate == null) + { + efl_ui_collection_item_scroll_align_static_delegate = new efl_ui_collection_item_scroll_align_delegate(item_scroll_align); + } + + if (methods.FirstOrDefault(m => m.Name == "ItemScrollAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_collection_item_scroll_align"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_collection_item_scroll_align_static_delegate) }); + } + + if (efl_pack_clear_static_delegate == null) + { + efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); + } + + if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate) }); + } + + if (efl_pack_unpack_all_static_delegate == null) + { + efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); + } + + if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate) }); + } + + if (efl_pack_unpack_static_delegate == null) + { + efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); + } + + if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate) }); + } + + if (efl_pack_static_delegate == null) + { + efl_pack_static_delegate = new efl_pack_delegate(pack); + } + + if (methods.FirstOrDefault(m => m.Name == "Pack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate) }); + } + + if (efl_pack_layout_request_static_delegate == null) + { + efl_pack_layout_request_static_delegate = new efl_pack_layout_request_delegate(layout_request); + } + + if (methods.FirstOrDefault(m => m.Name == "LayoutRequest") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_layout_request"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_request_static_delegate) }); + } + + if (efl_pack_layout_update_static_delegate == null) + { + efl_pack_layout_update_static_delegate = new efl_pack_layout_update_delegate(layout_update); + } + + if (methods.FirstOrDefault(m => m.Name == "UpdateLayout") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_layout_update"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_update_static_delegate) }); + } + + if (efl_pack_begin_static_delegate == null) + { + efl_pack_begin_static_delegate = new efl_pack_begin_delegate(pack_begin); + } + + if (methods.FirstOrDefault(m => m.Name == "PackBegin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_begin"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_begin_static_delegate) }); + } + + if (efl_pack_end_static_delegate == null) + { + efl_pack_end_static_delegate = new efl_pack_end_delegate(pack_end); + } + + if (methods.FirstOrDefault(m => m.Name == "PackEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_end"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_end_static_delegate) }); + } + + if (efl_pack_before_static_delegate == null) + { + efl_pack_before_static_delegate = new efl_pack_before_delegate(pack_before); + } + + if (methods.FirstOrDefault(m => m.Name == "PackBefore") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_before"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_before_static_delegate) }); + } + + if (efl_pack_after_static_delegate == null) + { + efl_pack_after_static_delegate = new efl_pack_after_delegate(pack_after); + } + + if (methods.FirstOrDefault(m => m.Name == "PackAfter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_after"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_after_static_delegate) }); + } + + if (efl_pack_at_static_delegate == null) + { + efl_pack_at_static_delegate = new efl_pack_at_delegate(pack_at); + } + + if (methods.FirstOrDefault(m => m.Name == "PackAt") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_at_static_delegate) }); + } + + if (efl_pack_content_get_static_delegate == null) + { + efl_pack_content_get_static_delegate = new efl_pack_content_get_delegate(pack_content_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetPackContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_content_get_static_delegate) }); + } + + if (efl_pack_index_get_static_delegate == null) + { + efl_pack_index_get_static_delegate = new efl_pack_index_get_delegate(pack_index_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetPackIndex") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_index_get_static_delegate) }); + } + + if (efl_pack_unpack_at_static_delegate == null) + { + efl_pack_unpack_at_static_delegate = new efl_pack_unpack_at_delegate(pack_unpack_at); + } + + if (methods.FirstOrDefault(m => m.Name == "PackUnpackAt") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_at_static_delegate) }); + } + + if (efl_ui_layout_orientation_get_static_delegate == null) + { + efl_ui_layout_orientation_get_static_delegate = new efl_ui_layout_orientation_get_delegate(orientation_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetOrientation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_layout_orientation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_orientation_get_static_delegate) }); + } + + if (efl_ui_layout_orientation_set_static_delegate == null) + { + efl_ui_layout_orientation_set_static_delegate = new efl_ui_layout_orientation_set_delegate(orientation_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetOrientation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_layout_orientation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_orientation_set_static_delegate) }); + } + + if (efl_ui_select_mode_get_static_delegate == null) + { + efl_ui_select_mode_get_static_delegate = new efl_ui_select_mode_get_delegate(select_mode_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetSelectMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_select_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_select_mode_get_static_delegate) }); + } + + if (efl_ui_select_mode_set_static_delegate == null) + { + efl_ui_select_mode_set_static_delegate = new efl_ui_select_mode_set_delegate(select_mode_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetSelectMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_select_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_select_mode_set_static_delegate) }); + } + + if (efl_ui_selected_items_get_static_delegate == null) + { + efl_ui_selected_items_get_static_delegate = new efl_ui_selected_items_get_delegate(selected_items_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetSelectedItems") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_selected_items_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selected_items_get_static_delegate) }); + } + + if (efl_ui_select_range_static_delegate == null) + { + efl_ui_select_range_static_delegate = new efl_ui_select_range_delegate(select_range); + } + + if (methods.FirstOrDefault(m => m.Name == "SelectRange") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_select_range"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_select_range_static_delegate) }); + } + + if (efl_ui_unselect_range_static_delegate == null) + { + efl_ui_unselect_range_static_delegate = new efl_ui_unselect_range_delegate(unselect_range); + } + + if (methods.FirstOrDefault(m => m.Name == "UnselectRange") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_unselect_range"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_unselect_range_static_delegate) }); + } + + if (efl_ui_select_all_static_delegate == null) + { + efl_ui_select_all_static_delegate = new efl_ui_select_all_delegate(select_all); + } + + if (methods.FirstOrDefault(m => m.Name == "SelectAll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_select_all"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_select_all_static_delegate) }); + } + + if (efl_ui_unselect_all_static_delegate == null) + { + efl_ui_unselect_all_static_delegate = new efl_ui_unselect_all_delegate(unselect_all); + } + + if (methods.FirstOrDefault(m => m.Name == "UnselectAll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_unselect_all"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_unselect_all_static_delegate) }); + } + + if (efl_ui_scrollable_content_pos_get_static_delegate == null) + { + efl_ui_scrollable_content_pos_get_static_delegate = new efl_ui_scrollable_content_pos_get_delegate(content_pos_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetContentPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_get_static_delegate) }); + } + + if (efl_ui_scrollable_content_pos_set_static_delegate == null) + { + efl_ui_scrollable_content_pos_set_static_delegate = new efl_ui_scrollable_content_pos_set_delegate(content_pos_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetContentPos") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_set_static_delegate) }); + } + + if (efl_ui_scrollable_content_size_get_static_delegate == null) + { + efl_ui_scrollable_content_size_get_static_delegate = new efl_ui_scrollable_content_size_get_delegate(content_size_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_size_get_static_delegate) }); + } + + if (efl_ui_scrollable_viewport_geometry_get_static_delegate == null) + { + efl_ui_scrollable_viewport_geometry_get_static_delegate = new efl_ui_scrollable_viewport_geometry_get_delegate(viewport_geometry_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetViewportGeometry") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_viewport_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_viewport_geometry_get_static_delegate) }); + } + + if (efl_ui_scrollable_bounce_enabled_get_static_delegate == null) + { + efl_ui_scrollable_bounce_enabled_get_static_delegate = new efl_ui_scrollable_bounce_enabled_get_delegate(bounce_enabled_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetBounceEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_bounce_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_get_static_delegate) }); + } + + if (efl_ui_scrollable_bounce_enabled_set_static_delegate == null) + { + efl_ui_scrollable_bounce_enabled_set_static_delegate = new efl_ui_scrollable_bounce_enabled_set_delegate(bounce_enabled_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetBounceEnabled") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_bounce_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_set_static_delegate) }); + } + + if (efl_ui_scrollable_scroll_freeze_get_static_delegate == null) + { + efl_ui_scrollable_scroll_freeze_get_static_delegate = new efl_ui_scrollable_scroll_freeze_get_delegate(scroll_freeze_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetScrollFreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_freeze_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_get_static_delegate) }); + } + + if (efl_ui_scrollable_scroll_freeze_set_static_delegate == null) + { + efl_ui_scrollable_scroll_freeze_set_static_delegate = new efl_ui_scrollable_scroll_freeze_set_delegate(scroll_freeze_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScrollFreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_freeze_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_set_static_delegate) }); + } + + if (efl_ui_scrollable_scroll_hold_get_static_delegate == null) + { + efl_ui_scrollable_scroll_hold_get_static_delegate = new efl_ui_scrollable_scroll_hold_get_delegate(scroll_hold_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetScrollHold") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_hold_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_get_static_delegate) }); + } + + if (efl_ui_scrollable_scroll_hold_set_static_delegate == null) + { + efl_ui_scrollable_scroll_hold_set_static_delegate = new efl_ui_scrollable_scroll_hold_set_delegate(scroll_hold_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScrollHold") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_hold_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_set_static_delegate) }); + } + + if (efl_ui_scrollable_looping_get_static_delegate == null) + { + efl_ui_scrollable_looping_get_static_delegate = new efl_ui_scrollable_looping_get_delegate(looping_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetLooping") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_looping_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_get_static_delegate) }); + } + + if (efl_ui_scrollable_looping_set_static_delegate == null) + { + efl_ui_scrollable_looping_set_static_delegate = new efl_ui_scrollable_looping_set_delegate(looping_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetLooping") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_looping_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_set_static_delegate) }); + } + + if (efl_ui_scrollable_movement_block_get_static_delegate == null) + { + efl_ui_scrollable_movement_block_get_static_delegate = new efl_ui_scrollable_movement_block_get_delegate(movement_block_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetMovementBlock") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_movement_block_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_get_static_delegate) }); + } + + if (efl_ui_scrollable_movement_block_set_static_delegate == null) + { + efl_ui_scrollable_movement_block_set_static_delegate = new efl_ui_scrollable_movement_block_set_delegate(movement_block_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetMovementBlock") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_movement_block_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_set_static_delegate) }); + } + + if (efl_ui_scrollable_gravity_get_static_delegate == null) + { + efl_ui_scrollable_gravity_get_static_delegate = new efl_ui_scrollable_gravity_get_delegate(gravity_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetGravity") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_gravity_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_get_static_delegate) }); + } + + if (efl_ui_scrollable_gravity_set_static_delegate == null) + { + efl_ui_scrollable_gravity_set_static_delegate = new efl_ui_scrollable_gravity_set_delegate(gravity_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetGravity") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_gravity_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_set_static_delegate) }); + } + + if (efl_ui_scrollable_match_content_set_static_delegate == null) + { + efl_ui_scrollable_match_content_set_static_delegate = new efl_ui_scrollable_match_content_set_delegate(match_content_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetMatchContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_match_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_match_content_set_static_delegate) }); + } + + if (efl_ui_scrollable_step_size_get_static_delegate == null) + { + efl_ui_scrollable_step_size_get_static_delegate = new efl_ui_scrollable_step_size_get_delegate(step_size_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetStepSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_step_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_get_static_delegate) }); + } + + if (efl_ui_scrollable_step_size_set_static_delegate == null) + { + efl_ui_scrollable_step_size_set_static_delegate = new efl_ui_scrollable_step_size_set_delegate(step_size_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetStepSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_step_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_set_static_delegate) }); + } + + if (efl_ui_scrollable_scroll_static_delegate == null) + { + efl_ui_scrollable_scroll_static_delegate = new efl_ui_scrollable_scroll_delegate(scroll); + } + + if (methods.FirstOrDefault(m => m.Name == "Scroll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_static_delegate) }); + } + + if (efl_ui_scrollbar_bar_mode_get_static_delegate == null) + { + efl_ui_scrollbar_bar_mode_get_static_delegate = new efl_ui_scrollbar_bar_mode_get_delegate(bar_mode_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetBarMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_get_static_delegate) }); + } + + if (efl_ui_scrollbar_bar_mode_set_static_delegate == null) + { + efl_ui_scrollbar_bar_mode_set_static_delegate = new efl_ui_scrollbar_bar_mode_set_delegate(bar_mode_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetBarMode") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_set_static_delegate) }); + } + + if (efl_ui_scrollbar_bar_size_get_static_delegate == null) + { + efl_ui_scrollbar_bar_size_get_static_delegate = new efl_ui_scrollbar_bar_size_get_delegate(bar_size_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetBarSize") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_size_get_static_delegate) }); + } + + if (efl_ui_scrollbar_bar_position_get_static_delegate == null) + { + efl_ui_scrollbar_bar_position_get_static_delegate = new efl_ui_scrollbar_bar_position_get_delegate(bar_position_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetBarPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_get_static_delegate) }); + } + + if (efl_ui_scrollbar_bar_position_set_static_delegate == null) + { + efl_ui_scrollbar_bar_position_set_static_delegate = new efl_ui_scrollbar_bar_position_set_delegate(bar_position_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetBarPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_set_static_delegate) }); + } + + if (efl_ui_scrollbar_bar_visibility_update_static_delegate == null) + { + efl_ui_scrollbar_bar_visibility_update_static_delegate = new efl_ui_scrollbar_bar_visibility_update_delegate(bar_visibility_update); + } + + if (methods.FirstOrDefault(m => m.Name == "UpdateBarVisibility") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_visibility_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_visibility_update_static_delegate) }); + } + + if (efl_ui_single_selectable_last_selected_get_static_delegate == null) + { + efl_ui_single_selectable_last_selected_get_static_delegate = new efl_ui_single_selectable_last_selected_get_delegate(last_selected_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetLastSelected") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_single_selectable_last_selected_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_single_selectable_last_selected_get_static_delegate) }); + } + + if (efl_ui_single_selectable_fallback_selection_get_static_delegate == null) + { + efl_ui_single_selectable_fallback_selection_get_static_delegate = new efl_ui_single_selectable_fallback_selection_get_delegate(fallback_selection_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFallbackSelection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_single_selectable_fallback_selection_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_single_selectable_fallback_selection_get_static_delegate) }); + } + + if (efl_ui_single_selectable_fallback_selection_set_static_delegate == null) + { + efl_ui_single_selectable_fallback_selection_set_static_delegate = new efl_ui_single_selectable_fallback_selection_set_delegate(fallback_selection_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFallbackSelection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_single_selectable_fallback_selection_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_single_selectable_fallback_selection_set_static_delegate) }); + } + + if (efl_ui_widget_focus_manager_create_static_delegate == null) + { + efl_ui_widget_focus_manager_create_static_delegate = new efl_ui_widget_focus_manager_create_delegate(focus_manager_create); + } + + if (methods.FirstOrDefault(m => m.Name == "FocusManagerCreate") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_manager_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_manager_create_static_delegate) }); + } + + if (efl_ui_focus_manager_focus_get_static_delegate == null) + { + efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate) }); + } + + if (efl_ui_focus_manager_focus_set_static_delegate == null) + { + efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate) }); + } + + if (efl_ui_focus_manager_redirect_get_static_delegate == null) + { + efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate) }); + } + + if (efl_ui_focus_manager_redirect_set_static_delegate == null) + { + efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate) }); + } + + if (efl_ui_focus_manager_border_elements_get_static_delegate == null) + { + efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate) }); + } + + if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) + { + efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate) }); + } + + if (efl_ui_focus_manager_root_get_static_delegate == null) + { + efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate) }); + } + + if (efl_ui_focus_manager_root_set_static_delegate == null) + { + efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate) }); + } + + if (efl_ui_focus_manager_move_static_delegate == null) + { + efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); + } + + if (methods.FirstOrDefault(m => m.Name == "Move") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate) }); + } + + if (efl_ui_focus_manager_request_move_static_delegate == null) + { + efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); + } + + if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate) }); + } + + if (efl_ui_focus_manager_request_subchild_static_delegate == null) + { + efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); + } + + if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate) }); + } + + if (efl_ui_focus_manager_fetch_static_delegate == null) + { + efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); + } + + if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate) }); + } + + if (efl_ui_focus_manager_logical_end_static_delegate == null) + { + efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); + } + + if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate) }); + } + + if (efl_ui_focus_manager_reset_history_static_delegate == null) + { + efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); + } + + if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate) }); + } + + if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) + { + efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); + } + + if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate) }); + } + + if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) + { + efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); + } + + if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate) }); + } + + if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) + { + efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); + } + + if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate) }); + } + + if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) + { + efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); + } + + if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Collection.efl_ui_collection_class_get(); + } + + #pragma warning disable CA1707, CS1591, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.PositionManager.IEntity efl_ui_collection_position_manager_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.PositionManager.IEntity efl_ui_collection_position_manager_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_collection_position_manager_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_collection_position_manager_get"); + + private static Efl.Ui.PositionManager.IEntity position_manager_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_collection_position_manager_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Ui.PositionManager.IEntity _ret_var = default(Efl.Ui.PositionManager.IEntity); + try + { + _ret_var = ((Collection)ws.Target).GetPositionManager(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_collection_position_manager_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_collection_position_manager_get_delegate efl_ui_collection_position_manager_get_static_delegate; + + + private delegate void efl_ui_collection_position_manager_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.PositionManager.IEntity position_manager); + + + public delegate void efl_ui_collection_position_manager_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.PositionManager.IEntity position_manager); + + public static Efl.Eo.FunctionWrapper efl_ui_collection_position_manager_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_collection_position_manager_set"); + + private static void position_manager_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.PositionManager.IEntity position_manager) + { + Eina.Log.Debug("function efl_ui_collection_position_manager_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).SetPositionManager(position_manager); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_collection_position_manager_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), position_manager); + } + } + + private static efl_ui_collection_position_manager_set_delegate efl_ui_collection_position_manager_set_static_delegate; + + + private delegate void efl_ui_collection_item_scroll_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Item item, [MarshalAs(UnmanagedType.U1)] bool animation); + + + public delegate void efl_ui_collection_item_scroll_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Item item, [MarshalAs(UnmanagedType.U1)] bool animation); + + public static Efl.Eo.FunctionWrapper efl_ui_collection_item_scroll_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_collection_item_scroll"); + + private static void item_scroll(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Item item, bool animation) + { + Eina.Log.Debug("function efl_ui_collection_item_scroll was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).ItemScroll(item, animation); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_collection_item_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item, animation); + } + } + + private static efl_ui_collection_item_scroll_delegate efl_ui_collection_item_scroll_static_delegate; + + + private delegate void efl_ui_collection_item_scroll_align_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Item item, double align, [MarshalAs(UnmanagedType.U1)] bool animation); + + + public delegate void efl_ui_collection_item_scroll_align_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Item item, double align, [MarshalAs(UnmanagedType.U1)] bool animation); + + public static Efl.Eo.FunctionWrapper efl_ui_collection_item_scroll_align_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_collection_item_scroll_align"); + + private static void item_scroll_align(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Item item, double align, bool animation) + { + Eina.Log.Debug("function efl_ui_collection_item_scroll_align was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).ItemScrollAlign(item, align, animation); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_collection_item_scroll_align_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item, align, animation); + } + } + + private static efl_ui_collection_item_scroll_align_delegate efl_ui_collection_item_scroll_align_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_clear"); + + private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_clear was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Collection)ws.Target).ClearPack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_pack_clear_delegate efl_pack_clear_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_all"); + + private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_unpack_all was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Collection)ws.Target).UnpackAll(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack"); + + private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_unpack was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Collection)ws.Target).Unpack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + + private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack"); + + private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Collection)ws.Target).Pack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + + private static efl_pack_delegate efl_pack_static_delegate; + + + private delegate void efl_pack_layout_request_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_pack_layout_request_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_layout_request_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_layout_request"); + + private static void layout_request(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_layout_request was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).LayoutRequest(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_layout_request_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_pack_layout_request_delegate efl_pack_layout_request_static_delegate; + + + private delegate void efl_pack_layout_update_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_pack_layout_update_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_layout_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_layout_update"); + + private static void layout_update(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_layout_update was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).UpdateLayout(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_layout_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_pack_layout_update_delegate efl_pack_layout_update_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_begin_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_begin_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_begin_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_begin"); + + private static bool pack_begin(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_begin was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Collection)ws.Target).PackBegin(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + + private static efl_pack_begin_delegate efl_pack_begin_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_end_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_end_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_end"); + + private static bool pack_end(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_end was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Collection)ws.Target).PackEnd(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + + private static efl_pack_end_delegate efl_pack_end_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_before_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_before_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + public static Efl.Eo.FunctionWrapper efl_pack_before_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_before"); + + private static bool pack_before(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) + { + Eina.Log.Debug("function efl_pack_before was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Collection)ws.Target).PackBefore(subobj, existing); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + } + } + + private static efl_pack_before_delegate efl_pack_before_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_after_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_after_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + public static Efl.Eo.FunctionWrapper efl_pack_after_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_after"); + + private static bool pack_after(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) + { + Eina.Log.Debug("function efl_pack_after was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Collection)ws.Target).PackAfter(subobj, existing); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + } + } + + private static efl_pack_after_delegate efl_pack_after_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_at_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int index); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_at_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_at"); + + private static bool pack_at(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index) + { + Eina.Log.Debug("function efl_pack_at was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Collection)ws.Target).PackAt(subobj, index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index); + } + } + + private static efl_pack_at_delegate efl_pack_at_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_pack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_pack_content_get_api_delegate(System.IntPtr obj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_content_get"); + + private static Efl.Gfx.IEntity pack_content_get(System.IntPtr obj, System.IntPtr pd, int index) + { + Eina.Log.Debug("function efl_pack_content_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Collection)ws.Target).GetPackContent(index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + } + } + + private static efl_pack_content_get_delegate efl_pack_content_get_static_delegate; + + + private delegate int efl_pack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + + public delegate int efl_pack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_index_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_index_get"); + + private static int pack_index_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_index_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Collection)ws.Target).GetPackIndex(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + + private static efl_pack_index_get_delegate efl_pack_index_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_pack_unpack_at_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_pack_unpack_at_api_delegate(System.IntPtr obj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_at"); + + private static Efl.Gfx.IEntity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index) + { + Eina.Log.Debug("function efl_pack_unpack_at was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((Collection)ws.Target).PackUnpackAt(index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + } + } + + private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate; + + + private delegate Efl.Ui.LayoutOrientation efl_ui_layout_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.LayoutOrientation efl_ui_layout_orientation_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_layout_orientation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_layout_orientation_get"); + + private static Efl.Ui.LayoutOrientation orientation_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_layout_orientation_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Ui.LayoutOrientation _ret_var = default(Efl.Ui.LayoutOrientation); + try + { + _ret_var = ((Collection)ws.Target).GetOrientation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_layout_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_layout_orientation_get_delegate efl_ui_layout_orientation_get_static_delegate; + + + private delegate void efl_ui_layout_orientation_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.LayoutOrientation dir); + + + public delegate void efl_ui_layout_orientation_set_api_delegate(System.IntPtr obj, Efl.Ui.LayoutOrientation dir); + + public static Efl.Eo.FunctionWrapper efl_ui_layout_orientation_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_layout_orientation_set"); + + private static void orientation_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.LayoutOrientation dir) + { + Eina.Log.Debug("function efl_ui_layout_orientation_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).SetOrientation(dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_layout_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); + } + } + + private static efl_ui_layout_orientation_set_delegate efl_ui_layout_orientation_set_static_delegate; + + + private delegate Efl.Ui.SelectMode efl_ui_select_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.SelectMode efl_ui_select_mode_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_select_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_select_mode_get"); + + private static Efl.Ui.SelectMode select_mode_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_select_mode_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Ui.SelectMode _ret_var = default(Efl.Ui.SelectMode); + try + { + _ret_var = ((Collection)ws.Target).GetSelectMode(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_select_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_select_mode_get_delegate efl_ui_select_mode_get_static_delegate; + + + private delegate void efl_ui_select_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectMode mode); + + + public delegate void efl_ui_select_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.SelectMode mode); + + public static Efl.Eo.FunctionWrapper efl_ui_select_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_select_mode_set"); + + private static void select_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectMode mode) + { + Eina.Log.Debug("function efl_ui_select_mode_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).SetSelectMode(mode); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_select_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode); + } + } + + private static efl_ui_select_mode_set_delegate efl_ui_select_mode_set_static_delegate; + + + private delegate System.IntPtr efl_ui_selected_items_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_ui_selected_items_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_selected_items_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_selected_items_get"); + + private static System.IntPtr selected_items_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_selected_items_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Collection)ws.Target).GetSelectedItems(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + _ret_var.Own = false; return _ret_var.Handle; + + } + else + { + return efl_ui_selected_items_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_selected_items_get_delegate efl_ui_selected_items_get_static_delegate; + + + private delegate void efl_ui_select_range_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ISelectable a, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ISelectable b); + + + public delegate void efl_ui_select_range_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ISelectable a, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ISelectable b); + + public static Efl.Eo.FunctionWrapper efl_ui_select_range_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_select_range"); + + private static void select_range(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ISelectable a, Efl.Ui.ISelectable b) + { + Eina.Log.Debug("function efl_ui_select_range was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).SelectRange(a, b); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_select_range_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), a, b); + } + } + + private static efl_ui_select_range_delegate efl_ui_select_range_static_delegate; + + + private delegate void efl_ui_unselect_range_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ISelectable a, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ISelectable b); + + + public delegate void efl_ui_unselect_range_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ISelectable a, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ISelectable b); + + public static Efl.Eo.FunctionWrapper efl_ui_unselect_range_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_unselect_range"); + + private static void unselect_range(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ISelectable a, Efl.Ui.ISelectable b) + { + Eina.Log.Debug("function efl_ui_unselect_range was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).UnselectRange(a, b); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_unselect_range_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), a, b); + } + } + + private static efl_ui_unselect_range_delegate efl_ui_unselect_range_static_delegate; + + + private delegate void efl_ui_select_all_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_select_all_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_select_all_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_select_all"); + + private static void select_all(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_select_all was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).SelectAll(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_select_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_select_all_delegate efl_ui_select_all_static_delegate; + + + private delegate void efl_ui_unselect_all_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_unselect_all_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_unselect_all_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_unselect_all"); + + private static void unselect_all(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_unselect_all was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).UnselectAll(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_unselect_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_unselect_all_delegate efl_ui_unselect_all_static_delegate; + + + private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_pos_get"); + + private static Eina.Position2D.NativeStruct content_pos_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_content_pos_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((Collection)ws.Target).GetContentPos(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_content_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollable_content_pos_get_delegate efl_ui_scrollable_content_pos_get_static_delegate; + + + private delegate void efl_ui_scrollable_content_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); + + + public delegate void efl_ui_scrollable_content_pos_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_pos_set"); + + private static void content_pos_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) + { + Eina.Log.Debug("function efl_ui_scrollable_content_pos_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Position2D _in_pos = pos; + + try + { + ((Collection)ws.Target).SetContentPos(_in_pos); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_content_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); + } + } + + private static efl_ui_scrollable_content_pos_set_delegate efl_ui_scrollable_content_pos_set_static_delegate; + + + private delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_size_get"); + + private static Eina.Size2D.NativeStruct content_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_content_size_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Size2D _ret_var = default(Eina.Size2D); + try + { + _ret_var = ((Collection)ws.Target).GetContentSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollable_content_size_get_delegate efl_ui_scrollable_content_size_get_static_delegate; + + + private delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_viewport_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_viewport_geometry_get"); + + private static Eina.Rect.NativeStruct viewport_geometry_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_viewport_geometry_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((Collection)ws.Target).GetViewportGeometry(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollable_viewport_geometry_get_delegate efl_ui_scrollable_viewport_geometry_get_static_delegate; + + + private delegate void efl_ui_scrollable_bounce_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + + + public delegate void efl_ui_scrollable_bounce_enabled_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_bounce_enabled_get"); + + private static void bounce_enabled_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) + { + Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + horiz = default(bool); vert = default(bool); + try + { + ((Collection)ws.Target).GetBounceEnabled(out horiz, out vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); + } + } + + private static efl_ui_scrollable_bounce_enabled_get_delegate efl_ui_scrollable_bounce_enabled_get_static_delegate; + + + private delegate void efl_ui_scrollable_bounce_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + + public delegate void efl_ui_scrollable_bounce_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_bounce_enabled_set"); + + private static void bounce_enabled_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) + { + Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).SetBounceEnabled(horiz, vert); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); + } + } + + private static efl_ui_scrollable_bounce_enabled_set_delegate efl_ui_scrollable_bounce_enabled_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_scrollable_scroll_freeze_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_scrollable_scroll_freeze_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_freeze_get"); + + private static bool scroll_freeze_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Collection)ws.Target).GetScrollFreeze(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollable_scroll_freeze_get_delegate efl_ui_scrollable_scroll_freeze_get_static_delegate; + + + private delegate void efl_ui_scrollable_scroll_freeze_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool freeze); + + + public delegate void efl_ui_scrollable_scroll_freeze_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool freeze); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_freeze_set"); + + private static void scroll_freeze_set(System.IntPtr obj, System.IntPtr pd, bool freeze) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).SetScrollFreeze(freeze); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), freeze); + } + } + + private static efl_ui_scrollable_scroll_freeze_set_delegate efl_ui_scrollable_scroll_freeze_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_scrollable_scroll_hold_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_scrollable_scroll_hold_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_hold_get"); + + private static bool scroll_hold_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Collection)ws.Target).GetScrollHold(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollable_scroll_hold_get_delegate efl_ui_scrollable_scroll_hold_get_static_delegate; + + + private delegate void efl_ui_scrollable_scroll_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hold); + + + public delegate void efl_ui_scrollable_scroll_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hold); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_hold_set"); + + private static void scroll_hold_set(System.IntPtr obj, System.IntPtr pd, bool hold) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).SetScrollHold(hold); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hold); + } + } + + private static efl_ui_scrollable_scroll_hold_set_delegate efl_ui_scrollable_scroll_hold_set_static_delegate; + + + private delegate void efl_ui_scrollable_looping_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); + + + public delegate void efl_ui_scrollable_looping_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_looping_get"); + + private static void looping_get(System.IntPtr obj, System.IntPtr pd, out bool loop_h, out bool loop_v) + { + Eina.Log.Debug("function efl_ui_scrollable_looping_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + loop_h = default(bool); loop_v = default(bool); + try + { + ((Collection)ws.Target).GetLooping(out loop_h, out loop_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_looping_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out loop_h, out loop_v); + } + } + + private static efl_ui_scrollable_looping_get_delegate efl_ui_scrollable_looping_get_static_delegate; + + + private delegate void efl_ui_scrollable_looping_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + + + public delegate void efl_ui_scrollable_looping_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_looping_set"); + + private static void looping_set(System.IntPtr obj, System.IntPtr pd, bool loop_h, bool loop_v) + { + Eina.Log.Debug("function efl_ui_scrollable_looping_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).SetLooping(loop_h, loop_v); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_looping_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop_h, loop_v); + } + } + + private static efl_ui_scrollable_looping_set_delegate efl_ui_scrollable_looping_set_static_delegate; + + + private delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_movement_block_get"); + + private static Efl.Ui.ScrollBlock movement_block_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_movement_block_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Ui.ScrollBlock _ret_var = default(Efl.Ui.ScrollBlock); + try + { + _ret_var = ((Collection)ws.Target).GetMovementBlock(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_movement_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollable_movement_block_get_delegate efl_ui_scrollable_movement_block_get_static_delegate; + + + private delegate void efl_ui_scrollable_movement_block_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block); + + + public delegate void efl_ui_scrollable_movement_block_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollBlock block); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_movement_block_set"); + + private static void movement_block_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block) + { + Eina.Log.Debug("function efl_ui_scrollable_movement_block_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).SetMovementBlock(block); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_movement_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), block); + } + } + + private static efl_ui_scrollable_movement_block_set_delegate efl_ui_scrollable_movement_block_set_static_delegate; + + + private delegate void efl_ui_scrollable_gravity_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); + + + public delegate void efl_ui_scrollable_gravity_get_api_delegate(System.IntPtr obj, out double x, out double y); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_gravity_get"); + + private static void gravity_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) + { + Eina.Log.Debug("function efl_ui_scrollable_gravity_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + x = default(double); y = default(double); + try + { + ((Collection)ws.Target).GetGravity(out x, out y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_gravity_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + } + } + + private static efl_ui_scrollable_gravity_get_delegate efl_ui_scrollable_gravity_get_static_delegate; + + + private delegate void efl_ui_scrollable_gravity_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void efl_ui_scrollable_gravity_set_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_gravity_set"); + + private static void gravity_set(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_ui_scrollable_gravity_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).SetGravity(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_gravity_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } + + private static efl_ui_scrollable_gravity_set_delegate efl_ui_scrollable_gravity_set_static_delegate; + + + private delegate void efl_ui_scrollable_match_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); + + + public delegate void efl_ui_scrollable_match_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_match_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_match_content_set"); + + private static void match_content_set(System.IntPtr obj, System.IntPtr pd, bool w, bool h) + { + Eina.Log.Debug("function efl_ui_scrollable_match_content_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).SetMatchContent(w, h); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_match_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w, h); + } + } + + private static efl_ui_scrollable_match_content_set_delegate efl_ui_scrollable_match_content_set_static_delegate; + + + private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_step_size_get"); + + private static Eina.Position2D.NativeStruct step_size_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollable_step_size_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Position2D _ret_var = default(Eina.Position2D); + try + { + _ret_var = ((Collection)ws.Target).GetStepSize(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_scrollable_step_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollable_step_size_get_delegate efl_ui_scrollable_step_size_get_static_delegate; + + + private delegate void efl_ui_scrollable_step_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step); + + + public delegate void efl_ui_scrollable_step_size_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct step); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_step_size_set"); + + private static void step_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step) + { + Eina.Log.Debug("function efl_ui_scrollable_step_size_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Position2D _in_step = step; + + try + { + ((Collection)ws.Target).SetStepSize(_in_step); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_step_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); + } + } + + private static efl_ui_scrollable_step_size_set_delegate efl_ui_scrollable_step_size_set_static_delegate; + + + private delegate void efl_ui_scrollable_scroll_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); + + + public delegate void efl_ui_scrollable_scroll_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll"); + + private static void scroll(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool animation) + { + Eina.Log.Debug("function efl_ui_scrollable_scroll was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Rect _in_rect = rect; + + try + { + ((Collection)ws.Target).Scroll(_in_rect, animation); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollable_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, animation); + } + } + + private static efl_ui_scrollable_scroll_delegate efl_ui_scrollable_scroll_static_delegate; + + + private delegate void efl_ui_scrollbar_bar_mode_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); + + + public delegate void efl_ui_scrollbar_bar_mode_get_api_delegate(System.IntPtr obj, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_mode_get"); + + private static void bar_mode_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + hbar = default(Efl.Ui.ScrollbarMode); vbar = default(Efl.Ui.ScrollbarMode); + try + { + ((Collection)ws.Target).GetBarMode(out hbar, out vbar); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out hbar, out vbar); + } + } + + private static efl_ui_scrollbar_bar_mode_get_delegate efl_ui_scrollbar_bar_mode_get_static_delegate; + + + private delegate void efl_ui_scrollbar_bar_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); + + + public delegate void efl_ui_scrollbar_bar_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_mode_set"); + + private static void bar_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).SetBarMode(hbar, vbar); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar, vbar); + } + } + + private static efl_ui_scrollbar_bar_mode_set_delegate efl_ui_scrollbar_bar_mode_set_static_delegate; + + + private delegate void efl_ui_scrollbar_bar_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out double width, out double height); + + + public delegate void efl_ui_scrollbar_bar_size_get_api_delegate(System.IntPtr obj, out double width, out double height); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_size_get"); + + private static void bar_size_get(System.IntPtr obj, System.IntPtr pd, out double width, out double height) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_size_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + width = default(double); height = default(double); + try + { + ((Collection)ws.Target).GetBarSize(out width, out height); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out width, out height); + } + } + + private static efl_ui_scrollbar_bar_size_get_delegate efl_ui_scrollbar_bar_size_get_static_delegate; + + + private delegate void efl_ui_scrollbar_bar_position_get_delegate(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy); + + + public delegate void efl_ui_scrollbar_bar_position_get_api_delegate(System.IntPtr obj, out double posx, out double posy); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_position_get"); + + private static void bar_position_get(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_position_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + posx = default(double); posy = default(double); + try + { + ((Collection)ws.Target).GetBarPosition(out posx, out posy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out posx, out posy); + } + } + + private static efl_ui_scrollbar_bar_position_get_delegate efl_ui_scrollbar_bar_position_get_static_delegate; + + + private delegate void efl_ui_scrollbar_bar_position_set_delegate(System.IntPtr obj, System.IntPtr pd, double posx, double posy); + + + public delegate void efl_ui_scrollbar_bar_position_set_api_delegate(System.IntPtr obj, double posx, double posy); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_position_set"); + + private static void bar_position_set(System.IntPtr obj, System.IntPtr pd, double posx, double posy) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_position_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).SetBarPosition(posx, posy); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), posx, posy); + } + } + + private static efl_ui_scrollbar_bar_position_set_delegate efl_ui_scrollbar_bar_position_set_static_delegate; + + + private delegate void efl_ui_scrollbar_bar_visibility_update_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_scrollbar_bar_visibility_update_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_visibility_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_visibility_update"); + + private static void bar_visibility_update(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_scrollbar_bar_visibility_update was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).UpdateBarVisibility(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_scrollbar_bar_visibility_update_delegate efl_ui_scrollbar_bar_visibility_update_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.ISelectable efl_ui_single_selectable_last_selected_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.ISelectable efl_ui_single_selectable_last_selected_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_single_selectable_last_selected_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_single_selectable_last_selected_get"); + + private static Efl.Ui.ISelectable last_selected_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_single_selectable_last_selected_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Ui.ISelectable _ret_var = default(Efl.Ui.ISelectable); + try + { + _ret_var = ((Collection)ws.Target).GetLastSelected(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_single_selectable_last_selected_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_single_selectable_last_selected_get_delegate efl_ui_single_selectable_last_selected_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.ISelectable efl_ui_single_selectable_fallback_selection_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.ISelectable efl_ui_single_selectable_fallback_selection_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_single_selectable_fallback_selection_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_single_selectable_fallback_selection_get"); + + private static Efl.Ui.ISelectable fallback_selection_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_single_selectable_fallback_selection_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Ui.ISelectable _ret_var = default(Efl.Ui.ISelectable); + try + { + _ret_var = ((Collection)ws.Target).GetFallbackSelection(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_single_selectable_fallback_selection_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_single_selectable_fallback_selection_get_delegate efl_ui_single_selectable_fallback_selection_get_static_delegate; + + + private delegate void efl_ui_single_selectable_fallback_selection_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ISelectable fallback); + + + public delegate void efl_ui_single_selectable_fallback_selection_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ISelectable fallback); + + public static Efl.Eo.FunctionWrapper efl_ui_single_selectable_fallback_selection_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_single_selectable_fallback_selection_set"); + + private static void fallback_selection_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ISelectable fallback) + { + Eina.Log.Debug("function efl_ui_single_selectable_fallback_selection_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).SetFallbackSelection(fallback); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_single_selectable_fallback_selection_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fallback); + } + } + + private static efl_ui_single_selectable_fallback_selection_set_delegate efl_ui_single_selectable_fallback_selection_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_manager_create_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_manager_create"); + + private static Efl.Ui.Focus.IManager focus_manager_create(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_widget_focus_manager_create was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); + try + { + _ret_var = ((Collection)ws.Target).FocusManagerCreate(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_focus_manager_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } + } + + private static efl_ui_widget_focus_manager_create_delegate efl_ui_widget_focus_manager_create_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_get"); + + private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((Collection)ws.Target).GetManagerFocus(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; + + + private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); + + + public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_set"); + + private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) + { + Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).SetManagerFocus(focus); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); + } + } + + private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_get"); + + private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); + try + { + _ret_var = ((Collection)ws.Target).GetRedirect(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; + + + private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); + + + public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_set"); + + private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) + { + Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).SetRedirect(redirect); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); + } + } + + private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; + + + private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_border_elements_get"); + + private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Collection)ws.Target).GetBorderElements(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var.Handle; + + } + else + { + return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; + + + private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); + + + public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_viewport_elements_get"); + + private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) + { + Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Rect _in_viewport = viewport; + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((Collection)ws.Target).GetViewportElements(_in_viewport); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var.Handle; + + } + else + { + return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); + } + } + + private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_get"); + + private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((Collection)ws.Target).GetRoot(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_set"); + + private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Collection)ws.Target).SetRoot(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } + } + + private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_move"); + + private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) + { + Eina.Log.Debug("function efl_ui_focus_manager_move was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((Collection)ws.Target).Move(direction); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); + } + } + + private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_move"); + + private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) + { + Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((Collection)ws.Target).MoveRequest(direction, child, logical); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical); + } + } + + private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_subchild"); + + private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) + { + Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); + try + { + _ret_var = ((Collection)ws.Target).RequestSubchild(root); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); + } + } + + private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; + + + private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); + + + public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_fetch"); + + private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) + { + Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); + try + { + _ret_var = ((Collection)ws.Target).Fetch(child); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); + + } + else + { + return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); + } + } + + private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; + + + private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_logical_end"); + + private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); + try + { + _ret_var = ((Collection)ws.Target).LogicalEnd(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; + + + private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_reset_history"); + + private static void reset_history(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).ResetHistory(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; + + + private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_pop_history_stack"); + + private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).PopHistoryStack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; + + + private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); + + + public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_setup_on_first_touch"); + + private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) + { + Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).SetupOnFirstTouch(direction, entry); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry); + } + } + + private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; + + + private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_freeze"); + + private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).FreezeDirtyLogic(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; + + + private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); + + private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Collection)ws.Target).DirtyLogicUnfreeze(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; + + #pragma warning restore CA1707, CS1591, SA1300, SA1600 + +} +} +} + +} + +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiCollection_ExtensionMethods { + public static Efl.BindableProperty PositionManager(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Collection { + return new Efl.BindableProperty("position_manager", fac); + } + + public static Efl.BindableProperty Orientation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Collection { + return new Efl.BindableProperty("orientation", fac); + } + + public static Efl.BindableProperty SelectMode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Collection { + return new Efl.BindableProperty("select_mode", fac); + } + + public static Efl.BindableProperty ContentPos(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Collection { + return new Efl.BindableProperty("content_pos", fac); + } + + + + + public static Efl.BindableProperty ScrollFreeze(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Collection { + return new Efl.BindableProperty("scroll_freeze", fac); + } + + public static Efl.BindableProperty ScrollHold(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Collection { + return new Efl.BindableProperty("scroll_hold", fac); + } + + + public static Efl.BindableProperty MovementBlock(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Collection { + return new Efl.BindableProperty("movement_block", fac); + } + + + + public static Efl.BindableProperty StepSize(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Collection { + return new Efl.BindableProperty("step_size", fac); + } + + + + + + public static Efl.BindableProperty FallbackSelection(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Collection { + return new Efl.BindableProperty("fallback_selection", fac); + } + + public static Efl.BindableProperty ManagerFocus(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Collection { + return new Efl.BindableProperty("manager_focus", fac); + } + + public static Efl.BindableProperty Redirect(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Collection { + return new Efl.BindableProperty("redirect", fac); + } + + + + public static Efl.BindableProperty Root(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Collection { + return new Efl.BindableProperty("root", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_container_selectable.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_container_selectable.eo.cs new file mode 100755 index 000000000..10fbcc7dd --- /dev/null +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_container_selectable.eo.cs @@ -0,0 +1,227 @@ +#define EFL_BETA +#pragma warning disable CS1591 +using System; +using System.Runtime.InteropServices; +using System.Collections.Generic; +using System.Linq; +using System.Threading; +using System.ComponentModel; +namespace Efl { + +namespace Ui { + +/// Temporare interface, this is here until collection_view lands +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +[Efl.Ui.IContainerSelectableConcrete.NativeMethods] +[Efl.Eo.BindingEntity] +public interface IContainerSelectable : + Efl.Eo.IWrapper, IDisposable +{ + /// Called when selected + /// + event EventHandler ItemSelectedEvt; + /// Called when no longer selected + /// + event EventHandler ItemUnselectedEvt; +} +/// Event argument wrapper for event . +[Efl.Eo.BindingEntity] +public class IContainerSelectableItemSelectedEvt_Args : EventArgs { + /// Actual event payload. + /// Called when selected + public Efl.Object arg { get; set; } +} +/// Event argument wrapper for event . +[Efl.Eo.BindingEntity] +public class IContainerSelectableItemUnselectedEvt_Args : EventArgs { + /// Actual event payload. + /// Called when no longer selected + public Efl.Object arg { get; set; } +} +/// Temporare interface, this is here until collection_view lands +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IContainerSelectableConcrete : + Efl.Eo.EoWrapper + , IContainerSelectable + +{ + /// Pointer to the native class description. + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IContainerSelectableConcrete)) + { + return GetEflClassStatic(); + } + else + { + return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } + } + } + + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. + /// Tag struct storing the native handle of the object being constructed. + private IContainerSelectableConcrete(ConstructingHandle ch) : base(ch) + { + } + + [System.Runtime.InteropServices.DllImport("libefl.so.1")] internal static extern System.IntPtr + efl_ui_container_selectable_interface_get(); + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. + private IContainerSelectableConcrete(Efl.Eo.Globals.WrappingHandle wh) : base(wh) + { + } + + /// Called when selected + /// + public event EventHandler ItemSelectedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.IContainerSelectableItemSelectedEvt_Args args = new Efl.Ui.IContainerSelectableItemSelectedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_ITEM_SELECTED"; + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_ITEM_SELECTED"; + RemoveNativeEventHandler(efl.Libs.Efl, key, value); + } + } + } + /// Method to raise event ItemSelectedEvt. + public void OnItemSelectedEvt(Efl.Ui.IContainerSelectableItemSelectedEvt_Args e) + { + var key = "_EFL_UI_EVENT_ITEM_SELECTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + /// Called when no longer selected + /// + public event EventHandler ItemUnselectedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.IContainerSelectableItemUnselectedEvt_Args args = new Efl.Ui.IContainerSelectableItemUnselectedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; + RemoveNativeEventHandler(efl.Libs.Efl, key, value); + } + } + } + /// Method to raise event ItemUnselectedEvt. + public void OnItemUnselectedEvt(Efl.Ui.IContainerSelectableItemUnselectedEvt_Args e) + { + var key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + private static IntPtr GetEflClassStatic() + { + return Efl.Ui.IContainerSelectableConcrete.efl_ui_container_selectable_interface_get(); + } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods + { + /// Gets the list of Eo operations to override. + /// The list of Eo operations to be overload. + public override System.Collections.Generic.List GetEoOps(System.Type type) + { + var descs = new System.Collections.Generic.List(); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.IContainerSelectableConcrete.efl_ui_container_selectable_interface_get(); + } + + #pragma warning disable CA1707, CS1591, SA1300, SA1600 + + #pragma warning restore CA1707, CS1591, SA1300, SA1600 + +} +} +} + +} + +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiIContainerSelectableConcrete_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_datepicker.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_datepicker.eo.cs old mode 100644 new mode 100755 index 219a63adb..24fa47302 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_datepicker.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_datepicker.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Ui { /// Datepicker widget /// This is a widget which allows the user to pick a date using internal spinner. User can use the internal spinner to select year, month, day or user can input value using internal entry. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Datepicker.NativeMethods] [Efl.Eo.BindingEntity] public class Datepicker : Efl.Ui.LayoutBase { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -47,7 +49,8 @@ public class Datepicker : Efl.Ui.LayoutBase FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Datepicker(ConstructingHandle ch) : base(ch) { @@ -107,7 +110,7 @@ public class Datepicker : Efl.Ui.LayoutBase } } } - ///Method to raise event ChangedEvt. + /// Method to raise event ChangedEvt. public void OnChangedEvt(EventArgs e) { var key = "_EFL_UI_DATEPICKER_EVENT_CHANGED"; @@ -198,6 +201,57 @@ public class Datepicker : Efl.Ui.LayoutBase Efl.Ui.Datepicker.NativeMethods.efl_ui_datepicker_date_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),year, month, day); Eina.Error.RaiseIfUnhandledException(); } + /// The lower boundary of date. + /// year: Year. The year range is from 1900 to 2137. + /// + /// month: Month. The month range is from 1 to 12. + /// + /// day: Day. The day range is from 1 to 31 according to month. + /// The year value. + public (int, int, int) Min { + get { + int _out_year = default(int); + int _out_month = default(int); + int _out_day = default(int); + GetMin(out _out_year,out _out_month,out _out_day); + return (_out_year,_out_month,_out_day); + } + set { SetMin( value.Item1, value.Item2, value.Item3); } + } + /// The upper boundary of date. + /// year: Year. The year range is from 1900 to 2137. + /// + /// month: Month. The month range is from 1 to 12. + /// + /// day: Day. The day range is from 1 to 31 according to month. + /// The year value. + public (int, int, int) Max { + get { + int _out_year = default(int); + int _out_month = default(int); + int _out_day = default(int); + GetMax(out _out_year,out _out_month,out _out_day); + return (_out_year,_out_month,_out_day); + } + set { SetMax( value.Item1, value.Item2, value.Item3); } + } + /// The current value of date. + /// year: Year. The year range is from 1900 to 2137. + /// + /// month: Month. The month range is from 0 to 11. + /// + /// day: Day. The day range is from 1 to 31 according to month. + /// The year value. + public (int, int, int) Date { + get { + int _out_year = default(int); + int _out_month = default(int); + int _out_day = default(int); + GetDate(out _out_year,out _out_month,out _out_day); + return (_out_year,_out_month,_out_day); + } + set { SetDate( value.Item1, value.Item2, value.Item3); } + } private static IntPtr GetEflClassStatic() { return Efl.Ui.Datepicker.efl_ui_datepicker_class_get(); @@ -504,3 +558,12 @@ public class Datepicker : Efl.Ui.LayoutBase } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiDatepicker_ExtensionMethods { + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_alert_popup_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_default_item.eo.cs old mode 100644 new mode 100755 similarity index 63% rename from internals/src/EflSharp/EflSharp/efl/efl_ui_text_alert_popup_part.eo.cs rename to internals/src/EflSharp/EflSharp/efl/efl_ui_default_item.eo.cs index a37ac6fde..b96efcb4a --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_alert_popup_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_default_item.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,17 +10,19 @@ namespace Efl { namespace Ui { -/// Efl UI Text Alert Popup internal part class -[Efl.Ui.TextAlertPopupPart.NativeMethods] +/// Default Item Class. +/// This class defines the standard parts of casual efl items. The details about placement or item layout preferences are left to the extending classes. Every text property related changes are mirrored to the text part. Content changes are mirrored to the content part. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +[Efl.Ui.DefaultItem.NativeMethods] [Efl.Eo.BindingEntity] -public class TextAlertPopupPart : Efl.Ui.LayoutPart, Efl.IContent, Efl.IText +public abstract class DefaultItem : Efl.Ui.Item, Efl.IContent, Efl.IText, Efl.ITextMarkup { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get { - if (((object)this).GetType() == typeof(TextAlertPopupPart)) + if (((object)this).GetType() == typeof(DefaultItem)) { return GetEflClassStatic(); } @@ -31,38 +34,53 @@ public class TextAlertPopupPart : Efl.Ui.LayoutPart, Efl.IContent, Efl.IText } [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - efl_ui_text_alert_popup_part_class_get(); - /// Initializes a new instance of the class. + efl_ui_default_item_class_get(); + /// Initializes a new instance of the class. /// Parent instance. - public TextAlertPopupPart(Efl.Object parent= null - ) : base(efl_ui_text_alert_popup_part_class_get(), parent) + /// The widget style to use. See + public DefaultItem(Efl.Object parent + , System.String style = null) : base(efl_ui_default_item_class_get(), parent) { + if (Efl.Eo.Globals.ParamHelperCheck(style)) + { + SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. - protected TextAlertPopupPart(ConstructingHandle ch) : base(ch) + protected DefaultItem(ConstructingHandle ch) : base(ch) { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. /// The native pointer to be wrapped. - protected TextAlertPopupPart(Efl.Eo.Globals.WrappingHandle wh) : base(wh) + protected DefaultItem(Efl.Eo.Globals.WrappingHandle wh) : base(wh) { } - /// Initializes a new instance of the class. + [Efl.Eo.PrivateNativeClass] + private class DefaultItemRealized : DefaultItem + { + private DefaultItemRealized(Efl.Eo.Globals.WrappingHandle wh) : base(wh) + { + } + } + /// Initializes a new instance of the class. /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. /// The pointer to the base native Eo class. /// The Efl.Object parent of this instance. - protected TextAlertPopupPart(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) + protected DefaultItem(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) { } /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) + /// public event EventHandler ContentChangedEvt { add @@ -102,7 +120,7 @@ public class TextAlertPopupPart : Efl.Ui.LayoutPart, Efl.IContent, Efl.IText } } } - ///Method to raise event ContentChangedEvt. + /// Method to raise event ContentChangedEvt. public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; @@ -116,6 +134,30 @@ public class TextAlertPopupPart : Efl.Ui.LayoutPart, Efl.IContent, Efl.IText IntPtr info = e.arg.NativeHandle; Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } + /// The extra content part for default item. + public Efl.Ui.LayoutPartContent ExtraPart + { + get + { + return GetPart("extra") as Efl.Ui.LayoutPartContent; + } + } + /// The icon content part for default item. icon part is the main content of item. + public Efl.Ui.LayoutPartContent IconPart + { + get + { + return GetPart("icon") as Efl.Ui.LayoutPartContent; + } + } + /// The text part for default item. text part is the caption of the item. + public Efl.Ui.LayoutPartText TextPart + { + get + { + return GetPart("text") as Efl.Ui.LayoutPartText; + } + } /// Sub-object currently set as this object's single content. /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) @@ -162,6 +204,19 @@ public class TextAlertPopupPart : Efl.Ui.LayoutPart, Efl.IContent, Efl.IText Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),text); Eina.Error.RaiseIfUnhandledException(); } + /// Markup property + /// The markup-text representation set to this text. + virtual public System.String GetMarkup() { + var _ret_var = Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Markup property + /// The markup-text representation set to this text. + virtual public void SetMarkup(System.String markup) { + Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),markup); + Eina.Error.RaiseIfUnhandledException(); + } /// Sub-object currently set as this object's single content. /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) @@ -170,13 +225,19 @@ public class TextAlertPopupPart : Efl.Ui.LayoutPart, Efl.IContent, Efl.IText get { return GetContent(); } set { SetContent(value); } } + /// Markup property + /// The markup-text representation set to this text. + public System.String Markup { + get { return GetMarkup(); } + set { SetMarkup(value); } + } private static IntPtr GetEflClassStatic() { - return Efl.Ui.TextAlertPopupPart.efl_ui_text_alert_popup_part_class_get(); + return Efl.Ui.DefaultItem.efl_ui_default_item_class_get(); } /// Wrapper for native methods and virtual method delegates. /// For internal use by generated code only. - public new class NativeMethods : Efl.Ui.LayoutPart.NativeMethods + public new class NativeMethods : Efl.Ui.Item.NativeMethods { private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); /// Gets the list of Eo operations to override. @@ -236,6 +297,26 @@ public class TextAlertPopupPart : Efl.Ui.LayoutPart, Efl.IContent, Efl.IText descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); } + if (efl_text_markup_get_static_delegate == null) + { + efl_text_markup_get_static_delegate = new efl_text_markup_get_delegate(markup_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetMarkup") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_get_static_delegate) }); + } + + if (efl_text_markup_set_static_delegate == null) + { + efl_text_markup_set_static_delegate = new efl_text_markup_set_delegate(markup_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetMarkup") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_set_static_delegate) }); + } + descs.AddRange(base.GetEoOps(type)); return descs; } @@ -243,7 +324,7 @@ public class TextAlertPopupPart : Efl.Ui.LayoutPart, Efl.IContent, Efl.IText /// The native class pointer. public override IntPtr GetEflClass() { - return Efl.Ui.TextAlertPopupPart.efl_ui_text_alert_popup_part_class_get(); + return Efl.Ui.DefaultItem.efl_ui_default_item_class_get(); } #pragma warning disable CA1707, CS1591, SA1300, SA1600 @@ -265,7 +346,7 @@ public class TextAlertPopupPart : Efl.Ui.LayoutPart, Efl.IContent, Efl.IText Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); try { - _ret_var = ((TextAlertPopupPart)ws.Target).GetContent(); + _ret_var = ((DefaultItem)ws.Target).GetContent(); } catch (Exception e) { @@ -301,7 +382,7 @@ public class TextAlertPopupPart : Efl.Ui.LayoutPart, Efl.IContent, Efl.IText bool _ret_var = default(bool); try { - _ret_var = ((TextAlertPopupPart)ws.Target).SetContent(content); + _ret_var = ((DefaultItem)ws.Target).SetContent(content); } catch (Exception e) { @@ -337,7 +418,7 @@ public class TextAlertPopupPart : Efl.Ui.LayoutPart, Efl.IContent, Efl.IText Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); try { - _ret_var = ((TextAlertPopupPart)ws.Target).UnsetContent(); + _ret_var = ((DefaultItem)ws.Target).UnsetContent(); } catch (Exception e) { @@ -373,7 +454,7 @@ public class TextAlertPopupPart : Efl.Ui.LayoutPart, Efl.IContent, Efl.IText System.String _ret_var = default(System.String); try { - _ret_var = ((TextAlertPopupPart)ws.Target).GetText(); + _ret_var = ((DefaultItem)ws.Target).GetText(); } catch (Exception e) { @@ -409,7 +490,7 @@ public class TextAlertPopupPart : Efl.Ui.LayoutPart, Efl.IContent, Efl.IText try { - ((TextAlertPopupPart)ws.Target).SetText(text); + ((DefaultItem)ws.Target).SetText(text); } catch (Exception e) { @@ -427,6 +508,77 @@ public class TextAlertPopupPart : Efl.Ui.LayoutPart, Efl.IContent, Efl.IText private static efl_text_set_delegate efl_text_set_static_delegate; + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_text_markup_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_text_markup_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_text_markup_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_get"); + + private static System.String markup_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_text_markup_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((DefaultItem)ws.Target).GetMarkup(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_text_markup_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_text_markup_get_delegate efl_text_markup_get_static_delegate; + + + private delegate void efl_text_markup_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); + + + public delegate void efl_text_markup_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); + + public static Efl.Eo.FunctionWrapper efl_text_markup_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_set"); + + private static void markup_set(System.IntPtr obj, System.IntPtr pd, System.String markup) + { + Eina.Log.Debug("function efl_text_markup_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((DefaultItem)ws.Target).SetMarkup(markup); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_text_markup_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), markup); + } + } + + private static efl_text_markup_set_delegate efl_text_markup_set_static_delegate; + #pragma warning restore CA1707, CS1591, SA1300, SA1600 } @@ -435,3 +587,33 @@ public class TextAlertPopupPart : Efl.Ui.LayoutPart, Efl.IContent, Efl.IText } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiDefaultItem_ExtensionMethods { + public static Efl.BindableProperty Content(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.DefaultItem { + return new Efl.BindableProperty("content", fac); + } + + + public static Efl.BindableProperty Markup(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.DefaultItem { + return new Efl.BindableProperty("markup", fac); + } + + public static Efl.BindableFactoryPart ExtraPart(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTag x=null) where T : Efl.Ui.DefaultItem + { + return new Efl.BindableFactoryPart("extra" ,fac); + } + + public static Efl.BindableFactoryPart IconPart(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTag x=null) where T : Efl.Ui.DefaultItem + { + return new Efl.BindableFactoryPart("icon" ,fac); + } + + public static Efl.BindablePart TextPart(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTag x=null) where T : Efl.Ui.DefaultItem + { + return new Efl.BindablePart("text" ,fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_dnd.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_dnd.eo.cs old mode 100644 new mode 100755 index 3cdd6d5e4..7c32cfb91 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_dnd.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_dnd.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,6 +10,7 @@ namespace Efl { namespace Ui { +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.IDndConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IDnd : @@ -37,6 +39,7 @@ void AddDropTarget(Efl.Ui.SelectionFormat format, uint seat); /// Specified seat for multiple seats case. void DelDropTarget(Efl.Ui.SelectionFormat format, uint seat); /// accept drag data + /// event EventHandler DragAcceptEvt; /// drag is done (mouse up) event EventHandler DragDoneEvt; @@ -45,34 +48,40 @@ void DelDropTarget(Efl.Ui.SelectionFormat format, uint seat); /// called when the drag object leaves this object event EventHandler DragLeaveEvt; /// called when the drag object changes drag position + /// event EventHandler DragPosEvt; /// called when the drag object dropped on this object + /// event EventHandler DragDropEvt; } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IDndDragAcceptEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// accept drag data public bool arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IDndDragPosEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// called when the drag object changes drag position public Efl.Dnd.DragPos arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IDndDragDropEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// called when the drag object dropped on this object public Efl.Ui.SelectionData arg { get; set; } } -sealed public class IDndConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IDndConcrete : Efl.Eo.EoWrapper , IDnd { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -88,7 +97,8 @@ sealed public class IDndConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IDndConcrete(ConstructingHandle ch) : base(ch) { @@ -104,6 +114,7 @@ sealed public class IDndConcrete : } /// accept drag data + /// public event EventHandler DragAcceptEvt { add @@ -143,7 +154,7 @@ sealed public class IDndConcrete : } } } - ///Method to raise event DragAcceptEvt. + /// Method to raise event DragAcceptEvt. public void OnDragAcceptEvt(Efl.Ui.IDndDragAcceptEvt_Args e) { var key = "_EFL_UI_DND_EVENT_DRAG_ACCEPT"; @@ -203,7 +214,7 @@ sealed public class IDndConcrete : } } } - ///Method to raise event DragDoneEvt. + /// Method to raise event DragDoneEvt. public void OnDragDoneEvt(EventArgs e) { var key = "_EFL_UI_DND_EVENT_DRAG_DONE"; @@ -255,7 +266,7 @@ sealed public class IDndConcrete : } } } - ///Method to raise event DragEnterEvt. + /// Method to raise event DragEnterEvt. public void OnDragEnterEvt(EventArgs e) { var key = "_EFL_UI_DND_EVENT_DRAG_ENTER"; @@ -307,7 +318,7 @@ sealed public class IDndConcrete : } } } - ///Method to raise event DragLeaveEvt. + /// Method to raise event DragLeaveEvt. public void OnDragLeaveEvt(EventArgs e) { var key = "_EFL_UI_DND_EVENT_DRAG_LEAVE"; @@ -321,6 +332,7 @@ sealed public class IDndConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// called when the drag object changes drag position + /// public event EventHandler DragPosEvt { add @@ -360,7 +372,7 @@ sealed public class IDndConcrete : } } } - ///Method to raise event DragPosEvt. + /// Method to raise event DragPosEvt. public void OnDragPosEvt(Efl.Ui.IDndDragPosEvt_Args e) { var key = "_EFL_UI_DND_EVENT_DRAG_POS"; @@ -383,6 +395,7 @@ sealed public class IDndConcrete : } } /// called when the drag object dropped on this object + /// public event EventHandler DragDropEvt { add @@ -422,7 +435,7 @@ sealed public class IDndConcrete : } } } - ///Method to raise event DragDropEvt. + /// Method to raise event DragDropEvt. public void OnDragDropEvt(Efl.Ui.IDndDragDropEvt_Args e) { var key = "_EFL_UI_DND_EVENT_DRAG_DROP"; @@ -743,3 +756,9 @@ sealed public class IDndConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiIDndConcrete_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_dnd_container.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_dnd_container.eo.cs old mode 100644 new mode 100755 index 94f343cc5..8e110f6e8 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_dnd_container.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_dnd_container.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,6 +10,7 @@ namespace Efl { namespace Ui { +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.IDndContainerConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IDndContainer : @@ -39,16 +41,17 @@ void DelDropItem(uint seat); /// The time since mouse down happens to drag starts. /// The drag delay time double DragDelayTime { - get ; - set ; + get; + set; } } -sealed public class IDndContainerConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IDndContainerConcrete : Efl.Eo.EoWrapper , IDndContainer { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -64,7 +67,8 @@ sealed public class IDndContainerConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IDndContainerConcrete(ConstructingHandle ch) : base(ch) { @@ -442,3 +446,13 @@ sealed public class IDndContainerConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiIDndContainerConcrete_ExtensionMethods { + public static Efl.BindableProperty DragDelayTime(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IDndContainer { + return new Efl.BindableProperty("drag_delay_time", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_dnd_types.eot.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_dnd_types.eot.cs old mode 100644 new mode 100755 index 2f0ac2cfd..3fe42fb6a --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_dnd_types.eot.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_dnd_types.eot.cs @@ -333,15 +333,16 @@ namespace Dnd { public struct DragAccept { public bool Accepted; - ///Constructor for DragAccept. + /// Constructor for DragAccept. + /// ; public DragAccept( bool Accepted = default(bool) ) { this.Accepted = Accepted; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator DragAccept(IntPtr ptr) { var tmp = (DragAccept.NativeStruct)Marshal.PtrToStructure(ptr, typeof(DragAccept.NativeStruct)); @@ -350,13 +351,13 @@ public struct DragAccept #pragma warning disable CS1591 - ///Internal wrapper for struct DragAccept. + /// Internal wrapper for struct DragAccept. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { - ///Internal wrapper for field Accepted + /// Internal wrapper for field Accepted public System.Byte Accepted; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator DragAccept.NativeStruct(DragAccept _external_struct) { var _internal_struct = new DragAccept.NativeStruct(); @@ -364,7 +365,7 @@ public struct DragAccept return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator DragAccept(DragAccept.NativeStruct _internal_struct) { var _external_struct = new DragAccept(); @@ -392,14 +393,21 @@ namespace Dnd { public struct DragPos { /// Evas Coordinate + /// A 2D location in pixels. public Eina.Position2D Pos; /// The drag action + /// Defines the kind of action associated with the drop data public Efl.Ui.SelectionAction Action; /// The drag format + /// Selection format public Efl.Ui.SelectionFormat Format; /// The item object. It is only available for container object. public Efl.Canvas.Object Item; - ///Constructor for DragPos. + /// Constructor for DragPos. + /// Evas Coordinate; + /// The drag action; + /// The drag format; + /// The item object. It is only available for container object.; public DragPos( Eina.Position2D Pos = default(Eina.Position2D), Efl.Ui.SelectionAction Action = default(Efl.Ui.SelectionAction), @@ -412,8 +420,8 @@ public struct DragPos this.Item = Item; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator DragPos(IntPtr ptr) { var tmp = (DragPos.NativeStruct)Marshal.PtrToStructure(ptr, typeof(DragPos.NativeStruct)); @@ -422,7 +430,7 @@ public struct DragPos #pragma warning disable CS1591 - ///Internal wrapper for struct DragPos. + /// Internal wrapper for struct DragPos. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -432,9 +440,9 @@ public struct DragPos public Efl.Ui.SelectionAction Action; public Efl.Ui.SelectionFormat Format; - ///Internal wrapper for field Item + /// Internal wrapper for field Item public System.IntPtr Item; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator DragPos.NativeStruct(DragPos _external_struct) { var _internal_struct = new DragPos.NativeStruct(); @@ -445,7 +453,7 @@ public struct DragPos return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator DragPos(DragPos.NativeStruct _internal_struct) { var _external_struct = new DragPos(); @@ -479,10 +487,15 @@ public struct DragItemContainerDrop /// The item object public Efl.Canvas.Object Item; /// The selection data + /// Structure holding the info about selected data public Efl.Ui.SelectionData Data; /// Position relative to item (left (-1), middle (0), right (1) + /// A 2D location in pixels. public Eina.Position2D Pos; - ///Constructor for DragItemContainerDrop. + /// Constructor for DragItemContainerDrop. + /// The item object; + /// The selection data; + /// Position relative to item (left (-1), middle (0), right (1); public DragItemContainerDrop( Efl.Canvas.Object Item = default(Efl.Canvas.Object), Efl.Ui.SelectionData Data = default(Efl.Ui.SelectionData), @@ -493,8 +506,8 @@ public struct DragItemContainerDrop this.Pos = Pos; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator DragItemContainerDrop(IntPtr ptr) { var tmp = (DragItemContainerDrop.NativeStruct)Marshal.PtrToStructure(ptr, typeof(DragItemContainerDrop.NativeStruct)); @@ -503,17 +516,17 @@ public struct DragItemContainerDrop #pragma warning disable CS1591 - ///Internal wrapper for struct DragItemContainerDrop. + /// Internal wrapper for struct DragItemContainerDrop. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { - ///Internal wrapper for field Item + /// Internal wrapper for field Item public System.IntPtr Item; public Efl.Ui.SelectionData.NativeStruct Data; public Eina.Position2D.NativeStruct Pos; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator DragItemContainerDrop.NativeStruct(DragItemContainerDrop _external_struct) { var _internal_struct = new DragItemContainerDrop.NativeStruct(); @@ -523,7 +536,7 @@ public struct DragItemContainerDrop return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator DragItemContainerDrop(DragItemContainerDrop.NativeStruct _internal_struct) { var _external_struct = new DragItemContainerDrop(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_drag.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_drag.eo.cs old mode 100644 new mode 100755 index 99daed779..0cdb0c706 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_drag.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_drag.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Ui { /// Common interface for draggable objects and parts. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.IDragConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IDrag : @@ -77,20 +79,65 @@ bool MoveDragStep(double dx, double dy); /// The number of pages vertically. /// true on success, false otherwise bool MoveDragPage(double dx, double dy); - /// Determines the draggable directions (read-only). + /// The draggable object relative location. + /// Some parts in Edje can be dragged along the X/Y axes, if the part contains a "draggable" section (in EDC). For instance, scroll bars can be draggable objects. + /// + /// dx and dy are real numbers that range from 0 to 1, representing the relative position to the draggable area on that axis. + /// + /// This value means, for the vertical axis, that 0.0 will be at the top if the first parameter of y in the draggable part theme is 1 and at the bottom if it is -1. + /// + /// For the horizontal axis, 0.0 means left if the first parameter of x in the draggable part theme is 1, and right if it is -1. + /// The x relative position, from 0 to 1. + (double, double) DragValue { + get; + set; + } + /// The draggable object relative size. + /// Values for dw and dh are real numbers that range from 0 to 1, representing the relative size of the draggable area on that axis. + /// + /// For instance a scroll bar handle size may depend on the size of the scroller's content. + /// The drag relative width, from 0 to 1. + (double, double) DragSize { + get; + set; + } + /// Determines the draggable directions (read-only). /// The draggable directions are defined in the EDC file, inside the "draggable" section, by the attributes x and y. See the EDC reference documentation for more information. /// The direction(s) premitted for drag. Efl.Ui.DragDir DragDir { - get ; + get; + } + /// The drag step increment. + /// Values for dx and dy are real numbers that range from 0 to 1, representing the relative size of the draggable area on that axis by which the part will be moved. + /// + /// This differs from in that this is meant to represent a unit increment, like a single line for example. + /// + /// See also . + /// The x step relative amount, from 0 to 1. + (double, double) DragStep { + get; + set; + } + /// The page step increments. + /// Values for dx and dy are real numbers that range from 0 to 1, representing the relative size of the draggable area on that axis by which the part will be moved. + /// + /// This differs from in that this is meant to be a larger step size, basically an entire page as opposed to a single or couple of lines. + /// + /// See also . + /// The x page step increment + (double, double) DragPage { + get; + set; } } /// Common interface for draggable objects and parts. -sealed public class IDragConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IDragConcrete : Efl.Eo.EoWrapper , IDrag { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -106,7 +153,8 @@ sealed public class IDragConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IDragConcrete(ConstructingHandle ch) : base(ch) { @@ -227,12 +275,76 @@ sealed public class IDragConcrete : Eina.Error.RaiseIfUnhandledException(); return _ret_var; } + /// The draggable object relative location. + /// Some parts in Edje can be dragged along the X/Y axes, if the part contains a "draggable" section (in EDC). For instance, scroll bars can be draggable objects. + /// + /// dx and dy are real numbers that range from 0 to 1, representing the relative position to the draggable area on that axis. + /// + /// This value means, for the vertical axis, that 0.0 will be at the top if the first parameter of y in the draggable part theme is 1 and at the bottom if it is -1. + /// + /// For the horizontal axis, 0.0 means left if the first parameter of x in the draggable part theme is 1, and right if it is -1. + /// The x relative position, from 0 to 1. + public (double, double) DragValue { + get { + double _out_dx = default(double); + double _out_dy = default(double); + GetDragValue(out _out_dx,out _out_dy); + return (_out_dx,_out_dy); + } + set { SetDragValue( value.Item1, value.Item2); } + } + /// The draggable object relative size. + /// Values for dw and dh are real numbers that range from 0 to 1, representing the relative size of the draggable area on that axis. + /// + /// For instance a scroll bar handle size may depend on the size of the scroller's content. + /// The drag relative width, from 0 to 1. + public (double, double) DragSize { + get { + double _out_dw = default(double); + double _out_dh = default(double); + GetDragSize(out _out_dw,out _out_dh); + return (_out_dw,_out_dh); + } + set { SetDragSize( value.Item1, value.Item2); } + } /// Determines the draggable directions (read-only). /// The draggable directions are defined in the EDC file, inside the "draggable" section, by the attributes x and y. See the EDC reference documentation for more information. /// The direction(s) premitted for drag. public Efl.Ui.DragDir DragDir { get { return GetDragDir(); } } + /// The drag step increment. + /// Values for dx and dy are real numbers that range from 0 to 1, representing the relative size of the draggable area on that axis by which the part will be moved. + /// + /// This differs from in that this is meant to represent a unit increment, like a single line for example. + /// + /// See also . + /// The x step relative amount, from 0 to 1. + public (double, double) DragStep { + get { + double _out_dx = default(double); + double _out_dy = default(double); + GetDragStep(out _out_dx,out _out_dy); + return (_out_dx,_out_dy); + } + set { SetDragStep( value.Item1, value.Item2); } + } + /// The page step increments. + /// Values for dx and dy are real numbers that range from 0 to 1, representing the relative size of the draggable area on that axis by which the part will be moved. + /// + /// This differs from in that this is meant to be a larger step size, basically an entire page as opposed to a single or couple of lines. + /// + /// See also . + /// The x page step increment + public (double, double) DragPage { + get { + double _out_dx = default(double); + double _out_dy = default(double); + GetDragPage(out _out_dx,out _out_dy); + return (_out_dx,_out_dy); + } + set { SetDragPage( value.Item1, value.Item2); } + } private static IntPtr GetEflClassStatic() { return Efl.Ui.IDragConcrete.efl_ui_drag_interface_get(); @@ -774,3 +886,14 @@ sealed public class IDragConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiIDragConcrete_ExtensionMethods { + + + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_draggable.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_draggable.eo.cs old mode 100644 new mode 100755 index b4c3772d3..be031ad4a --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_draggable.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_draggable.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Ui { /// Efl UI draggable interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.IDraggableConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IDraggable : @@ -24,72 +26,85 @@ bool GetDragTarget(); /// Turn on or off drop_target. Default is false. void SetDragTarget(bool set); /// Called when drag operation starts + /// event EventHandler DragEvt; /// Called when drag started event EventHandler DragStartEvt; /// Called when drag stopped + /// event EventHandler DragStopEvt; /// Called when drag operation ends event EventHandler DragEndEvt; /// Called when drag starts into up direction + /// event EventHandler DragStartUpEvt; /// Called when drag starts into down direction + /// event EventHandler DragStartDownEvt; /// Called when drag starts into right direction + /// event EventHandler DragStartRightEvt; /// Called when drag starts into left direction + /// event EventHandler DragStartLeftEvt; /// Control whether the object's content is changed by drag and drop. /// If drag_target is true the object can be the target of a dragging object. The content of this object can then be changed into dragging content. For example, if an object deals with image and drag_target is true, the user can drag the new image and drop it into said object. This object's image can then be changed into a new image. /// Turn on or off drop_target. Default is false. bool DragTarget { - get ; - set ; + get; + set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IDraggableDragEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when drag operation starts public Efl.Object arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IDraggableDragStopEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when drag stopped public Efl.Object arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IDraggableDragStartUpEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when drag starts into up direction public Efl.Object arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IDraggableDragStartDownEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when drag starts into down direction public Efl.Object arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IDraggableDragStartRightEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when drag starts into right direction public Efl.Object arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IDraggableDragStartLeftEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when drag starts into left direction public Efl.Object arg { get; set; } } /// Efl UI draggable interface -sealed public class IDraggableConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IDraggableConcrete : Efl.Eo.EoWrapper , IDraggable { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -105,7 +120,8 @@ sealed public class IDraggableConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IDraggableConcrete(ConstructingHandle ch) : base(ch) { @@ -121,6 +137,7 @@ sealed public class IDraggableConcrete : } /// Called when drag operation starts + /// public event EventHandler DragEvt { add @@ -160,7 +177,7 @@ sealed public class IDraggableConcrete : } } } - ///Method to raise event DragEvt. + /// Method to raise event DragEvt. public void OnDragEvt(Efl.Ui.IDraggableDragEvt_Args e) { var key = "_EFL_UI_EVENT_DRAG"; @@ -213,7 +230,7 @@ sealed public class IDraggableConcrete : } } } - ///Method to raise event DragStartEvt. + /// Method to raise event DragStartEvt. public void OnDragStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_DRAG_START"; @@ -227,6 +244,7 @@ sealed public class IDraggableConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when drag stopped + /// public event EventHandler DragStopEvt { add @@ -266,7 +284,7 @@ sealed public class IDraggableConcrete : } } } - ///Method to raise event DragStopEvt. + /// Method to raise event DragStopEvt. public void OnDragStopEvt(Efl.Ui.IDraggableDragStopEvt_Args e) { var key = "_EFL_UI_EVENT_DRAG_STOP"; @@ -319,7 +337,7 @@ sealed public class IDraggableConcrete : } } } - ///Method to raise event DragEndEvt. + /// Method to raise event DragEndEvt. public void OnDragEndEvt(EventArgs e) { var key = "_EFL_UI_EVENT_DRAG_END"; @@ -333,6 +351,7 @@ sealed public class IDraggableConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when drag starts into up direction + /// public event EventHandler DragStartUpEvt { add @@ -372,7 +391,7 @@ sealed public class IDraggableConcrete : } } } - ///Method to raise event DragStartUpEvt. + /// Method to raise event DragStartUpEvt. public void OnDragStartUpEvt(Efl.Ui.IDraggableDragStartUpEvt_Args e) { var key = "_EFL_UI_EVENT_DRAG_START_UP"; @@ -387,6 +406,7 @@ sealed public class IDraggableConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Called when drag starts into down direction + /// public event EventHandler DragStartDownEvt { add @@ -426,7 +446,7 @@ sealed public class IDraggableConcrete : } } } - ///Method to raise event DragStartDownEvt. + /// Method to raise event DragStartDownEvt. public void OnDragStartDownEvt(Efl.Ui.IDraggableDragStartDownEvt_Args e) { var key = "_EFL_UI_EVENT_DRAG_START_DOWN"; @@ -441,6 +461,7 @@ sealed public class IDraggableConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Called when drag starts into right direction + /// public event EventHandler DragStartRightEvt { add @@ -480,7 +501,7 @@ sealed public class IDraggableConcrete : } } } - ///Method to raise event DragStartRightEvt. + /// Method to raise event DragStartRightEvt. public void OnDragStartRightEvt(Efl.Ui.IDraggableDragStartRightEvt_Args e) { var key = "_EFL_UI_EVENT_DRAG_START_RIGHT"; @@ -495,6 +516,7 @@ sealed public class IDraggableConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Called when drag starts into left direction + /// public event EventHandler DragStartLeftEvt { add @@ -534,7 +556,7 @@ sealed public class IDraggableConcrete : } } } - ///Method to raise event DragStartLeftEvt. + /// Method to raise event DragStartLeftEvt. public void OnDragStartLeftEvt(Efl.Ui.IDraggableDragStartLeftEvt_Args e) { var key = "_EFL_UI_EVENT_DRAG_START_LEFT"; @@ -696,3 +718,13 @@ sealed public class IDraggableConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiIDraggableConcrete_ExtensionMethods { + public static Efl.BindableProperty DragTarget(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IDraggable { + return new Efl.BindableProperty("drag_target", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_factory.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_factory.eo.cs old mode 100644 new mode 100755 index 86797e392..256c33d62 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_factory.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_factory.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Ui { /// Efl UI factory interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.IFactoryConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IFactory : @@ -17,37 +19,45 @@ public interface IFactory : Efl.Ui.IPropertyBind , Efl.Eo.IWrapper, IDisposable { - /// Create a UI object from the necessary properties in the specified model. -/// Efl model + /// Create a UI object from the necessary properties in the specified model. +/// Note: This is the function you need to implement for a custom factory, but if you want to use a factory, you should rely on . +/// Efl iterator providing the model to be associated to the new item. It should remain valid until the end of the function call. /// Efl canvas /// Created UI object - Eina.Future Create(Efl.IModel model, Efl.Gfx.IEntity parent); + Eina.Future Create(Eina.Iterator models, Efl.Gfx.IEntity parent); /// Release a UI object and disconnect from models. /// Efl canvas void Release(Efl.Gfx.IEntity ui_view); + /// This function is called during the creation of an UI object between the Efl.Object.constructor and call. +/// Note: if the does keep a cache of object, this won't be called when object are pulled out of the cache. +/// The UI object being created. +void Building(Efl.Gfx.IEntity ui_view); /// Async wrapper for . - /// Efl model + /// Efl iterator providing the model to be associated to the new item. It should remain valid until the end of the function call. /// Efl canvas /// Token to notify the async operation of external request to cancel. /// An async task wrapping the result of the operation. - System.Threading.Tasks.Task CreateAsync(Efl.IModel model,Efl.Gfx.IEntity parent, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateAsync(Eina.Iterator models,Efl.Gfx.IEntity parent, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)); - /// Event triggered when an item has been successfully created. + /// Event triggered when an item has been successfully created. + /// event EventHandler CreatedEvt; } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IFactoryCreatedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Event triggered when an item has been successfully created. public Efl.Ui.FactoryItemCreatedEvent arg { get; set; } } /// Efl UI factory interface -sealed public class IFactoryConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IFactoryConcrete : Efl.Eo.EoWrapper , IFactory , Efl.Ui.IFactoryBind, Efl.Ui.IPropertyBind { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -63,7 +73,8 @@ sealed public class IFactoryConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IFactoryConcrete(ConstructingHandle ch) : base(ch) { @@ -79,6 +90,7 @@ sealed public class IFactoryConcrete : } /// Event triggered when an item has been successfully created. + /// public event EventHandler CreatedEvt { add @@ -118,7 +130,7 @@ sealed public class IFactoryConcrete : } } } - ///Method to raise event CreatedEvt. + /// Method to raise event CreatedEvt. public void OnCreatedEvt(Efl.Ui.IFactoryCreatedEvt_Args e) { var key = "_EFL_UI_FACTORY_EVENT_CREATED"; @@ -141,6 +153,7 @@ sealed public class IFactoryConcrete : } } /// Event dispatched when a property on the object has changed due to an user interaction on the object that a model could be interested in. + /// public event EventHandler PropertiesChangedEvt { add @@ -180,7 +193,7 @@ sealed public class IFactoryConcrete : } } } - ///Method to raise event PropertiesChangedEvt. + /// Method to raise event PropertiesChangedEvt. public void OnPropertiesChangedEvt(Efl.Ui.IPropertyBindPropertiesChangedEvt_Args e) { var key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTIES_CHANGED"; @@ -203,6 +216,7 @@ sealed public class IFactoryConcrete : } } /// Event dispatched when a property on the object is bound to a model. This is useful to not overgenerate event. + /// public event EventHandler PropertyBoundEvt { add @@ -242,7 +256,7 @@ sealed public class IFactoryConcrete : } } } - ///Method to raise event PropertyBoundEvt. + /// Method to raise event PropertyBoundEvt. public void OnPropertyBoundEvt(Efl.Ui.IPropertyBindPropertyBoundEvt_Args e) { var key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTY_BOUND"; @@ -263,12 +277,14 @@ sealed public class IFactoryConcrete : Eina.MemoryNative.Free(info); } } - /// Create a UI object from the necessary properties in the specified model. - /// Efl model + /// Create a UI object from the necessary properties in the specified model. + /// Note: This is the function you need to implement for a custom factory, but if you want to use a factory, you should rely on . + /// Efl iterator providing the model to be associated to the new item. It should remain valid until the end of the function call. /// Efl canvas /// Created UI object - public Eina.Future Create(Efl.IModel model, Efl.Gfx.IEntity parent) { - var _ret_var = Efl.Ui.IFactoryConcrete.NativeMethods.efl_ui_factory_create_ptr.Value.Delegate(this.NativeHandle,model, parent); + public Eina.Future Create(Eina.Iterator models, Efl.Gfx.IEntity parent) { + var _in_models = models.Handle; + var _ret_var = Efl.Ui.IFactoryConcrete.NativeMethods.efl_ui_factory_create_ptr.Value.Delegate(this.NativeHandle,_in_models, parent); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -278,6 +294,13 @@ sealed public class IFactoryConcrete : Efl.Ui.IFactoryConcrete.NativeMethods.efl_ui_factory_release_ptr.Value.Delegate(this.NativeHandle,ui_view); Eina.Error.RaiseIfUnhandledException(); } + /// This function is called during the creation of an UI object between the Efl.Object.constructor and call. + /// Note: if the does keep a cache of object, this won't be called when object are pulled out of the cache. + /// The UI object being created. + public void Building(Efl.Gfx.IEntity ui_view) { + Efl.Ui.IFactoryConcrete.NativeMethods.efl_ui_factory_building_ptr.Value.Delegate(this.NativeHandle,ui_view); + Eina.Error.RaiseIfUnhandledException(); + } /// bind the factory with the given key string. when the data is ready or changed, factory create the object and bind the data to the key action and process promised work. Note: the input need to be at least once. /// Key string for bind model property data /// for create and bind model property data @@ -295,13 +318,13 @@ sealed public class IFactoryConcrete : return _ret_var; } /// Async wrapper for . - /// Efl model + /// Efl iterator providing the model to be associated to the new item. It should remain valid until the end of the function call. /// Efl canvas /// Token to notify the async operation of external request to cancel. /// An async task wrapping the result of the operation. - public System.Threading.Tasks.Task CreateAsync(Efl.IModel model,Efl.Gfx.IEntity parent, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) + public System.Threading.Tasks.Task CreateAsync(Eina.Iterator models,Efl.Gfx.IEntity parent, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) { - Eina.Future future = Create( model, parent); + Eina.Future future = Create( models, parent); return Efl.Eo.Globals.WrapAsync(future, token); } @@ -341,6 +364,16 @@ sealed public class IFactoryConcrete : descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_factory_release"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_factory_release_static_delegate) }); } + if (efl_ui_factory_building_static_delegate == null) + { + efl_ui_factory_building_static_delegate = new efl_ui_factory_building_delegate(building); + } + + if (methods.FirstOrDefault(m => m.Name == "Building") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_factory_building"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_factory_building_static_delegate) }); + } + if (efl_ui_factory_bind_static_delegate == null) { efl_ui_factory_bind_static_delegate = new efl_ui_factory_bind_delegate(factory_bind); @@ -373,23 +406,24 @@ sealed public class IFactoryConcrete : #pragma warning disable CA1707, CS1591, SA1300, SA1600 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] - private delegate Eina.Future efl_ui_factory_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.IModel model, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity parent); + private delegate Eina.Future efl_ui_factory_create_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr models, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity parent); [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] - public delegate Eina.Future efl_ui_factory_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.IModel model, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity parent); + public delegate Eina.Future efl_ui_factory_create_api_delegate(System.IntPtr obj, System.IntPtr models, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity parent); public static Efl.Eo.FunctionWrapper efl_ui_factory_create_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_factory_create"); - private static Eina.Future create(System.IntPtr obj, System.IntPtr pd, Efl.IModel model, Efl.Gfx.IEntity parent) + private static Eina.Future create(System.IntPtr obj, System.IntPtr pd, System.IntPtr models, Efl.Gfx.IEntity parent) { Eina.Log.Debug("function efl_ui_factory_create was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - Eina.Future _ret_var = default( Eina.Future); + var _in_models = new Eina.Iterator(models, false); + Eina.Future _ret_var = default( Eina.Future); try { - _ret_var = ((IFactory)ws.Target).Create(model, parent); + _ret_var = ((IFactory)ws.Target).Create(_in_models, parent); } catch (Exception e) { @@ -402,7 +436,7 @@ sealed public class IFactoryConcrete : } else { - return efl_ui_factory_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), model, parent); + return efl_ui_factory_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), models, parent); } } @@ -444,6 +478,41 @@ sealed public class IFactoryConcrete : private static efl_ui_factory_release_delegate efl_ui_factory_release_static_delegate; + private delegate void efl_ui_factory_building_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity ui_view); + + + public delegate void efl_ui_factory_building_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity ui_view); + + public static Efl.Eo.FunctionWrapper efl_ui_factory_building_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_factory_building"); + + private static void building(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity ui_view) + { + Eina.Log.Debug("function efl_ui_factory_building was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((IFactory)ws.Target).Building(ui_view); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_factory_building_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ui_view); + } + } + + private static efl_ui_factory_building_delegate efl_ui_factory_building_static_delegate; + + private delegate void efl_ui_factory_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.IFactory factory); @@ -522,6 +591,12 @@ sealed public class IFactoryConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiIFactoryConcrete_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Ui { @@ -535,7 +610,9 @@ public struct FactoryItemCreatedEvent public Efl.IModel Model; /// The item that was just created. public Efl.Gfx.IEntity Item; - ///Constructor for FactoryItemCreatedEvent. + /// Constructor for FactoryItemCreatedEvent. + /// The model already set on the new item.; + /// The item that was just created.; public FactoryItemCreatedEvent( Efl.IModel Model = default(Efl.IModel), Efl.Gfx.IEntity Item = default(Efl.Gfx.IEntity) ) @@ -544,8 +621,8 @@ public struct FactoryItemCreatedEvent this.Item = Item; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator FactoryItemCreatedEvent(IntPtr ptr) { var tmp = (FactoryItemCreatedEvent.NativeStruct)Marshal.PtrToStructure(ptr, typeof(FactoryItemCreatedEvent.NativeStruct)); @@ -554,15 +631,15 @@ public struct FactoryItemCreatedEvent #pragma warning disable CS1591 - ///Internal wrapper for struct FactoryItemCreatedEvent. + /// Internal wrapper for struct FactoryItemCreatedEvent. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { - ///Internal wrapper for field Model + /// Internal wrapper for field Model public System.IntPtr Model; - ///Internal wrapper for field Item + /// Internal wrapper for field Item public System.IntPtr Item; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator FactoryItemCreatedEvent.NativeStruct(FactoryItemCreatedEvent _external_struct) { var _internal_struct = new FactoryItemCreatedEvent.NativeStruct(); @@ -571,7 +648,7 @@ public struct FactoryItemCreatedEvent return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator FactoryItemCreatedEvent(FactoryItemCreatedEvent.NativeStruct _internal_struct) { var _external_struct = new FactoryItemCreatedEvent(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_factory_bind.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_factory_bind.eo.cs old mode 100644 new mode 100755 index ac4beae14..80a0f947b --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_factory_bind.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_factory_bind.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Ui { /// Efl UI Property interface. view object can have and need to set cotent with those model stored data. the interface can help binding the factory to create object with model property data. see see +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.IFactoryBindConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IFactoryBind : @@ -21,12 +23,13 @@ public interface IFactoryBind : void FactoryBind(System.String key, Efl.Ui.IFactory factory); } /// Efl UI Property interface. view object can have and need to set cotent with those model stored data. the interface can help binding the factory to create object with model property data. see see -sealed public class IFactoryBindConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IFactoryBindConcrete : Efl.Eo.EoWrapper , IFactoryBind { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -42,7 +45,8 @@ sealed public class IFactoryBindConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IFactoryBindConcrete(ConstructingHandle ch) : base(ch) { @@ -144,3 +148,9 @@ sealed public class IFactoryBindConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiIFactoryBindConcrete_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_flip.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_flip.eo.cs old mode 100644 new mode 100755 index 9108a91f4..5206b5e71 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_flip.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_flip.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Efl UI flip class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Flip.NativeMethods] [Efl.Eo.BindingEntity] public class Flip : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLinear { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +48,8 @@ public class Flip : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLinear FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Flip(ConstructingHandle ch) : base(ch) { @@ -106,7 +109,7 @@ public class Flip : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLinear } } } - ///Method to raise event AnimateBeginEvt. + /// Method to raise event AnimateBeginEvt. public void OnAnimateBeginEvt(EventArgs e) { var key = "_EFL_UI_FLIP_EVENT_ANIMATE_BEGIN"; @@ -158,7 +161,7 @@ public class Flip : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLinear } } } - ///Method to raise event AnimateDoneEvt. + /// Method to raise event AnimateDoneEvt. public void OnAnimateDoneEvt(EventArgs e) { var key = "_EFL_UI_FLIP_EVENT_ANIMATE_DONE"; @@ -173,6 +176,7 @@ public class Flip : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLinear } /// Sent after a new sub-object was added. /// (Since EFL 1.22) + /// public event EventHandler ContentAddedEvt { add @@ -212,7 +216,7 @@ public class Flip : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLinear } } } - ///Method to raise event ContentAddedEvt. + /// Method to raise event ContentAddedEvt. public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; @@ -228,6 +232,7 @@ public class Flip : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLinear } /// Sent after a sub-object was removed, before unref. /// (Since EFL 1.22) + /// public event EventHandler ContentRemovedEvt { add @@ -267,7 +272,7 @@ public class Flip : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLinear } } } - ///Method to raise event ContentRemovedEvt. + /// Method to raise event ContentRemovedEvt. public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; @@ -1601,6 +1606,17 @@ public class Flip : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLinear } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiFlip_ExtensionMethods { + public static Efl.BindableProperty Interaction(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Flip { + return new Efl.BindableProperty("interaction", fac); + } + + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Ui { diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_flip_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_flip_part.eo.cs old mode 100644 new mode 100755 index 8b3b972a4..6834b6cdc --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_flip_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_flip_part.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Efl UI flip internal class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.FlipPart.NativeMethods] [Efl.Eo.BindingEntity] public class FlipPart : Efl.Ui.WidgetPart, Efl.IContent { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class FlipPart : Efl.Ui.WidgetPart, Efl.IContent FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected FlipPart(ConstructingHandle ch) : base(ch) { @@ -63,6 +66,7 @@ public class FlipPart : Efl.Ui.WidgetPart, Efl.IContent /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) + /// public event EventHandler ContentChangedEvt { add @@ -102,7 +106,7 @@ public class FlipPart : Efl.Ui.WidgetPart, Efl.IContent } } } - ///Method to raise event ContentChangedEvt. + /// Method to raise event ContentChangedEvt. public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; @@ -325,3 +329,13 @@ public class FlipPart : Efl.Ui.WidgetPart, Efl.IContent } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiFlipPart_ExtensionMethods { + public static Efl.BindableProperty Content(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.FlipPart { + return new Efl.BindableProperty("content", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_composition.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_composition.eo.cs old mode 100644 new mode 100755 index 6b6996d61..f0d2c7aef --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_composition.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_composition.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -13,6 +14,7 @@ namespace Focus { /// This defines the inheriting widget as Composition widget. /// A composition widget is a widget that's the logical parent of another set of widgets which can be used for interaction. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Focus.ICompositionConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IComposition : @@ -59,24 +61,25 @@ void Prepare(); /// If the element is a Efl.Ui.Widget nothing is done and the widget is simply part of the order. /// The order to use Eina.List CompositionElements { - get ; - set ; + get; + set; } /// Set to true if all children should be registered as logicals /// true or false bool LogicalMode { - get ; - set ; + get; + set; } } /// This defines the inheriting widget as Composition widget. /// A composition widget is a widget that's the logical parent of another set of widgets which can be used for interaction. -sealed public class ICompositionConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class ICompositionConcrete : Efl.Eo.EoWrapper , IComposition { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -92,7 +95,8 @@ sealed public class ICompositionConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ICompositionConcrete(ConstructingHandle ch) : base(ch) { @@ -489,3 +493,17 @@ logical_order.Own = false; } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Ui_FocusICompositionConcrete_ExtensionMethods { + public static Efl.BindableProperty> CompositionElements(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Focus.IComposition { + return new Efl.BindableProperty>("composition_elements", fac); + } + + public static Efl.BindableProperty LogicalMode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Focus.IComposition { + return new Efl.BindableProperty("logical_mode", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_layer.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_layer.eo.cs old mode 100644 new mode 100755 index 0a1b44321..5055d248f --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_layer.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_layer.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -15,6 +16,7 @@ namespace Focus { /// A focus layer is the uppermost one which received input and handles all focus related events for as long as it exists and is visible. It's NOT possible to escape this layer with focus movement. /// /// Once the object is hidden or destroyed the focus will go back to the mainwindow, where it was before. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Focus.ILayerConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface ILayer : @@ -38,20 +40,27 @@ void SetBehaviour(bool enable_on_visible, bool cycle); /// Enable property /// true to set enable the layer false to disable it bool Enable { - get ; - set ; + get; + set; + } + /// Constructor for setting the behaviour of the layer + /// true means layer will set itself once the inheriting widget becomes visible, false means the layer isn't enabled automatically + (bool, bool) Behaviour { + get; + set; } } /// This defines the inheriting widget as focus layer /// A focus layer is the uppermost one which received input and handles all focus related events for as long as it exists and is visible. It's NOT possible to escape this layer with focus movement. /// /// Once the object is hidden or destroyed the focus will go back to the mainwindow, where it was before. -sealed public class ILayerConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class ILayerConcrete : Efl.Eo.EoWrapper , ILayer , Efl.Ui.IWidgetFocusManager, Efl.Ui.Focus.IManager { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -67,7 +76,8 @@ sealed public class ILayerConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ILayerConcrete(ConstructingHandle ch) : base(ch) { @@ -84,6 +94,7 @@ sealed public class ILayerConcrete : /// Redirect object has changed, the old manager is passed as an event argument. /// (Since EFL 1.22) + /// public event EventHandler RedirectChangedEvt { add @@ -123,7 +134,7 @@ sealed public class ILayerConcrete : } } } - ///Method to raise event RedirectChangedEvt. + /// Method to raise event RedirectChangedEvt. public void OnRedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; @@ -177,7 +188,7 @@ sealed public class ILayerConcrete : } } } - ///Method to raise event FlushPreEvt. + /// Method to raise event FlushPreEvt. public void OnFlushPreEvt(EventArgs e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; @@ -230,7 +241,7 @@ sealed public class ILayerConcrete : } } } - ///Method to raise event CoordsDirtyEvt. + /// Method to raise event CoordsDirtyEvt. public void OnCoordsDirtyEvt(EventArgs e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; @@ -245,6 +256,7 @@ sealed public class ILayerConcrete : } /// The manager_focus property has changed. The previously focused object is passed as an event argument. /// (Since EFL 1.22) + /// public event EventHandler ManagerFocusChangedEvt { add @@ -284,7 +296,7 @@ sealed public class ILayerConcrete : } } } - ///Method to raise event ManagerFocusChangedEvt. + /// Method to raise event ManagerFocusChangedEvt. public void OnManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; @@ -300,6 +312,7 @@ sealed public class ILayerConcrete : } /// Called when this focus manager is frozen or thawed, even_info being true indicates that it is now frozen, false indicates that it is thawed. /// (Since EFL 1.22) + /// public event EventHandler DirtyLogicFreezeChangedEvt { add @@ -339,7 +352,7 @@ sealed public class ILayerConcrete : } } } - ///Method to raise event DirtyLogicFreezeChangedEvt. + /// Method to raise event DirtyLogicFreezeChangedEvt. public void OnDirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; @@ -503,7 +516,9 @@ sealed public class ILayerConcrete : } /// This will fetch the data from a registered node. /// Be aware this function will trigger a computation of all dirty nodes. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The child object to inspect. /// The list of relations starting from child. public Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child) { @@ -565,6 +580,17 @@ sealed public class ILayerConcrete : get { return GetEnable(); } set { SetEnable(value); } } + /// Constructor for setting the behaviour of the layer + /// true means layer will set itself once the inheriting widget becomes visible, false means the layer isn't enabled automatically + public (bool, bool) Behaviour { + get { + bool _out_enable_on_visible = default(bool); + bool _out_cycle = default(bool); + GetBehaviour(out _out_enable_on_visible,out _out_cycle); + return (_out_enable_on_visible,_out_cycle); + } + set { SetBehaviour( value.Item1, value.Item2); } + } /// The element which is currently focused by this manager /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. /// (Since EFL 1.22) @@ -1682,3 +1708,28 @@ sealed public class ILayerConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Ui_FocusILayerConcrete_ExtensionMethods { + public static Efl.BindableProperty Enable(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Focus.ILayer { + return new Efl.BindableProperty("enable", fac); + } + + + public static Efl.BindableProperty ManagerFocus(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Focus.ILayer { + return new Efl.BindableProperty("manager_focus", fac); + } + + public static Efl.BindableProperty Redirect(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Focus.ILayer { + return new Efl.BindableProperty("redirect", fac); + } + + + + public static Efl.BindableProperty Root(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Focus.ILayer { + return new Efl.BindableProperty("root", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager.eo.cs old mode 100644 new mode 100755 index 1bae14150..28f98874e --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -82,7 +83,9 @@ Efl.Ui.Focus.IObject MoveRequest(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus. Efl.Ui.Focus.IObject RequestSubchild(Efl.Ui.Focus.IObject root); /// This will fetch the data from a registered node. /// Be aware this function will trigger a computation of all dirty nodes. -/// (Since EFL 1.22) +/// (Since EFL 1.22) +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The child object to inspect. /// The list of relations starting from child. Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child); @@ -115,6 +118,7 @@ void FreezeDirtyLogic(); void DirtyLogicUnfreeze(); /// Redirect object has changed, the old manager is passed as an event argument. /// (Since EFL 1.22) + /// event EventHandler RedirectChangedEvt; /// After this event, the manager object will calculate relations in the graph. Can be used to add / remove children in a lazy fashion. /// (Since EFL 1.22) @@ -124,69 +128,74 @@ void DirtyLogicUnfreeze(); event EventHandler CoordsDirtyEvt; /// The manager_focus property has changed. The previously focused object is passed as an event argument. /// (Since EFL 1.22) + /// event EventHandler ManagerFocusChangedEvt; /// Called when this focus manager is frozen or thawed, even_info being true indicates that it is now frozen, false indicates that it is thawed. /// (Since EFL 1.22) + /// event EventHandler DirtyLogicFreezeChangedEvt; /// The element which is currently focused by this manager /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. /// (Since EFL 1.22) /// Currently focused element. Efl.Ui.Focus.IObject ManagerFocus { - get ; - set ; + get; + set; } /// Add another manager to serve the move requests. /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. /// (Since EFL 1.22) /// The redirect manager. Efl.Ui.Focus.IManager Redirect { - get ; - set ; + get; + set; } /// The list of elements which are at the border of the graph. /// This means one of the relations right,left or down,up are not set. This call flushes all changes. See /// (Since EFL 1.22) /// An iterator over the border objects. Eina.Iterator BorderElements { - get ; + get; } /// Root node for all logical subtrees. /// This property can only be set once. /// (Since EFL 1.22) /// Will be registered into this manager object. Efl.Ui.Focus.IObject Root { - get ; - set ; + get; + set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IManagerRedirectChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Redirect object has changed, the old manager is passed as an event argument. public Efl.Ui.Focus.IManager arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IManagerManagerFocusChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// The manager_focus property has changed. The previously focused object is passed as an event argument. public Efl.Ui.Focus.IObject arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IManagerDirtyLogicFreezeChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when this focus manager is frozen or thawed, even_info being true indicates that it is now frozen, false indicates that it is thawed. public bool arg { get; set; } } /// Interface for managing focus objects /// This interface is built in order to support movement of the focus property in a set of widgets. The movement of the focus property can happen in a tree manner, or a graph manner. The movement is also keeping track of the history of focused elements. The tree interpretation differentiates between logical and non-logical widgets, a logical widget cannot receive focus whereas a non-logical one can. /// (Since EFL 1.22) -sealed public class IManagerConcrete : +sealed public class IManagerConcrete : Efl.Eo.EoWrapper , IManager { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -202,7 +211,8 @@ sealed public class IManagerConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IManagerConcrete(ConstructingHandle ch) : base(ch) { @@ -219,6 +229,7 @@ sealed public class IManagerConcrete : /// Redirect object has changed, the old manager is passed as an event argument. /// (Since EFL 1.22) + /// public event EventHandler RedirectChangedEvt { add @@ -258,7 +269,7 @@ sealed public class IManagerConcrete : } } } - ///Method to raise event RedirectChangedEvt. + /// Method to raise event RedirectChangedEvt. public void OnRedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; @@ -312,7 +323,7 @@ sealed public class IManagerConcrete : } } } - ///Method to raise event FlushPreEvt. + /// Method to raise event FlushPreEvt. public void OnFlushPreEvt(EventArgs e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; @@ -365,7 +376,7 @@ sealed public class IManagerConcrete : } } } - ///Method to raise event CoordsDirtyEvt. + /// Method to raise event CoordsDirtyEvt. public void OnCoordsDirtyEvt(EventArgs e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; @@ -380,6 +391,7 @@ sealed public class IManagerConcrete : } /// The manager_focus property has changed. The previously focused object is passed as an event argument. /// (Since EFL 1.22) + /// public event EventHandler ManagerFocusChangedEvt { add @@ -419,7 +431,7 @@ sealed public class IManagerConcrete : } } } - ///Method to raise event ManagerFocusChangedEvt. + /// Method to raise event ManagerFocusChangedEvt. public void OnManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; @@ -435,6 +447,7 @@ sealed public class IManagerConcrete : } /// Called when this focus manager is frozen or thawed, even_info being true indicates that it is now frozen, false indicates that it is thawed. /// (Since EFL 1.22) + /// public event EventHandler DirtyLogicFreezeChangedEvt { add @@ -474,7 +487,7 @@ sealed public class IManagerConcrete : } } } - ///Method to raise event DirtyLogicFreezeChangedEvt. + /// Method to raise event DirtyLogicFreezeChangedEvt. public void OnDirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; @@ -601,7 +614,9 @@ sealed public class IManagerConcrete : } /// This will fetch the data from a registered node. /// Be aware this function will trigger a computation of all dirty nodes. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The child object to inspect. /// The list of relations starting from child. public Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child) { @@ -1547,6 +1562,26 @@ sealed public class IManagerConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Ui_FocusIManagerConcrete_ExtensionMethods { + public static Efl.BindableProperty ManagerFocus(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Focus.IManager { + return new Efl.BindableProperty("manager_focus", fac); + } + + public static Efl.BindableProperty Redirect(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Focus.IManager { + return new Efl.BindableProperty("redirect", fac); + } + + + + public static Efl.BindableProperty Root(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Focus.IManager { + return new Efl.BindableProperty("root", fac); + } + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Ui { @@ -1580,7 +1615,18 @@ public struct Relations public bool Logical; /// The position in the history stack public int Position_in_history; - ///Constructor for Relations. + /// Constructor for Relations. + /// List of objects on the right side; + /// List of objects on the left side; + /// List of objects above; + /// List of objects below; + /// Next object; + /// Previous object; + /// Parent object; + /// Redirect manager; + /// The node where this is the information from; + /// true if this node is only logical; + /// The position in the history stack; public Relations( Eina.List Right = default(Eina.List), Eina.List Left = default(Eina.List), @@ -1607,8 +1653,8 @@ public struct Relations this.Position_in_history = Position_in_history; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator Relations(IntPtr ptr) { var tmp = (Relations.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Relations.NativeStruct)); @@ -1617,7 +1663,7 @@ public struct Relations #pragma warning disable CS1591 - ///Internal wrapper for struct Relations. + /// Internal wrapper for struct Relations. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -1629,21 +1675,21 @@ public struct Relations public System.IntPtr Top; public System.IntPtr Down; - ///Internal wrapper for field Next + /// Internal wrapper for field Next public System.IntPtr Next; - ///Internal wrapper for field Prev + /// Internal wrapper for field Prev public System.IntPtr Prev; - ///Internal wrapper for field Parent + /// Internal wrapper for field Parent public System.IntPtr Parent; - ///Internal wrapper for field Redirect + /// Internal wrapper for field Redirect public System.IntPtr Redirect; - ///Internal wrapper for field Node + /// Internal wrapper for field Node public System.IntPtr Node; - ///Internal wrapper for field Logical + /// Internal wrapper for field Logical public System.Byte Logical; public int Position_in_history; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator Relations.NativeStruct(Relations _external_struct) { var _internal_struct = new Relations.NativeStruct(); @@ -1661,7 +1707,7 @@ public struct Relations return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator Relations(Relations.NativeStruct _internal_struct) { var _external_struct = new Relations(); @@ -1712,7 +1758,9 @@ public struct ManagerLogicalEndDetail public bool Is_regular_end; /// The last element of the logical chain in the public Efl.Ui.Focus.IObject Element; - ///Constructor for ManagerLogicalEndDetail. + /// Constructor for ManagerLogicalEndDetail. + /// true if element is registered as regular element in the obejct, false otherwise; + /// The last element of the logical chain in the ; public ManagerLogicalEndDetail( bool Is_regular_end = default(bool), Efl.Ui.Focus.IObject Element = default(Efl.Ui.Focus.IObject) ) @@ -1721,8 +1769,8 @@ public struct ManagerLogicalEndDetail this.Element = Element; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator ManagerLogicalEndDetail(IntPtr ptr) { var tmp = (ManagerLogicalEndDetail.NativeStruct)Marshal.PtrToStructure(ptr, typeof(ManagerLogicalEndDetail.NativeStruct)); @@ -1731,15 +1779,15 @@ public struct ManagerLogicalEndDetail #pragma warning disable CS1591 - ///Internal wrapper for struct ManagerLogicalEndDetail. + /// Internal wrapper for struct ManagerLogicalEndDetail. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { - ///Internal wrapper for field Is_regular_end + /// Internal wrapper for field Is_regular_end public System.Byte Is_regular_end; - ///Internal wrapper for field Element + /// Internal wrapper for field Element public System.IntPtr Element; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator ManagerLogicalEndDetail.NativeStruct(ManagerLogicalEndDetail _external_struct) { var _internal_struct = new ManagerLogicalEndDetail.NativeStruct(); @@ -1748,7 +1796,7 @@ public struct ManagerLogicalEndDetail return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator ManagerLogicalEndDetail(ManagerLogicalEndDetail.NativeStruct _internal_struct) { var _external_struct = new ManagerLogicalEndDetail(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_calc.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_calc.eo.cs old mode 100644 new mode 100755 index b0c9278b3..db4e32d58 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_calc.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_calc.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -13,11 +14,12 @@ namespace Focus { /// Calculates the directions of Efl.Ui.Focus.Direction /// Each registered item will get an other registered object in each direction. You can get items for the currently focused item if you call request move. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Focus.ManagerCalc.NativeMethods] [Efl.Eo.BindingEntity] public class ManagerCalc : Efl.Object, Efl.Ui.Focus.IManager { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -43,7 +45,8 @@ public class ManagerCalc : Efl.Object, Efl.Ui.Focus.IManager FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected ManagerCalc(ConstructingHandle ch) : base(ch) { @@ -66,6 +69,7 @@ public class ManagerCalc : Efl.Object, Efl.Ui.Focus.IManager /// Redirect object has changed, the old manager is passed as an event argument. /// (Since EFL 1.22) + /// public event EventHandler RedirectChangedEvt { add @@ -105,7 +109,7 @@ public class ManagerCalc : Efl.Object, Efl.Ui.Focus.IManager } } } - ///Method to raise event RedirectChangedEvt. + /// Method to raise event RedirectChangedEvt. public void OnRedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; @@ -159,7 +163,7 @@ public class ManagerCalc : Efl.Object, Efl.Ui.Focus.IManager } } } - ///Method to raise event FlushPreEvt. + /// Method to raise event FlushPreEvt. public void OnFlushPreEvt(EventArgs e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; @@ -212,7 +216,7 @@ public class ManagerCalc : Efl.Object, Efl.Ui.Focus.IManager } } } - ///Method to raise event CoordsDirtyEvt. + /// Method to raise event CoordsDirtyEvt. public void OnCoordsDirtyEvt(EventArgs e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; @@ -227,6 +231,7 @@ public class ManagerCalc : Efl.Object, Efl.Ui.Focus.IManager } /// The manager_focus property has changed. The previously focused object is passed as an event argument. /// (Since EFL 1.22) + /// public event EventHandler ManagerFocusChangedEvt { add @@ -266,7 +271,7 @@ public class ManagerCalc : Efl.Object, Efl.Ui.Focus.IManager } } } - ///Method to raise event ManagerFocusChangedEvt. + /// Method to raise event ManagerFocusChangedEvt. public void OnManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; @@ -282,6 +287,7 @@ public class ManagerCalc : Efl.Object, Efl.Ui.Focus.IManager } /// Called when this focus manager is frozen or thawed, even_info being true indicates that it is now frozen, false indicates that it is thawed. /// (Since EFL 1.22) + /// public event EventHandler DirtyLogicFreezeChangedEvt { add @@ -321,7 +327,7 @@ public class ManagerCalc : Efl.Object, Efl.Ui.Focus.IManager } } } - ///Method to raise event DirtyLogicFreezeChangedEvt. + /// Method to raise event DirtyLogicFreezeChangedEvt. public void OnDirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; @@ -516,7 +522,9 @@ children.Own = false; } /// This will fetch the data from a registered node. /// Be aware this function will trigger a computation of all dirty nodes. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The child object to inspect. /// The list of relations starting from child. virtual public Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child) { @@ -1785,3 +1793,23 @@ children.Own = false; } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Ui_FocusManagerCalc_ExtensionMethods { + public static Efl.BindableProperty ManagerFocus(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Focus.ManagerCalc { + return new Efl.BindableProperty("manager_focus", fac); + } + + public static Efl.BindableProperty Redirect(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Focus.ManagerCalc { + return new Efl.BindableProperty("redirect", fac); + } + + + + public static Efl.BindableProperty Root(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Focus.ManagerCalc { + return new Efl.BindableProperty("root", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_root_focus.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_root_focus.eo.cs old mode 100644 new mode 100755 index e857209ad..55a6c7f29 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_root_focus.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_root_focus.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -12,11 +13,12 @@ namespace Ui { namespace Focus { /// This class ensures that the root is at least focusable, if nothing else is focusable +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Focus.ManagerRootFocus.NativeMethods] [Efl.Eo.BindingEntity] public class ManagerRootFocus : Efl.Ui.Focus.ManagerCalc { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -42,7 +44,8 @@ public class ManagerRootFocus : Efl.Ui.Focus.ManagerCalc FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected ManagerRootFocus(ConstructingHandle ch) : base(ch) { @@ -211,3 +214,13 @@ public class ManagerRootFocus : Efl.Ui.Focus.ManagerCalc } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Ui_FocusManagerRootFocus_ExtensionMethods { + public static Efl.BindableProperty CanvasObject(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Focus.ManagerRootFocus { + return new Efl.BindableProperty("canvas_object", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_sub.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_sub.eo.cs old mode 100644 new mode 100755 index cdbabf0ae..e476e6170 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_sub.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_sub.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -17,6 +18,7 @@ namespace Focus { /// Each sub manager also has to be a focus object, the object itself will be registered into the parent manager. It will be used as logical parent while registering the border elements. /// /// You can filter the border elements by overriding the property . +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Focus.IManagerSubConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IManagerSub : @@ -30,12 +32,13 @@ public interface IManagerSub : /// Each sub manager also has to be a focus object, the object itself will be registered into the parent manager. It will be used as logical parent while registering the border elements. /// /// You can filter the border elements by overriding the property . -sealed public class IManagerSubConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IManagerSubConcrete : Efl.Eo.EoWrapper , IManagerSub , Efl.Ui.Focus.IManager { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -51,7 +54,8 @@ sealed public class IManagerSubConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IManagerSubConcrete(ConstructingHandle ch) : base(ch) { @@ -68,6 +72,7 @@ sealed public class IManagerSubConcrete : /// Redirect object has changed, the old manager is passed as an event argument. /// (Since EFL 1.22) + /// public event EventHandler RedirectChangedEvt { add @@ -107,7 +112,7 @@ sealed public class IManagerSubConcrete : } } } - ///Method to raise event RedirectChangedEvt. + /// Method to raise event RedirectChangedEvt. public void OnRedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; @@ -161,7 +166,7 @@ sealed public class IManagerSubConcrete : } } } - ///Method to raise event FlushPreEvt. + /// Method to raise event FlushPreEvt. public void OnFlushPreEvt(EventArgs e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; @@ -214,7 +219,7 @@ sealed public class IManagerSubConcrete : } } } - ///Method to raise event CoordsDirtyEvt. + /// Method to raise event CoordsDirtyEvt. public void OnCoordsDirtyEvt(EventArgs e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; @@ -229,6 +234,7 @@ sealed public class IManagerSubConcrete : } /// The manager_focus property has changed. The previously focused object is passed as an event argument. /// (Since EFL 1.22) + /// public event EventHandler ManagerFocusChangedEvt { add @@ -268,7 +274,7 @@ sealed public class IManagerSubConcrete : } } } - ///Method to raise event ManagerFocusChangedEvt. + /// Method to raise event ManagerFocusChangedEvt. public void OnManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; @@ -284,6 +290,7 @@ sealed public class IManagerSubConcrete : } /// Called when this focus manager is frozen or thawed, even_info being true indicates that it is now frozen, false indicates that it is thawed. /// (Since EFL 1.22) + /// public event EventHandler DirtyLogicFreezeChangedEvt { add @@ -323,7 +330,7 @@ sealed public class IManagerSubConcrete : } } } - ///Method to raise event DirtyLogicFreezeChangedEvt. + /// Method to raise event DirtyLogicFreezeChangedEvt. public void OnDirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; @@ -450,7 +457,9 @@ sealed public class IManagerSubConcrete : } /// This will fetch the data from a registered node. /// Be aware this function will trigger a computation of all dirty nodes. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The child object to inspect. /// The list of relations starting from child. public Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child) { @@ -1396,3 +1405,23 @@ sealed public class IManagerSubConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Ui_FocusIManagerSubConcrete_ExtensionMethods { + public static Efl.BindableProperty ManagerFocus(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Focus.IManagerSub { + return new Efl.BindableProperty("manager_focus", fac); + } + + public static Efl.BindableProperty Redirect(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Focus.IManagerSub { + return new Efl.BindableProperty("redirect", fac); + } + + + + public static Efl.BindableProperty Root(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Focus.IManagerSub { + return new Efl.BindableProperty("root", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_window_root.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_window_root.eo.cs old mode 100644 new mode 100755 index a8ba7f995..9c927f7db --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_window_root.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_manager_window_root.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -23,12 +24,12 @@ public interface IManagerWindowRoot : /// A interface to indicate the end of a focus chain. /// Focusmanagers are ensuring that if they give focus to something, that they are registered in the upper focus manager. The most upper focus manager does not need to do that, and can implement this interface to indicate that. /// (Since EFL 1.22) -sealed public class IManagerWindowRootConcrete : +sealed public class IManagerWindowRootConcrete : Efl.Eo.EoWrapper , IManagerWindowRoot { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -44,7 +45,8 @@ sealed public class IManagerWindowRootConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IManagerWindowRootConcrete(ConstructingHandle ch) : base(ch) { @@ -93,3 +95,9 @@ sealed public class IManagerWindowRootConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Ui_FocusIManagerWindowRootConcrete_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_object.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_object.eo.cs old mode 100644 new mode 100755 index 559258c13..aef8396fe --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_object.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_object.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -59,90 +60,100 @@ void SetupOrderNonRecursive(); bool UpdateOnFocus(); /// Emitted if the focus state has changed. /// (Since EFL 1.22) + /// event EventHandler FocusChangedEvt; /// Emitted when a new manager is the parent for this object. /// (Since EFL 1.22) + /// event EventHandler FocusManagerChangedEvt; /// Emitted when a new logical parent should be used. /// (Since EFL 1.22) + /// event EventHandler FocusParentChangedEvt; /// Emitted if child_focus has changed. /// (Since EFL 1.22) + /// event EventHandler ChildFocusChangedEvt; /// Emitted if focus geometry of this object has changed. /// (Since EFL 1.22) + /// event EventHandler FocusGeometryChangedEvt; /// The geometry (that is, the bounding rectangle) used to calculate the relationship with other objects. /// (Since EFL 1.22) /// The geometry to use. Eina.Rect FocusGeometry { - get ; + get; } /// Returns whether the widget is currently focused or not. /// (Since EFL 1.22) /// The focused state of the object. bool Focus { - get ; - set ; + get; + set; } /// This is the focus manager where this focus object is registered in. The element which is the root of a Efl.Ui.Focus.Manager will not have this focus manager as this object, but rather the second focus manager where it is registered in. /// (Since EFL 1.22) /// The manager object Efl.Ui.Focus.IManager FocusManager { - get ; + get; } /// Describes which logical parent is used by this object. /// (Since EFL 1.22) /// The focus parent. Efl.Ui.Focus.IObject FocusParent { - get ; + get; } /// Indicates if a child of this object has focus set to true. /// (Since EFL 1.22) /// true if a child has focus. bool ChildFocus { - get ; - set ; + get; + set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IObjectFocusChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Emitted if the focus state has changed. public bool arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IObjectFocusManagerChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Emitted when a new manager is the parent for this object. public Efl.Ui.Focus.IManager arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IObjectFocusParentChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Emitted when a new logical parent should be used. public Efl.Ui.Focus.IObject arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IObjectChildFocusChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Emitted if child_focus has changed. public bool arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IObjectFocusGeometryChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Emitted if focus geometry of this object has changed. public Eina.Rect arg { get; set; } } /// Functions of focusable objects. /// (Since EFL 1.22) -sealed public class IObjectConcrete : +sealed public class IObjectConcrete : Efl.Eo.EoWrapper , IObject { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -158,7 +169,8 @@ sealed public class IObjectConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IObjectConcrete(ConstructingHandle ch) : base(ch) { @@ -175,6 +187,7 @@ sealed public class IObjectConcrete : /// Emitted if the focus state has changed. /// (Since EFL 1.22) + /// public event EventHandler FocusChangedEvt { add @@ -214,7 +227,7 @@ sealed public class IObjectConcrete : } } } - ///Method to raise event FocusChangedEvt. + /// Method to raise event FocusChangedEvt. public void OnFocusChangedEvt(Efl.Ui.Focus.IObjectFocusChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED"; @@ -237,6 +250,7 @@ sealed public class IObjectConcrete : } /// Emitted when a new manager is the parent for this object. /// (Since EFL 1.22) + /// public event EventHandler FocusManagerChangedEvt { add @@ -276,7 +290,7 @@ sealed public class IObjectConcrete : } } } - ///Method to raise event FocusManagerChangedEvt. + /// Method to raise event FocusManagerChangedEvt. public void OnFocusManagerChangedEvt(Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_MANAGER_CHANGED"; @@ -292,6 +306,7 @@ sealed public class IObjectConcrete : } /// Emitted when a new logical parent should be used. /// (Since EFL 1.22) + /// public event EventHandler FocusParentChangedEvt { add @@ -331,7 +346,7 @@ sealed public class IObjectConcrete : } } } - ///Method to raise event FocusParentChangedEvt. + /// Method to raise event FocusParentChangedEvt. public void OnFocusParentChangedEvt(Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_PARENT_CHANGED"; @@ -347,6 +362,7 @@ sealed public class IObjectConcrete : } /// Emitted if child_focus has changed. /// (Since EFL 1.22) + /// public event EventHandler ChildFocusChangedEvt { add @@ -386,7 +402,7 @@ sealed public class IObjectConcrete : } } } - ///Method to raise event ChildFocusChangedEvt. + /// Method to raise event ChildFocusChangedEvt. public void OnChildFocusChangedEvt(Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_OBJECT_EVENT_CHILD_FOCUS_CHANGED"; @@ -409,6 +425,7 @@ sealed public class IObjectConcrete : } /// Emitted if focus geometry of this object has changed. /// (Since EFL 1.22) + /// public event EventHandler FocusGeometryChangedEvt { add @@ -448,7 +465,7 @@ sealed public class IObjectConcrete : } } } - ///Method to raise event FocusGeometryChangedEvt. + /// Method to raise event FocusGeometryChangedEvt. public void OnFocusGeometryChangedEvt(Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_GEOMETRY_CHANGED"; @@ -1070,3 +1087,20 @@ sealed public class IObjectConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Ui_FocusIObjectConcrete_ExtensionMethods { + + public static Efl.BindableProperty Focus(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Focus.IObject { + return new Efl.BindableProperty("focus", fac); + } + + + + public static Efl.BindableProperty ChildFocus(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Focus.IObject { + return new Efl.BindableProperty("child_focus", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_util.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_util.eo.cs old mode 100644 new mode 100755 index 825ebdb9e..6b3f76933 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_util.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_focus_util.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -12,11 +13,12 @@ namespace Ui { namespace Focus { /// EFL UI Focus Util class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Focus.Util.NativeMethods] [Efl.Eo.BindingEntity] public class Util : Efl.Object { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -42,7 +44,8 @@ public class Util : Efl.Object FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Util(ConstructingHandle ch) : base(ch) { @@ -217,3 +220,9 @@ public class Util : Efl.Object } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Ui_FocusUtil_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_format.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_format.eo.cs old mode 100644 new mode 100755 index 68968901c..86c3b6018 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_format.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_format.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -92,6 +93,7 @@ namespace Ui { /// This conversion can be controlled through the , and properties. Only one of them needs to be set. When more than one is set has the highest priority, followed by and then . If one mechanism fails to produce a valid string the others will be tried (if provided) in descending order of priority. If no user-provided mechanism works, a fallback is used that just displays the value. /// /// Widgets including this mixin offer their users different properties to control how 's are converted to text. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.IFormatConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IFormat : @@ -146,14 +148,27 @@ void ApplyFormattedValue(); /// User-provided function which takes care of converting an into a text string. The user is then completely in control of how the string is generated, but it is the most cumbersome method to use. If the conversion fails the other mechanisms will be tried, according to their priorities. /// User-provided formatting function. Efl.Ui.FormatFunc FormatFunc { - get ; - set ; + get; + set; } /// User-provided list of values which are to be rendered using specific text strings. This is more convenient to use than and is perfectly suited for cases where the strings make more sense than the numerical values. For example, weekday names ("Monday", "Tuesday", ...) are friendlier than numbers 1 to 7. If a value is not found in the list, the other mechanisms will be tried according to their priorities. List members do not need to be in any particular order. They are sorted internally for performance reasons. /// Accessor over a list of value-text pairs. The method will dispose of the accessor, but not of its contents. For convenience, Eina offers a range of helper methods to obtain accessors from Eina.Array, Eina.List or even plain C arrays. Eina.Accessor FormatValues { - get ; - set ; + get; + set; + } + /// A user-provided, string used to format the numerical value. + /// For example, "%1.2f meters", "%.0%%" or "%d items". + /// + /// This is the simplest formatting mechanism, working pretty much like printf. + /// + /// Different format specifiers (the character after the %) are available, depending on the type used. Use for simple numerical values and for time and date values. For instance, %d means "integer" when the first type is used, but it means "day of the month as a decimal number" in the second. + /// + /// Pass NULL to disable this mechanism. + /// Formatting string containing regular characters and format specifiers. + (System.String, Efl.Ui.FormatStringType) FormatString { + get; + set; } } /// Helper mixin that simplifies converting numerical values to text. @@ -162,12 +177,13 @@ void ApplyFormattedValue(); /// This conversion can be controlled through the , and properties. Only one of them needs to be set. When more than one is set has the highest priority, followed by and then . If one mechanism fails to produce a valid string the others will be tried (if provided) in descending order of priority. If no user-provided mechanism works, a fallback is used that just displays the value. /// /// Widgets including this mixin offer their users different properties to control how 's are converted to text. -sealed public class IFormatConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IFormatConcrete : Efl.Eo.EoWrapper , IFormat { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -183,7 +199,8 @@ sealed public class IFormatConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IFormatConcrete(ConstructingHandle ch) : base(ch) { @@ -288,6 +305,24 @@ sealed public class IFormatConcrete : get { return GetFormatValues(); } set { SetFormatValues(value); } } + /// A user-provided, string used to format the numerical value. + /// For example, "%1.2f meters", "%.0%%" or "%d items". + /// + /// This is the simplest formatting mechanism, working pretty much like printf. + /// + /// Different format specifiers (the character after the %) are available, depending on the type used. Use for simple numerical values and for time and date values. For instance, %d means "integer" when the first type is used, but it means "day of the month as a decimal number" in the second. + /// + /// Pass NULL to disable this mechanism. + /// Formatting string containing regular characters and format specifiers. + public (System.String, Efl.Ui.FormatStringType) FormatString { + get { + System.String _out_kw_string = default(System.String); + Efl.Ui.FormatStringType _out_type = default(Efl.Ui.FormatStringType); + GetFormatString(out _out_kw_string,out _out_type); + return (_out_kw_string,_out_type); + } + set { SetFormatString( value.Item1, value.Item2); } + } private static IntPtr GetEflClassStatic() { return Efl.Ui.IFormatConcrete.efl_ui_format_mixin_get(); @@ -735,6 +770,21 @@ sealed public class IFormatConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiIFormatConcrete_ExtensionMethods { + public static Efl.BindableProperty FormatFunc(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IFormat { + return new Efl.BindableProperty("format_func", fac); + } + + public static Efl.BindableProperty> FormatValues(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IFormat { + return new Efl.BindableProperty>("format_values", fac); + } + + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Ui { @@ -766,7 +816,9 @@ public struct FormatValue public int Value; /// Text string to replace it. public System.String Text; - ///Constructor for FormatValue. + /// Constructor for FormatValue. + /// Input value.; + /// Text string to replace it.; public FormatValue( int Value = default(int), System.String Text = default(System.String) ) @@ -775,8 +827,8 @@ public struct FormatValue this.Text = Text; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator FormatValue(IntPtr ptr) { var tmp = (FormatValue.NativeStruct)Marshal.PtrToStructure(ptr, typeof(FormatValue.NativeStruct)); @@ -785,15 +837,15 @@ public struct FormatValue #pragma warning disable CS1591 - ///Internal wrapper for struct FormatValue. + /// Internal wrapper for struct FormatValue. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { public int Value; - ///Internal wrapper for field Text + /// Internal wrapper for field Text public System.IntPtr Text; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator FormatValue.NativeStruct(FormatValue _external_struct) { var _internal_struct = new FormatValue.NativeStruct(); @@ -802,7 +854,7 @@ public struct FormatValue return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator FormatValue(FormatValue.NativeStruct _internal_struct) { var _external_struct = new FormatValue(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_frame.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_frame.eo.cs old mode 100644 new mode 100755 index 740f1136b..a7e246da1 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_frame.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_frame.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Ui { /// Frame widget /// The Frame widget allows for collapsing and expanding the content widget by clicking on the frame label. the label and content can be set using text_set and content_set api. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Frame.NativeMethods] [Efl.Eo.BindingEntity] -public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup, Efl.Ui.IClickable +public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup, Efl.Input.IClickable { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -47,7 +49,8 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Frame(ConstructingHandle ch) : base(ch) { @@ -70,6 +73,7 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) + /// public event EventHandler ContentChangedEvt { add @@ -109,7 +113,7 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup } } } - ///Method to raise event ContentChangedEvt. + /// Method to raise event ContentChangedEvt. public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; @@ -124,7 +128,8 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Called when object is in sequence pressed and unpressed, by the primary button - public event EventHandler ClickedEvt + /// + public event EventHandler ClickedEvt { add { @@ -135,7 +140,7 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickableClickedEvt_Args args = new Efl.Ui.IClickableClickedEvt_Args(); + Efl.Input.IClickableClickedEvt_Args args = new Efl.Input.IClickableClickedEvt_Args(); args.arg = evt.Info; try { @@ -149,7 +154,7 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup } }; - string key = "_EFL_UI_EVENT_CLICKED"; + string key = "_EFL_INPUT_EVENT_CLICKED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -158,15 +163,15 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_CLICKED"; + string key = "_EFL_INPUT_EVENT_CLICKED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ClickedEvt. - public void OnClickedEvt(Efl.Ui.IClickableClickedEvt_Args e) + /// Method to raise event ClickedEvt. + public void OnClickedEvt(Efl.Input.IClickableClickedEvt_Args e) { - var key = "_EFL_UI_EVENT_CLICKED"; + var key = "_EFL_INPUT_EVENT_CLICKED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -186,7 +191,8 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup } } /// Called when object is in sequence pressed and unpressed by any button. The button that triggered the event can be found in the event information. - public event EventHandler ClickedAnyEvt + /// + public event EventHandler ClickedAnyEvt { add { @@ -197,7 +203,7 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickableClickedAnyEvt_Args args = new Efl.Ui.IClickableClickedAnyEvt_Args(); + Efl.Input.IClickableClickedAnyEvt_Args args = new Efl.Input.IClickableClickedAnyEvt_Args(); args.arg = evt.Info; try { @@ -211,7 +217,7 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup } }; - string key = "_EFL_UI_EVENT_CLICKED_ANY"; + string key = "_EFL_INPUT_EVENT_CLICKED_ANY"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -220,15 +226,15 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_CLICKED_ANY"; + string key = "_EFL_INPUT_EVENT_CLICKED_ANY"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ClickedAnyEvt. - public void OnClickedAnyEvt(Efl.Ui.IClickableClickedAnyEvt_Args e) + /// Method to raise event ClickedAnyEvt. + public void OnClickedAnyEvt(Efl.Input.IClickableClickedAnyEvt_Args e) { - var key = "_EFL_UI_EVENT_CLICKED_ANY"; + var key = "_EFL_INPUT_EVENT_CLICKED_ANY"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -248,7 +254,8 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup } } /// Called when the object is pressed, event_info is the button that got pressed - public event EventHandler PressedEvt + /// + public event EventHandler PressedEvt { add { @@ -259,7 +266,7 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); + Efl.Input.IClickablePressedEvt_Args args = new Efl.Input.IClickablePressedEvt_Args(); args.arg = Marshal.ReadInt32(evt.Info); try { @@ -273,7 +280,7 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup } }; - string key = "_EFL_UI_EVENT_PRESSED"; + string key = "_EFL_INPUT_EVENT_PRESSED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -282,15 +289,15 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_PRESSED"; + string key = "_EFL_INPUT_EVENT_PRESSED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event PressedEvt. - public void OnPressedEvt(Efl.Ui.IClickablePressedEvt_Args e) + /// Method to raise event PressedEvt. + public void OnPressedEvt(Efl.Input.IClickablePressedEvt_Args e) { - var key = "_EFL_UI_EVENT_PRESSED"; + var key = "_EFL_INPUT_EVENT_PRESSED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -309,7 +316,8 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup } } /// Called when the object is no longer pressed, event_info is the button that got pressed - public event EventHandler UnpressedEvt + /// + public event EventHandler UnpressedEvt { add { @@ -320,7 +328,7 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); + Efl.Input.IClickableUnpressedEvt_Args args = new Efl.Input.IClickableUnpressedEvt_Args(); args.arg = Marshal.ReadInt32(evt.Info); try { @@ -334,7 +342,7 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup } }; - string key = "_EFL_UI_EVENT_UNPRESSED"; + string key = "_EFL_INPUT_EVENT_UNPRESSED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -343,15 +351,15 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_UNPRESSED"; + string key = "_EFL_INPUT_EVENT_UNPRESSED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event UnpressedEvt. - public void OnUnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) + /// Method to raise event UnpressedEvt. + public void OnUnpressedEvt(Efl.Input.IClickableUnpressedEvt_Args e) { - var key = "_EFL_UI_EVENT_UNPRESSED"; + var key = "_EFL_INPUT_EVENT_UNPRESSED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -370,7 +378,8 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup } } /// Called when the object receives a long press, event_info is the button that got pressed - public event EventHandler LongpressedEvt + /// + public event EventHandler LongpressedEvt { add { @@ -381,7 +390,7 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); + Efl.Input.IClickableLongpressedEvt_Args args = new Efl.Input.IClickableLongpressedEvt_Args(); args.arg = Marshal.ReadInt32(evt.Info); try { @@ -395,7 +404,7 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup } }; - string key = "_EFL_UI_EVENT_LONGPRESSED"; + string key = "_EFL_INPUT_EVENT_LONGPRESSED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -404,15 +413,15 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_LONGPRESSED"; + string key = "_EFL_INPUT_EVENT_LONGPRESSED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event LongpressedEvt. - public void OnLongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) + /// Method to raise event LongpressedEvt. + public void OnLongpressedEvt(Efl.Input.IClickableLongpressedEvt_Args e) { - var key = "_EFL_UI_EVENT_LONGPRESSED"; + var key = "_EFL_INPUT_EVENT_LONGPRESSED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -522,24 +531,36 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),markup); Eina.Error.RaiseIfUnhandledException(); } + /// This returns true if the given object is currently in event emission + virtual public bool GetInteraction() { + var _ret_var = Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_interaction_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } /// Change internal states that a button got pressed. /// When the button is already pressed, this is silently ignored. /// The number of the button. FIXME ensure to have the right interval of possible input virtual public void Press(uint button) { - Efl.Ui.IClickableConcrete.NativeMethods.efl_ui_clickable_press_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_press_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); Eina.Error.RaiseIfUnhandledException(); } /// Change internal states that a button got unpressed. /// When the button is not pressed, this is silently ignored. /// The number of the button. FIXME ensure to have the right interval of possible input virtual public void Unpress(uint button) { - Efl.Ui.IClickableConcrete.NativeMethods.efl_ui_clickable_unpress_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_unpress_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); Eina.Error.RaiseIfUnhandledException(); } /// This aborts the internal state after a press call. /// This will stop the timer for longpress. And set the state of the clickable mixin back into the unpressed state. virtual public void ResetButtonState(uint button) { - Efl.Ui.IClickableConcrete.NativeMethods.efl_ui_clickable_button_state_reset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_button_state_reset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Eina.Error.RaiseIfUnhandledException(); + } + /// This aborts ongoing longpress event. + /// That is, this will stop the timer for longpress. + virtual public void LongpressAbort(uint button) { + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_longpress_abort_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); Eina.Error.RaiseIfUnhandledException(); } /// Determine the collapse state of a frame Use this to determine the collapse state of a frame. @@ -569,6 +590,10 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup get { return GetMarkup(); } set { SetMarkup(value); } } + /// This returns true if the given object is currently in event emission + public bool Interaction { + get { return GetInteraction(); } + } private static IntPtr GetEflClassStatic() { return Efl.Ui.Frame.efl_ui_frame_class_get(); @@ -705,34 +730,54 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_set_static_delegate) }); } - if (efl_ui_clickable_press_static_delegate == null) + if (efl_input_clickable_interaction_get_static_delegate == null) { - efl_ui_clickable_press_static_delegate = new efl_ui_clickable_press_delegate(press); + efl_input_clickable_interaction_get_static_delegate = new efl_input_clickable_interaction_get_delegate(interaction_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetInteraction") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_interaction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_interaction_get_static_delegate) }); + } + + if (efl_input_clickable_press_static_delegate == null) + { + efl_input_clickable_press_static_delegate = new efl_input_clickable_press_delegate(press); } if (methods.FirstOrDefault(m => m.Name == "Press") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clickable_press"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clickable_press_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_press"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_press_static_delegate) }); } - if (efl_ui_clickable_unpress_static_delegate == null) + if (efl_input_clickable_unpress_static_delegate == null) { - efl_ui_clickable_unpress_static_delegate = new efl_ui_clickable_unpress_delegate(unpress); + efl_input_clickable_unpress_static_delegate = new efl_input_clickable_unpress_delegate(unpress); } if (methods.FirstOrDefault(m => m.Name == "Unpress") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clickable_unpress"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clickable_unpress_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_unpress"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_unpress_static_delegate) }); } - if (efl_ui_clickable_button_state_reset_static_delegate == null) + if (efl_input_clickable_button_state_reset_static_delegate == null) { - efl_ui_clickable_button_state_reset_static_delegate = new efl_ui_clickable_button_state_reset_delegate(button_state_reset); + efl_input_clickable_button_state_reset_static_delegate = new efl_input_clickable_button_state_reset_delegate(button_state_reset); } if (methods.FirstOrDefault(m => m.Name == "ResetButtonState") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clickable_button_state_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clickable_button_state_reset_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_button_state_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_button_state_reset_static_delegate) }); + } + + if (efl_input_clickable_longpress_abort_static_delegate == null) + { + efl_input_clickable_longpress_abort_static_delegate = new efl_input_clickable_longpress_abort_delegate(longpress_abort); + } + + if (methods.FirstOrDefault(m => m.Name == "LongpressAbort") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_longpress_abort"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_longpress_abort_static_delegate) }); } descs.AddRange(base.GetEoOps(type)); @@ -1174,17 +1219,53 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup private static efl_text_markup_set_delegate efl_text_markup_set_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_clickable_interaction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_clickable_interaction_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_clickable_interaction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_interaction_get"); + + private static bool interaction_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_clickable_interaction_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Frame)ws.Target).GetInteraction(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_input_clickable_interaction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_input_clickable_interaction_get_delegate efl_input_clickable_interaction_get_static_delegate; + - private delegate void efl_ui_clickable_press_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + private delegate void efl_input_clickable_press_delegate(System.IntPtr obj, System.IntPtr pd, uint button); - public delegate void efl_ui_clickable_press_api_delegate(System.IntPtr obj, uint button); + public delegate void efl_input_clickable_press_api_delegate(System.IntPtr obj, uint button); - public static Efl.Eo.FunctionWrapper efl_ui_clickable_press_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clickable_press"); + public static Efl.Eo.FunctionWrapper efl_input_clickable_press_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_press"); private static void press(System.IntPtr obj, System.IntPtr pd, uint button) { - Eina.Log.Debug("function efl_ui_clickable_press was called"); + Eina.Log.Debug("function efl_input_clickable_press was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { @@ -1203,23 +1284,23 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup } else { - efl_ui_clickable_press_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + efl_input_clickable_press_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); } } - private static efl_ui_clickable_press_delegate efl_ui_clickable_press_static_delegate; + private static efl_input_clickable_press_delegate efl_input_clickable_press_static_delegate; - private delegate void efl_ui_clickable_unpress_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + private delegate void efl_input_clickable_unpress_delegate(System.IntPtr obj, System.IntPtr pd, uint button); - public delegate void efl_ui_clickable_unpress_api_delegate(System.IntPtr obj, uint button); + public delegate void efl_input_clickable_unpress_api_delegate(System.IntPtr obj, uint button); - public static Efl.Eo.FunctionWrapper efl_ui_clickable_unpress_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clickable_unpress"); + public static Efl.Eo.FunctionWrapper efl_input_clickable_unpress_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_unpress"); private static void unpress(System.IntPtr obj, System.IntPtr pd, uint button) { - Eina.Log.Debug("function efl_ui_clickable_unpress was called"); + Eina.Log.Debug("function efl_input_clickable_unpress was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { @@ -1238,23 +1319,23 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup } else { - efl_ui_clickable_unpress_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + efl_input_clickable_unpress_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); } } - private static efl_ui_clickable_unpress_delegate efl_ui_clickable_unpress_static_delegate; + private static efl_input_clickable_unpress_delegate efl_input_clickable_unpress_static_delegate; - private delegate void efl_ui_clickable_button_state_reset_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + private delegate void efl_input_clickable_button_state_reset_delegate(System.IntPtr obj, System.IntPtr pd, uint button); - public delegate void efl_ui_clickable_button_state_reset_api_delegate(System.IntPtr obj, uint button); + public delegate void efl_input_clickable_button_state_reset_api_delegate(System.IntPtr obj, uint button); - public static Efl.Eo.FunctionWrapper efl_ui_clickable_button_state_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clickable_button_state_reset"); + public static Efl.Eo.FunctionWrapper efl_input_clickable_button_state_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_button_state_reset"); private static void button_state_reset(System.IntPtr obj, System.IntPtr pd, uint button) { - Eina.Log.Debug("function efl_ui_clickable_button_state_reset was called"); + Eina.Log.Debug("function efl_input_clickable_button_state_reset was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { @@ -1273,11 +1354,46 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup } else { - efl_ui_clickable_button_state_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + efl_input_clickable_button_state_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); } } - private static efl_ui_clickable_button_state_reset_delegate efl_ui_clickable_button_state_reset_static_delegate; + private static efl_input_clickable_button_state_reset_delegate efl_input_clickable_button_state_reset_static_delegate; + + + private delegate void efl_input_clickable_longpress_abort_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + + + public delegate void efl_input_clickable_longpress_abort_api_delegate(System.IntPtr obj, uint button); + + public static Efl.Eo.FunctionWrapper efl_input_clickable_longpress_abort_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_longpress_abort"); + + private static void longpress_abort(System.IntPtr obj, System.IntPtr pd, uint button) + { + Eina.Log.Debug("function efl_input_clickable_longpress_abort was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Frame)ws.Target).LongpressAbort(button); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_clickable_longpress_abort_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + } + } + + private static efl_input_clickable_longpress_abort_delegate efl_input_clickable_longpress_abort_static_delegate; #pragma warning restore CA1707, CS1591, SA1300, SA1600 @@ -1287,3 +1403,27 @@ public class Frame : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiFrame_ExtensionMethods { + public static Efl.BindableProperty Collapse(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Frame { + return new Efl.BindableProperty("collapse", fac); + } + + public static Efl.BindableProperty Autocollapse(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Frame { + return new Efl.BindableProperty("autocollapse", fac); + } + + public static Efl.BindableProperty Content(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Frame { + return new Efl.BindableProperty("content", fac); + } + + + public static Efl.BindableProperty Markup(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Frame { + return new Efl.BindableProperty("markup", fac); + } + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_grid.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_grid.eo.cs old mode 100644 new mode 100755 index 9cb3f8d35..b037f5399 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_grid.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_grid.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Simple grid widget with Pack interface. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Grid.NativeMethods] [Efl.Eo.BindingEntity] -public class Grid : Efl.Ui.LayoutBase, Efl.IPack, Efl.IPackLayout, Efl.IPackLinear, Efl.Gfx.IArrangement, Efl.Ui.ILayoutOrientable, Efl.Ui.IMultiSelectable, Efl.Ui.IScrollable, Efl.Ui.IScrollableInteractive, Efl.Ui.IScrollbar, Efl.Ui.ISelectable +public class Grid : Efl.Ui.Collection { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +48,8 @@ public class Grid : Efl.Ui.LayoutBase, Efl.IPack, Efl.IPackLayout, Efl.IPackLine FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Grid(ConstructingHandle ch) : base(ch) { @@ -67,4660 +70,30 @@ public class Grid : Efl.Ui.LayoutBase, Efl.IPack, Efl.IPackLayout, Efl.IPackLine { } - /// Sent after the layout was updated. - public event EventHandler LayoutUpdatedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event LayoutUpdatedEvt. - public void OnLayoutUpdatedEvt(EventArgs e) - { - var key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scroll operation starts - public event EventHandler ScrollStartEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_START"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_START"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollStartEvt. - public void OnScrollStartEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_START"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scrolling - public event EventHandler ScrollEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollEvt. - public void OnScrollEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scroll operation stops - public event EventHandler ScrollStopEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_STOP"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_STOP"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollStopEvt. - public void OnScrollStopEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_STOP"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scrolling upwards - public event EventHandler ScrollUpEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_UP"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_UP"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollUpEvt. - public void OnScrollUpEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_UP"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scrolling downwards - public event EventHandler ScrollDownEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_DOWN"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_DOWN"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollDownEvt. - public void OnScrollDownEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_DOWN"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scrolling left - public event EventHandler ScrollLeftEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_LEFT"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_LEFT"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollLeftEvt. - public void OnScrollLeftEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_LEFT"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scrolling right - public event EventHandler ScrollRightEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollRightEvt. - public void OnScrollRightEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when hitting the top edge - public event EventHandler EdgeUpEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_EDGE_UP"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_EDGE_UP"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event EdgeUpEvt. - public void OnEdgeUpEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_EDGE_UP"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when hitting the bottom edge - public event EventHandler EdgeDownEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_EDGE_DOWN"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_EDGE_DOWN"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event EdgeDownEvt. - public void OnEdgeDownEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_EDGE_DOWN"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when hitting the left edge - public event EventHandler EdgeLeftEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_EDGE_LEFT"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_EDGE_LEFT"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event EdgeLeftEvt. - public void OnEdgeLeftEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_EDGE_LEFT"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when hitting the right edge - public event EventHandler EdgeRightEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_EDGE_RIGHT"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_EDGE_RIGHT"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event EdgeRightEvt. - public void OnEdgeRightEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_EDGE_RIGHT"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scroll animation starts - public event EventHandler ScrollAnimStartEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollAnimStartEvt. - public void OnScrollAnimStartEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scroll animation stopps - public event EventHandler ScrollAnimStopEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollAnimStopEvt. - public void OnScrollAnimStopEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scroll drag starts - public event EventHandler ScrollDragStartEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollDragStartEvt. - public void OnScrollDragStartEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scroll drag stops - public event EventHandler ScrollDragStopEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollDragStopEvt. - public void OnScrollDragStopEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when bar is pressed. - public event EventHandler BarPressEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.IScrollbarBarPressEvt_Args args = new Efl.Ui.IScrollbarBarPressEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event BarPressEvt. - public void OnBarPressEvt(Efl.Ui.IScrollbarBarPressEvt_Args e) - { - var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); - try - { - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - finally - { - Marshal.FreeHGlobal(info); - } - } - /// Called when bar is unpressed. - public event EventHandler BarUnpressEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.IScrollbarBarUnpressEvt_Args args = new Efl.Ui.IScrollbarBarUnpressEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event BarUnpressEvt. - public void OnBarUnpressEvt(Efl.Ui.IScrollbarBarUnpressEvt_Args e) - { - var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); - try - { - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - finally - { - Marshal.FreeHGlobal(info); - } - } - /// Called when bar is dragged. - public event EventHandler BarDragEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.IScrollbarBarDragEvt_Args args = new Efl.Ui.IScrollbarBarDragEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event BarDragEvt. - public void OnBarDragEvt(Efl.Ui.IScrollbarBarDragEvt_Args e) - { - var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); - try - { - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - finally - { - Marshal.FreeHGlobal(info); - } - } - /// Called when bar size is changed. - public event EventHandler BarSizeChangedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event BarSizeChangedEvt. - public void OnBarSizeChangedEvt(EventArgs e) - { - var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when bar position is changed. - public event EventHandler BarPosChangedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event BarPosChangedEvt. - public void OnBarPosChangedEvt(EventArgs e) - { - var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Callend when bar is shown. - public event EventHandler BarShowEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.IScrollbarBarShowEvt_Args args = new Efl.Ui.IScrollbarBarShowEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event BarShowEvt. - public void OnBarShowEvt(Efl.Ui.IScrollbarBarShowEvt_Args e) - { - var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); - try - { - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - finally - { - Marshal.FreeHGlobal(info); - } - } - /// Called when bar is hidden. - public event EventHandler BarHideEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.IScrollbarBarHideEvt_Args args = new Efl.Ui.IScrollbarBarHideEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event BarHideEvt. - public void OnBarHideEvt(Efl.Ui.IScrollbarBarHideEvt_Args e) - { - var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); - try - { - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - finally - { - Marshal.FreeHGlobal(info); - } - } - /// Called when selected - public event EventHandler ItemSelectedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.ISelectableItemSelectedEvt_Args args = new Efl.Ui.ISelectableItemSelectedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_ITEM_SELECTED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_ITEM_SELECTED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ItemSelectedEvt. - public void OnItemSelectedEvt(Efl.Ui.ISelectableItemSelectedEvt_Args e) - { - var key = "_EFL_UI_EVENT_ITEM_SELECTED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = e.arg.NativeHandle; - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - /// Called when no longer selected - public event EventHandler ItemUnselectedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.ISelectableItemUnselectedEvt_Args args = new Efl.Ui.ISelectableItemUnselectedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ItemUnselectedEvt. - public void OnItemUnselectedEvt(Efl.Ui.ISelectableItemUnselectedEvt_Args e) - { - var key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = e.arg.NativeHandle; - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - /// Called when selection is pasted - public event EventHandler SelectionPasteEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SELECTION_PASTE"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SELECTION_PASTE"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event SelectionPasteEvt. - public void OnSelectionPasteEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SELECTION_PASTE"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when selection is copied - public event EventHandler SelectionCopyEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SELECTION_COPY"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SELECTION_COPY"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event SelectionCopyEvt. - public void OnSelectionCopyEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SELECTION_COPY"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when selection is cut - public event EventHandler SelectionCutEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SELECTION_CUT"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SELECTION_CUT"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event SelectionCutEvt. - public void OnSelectionCutEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SELECTION_CUT"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called at selection start - public event EventHandler SelectionStartEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SELECTION_START"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SELECTION_START"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event SelectionStartEvt. - public void OnSelectionStartEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SELECTION_START"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when selection is changed - public event EventHandler SelectionChangedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SELECTION_CHANGED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SELECTION_CHANGED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event SelectionChangedEvt. - public void OnSelectionChangedEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SELECTION_CHANGED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when selection is cleared - public event EventHandler SelectionClearedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SELECTION_CLEARED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SELECTION_CLEARED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event SelectionClearedEvt. - public void OnSelectionClearedEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SELECTION_CLEARED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Property data of item size. - /// last selected item of grid. - virtual public Eina.Size2D GetItemSize() { - var _ret_var = Efl.Ui.Grid.NativeMethods.efl_ui_grid_item_size_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Property data of item size. - /// last selected item of grid. - virtual public void SetItemSize(Eina.Size2D size) { - Eina.Size2D.NativeStruct _in_size = size; - Efl.Ui.Grid.NativeMethods.efl_ui_grid_item_size_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_size); - Eina.Error.RaiseIfUnhandledException(); - } - /// Property data of last selected item. - /// last selected item of grid. - virtual public Efl.Ui.GridItem GetLastSelectedItem() { - var _ret_var = Efl.Ui.Grid.NativeMethods.efl_ui_grid_last_selected_item_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// scroll move the item to show in the viewport. - /// Target item. - /// Boolean value for animation of scroll move. - virtual public void ItemScroll(Efl.Ui.GridItem item, bool animation) { - Efl.Ui.Grid.NativeMethods.efl_ui_grid_item_scroll_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),item, animation); - Eina.Error.RaiseIfUnhandledException(); - } - /// scroll move the item to show at the align position of the viewport. - /// Target item. - /// align value in Viewport. - /// Boolean value for animation of scroll move. - virtual public void ItemScrollAlign(Efl.Ui.GridItem item, double align, bool animation) { - Efl.Ui.Grid.NativeMethods.efl_ui_grid_item_scroll_align_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),item, align, animation); - Eina.Error.RaiseIfUnhandledException(); - } - /// Get the selected items iterator. The iterator sequence will be decided by selection. - /// Iterator covered by selected items list. user have to free the iterator after used. - virtual public Eina.Iterator GetSelectedItems() { - var _ret_var = Efl.Ui.Grid.NativeMethods.efl_ui_grid_selected_items_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return new Eina.Iterator(_ret_var, true); - } - /// Removes all packed sub-objects and unreferences them. - /// true on success, false otherwise. - virtual public bool ClearPack() { - var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_clear_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Removes all packed sub-objects without unreferencing them. - /// Use with caution. - /// true on success, false otherwise. - virtual public bool UnpackAll() { - var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_all_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Removes an existing sub-object from the container without deleting it. - /// The sub-object to unpack. - /// false if subobj wasn't in the container or couldn't be removed. - virtual public bool Unpack(Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Adds a sub-object to this container. - /// Depending on the container this will either fill in the default spot, replacing any already existing element or append to the end of the container if there is no default part. - /// - /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// The object to pack. - /// false if subobj could not be packed. - virtual public bool Pack(Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Requests EFL to call the method on this object. - /// This may be called asynchronously. - virtual public void LayoutRequest() { - Efl.IPackLayoutConcrete.NativeMethods.efl_pack_layout_request_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - } - /// Implementation of this container's layout algorithm. - /// EFL will call this function whenever the contents of this container need to be re-laid out on the canvas. - /// - /// This can be overriden to implement custom layout behaviors. - virtual public void UpdateLayout() { - Efl.IPackLayoutConcrete.NativeMethods.efl_pack_layout_update_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - } - /// Prepend an object at the beginning of this container. - /// This is the same as (subobj, 0). - /// - /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// Object to pack at the beginning. - /// false if subobj could not be packed. - virtual public bool PackBegin(Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_begin_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Append object at the end of this container. - /// This is the same as (subobj, -1). - /// - /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// Object to pack at the end. - /// false if subobj could not be packed. - virtual public bool PackEnd(Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_end_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Prepend an object before an existing sub-object. - /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// Object to pack before existing. - /// Existing reference sub-object. - /// false if existing could not be found or subobj could not be packed. - virtual public bool PackBefore(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { - var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_before_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, existing); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Append an object after an existing sub-object. - /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// Object to pack after existing. - /// Existing reference sub-object. - /// false if existing could not be found or subobj could not be packed. - virtual public bool PackAfter(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { - var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_after_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, existing); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Inserts subobj BEFORE the sub-object at position index. - /// index ranges from -count to count-1, where positive numbers go from first sub-object (0) to last (count-1), and negative numbers go from last sub-object (-1) to first (-count). count is the number of sub-objects currently in the container as returned by . - /// - /// If index is less than -count, it will trigger (subobj) whereas index greater than count-1 will trigger (subobj). - /// - /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// Object to pack. - /// Index of existing sub-object to insert BEFORE. Valid range is -count to (count-1). - /// false if subobj could not be packed. - virtual public bool PackAt(Efl.Gfx.IEntity subobj, int index) { - var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_at_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, index); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Sub-object at a given index in this container. - /// index ranges from -count to count-1, where positive numbers go from first sub-object (0) to last (count-1), and negative numbers go from last sub-object (-1) to first (-count). count is the number of sub-objects currently in the container as returned by . - /// - /// If index is less than -count, it will return the first sub-object whereas index greater than count-1 will return the last sub-object. - /// Index of the existing sub-object to retrieve. Valid range is -count to (count-1). - /// The sub-object contained at the given index. - virtual public Efl.Gfx.IEntity GetPackContent(int index) { - var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_content_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),index); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Get the index of a sub-object in this container. - /// An existing sub-object in this container. - /// -1 in case subobj is not found, or the index of subobj in the range 0 to (count-1). - virtual public int GetPackIndex(Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_index_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Pop out (remove) the sub-object at the specified index. - /// index ranges from -count to count-1, where positive numbers go from first sub-object (0) to last (count-1), and negative numbers go from last sub-object (-1) to first (-count). count is the number of sub-objects currently in the container as returned by . - /// - /// If index is less than -count, it will remove the first sub-object whereas index greater than count-1 will remove the last sub-object. - /// Index of the sub-object to remove. Valid range is -count to (count-1). - /// The sub-object if it could be removed. - virtual public Efl.Gfx.IEntity PackUnpackAt(int index) { - var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_unpack_at_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),index); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Alignment of the container within its bounds - /// Horizontal alignment - /// Vertical alignment - virtual public void GetContentAlign(out double align_horiz, out double align_vert) { - Efl.Gfx.IArrangementConcrete.NativeMethods.efl_gfx_arrangement_content_align_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out align_horiz, out align_vert); - Eina.Error.RaiseIfUnhandledException(); - } - /// Alignment of the container within its bounds - /// Horizontal alignment - /// Vertical alignment - virtual public void SetContentAlign(double align_horiz, double align_vert) { - Efl.Gfx.IArrangementConcrete.NativeMethods.efl_gfx_arrangement_content_align_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),align_horiz, align_vert); - Eina.Error.RaiseIfUnhandledException(); - } - /// Padding between items contained in this object. - /// Horizontal padding - /// Vertical padding - /// true if scalable, false otherwise - virtual public void GetContentPadding(out double pad_horiz, out double pad_vert, out bool scalable) { - Efl.Gfx.IArrangementConcrete.NativeMethods.efl_gfx_arrangement_content_padding_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out pad_horiz, out pad_vert, out scalable); - Eina.Error.RaiseIfUnhandledException(); - } - /// Padding between items contained in this object. - /// Horizontal padding - /// Vertical padding - /// true if scalable, false otherwise - virtual public void SetContentPadding(double pad_horiz, double pad_vert, bool scalable) { - Efl.Gfx.IArrangementConcrete.NativeMethods.efl_gfx_arrangement_content_padding_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),pad_horiz, pad_vert, scalable); - Eina.Error.RaiseIfUnhandledException(); - } - /// Control the direction of a given widget. - /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. - /// - /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. - /// Direction of the widget. - virtual public Efl.Ui.LayoutOrientation GetOrientation() { - var _ret_var = Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Control the direction of a given widget. - /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. - /// - /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. - /// Direction of the widget. - virtual public void SetOrientation(Efl.Ui.LayoutOrientation dir) { - Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),dir); - Eina.Error.RaiseIfUnhandledException(); - } - /// The mode type for children selection. - /// Type of selection of children - virtual public Efl.Ui.SelectMode GetSelectMode() { - var _ret_var = Efl.Ui.IMultiSelectableConcrete.NativeMethods.efl_ui_select_mode_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// The mode type for children selection. - /// Type of selection of children - virtual public void SetSelectMode(Efl.Ui.SelectMode mode) { - Efl.Ui.IMultiSelectableConcrete.NativeMethods.efl_ui_select_mode_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),mode); - Eina.Error.RaiseIfUnhandledException(); - } - /// The content position - /// The position is virtual value, (0, 0) starting at the top-left. - virtual public Eina.Position2D GetContentPos() { - var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_pos_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// The content position - /// The position is virtual value, (0, 0) starting at the top-left. - virtual public void SetContentPos(Eina.Position2D pos) { - Eina.Position2D.NativeStruct _in_pos = pos; - Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_pos_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_pos); - Eina.Error.RaiseIfUnhandledException(); - } - /// The content size - /// The content size in pixels. - virtual public Eina.Size2D GetContentSize() { - var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_size_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// The viewport geometry - /// It is absolute geometry. - virtual public Eina.Rect GetViewportGeometry() { - var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Bouncing behavior - /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. - /// Horizontal bounce policy. - /// Vertical bounce policy. - virtual public void GetBounceEnabled(out bool horiz, out bool vert) { - Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out horiz, out vert); - Eina.Error.RaiseIfUnhandledException(); - } - /// Bouncing behavior - /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. - /// Horizontal bounce policy. - /// Vertical bounce policy. - virtual public void SetBounceEnabled(bool horiz, bool vert) { - Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),horiz, vert); - Eina.Error.RaiseIfUnhandledException(); - } - /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . - /// true if freeze, false otherwise - virtual public bool GetScrollFreeze() { - var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . - /// true if freeze, false otherwise - virtual public void SetScrollFreeze(bool freeze) { - Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),freeze); - Eina.Error.RaiseIfUnhandledException(); - } - /// Hold property When hold turns on, it only scrolls by holding action. - /// true if hold, false otherwise - virtual public bool GetScrollHold() { - var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Hold property When hold turns on, it only scrolls by holding action. - /// true if hold, false otherwise - virtual public void SetScrollHold(bool hold) { - Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),hold); - Eina.Error.RaiseIfUnhandledException(); - } - /// Controls an infinite loop for a scroller. - /// The scrolling horizontal loop - /// The Scrolling vertical loop - virtual public void GetLooping(out bool loop_h, out bool loop_v) { - Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_looping_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out loop_h, out loop_v); - Eina.Error.RaiseIfUnhandledException(); - } - /// Controls an infinite loop for a scroller. - /// The scrolling horizontal loop - /// The Scrolling vertical loop - virtual public void SetLooping(bool loop_h, bool loop_v) { - Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_looping_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),loop_h, loop_v); - Eina.Error.RaiseIfUnhandledException(); - } - /// Blocking of scrolling (per axis) - /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. - /// Which axis (or axes) to block - virtual public Efl.Ui.ScrollBlock GetMovementBlock() { - var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_movement_block_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Blocking of scrolling (per axis) - /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. - /// Which axis (or axes) to block - virtual public void SetMovementBlock(Efl.Ui.ScrollBlock block) { - Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_movement_block_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),block); - Eina.Error.RaiseIfUnhandledException(); - } - /// Control scrolling gravity on the scrollable - /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. - /// - /// The scroller will adjust the view to glue itself as follows. - /// - /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content - /// - /// Default values for x and y are 0.0 - /// Horizontal scrolling gravity - /// Vertical scrolling gravity - virtual public void GetGravity(out double x, out double y) { - Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_gravity_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out x, out y); - Eina.Error.RaiseIfUnhandledException(); - } - /// Control scrolling gravity on the scrollable - /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. - /// - /// The scroller will adjust the view to glue itself as follows. - /// - /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content - /// - /// Default values for x and y are 0.0 - /// Horizontal scrolling gravity - /// Vertical scrolling gravity - virtual public void SetGravity(double x, double y) { - Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_gravity_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),x, y); - Eina.Error.RaiseIfUnhandledException(); - } - /// Prevent the scrollable from being smaller than the minimum size of the content. - /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. - /// Whether to limit the minimum horizontal size - /// Whether to limit the minimum vertical size - virtual public void SetMatchContent(bool w, bool h) { - Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_match_content_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),w, h); - Eina.Error.RaiseIfUnhandledException(); - } - /// Control the step size - /// Use this call to set step size. This value is used when scroller scroll by arrow key event. - /// The step size in pixels - virtual public Eina.Position2D GetStepSize() { - var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_step_size_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Control the step size - /// Use this call to set step size. This value is used when scroller scroll by arrow key event. - /// The step size in pixels - virtual public void SetStepSize(Eina.Position2D step) { - Eina.Position2D.NativeStruct _in_step = step; - Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_step_size_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_step); - Eina.Error.RaiseIfUnhandledException(); - } - /// Show a specific virtual region within the scroller content object. - /// This will ensure all (or part if it does not fit) of the designated region in the virtual content object (0, 0 starting at the top-left of the virtual content object) is shown within the scroller. This allows the scroller to "smoothly slide" to this location (if configuration in general calls for transitions). It may not jump immediately to the new location and make take a while and show other content along the way. - /// The position where to scroll. and The size user want to see - /// Whether to scroll with animation or not - virtual public void Scroll(Eina.Rect rect, bool animation) { - Eina.Rect.NativeStruct _in_rect = rect; - Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_rect, animation); - Eina.Error.RaiseIfUnhandledException(); - } - /// Scrollbar visibility policy - /// Horizontal scrollbar. - /// Vertical scrollbar. - virtual public void GetBarMode(out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) { - Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out hbar, out vbar); - Eina.Error.RaiseIfUnhandledException(); - } - /// Scrollbar visibility policy - /// Horizontal scrollbar. - /// Vertical scrollbar. - virtual public void SetBarMode(Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) { - Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),hbar, vbar); - Eina.Error.RaiseIfUnhandledException(); - } - /// Scrollbar size. It is calculated based on viewport size-content sizes. - /// Value between 0.0 and 1.0. - /// Value between 0.0 and 1.0. - virtual public void GetBarSize(out double width, out double height) { - Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out width, out height); - Eina.Error.RaiseIfUnhandledException(); - } - /// Scrollbar position. It is calculated based on current position-maximum positions. - /// Value between 0.0 and 1.0. - /// Value between 0.0 and 1.0. - virtual public void GetBarPosition(out double posx, out double posy) { - Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out posx, out posy); - Eina.Error.RaiseIfUnhandledException(); - } - /// Scrollbar position. It is calculated based on current position-maximum positions. - /// Value between 0.0 and 1.0. - /// Value between 0.0 and 1.0. - virtual public void SetBarPosition(double posx, double posy) { - Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),posx, posy); - Eina.Error.RaiseIfUnhandledException(); - } - /// Update bar visibility. - /// The object will call this function whenever the bar needs to be shown or hidden. - virtual public void UpdateBarVisibility() { - Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - } - /// Property data of item size. - /// last selected item of grid. - public Eina.Size2D ItemSize { - get { return GetItemSize(); } - set { SetItemSize(value); } - } - /// Property data of last selected item. - /// last selected item of grid. - public Efl.Ui.GridItem LastSelectedItem { - get { return GetLastSelectedItem(); } - } - /// Control the direction of a given widget. - /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. - /// - /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. - /// Direction of the widget. - public Efl.Ui.LayoutOrientation Orientation { - get { return GetOrientation(); } - set { SetOrientation(value); } - } - /// The mode type for children selection. - /// Type of selection of children - public Efl.Ui.SelectMode SelectMode { - get { return GetSelectMode(); } - set { SetSelectMode(value); } - } - /// The content position - /// The position is virtual value, (0, 0) starting at the top-left. - public Eina.Position2D ContentPos { - get { return GetContentPos(); } - set { SetContentPos(value); } - } - /// The content size - /// The content size in pixels. - public Eina.Size2D ContentSize { - get { return GetContentSize(); } - } - /// The viewport geometry - /// It is absolute geometry. - public Eina.Rect ViewportGeometry { - get { return GetViewportGeometry(); } - } - /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . - /// true if freeze, false otherwise - public bool ScrollFreeze { - get { return GetScrollFreeze(); } - set { SetScrollFreeze(value); } - } - /// Hold property When hold turns on, it only scrolls by holding action. - /// true if hold, false otherwise - public bool ScrollHold { - get { return GetScrollHold(); } - set { SetScrollHold(value); } - } - /// Blocking of scrolling (per axis) - /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. - /// Which axis (or axes) to block - public Efl.Ui.ScrollBlock MovementBlock { - get { return GetMovementBlock(); } - set { SetMovementBlock(value); } - } - /// Control the step size - /// Use this call to set step size. This value is used when scroller scroll by arrow key event. - /// The step size in pixels - public Eina.Position2D StepSize { - get { return GetStepSize(); } - set { SetStepSize(value); } - } - private static IntPtr GetEflClassStatic() - { - return Efl.Ui.Grid.efl_ui_grid_class_get(); - } - /// Wrapper for native methods and virtual method delegates. - /// For internal use by generated code only. - public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods - { - private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); - /// Gets the list of Eo operations to override. - /// The list of Eo operations to be overload. - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - - if (efl_ui_grid_item_size_get_static_delegate == null) - { - efl_ui_grid_item_size_get_static_delegate = new efl_ui_grid_item_size_get_delegate(item_size_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetItemSize") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_grid_item_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_grid_item_size_get_static_delegate) }); - } - - if (efl_ui_grid_item_size_set_static_delegate == null) - { - efl_ui_grid_item_size_set_static_delegate = new efl_ui_grid_item_size_set_delegate(item_size_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetItemSize") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_grid_item_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_grid_item_size_set_static_delegate) }); - } - - if (efl_ui_grid_last_selected_item_get_static_delegate == null) - { - efl_ui_grid_last_selected_item_get_static_delegate = new efl_ui_grid_last_selected_item_get_delegate(last_selected_item_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetLastSelectedItem") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_grid_last_selected_item_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_grid_last_selected_item_get_static_delegate) }); - } - - if (efl_ui_grid_item_scroll_static_delegate == null) - { - efl_ui_grid_item_scroll_static_delegate = new efl_ui_grid_item_scroll_delegate(item_scroll); - } - - if (methods.FirstOrDefault(m => m.Name == "ItemScroll") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_grid_item_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_grid_item_scroll_static_delegate) }); - } - - if (efl_ui_grid_item_scroll_align_static_delegate == null) - { - efl_ui_grid_item_scroll_align_static_delegate = new efl_ui_grid_item_scroll_align_delegate(item_scroll_align); - } - - if (methods.FirstOrDefault(m => m.Name == "ItemScrollAlign") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_grid_item_scroll_align"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_grid_item_scroll_align_static_delegate) }); - } - - if (efl_ui_grid_selected_items_get_static_delegate == null) - { - efl_ui_grid_selected_items_get_static_delegate = new efl_ui_grid_selected_items_get_delegate(selected_items_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetSelectedItems") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_grid_selected_items_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_grid_selected_items_get_static_delegate) }); - } - - if (efl_pack_clear_static_delegate == null) - { - efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); - } - - if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate) }); - } - - if (efl_pack_unpack_all_static_delegate == null) - { - efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); - } - - if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate) }); - } - - if (efl_pack_unpack_static_delegate == null) - { - efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); - } - - if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate) }); - } - - if (efl_pack_static_delegate == null) - { - efl_pack_static_delegate = new efl_pack_delegate(pack); - } - - if (methods.FirstOrDefault(m => m.Name == "Pack") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate) }); - } - - if (efl_pack_layout_request_static_delegate == null) - { - efl_pack_layout_request_static_delegate = new efl_pack_layout_request_delegate(layout_request); - } - - if (methods.FirstOrDefault(m => m.Name == "LayoutRequest") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_layout_request"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_request_static_delegate) }); - } - - if (efl_pack_layout_update_static_delegate == null) - { - efl_pack_layout_update_static_delegate = new efl_pack_layout_update_delegate(layout_update); - } - - if (methods.FirstOrDefault(m => m.Name == "UpdateLayout") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_layout_update"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_update_static_delegate) }); - } - - if (efl_pack_begin_static_delegate == null) - { - efl_pack_begin_static_delegate = new efl_pack_begin_delegate(pack_begin); - } - - if (methods.FirstOrDefault(m => m.Name == "PackBegin") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_begin"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_begin_static_delegate) }); - } - - if (efl_pack_end_static_delegate == null) - { - efl_pack_end_static_delegate = new efl_pack_end_delegate(pack_end); - } - - if (methods.FirstOrDefault(m => m.Name == "PackEnd") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_end"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_end_static_delegate) }); - } - - if (efl_pack_before_static_delegate == null) - { - efl_pack_before_static_delegate = new efl_pack_before_delegate(pack_before); - } - - if (methods.FirstOrDefault(m => m.Name == "PackBefore") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_before"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_before_static_delegate) }); - } - - if (efl_pack_after_static_delegate == null) - { - efl_pack_after_static_delegate = new efl_pack_after_delegate(pack_after); - } - - if (methods.FirstOrDefault(m => m.Name == "PackAfter") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_after"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_after_static_delegate) }); - } - - if (efl_pack_at_static_delegate == null) - { - efl_pack_at_static_delegate = new efl_pack_at_delegate(pack_at); - } - - if (methods.FirstOrDefault(m => m.Name == "PackAt") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_at_static_delegate) }); - } - - if (efl_pack_content_get_static_delegate == null) - { - efl_pack_content_get_static_delegate = new efl_pack_content_get_delegate(pack_content_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetPackContent") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_content_get_static_delegate) }); - } - - if (efl_pack_index_get_static_delegate == null) - { - efl_pack_index_get_static_delegate = new efl_pack_index_get_delegate(pack_index_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetPackIndex") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_index_get_static_delegate) }); - } - - if (efl_pack_unpack_at_static_delegate == null) - { - efl_pack_unpack_at_static_delegate = new efl_pack_unpack_at_delegate(pack_unpack_at); - } - - if (methods.FirstOrDefault(m => m.Name == "PackUnpackAt") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_at_static_delegate) }); - } - - if (efl_gfx_arrangement_content_align_get_static_delegate == null) - { - efl_gfx_arrangement_content_align_get_static_delegate = new efl_gfx_arrangement_content_align_get_delegate(content_align_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetContentAlign") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_arrangement_content_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_arrangement_content_align_get_static_delegate) }); - } - - if (efl_gfx_arrangement_content_align_set_static_delegate == null) - { - efl_gfx_arrangement_content_align_set_static_delegate = new efl_gfx_arrangement_content_align_set_delegate(content_align_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetContentAlign") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_arrangement_content_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_arrangement_content_align_set_static_delegate) }); - } - - if (efl_gfx_arrangement_content_padding_get_static_delegate == null) - { - efl_gfx_arrangement_content_padding_get_static_delegate = new efl_gfx_arrangement_content_padding_get_delegate(content_padding_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetContentPadding") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_arrangement_content_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_arrangement_content_padding_get_static_delegate) }); - } - - if (efl_gfx_arrangement_content_padding_set_static_delegate == null) - { - efl_gfx_arrangement_content_padding_set_static_delegate = new efl_gfx_arrangement_content_padding_set_delegate(content_padding_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetContentPadding") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_arrangement_content_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_arrangement_content_padding_set_static_delegate) }); - } - - if (efl_ui_layout_orientation_get_static_delegate == null) - { - efl_ui_layout_orientation_get_static_delegate = new efl_ui_layout_orientation_get_delegate(orientation_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetOrientation") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_layout_orientation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_orientation_get_static_delegate) }); - } - - if (efl_ui_layout_orientation_set_static_delegate == null) - { - efl_ui_layout_orientation_set_static_delegate = new efl_ui_layout_orientation_set_delegate(orientation_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetOrientation") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_layout_orientation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_orientation_set_static_delegate) }); - } - - if (efl_ui_select_mode_get_static_delegate == null) - { - efl_ui_select_mode_get_static_delegate = new efl_ui_select_mode_get_delegate(select_mode_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetSelectMode") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_select_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_select_mode_get_static_delegate) }); - } - - if (efl_ui_select_mode_set_static_delegate == null) - { - efl_ui_select_mode_set_static_delegate = new efl_ui_select_mode_set_delegate(select_mode_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetSelectMode") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_select_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_select_mode_set_static_delegate) }); - } - - if (efl_ui_scrollable_content_pos_get_static_delegate == null) - { - efl_ui_scrollable_content_pos_get_static_delegate = new efl_ui_scrollable_content_pos_get_delegate(content_pos_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetContentPos") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_get_static_delegate) }); - } - - if (efl_ui_scrollable_content_pos_set_static_delegate == null) - { - efl_ui_scrollable_content_pos_set_static_delegate = new efl_ui_scrollable_content_pos_set_delegate(content_pos_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetContentPos") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_set_static_delegate) }); - } - - if (efl_ui_scrollable_content_size_get_static_delegate == null) - { - efl_ui_scrollable_content_size_get_static_delegate = new efl_ui_scrollable_content_size_get_delegate(content_size_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_size_get_static_delegate) }); - } - - if (efl_ui_scrollable_viewport_geometry_get_static_delegate == null) - { - efl_ui_scrollable_viewport_geometry_get_static_delegate = new efl_ui_scrollable_viewport_geometry_get_delegate(viewport_geometry_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetViewportGeometry") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_viewport_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_viewport_geometry_get_static_delegate) }); - } - - if (efl_ui_scrollable_bounce_enabled_get_static_delegate == null) - { - efl_ui_scrollable_bounce_enabled_get_static_delegate = new efl_ui_scrollable_bounce_enabled_get_delegate(bounce_enabled_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetBounceEnabled") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_bounce_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_get_static_delegate) }); - } - - if (efl_ui_scrollable_bounce_enabled_set_static_delegate == null) - { - efl_ui_scrollable_bounce_enabled_set_static_delegate = new efl_ui_scrollable_bounce_enabled_set_delegate(bounce_enabled_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetBounceEnabled") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_bounce_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_set_static_delegate) }); - } - - if (efl_ui_scrollable_scroll_freeze_get_static_delegate == null) - { - efl_ui_scrollable_scroll_freeze_get_static_delegate = new efl_ui_scrollable_scroll_freeze_get_delegate(scroll_freeze_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetScrollFreeze") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_freeze_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_get_static_delegate) }); - } - - if (efl_ui_scrollable_scroll_freeze_set_static_delegate == null) - { - efl_ui_scrollable_scroll_freeze_set_static_delegate = new efl_ui_scrollable_scroll_freeze_set_delegate(scroll_freeze_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetScrollFreeze") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_freeze_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_set_static_delegate) }); - } - - if (efl_ui_scrollable_scroll_hold_get_static_delegate == null) - { - efl_ui_scrollable_scroll_hold_get_static_delegate = new efl_ui_scrollable_scroll_hold_get_delegate(scroll_hold_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetScrollHold") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_hold_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_get_static_delegate) }); - } - - if (efl_ui_scrollable_scroll_hold_set_static_delegate == null) - { - efl_ui_scrollable_scroll_hold_set_static_delegate = new efl_ui_scrollable_scroll_hold_set_delegate(scroll_hold_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetScrollHold") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_hold_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_set_static_delegate) }); - } - - if (efl_ui_scrollable_looping_get_static_delegate == null) - { - efl_ui_scrollable_looping_get_static_delegate = new efl_ui_scrollable_looping_get_delegate(looping_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetLooping") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_looping_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_get_static_delegate) }); - } - - if (efl_ui_scrollable_looping_set_static_delegate == null) - { - efl_ui_scrollable_looping_set_static_delegate = new efl_ui_scrollable_looping_set_delegate(looping_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetLooping") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_looping_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_set_static_delegate) }); - } - - if (efl_ui_scrollable_movement_block_get_static_delegate == null) - { - efl_ui_scrollable_movement_block_get_static_delegate = new efl_ui_scrollable_movement_block_get_delegate(movement_block_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetMovementBlock") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_movement_block_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_get_static_delegate) }); - } - - if (efl_ui_scrollable_movement_block_set_static_delegate == null) - { - efl_ui_scrollable_movement_block_set_static_delegate = new efl_ui_scrollable_movement_block_set_delegate(movement_block_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetMovementBlock") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_movement_block_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_set_static_delegate) }); - } - - if (efl_ui_scrollable_gravity_get_static_delegate == null) - { - efl_ui_scrollable_gravity_get_static_delegate = new efl_ui_scrollable_gravity_get_delegate(gravity_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetGravity") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_gravity_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_get_static_delegate) }); - } - - if (efl_ui_scrollable_gravity_set_static_delegate == null) - { - efl_ui_scrollable_gravity_set_static_delegate = new efl_ui_scrollable_gravity_set_delegate(gravity_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetGravity") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_gravity_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_set_static_delegate) }); - } - - if (efl_ui_scrollable_match_content_set_static_delegate == null) - { - efl_ui_scrollable_match_content_set_static_delegate = new efl_ui_scrollable_match_content_set_delegate(match_content_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetMatchContent") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_match_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_match_content_set_static_delegate) }); - } - - if (efl_ui_scrollable_step_size_get_static_delegate == null) - { - efl_ui_scrollable_step_size_get_static_delegate = new efl_ui_scrollable_step_size_get_delegate(step_size_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetStepSize") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_step_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_get_static_delegate) }); - } - - if (efl_ui_scrollable_step_size_set_static_delegate == null) - { - efl_ui_scrollable_step_size_set_static_delegate = new efl_ui_scrollable_step_size_set_delegate(step_size_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetStepSize") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_step_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_set_static_delegate) }); - } - - if (efl_ui_scrollable_scroll_static_delegate == null) - { - efl_ui_scrollable_scroll_static_delegate = new efl_ui_scrollable_scroll_delegate(scroll); - } - - if (methods.FirstOrDefault(m => m.Name == "Scroll") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_static_delegate) }); - } - - if (efl_ui_scrollbar_bar_mode_get_static_delegate == null) - { - efl_ui_scrollbar_bar_mode_get_static_delegate = new efl_ui_scrollbar_bar_mode_get_delegate(bar_mode_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetBarMode") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_get_static_delegate) }); - } - - if (efl_ui_scrollbar_bar_mode_set_static_delegate == null) - { - efl_ui_scrollbar_bar_mode_set_static_delegate = new efl_ui_scrollbar_bar_mode_set_delegate(bar_mode_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetBarMode") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_set_static_delegate) }); - } - - if (efl_ui_scrollbar_bar_size_get_static_delegate == null) - { - efl_ui_scrollbar_bar_size_get_static_delegate = new efl_ui_scrollbar_bar_size_get_delegate(bar_size_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetBarSize") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_size_get_static_delegate) }); - } - - if (efl_ui_scrollbar_bar_position_get_static_delegate == null) - { - efl_ui_scrollbar_bar_position_get_static_delegate = new efl_ui_scrollbar_bar_position_get_delegate(bar_position_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetBarPosition") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_get_static_delegate) }); - } - - if (efl_ui_scrollbar_bar_position_set_static_delegate == null) - { - efl_ui_scrollbar_bar_position_set_static_delegate = new efl_ui_scrollbar_bar_position_set_delegate(bar_position_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetBarPosition") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_set_static_delegate) }); - } - - if (efl_ui_scrollbar_bar_visibility_update_static_delegate == null) - { - efl_ui_scrollbar_bar_visibility_update_static_delegate = new efl_ui_scrollbar_bar_visibility_update_delegate(bar_visibility_update); - } - - if (methods.FirstOrDefault(m => m.Name == "UpdateBarVisibility") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_visibility_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_visibility_update_static_delegate) }); - } - - descs.AddRange(base.GetEoOps(type)); - return descs; - } - /// Returns the Eo class for the native methods of this class. - /// The native class pointer. - public override IntPtr GetEflClass() - { - return Efl.Ui.Grid.efl_ui_grid_class_get(); - } - - #pragma warning disable CA1707, CS1591, SA1300, SA1600 - - - private delegate Eina.Size2D.NativeStruct efl_ui_grid_item_size_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate Eina.Size2D.NativeStruct efl_ui_grid_item_size_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_grid_item_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_grid_item_size_get"); - - private static Eina.Size2D.NativeStruct item_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_grid_item_size_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Eina.Size2D _ret_var = default(Eina.Size2D); - try - { - _ret_var = ((Grid)ws.Target).GetItemSize(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_grid_item_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_grid_item_size_get_delegate efl_ui_grid_item_size_get_static_delegate; - - - private delegate void efl_ui_grid_item_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); - - - public delegate void efl_ui_grid_item_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); - - public static Efl.Eo.FunctionWrapper efl_ui_grid_item_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_grid_item_size_set"); - - private static void item_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) - { - Eina.Log.Debug("function efl_ui_grid_item_size_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Eina.Size2D _in_size = size; - - try - { - ((Grid)ws.Target).SetItemSize(_in_size); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_grid_item_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); - } - } - - private static efl_ui_grid_item_size_set_delegate efl_ui_grid_item_size_set_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Ui.GridItem efl_ui_grid_last_selected_item_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Ui.GridItem efl_ui_grid_last_selected_item_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_grid_last_selected_item_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_grid_last_selected_item_get"); - - private static Efl.Ui.GridItem last_selected_item_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_grid_last_selected_item_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.GridItem _ret_var = default(Efl.Ui.GridItem); - try - { - _ret_var = ((Grid)ws.Target).GetLastSelectedItem(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_grid_last_selected_item_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_grid_last_selected_item_get_delegate efl_ui_grid_last_selected_item_get_static_delegate; - - - private delegate void efl_ui_grid_item_scroll_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.GridItem item, [MarshalAs(UnmanagedType.U1)] bool animation); - - - public delegate void efl_ui_grid_item_scroll_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.GridItem item, [MarshalAs(UnmanagedType.U1)] bool animation); - - public static Efl.Eo.FunctionWrapper efl_ui_grid_item_scroll_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_grid_item_scroll"); - - private static void item_scroll(System.IntPtr obj, System.IntPtr pd, Efl.Ui.GridItem item, bool animation) - { - Eina.Log.Debug("function efl_ui_grid_item_scroll was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Grid)ws.Target).ItemScroll(item, animation); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_grid_item_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item, animation); - } - } - - private static efl_ui_grid_item_scroll_delegate efl_ui_grid_item_scroll_static_delegate; - - - private delegate void efl_ui_grid_item_scroll_align_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.GridItem item, double align, [MarshalAs(UnmanagedType.U1)] bool animation); - - - public delegate void efl_ui_grid_item_scroll_align_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.GridItem item, double align, [MarshalAs(UnmanagedType.U1)] bool animation); - - public static Efl.Eo.FunctionWrapper efl_ui_grid_item_scroll_align_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_grid_item_scroll_align"); - - private static void item_scroll_align(System.IntPtr obj, System.IntPtr pd, Efl.Ui.GridItem item, double align, bool animation) - { - Eina.Log.Debug("function efl_ui_grid_item_scroll_align was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Grid)ws.Target).ItemScrollAlign(item, align, animation); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_grid_item_scroll_align_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item, align, animation); - } - } - - private static efl_ui_grid_item_scroll_align_delegate efl_ui_grid_item_scroll_align_static_delegate; - - - private delegate System.IntPtr efl_ui_grid_selected_items_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate System.IntPtr efl_ui_grid_selected_items_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_grid_selected_items_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_grid_selected_items_get"); - - private static System.IntPtr selected_items_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_grid_selected_items_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Eina.Iterator _ret_var = default(Eina.Iterator); - try - { - _ret_var = ((Grid)ws.Target).GetSelectedItems(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - _ret_var.Own = false; return _ret_var.Handle; - - } - else - { - return efl_ui_grid_selected_items_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_grid_selected_items_get_delegate efl_ui_grid_selected_items_get_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_clear"); - - private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_clear was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((Grid)ws.Target).ClearPack(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_pack_clear_delegate efl_pack_clear_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_all"); - - private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_unpack_all was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((Grid)ws.Target).UnpackAll(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); - - public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack"); - - private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_unpack was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((Grid)ws.Target).Unpack(subobj); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - - private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); - - public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack"); - - private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((Grid)ws.Target).Pack(subobj); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - - private static efl_pack_delegate efl_pack_static_delegate; - - - private delegate void efl_pack_layout_request_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate void efl_pack_layout_request_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_pack_layout_request_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_layout_request"); - - private static void layout_request(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_layout_request was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Grid)ws.Target).LayoutRequest(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_pack_layout_request_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_pack_layout_request_delegate efl_pack_layout_request_static_delegate; - - - private delegate void efl_pack_layout_update_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate void efl_pack_layout_update_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_pack_layout_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_layout_update"); - - private static void layout_update(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_layout_update was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Grid)ws.Target).UpdateLayout(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_pack_layout_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_pack_layout_update_delegate efl_pack_layout_update_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_pack_begin_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_pack_begin_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); - - public static Efl.Eo.FunctionWrapper efl_pack_begin_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_begin"); - - private static bool pack_begin(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_begin was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((Grid)ws.Target).PackBegin(subobj); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_pack_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - - private static efl_pack_begin_delegate efl_pack_begin_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_pack_end_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_pack_end_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); - - public static Efl.Eo.FunctionWrapper efl_pack_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_end"); - - private static bool pack_end(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_end was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((Grid)ws.Target).PackEnd(subobj); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_pack_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - - private static efl_pack_end_delegate efl_pack_end_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_pack_before_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_pack_before_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); - - public static Efl.Eo.FunctionWrapper efl_pack_before_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_before"); - - private static bool pack_before(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) - { - Eina.Log.Debug("function efl_pack_before was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((Grid)ws.Target).PackBefore(subobj, existing); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_pack_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); - } - } - - private static efl_pack_before_delegate efl_pack_before_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_pack_after_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_pack_after_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); - - public static Efl.Eo.FunctionWrapper efl_pack_after_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_after"); - - private static bool pack_after(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) - { - Eina.Log.Debug("function efl_pack_after was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((Grid)ws.Target).PackAfter(subobj, existing); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_pack_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); - } - } - - private static efl_pack_after_delegate efl_pack_after_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_pack_at_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int index); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_pack_at_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int index); - - public static Efl.Eo.FunctionWrapper efl_pack_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_at"); - - private static bool pack_at(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index) - { - Eina.Log.Debug("function efl_pack_at was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((Grid)ws.Target).PackAt(subobj, index); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_pack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index); - } - } - - private static efl_pack_at_delegate efl_pack_at_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Gfx.IEntity efl_pack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Gfx.IEntity efl_pack_content_get_api_delegate(System.IntPtr obj, int index); - - public static Efl.Eo.FunctionWrapper efl_pack_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_content_get"); - - private static Efl.Gfx.IEntity pack_content_get(System.IntPtr obj, System.IntPtr pd, int index) - { - Eina.Log.Debug("function efl_pack_content_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try - { - _ret_var = ((Grid)ws.Target).GetPackContent(index); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_pack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); - } - } - - private static efl_pack_content_get_delegate efl_pack_content_get_static_delegate; - - - private delegate int efl_pack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); - - - public delegate int efl_pack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); - - public static Efl.Eo.FunctionWrapper efl_pack_index_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_index_get"); - - private static int pack_index_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_index_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - int _ret_var = default(int); - try - { - _ret_var = ((Grid)ws.Target).GetPackIndex(subobj); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_pack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - - private static efl_pack_index_get_delegate efl_pack_index_get_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Gfx.IEntity efl_pack_unpack_at_delegate(System.IntPtr obj, System.IntPtr pd, int index); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Gfx.IEntity efl_pack_unpack_at_api_delegate(System.IntPtr obj, int index); - - public static Efl.Eo.FunctionWrapper efl_pack_unpack_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_at"); - - private static Efl.Gfx.IEntity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index) - { - Eina.Log.Debug("function efl_pack_unpack_at was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try - { - _ret_var = ((Grid)ws.Target).PackUnpackAt(index); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); - } - } - - private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate; - - - private delegate void efl_gfx_arrangement_content_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); - - - public delegate void efl_gfx_arrangement_content_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); - - public static Efl.Eo.FunctionWrapper efl_gfx_arrangement_content_align_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_arrangement_content_align_get"); - - private static void content_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) - { - Eina.Log.Debug("function efl_gfx_arrangement_content_align_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - align_horiz = default(double); align_vert = default(double); - try - { - ((Grid)ws.Target).GetContentAlign(out align_horiz, out align_vert); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_gfx_arrangement_content_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); - } - } - - private static efl_gfx_arrangement_content_align_get_delegate efl_gfx_arrangement_content_align_get_static_delegate; - - - private delegate void efl_gfx_arrangement_content_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); - - - public delegate void efl_gfx_arrangement_content_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); - - public static Efl.Eo.FunctionWrapper efl_gfx_arrangement_content_align_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_arrangement_content_align_set"); - - private static void content_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) - { - Eina.Log.Debug("function efl_gfx_arrangement_content_align_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Grid)ws.Target).SetContentAlign(align_horiz, align_vert); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_gfx_arrangement_content_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); - } - } - - private static efl_gfx_arrangement_content_align_set_delegate efl_gfx_arrangement_content_align_set_static_delegate; - - - private delegate void efl_gfx_arrangement_content_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); - - - public delegate void efl_gfx_arrangement_content_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); - - public static Efl.Eo.FunctionWrapper efl_gfx_arrangement_content_padding_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_arrangement_content_padding_get"); - - private static void content_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) - { - Eina.Log.Debug("function efl_gfx_arrangement_content_padding_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); - try - { - ((Grid)ws.Target).GetContentPadding(out pad_horiz, out pad_vert, out scalable); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_gfx_arrangement_content_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); - } - } - - private static efl_gfx_arrangement_content_padding_get_delegate efl_gfx_arrangement_content_padding_get_static_delegate; - - - private delegate void efl_gfx_arrangement_content_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); - - - public delegate void efl_gfx_arrangement_content_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); - - public static Efl.Eo.FunctionWrapper efl_gfx_arrangement_content_padding_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_arrangement_content_padding_set"); - - private static void content_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) - { - Eina.Log.Debug("function efl_gfx_arrangement_content_padding_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Grid)ws.Target).SetContentPadding(pad_horiz, pad_vert, scalable); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_gfx_arrangement_content_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); - } - } - - private static efl_gfx_arrangement_content_padding_set_delegate efl_gfx_arrangement_content_padding_set_static_delegate; - - - private delegate Efl.Ui.LayoutOrientation efl_ui_layout_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate Efl.Ui.LayoutOrientation efl_ui_layout_orientation_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_layout_orientation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_layout_orientation_get"); - - private static Efl.Ui.LayoutOrientation orientation_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_layout_orientation_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.LayoutOrientation _ret_var = default(Efl.Ui.LayoutOrientation); - try - { - _ret_var = ((Grid)ws.Target).GetOrientation(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_layout_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_layout_orientation_get_delegate efl_ui_layout_orientation_get_static_delegate; - - - private delegate void efl_ui_layout_orientation_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.LayoutOrientation dir); - - - public delegate void efl_ui_layout_orientation_set_api_delegate(System.IntPtr obj, Efl.Ui.LayoutOrientation dir); - - public static Efl.Eo.FunctionWrapper efl_ui_layout_orientation_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_layout_orientation_set"); - - private static void orientation_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.LayoutOrientation dir) - { - Eina.Log.Debug("function efl_ui_layout_orientation_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Grid)ws.Target).SetOrientation(dir); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_layout_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); - } - } - - private static efl_ui_layout_orientation_set_delegate efl_ui_layout_orientation_set_static_delegate; - - - private delegate Efl.Ui.SelectMode efl_ui_select_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate Efl.Ui.SelectMode efl_ui_select_mode_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_select_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_select_mode_get"); - - private static Efl.Ui.SelectMode select_mode_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_select_mode_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.SelectMode _ret_var = default(Efl.Ui.SelectMode); - try - { - _ret_var = ((Grid)ws.Target).GetSelectMode(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_select_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_select_mode_get_delegate efl_ui_select_mode_get_static_delegate; - - - private delegate void efl_ui_select_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectMode mode); - - - public delegate void efl_ui_select_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.SelectMode mode); - - public static Efl.Eo.FunctionWrapper efl_ui_select_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_select_mode_set"); - - private static void select_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectMode mode) - { - Eina.Log.Debug("function efl_ui_select_mode_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Grid)ws.Target).SetSelectMode(mode); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_select_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode); - } - } - - private static efl_ui_select_mode_set_delegate efl_ui_select_mode_set_static_delegate; - - - private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_pos_get"); - - private static Eina.Position2D.NativeStruct content_pos_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_content_pos_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Eina.Position2D _ret_var = default(Eina.Position2D); - try - { - _ret_var = ((Grid)ws.Target).GetContentPos(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_scrollable_content_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_scrollable_content_pos_get_delegate efl_ui_scrollable_content_pos_get_static_delegate; - - - private delegate void efl_ui_scrollable_content_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); - - - public delegate void efl_ui_scrollable_content_pos_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_pos_set"); - - private static void content_pos_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) - { - Eina.Log.Debug("function efl_ui_scrollable_content_pos_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Eina.Position2D _in_pos = pos; - - try - { - ((Grid)ws.Target).SetContentPos(_in_pos); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollable_content_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); - } - } - - private static efl_ui_scrollable_content_pos_set_delegate efl_ui_scrollable_content_pos_set_static_delegate; - - - private delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_size_get"); - - private static Eina.Size2D.NativeStruct content_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_content_size_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Eina.Size2D _ret_var = default(Eina.Size2D); - try - { - _ret_var = ((Grid)ws.Target).GetContentSize(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_scrollable_content_size_get_delegate efl_ui_scrollable_content_size_get_static_delegate; - - - private delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_viewport_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_viewport_geometry_get"); - - private static Eina.Rect.NativeStruct viewport_geometry_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_viewport_geometry_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Eina.Rect _ret_var = default(Eina.Rect); - try - { - _ret_var = ((Grid)ws.Target).GetViewportGeometry(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_scrollable_viewport_geometry_get_delegate efl_ui_scrollable_viewport_geometry_get_static_delegate; - - - private delegate void efl_ui_scrollable_bounce_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - - - public delegate void efl_ui_scrollable_bounce_enabled_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_bounce_enabled_get"); - - private static void bounce_enabled_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) - { - Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - horiz = default(bool); vert = default(bool); - try - { - ((Grid)ws.Target).GetBounceEnabled(out horiz, out vert); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); - } - } - - private static efl_ui_scrollable_bounce_enabled_get_delegate efl_ui_scrollable_bounce_enabled_get_static_delegate; - - - private delegate void efl_ui_scrollable_bounce_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - - - public delegate void efl_ui_scrollable_bounce_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_bounce_enabled_set"); - - private static void bounce_enabled_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) - { - Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Grid)ws.Target).SetBounceEnabled(horiz, vert); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); - } - } - - private static efl_ui_scrollable_bounce_enabled_set_delegate efl_ui_scrollable_bounce_enabled_set_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_ui_scrollable_scroll_freeze_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_ui_scrollable_scroll_freeze_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_freeze_get"); - - private static bool scroll_freeze_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((Grid)ws.Target).GetScrollFreeze(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_scrollable_scroll_freeze_get_delegate efl_ui_scrollable_scroll_freeze_get_static_delegate; - - - private delegate void efl_ui_scrollable_scroll_freeze_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool freeze); - - - public delegate void efl_ui_scrollable_scroll_freeze_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool freeze); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_freeze_set"); - - private static void scroll_freeze_set(System.IntPtr obj, System.IntPtr pd, bool freeze) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Grid)ws.Target).SetScrollFreeze(freeze); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), freeze); - } - } - - private static efl_ui_scrollable_scroll_freeze_set_delegate efl_ui_scrollable_scroll_freeze_set_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_ui_scrollable_scroll_hold_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_ui_scrollable_scroll_hold_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_hold_get"); - - private static bool scroll_hold_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((Grid)ws.Target).GetScrollHold(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_scrollable_scroll_hold_get_delegate efl_ui_scrollable_scroll_hold_get_static_delegate; - - - private delegate void efl_ui_scrollable_scroll_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hold); - - - public delegate void efl_ui_scrollable_scroll_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hold); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_hold_set"); - - private static void scroll_hold_set(System.IntPtr obj, System.IntPtr pd, bool hold) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Grid)ws.Target).SetScrollHold(hold); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hold); - } - } - - private static efl_ui_scrollable_scroll_hold_set_delegate efl_ui_scrollable_scroll_hold_set_static_delegate; - - - private delegate void efl_ui_scrollable_looping_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); - - - public delegate void efl_ui_scrollable_looping_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_looping_get"); - - private static void looping_get(System.IntPtr obj, System.IntPtr pd, out bool loop_h, out bool loop_v) - { - Eina.Log.Debug("function efl_ui_scrollable_looping_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - loop_h = default(bool); loop_v = default(bool); - try - { - ((Grid)ws.Target).GetLooping(out loop_h, out loop_v); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollable_looping_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out loop_h, out loop_v); - } - } - - private static efl_ui_scrollable_looping_get_delegate efl_ui_scrollable_looping_get_static_delegate; - - - private delegate void efl_ui_scrollable_looping_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); - - - public delegate void efl_ui_scrollable_looping_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_looping_set"); - - private static void looping_set(System.IntPtr obj, System.IntPtr pd, bool loop_h, bool loop_v) - { - Eina.Log.Debug("function efl_ui_scrollable_looping_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Grid)ws.Target).SetLooping(loop_h, loop_v); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollable_looping_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop_h, loop_v); - } - } - - private static efl_ui_scrollable_looping_set_delegate efl_ui_scrollable_looping_set_static_delegate; - - - private delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_movement_block_get"); - - private static Efl.Ui.ScrollBlock movement_block_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_movement_block_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.ScrollBlock _ret_var = default(Efl.Ui.ScrollBlock); - try - { - _ret_var = ((Grid)ws.Target).GetMovementBlock(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_scrollable_movement_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_scrollable_movement_block_get_delegate efl_ui_scrollable_movement_block_get_static_delegate; - - - private delegate void efl_ui_scrollable_movement_block_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block); - - - public delegate void efl_ui_scrollable_movement_block_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollBlock block); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_movement_block_set"); - - private static void movement_block_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block) - { - Eina.Log.Debug("function efl_ui_scrollable_movement_block_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Grid)ws.Target).SetMovementBlock(block); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollable_movement_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), block); - } - } - - private static efl_ui_scrollable_movement_block_set_delegate efl_ui_scrollable_movement_block_set_static_delegate; - - - private delegate void efl_ui_scrollable_gravity_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); - - - public delegate void efl_ui_scrollable_gravity_get_api_delegate(System.IntPtr obj, out double x, out double y); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_gravity_get"); - - private static void gravity_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_ui_scrollable_gravity_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - x = default(double); y = default(double); - try - { - ((Grid)ws.Target).GetGravity(out x, out y); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollable_gravity_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - - private static efl_ui_scrollable_gravity_get_delegate efl_ui_scrollable_gravity_get_static_delegate; - - - private delegate void efl_ui_scrollable_gravity_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); - - - public delegate void efl_ui_scrollable_gravity_set_api_delegate(System.IntPtr obj, double x, double y); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_gravity_set"); - - private static void gravity_set(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_ui_scrollable_gravity_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Grid)ws.Target).SetGravity(x, y); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollable_gravity_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); - } - } - - private static efl_ui_scrollable_gravity_set_delegate efl_ui_scrollable_gravity_set_static_delegate; - - - private delegate void efl_ui_scrollable_match_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); - - - public delegate void efl_ui_scrollable_match_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_match_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_match_content_set"); - - private static void match_content_set(System.IntPtr obj, System.IntPtr pd, bool w, bool h) - { - Eina.Log.Debug("function efl_ui_scrollable_match_content_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Grid)ws.Target).SetMatchContent(w, h); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollable_match_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w, h); - } - } - - private static efl_ui_scrollable_match_content_set_delegate efl_ui_scrollable_match_content_set_static_delegate; - - - private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_step_size_get"); - - private static Eina.Position2D.NativeStruct step_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_step_size_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Eina.Position2D _ret_var = default(Eina.Position2D); - try - { - _ret_var = ((Grid)ws.Target).GetStepSize(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_scrollable_step_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_scrollable_step_size_get_delegate efl_ui_scrollable_step_size_get_static_delegate; - - - private delegate void efl_ui_scrollable_step_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step); - - - public delegate void efl_ui_scrollable_step_size_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct step); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_step_size_set"); - - private static void step_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step) - { - Eina.Log.Debug("function efl_ui_scrollable_step_size_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Eina.Position2D _in_step = step; - - try - { - ((Grid)ws.Target).SetStepSize(_in_step); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollable_step_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); - } - } - - private static efl_ui_scrollable_step_size_set_delegate efl_ui_scrollable_step_size_set_static_delegate; - - - private delegate void efl_ui_scrollable_scroll_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); - - - public delegate void efl_ui_scrollable_scroll_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll"); - - private static void scroll(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool animation) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Eina.Rect _in_rect = rect; - - try - { - ((Grid)ws.Target).Scroll(_in_rect, animation); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollable_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, animation); - } - } - - private static efl_ui_scrollable_scroll_delegate efl_ui_scrollable_scroll_static_delegate; - - - private delegate void efl_ui_scrollbar_bar_mode_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); - - - public delegate void efl_ui_scrollbar_bar_mode_get_api_delegate(System.IntPtr obj, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_mode_get"); - - private static void bar_mode_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - hbar = default(Efl.Ui.ScrollbarMode); vbar = default(Efl.Ui.ScrollbarMode); - try - { - ((Grid)ws.Target).GetBarMode(out hbar, out vbar); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out hbar, out vbar); - } - } - - private static efl_ui_scrollbar_bar_mode_get_delegate efl_ui_scrollbar_bar_mode_get_static_delegate; - - - private delegate void efl_ui_scrollbar_bar_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); - - - public delegate void efl_ui_scrollbar_bar_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_mode_set"); - - private static void bar_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Grid)ws.Target).SetBarMode(hbar, vbar); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar, vbar); - } - } - - private static efl_ui_scrollbar_bar_mode_set_delegate efl_ui_scrollbar_bar_mode_set_static_delegate; - - - private delegate void efl_ui_scrollbar_bar_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out double width, out double height); - - - public delegate void efl_ui_scrollbar_bar_size_get_api_delegate(System.IntPtr obj, out double width, out double height); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_size_get"); - - private static void bar_size_get(System.IntPtr obj, System.IntPtr pd, out double width, out double height) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_size_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - width = default(double); height = default(double); - try - { - ((Grid)ws.Target).GetBarSize(out width, out height); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out width, out height); - } - } - - private static efl_ui_scrollbar_bar_size_get_delegate efl_ui_scrollbar_bar_size_get_static_delegate; - - - private delegate void efl_ui_scrollbar_bar_position_get_delegate(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy); - - - public delegate void efl_ui_scrollbar_bar_position_get_api_delegate(System.IntPtr obj, out double posx, out double posy); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_position_get"); - - private static void bar_position_get(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_position_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - posx = default(double); posy = default(double); - try - { - ((Grid)ws.Target).GetBarPosition(out posx, out posy); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out posx, out posy); - } - } - - private static efl_ui_scrollbar_bar_position_get_delegate efl_ui_scrollbar_bar_position_get_static_delegate; - - - private delegate void efl_ui_scrollbar_bar_position_set_delegate(System.IntPtr obj, System.IntPtr pd, double posx, double posy); - - - public delegate void efl_ui_scrollbar_bar_position_set_api_delegate(System.IntPtr obj, double posx, double posy); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_position_set"); - - private static void bar_position_set(System.IntPtr obj, System.IntPtr pd, double posx, double posy) + private static IntPtr GetEflClassStatic() + { + return Efl.Ui.Grid.efl_ui_grid_class_get(); + } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Collection.NativeMethods + { + /// Gets the list of Eo operations to override. + /// The list of Eo operations to be overload. + public override System.Collections.Generic.List GetEoOps(System.Type type) { - Eina.Log.Debug("function efl_ui_scrollbar_bar_position_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Grid)ws.Target).SetBarPosition(posx, posy); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), posx, posy); - } + var descs = new System.Collections.Generic.List(); + descs.AddRange(base.GetEoOps(type)); + return descs; } - - private static efl_ui_scrollbar_bar_position_set_delegate efl_ui_scrollbar_bar_position_set_static_delegate; - - - private delegate void efl_ui_scrollbar_bar_visibility_update_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate void efl_ui_scrollbar_bar_visibility_update_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_visibility_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_visibility_update"); - - private static void bar_visibility_update(System.IntPtr obj, System.IntPtr pd) + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() { - Eina.Log.Debug("function efl_ui_scrollbar_bar_visibility_update was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Grid)ws.Target).UpdateBarVisibility(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } + return Efl.Ui.Grid.efl_ui_grid_class_get(); } - private static efl_ui_scrollbar_bar_visibility_update_delegate efl_ui_scrollbar_bar_visibility_update_static_delegate; + #pragma warning disable CA1707, CS1591, SA1300, SA1600 #pragma warning restore CA1707, CS1591, SA1300, SA1600 @@ -4730,3 +103,9 @@ public class Grid : Efl.Ui.LayoutBase, Efl.IPack, Efl.IPackLayout, Efl.IPackLine } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiGrid_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_grid_default_item.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_grid_default_item.eo.cs old mode 100644 new mode 100755 index be3b00d6d..08ceb3618 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_grid_default_item.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_grid_default_item.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,12 +10,13 @@ namespace Efl { namespace Ui { -/// Grid Default Item class. This class need to be sub object of list widget. Text and contents can be set using , or . +/// Grid Default Item class. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.GridDefaultItem.NativeMethods] [Efl.Eo.BindingEntity] -public class GridDefaultItem : Efl.Ui.GridItem, Efl.IContent, Efl.IText, Efl.ITextMarkup +public class GridDefaultItem : Efl.Ui.DefaultItem { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +48,8 @@ public class GridDefaultItem : Efl.Ui.GridItem, Efl.IContent, Efl.IText, Efl.ITe FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected GridDefaultItem(ConstructingHandle ch) : base(ch) { @@ -67,244 +70,19 @@ public class GridDefaultItem : Efl.Ui.GridItem, Efl.IContent, Efl.IText, Efl.ITe { } - /// Sent after the content is set or unset using the current content object. - /// (Since EFL 1.22) - public event EventHandler ContentChangedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ContentChangedEvt. - public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = e.arg.NativeHandle; - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - /// The extra content part for grid default item. extra part is the spare content of grid item. you can swallow small badge widget such as check, radio. - public Efl.Ui.ItemPartExtra EndPart - { - get - { - return GetPart("end") as Efl.Ui.ItemPartExtra; - } - } - /// The icon content part for grid default item. icon part is the main content of grid item. - public Efl.Ui.ItemPartIcon IconPart - { - get - { - return GetPart("icon") as Efl.Ui.ItemPartIcon; - } - } - /// The text part for grid default item. text part is the caption of grid item. - public Efl.Ui.ItemPartText TextPart - { - get - { - return GetPart("text") as Efl.Ui.ItemPartText; - } - } - /// Sub-object currently set as this object's single content. - /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). - /// (Since EFL 1.22) - /// The sub-object. - virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Sub-object currently set as this object's single content. - /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). - /// (Since EFL 1.22) - /// The sub-object. - /// true if content was successfully swallowed. - virtual public bool SetContent(Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),content); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. - /// (Since EFL 1.22) - /// Unswallowed object - virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Retrieves the text string currently being displayed by the given text object. - /// Do not free() the return value. - /// - /// See also . - /// (Since EFL 1.22) - /// Text string to display on it. - virtual public System.String GetText() { - var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Sets the text string to be displayed by the given text object. - /// See also . - /// (Since EFL 1.22) - /// Text string to display on it. - virtual public void SetText(System.String text) { - Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),text); - Eina.Error.RaiseIfUnhandledException(); - } - /// Markup property - /// The markup-text representation set to this text. - virtual public System.String GetMarkup() { - var _ret_var = Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Markup property - /// The markup-text representation set to this text. - virtual public void SetMarkup(System.String markup) { - Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),markup); - Eina.Error.RaiseIfUnhandledException(); - } - /// Sub-object currently set as this object's single content. - /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). - /// (Since EFL 1.22) - /// The sub-object. - public Efl.Gfx.IEntity Content { - get { return GetContent(); } - set { SetContent(value); } - } - /// Markup property - /// The markup-text representation set to this text. - public System.String Markup { - get { return GetMarkup(); } - set { SetMarkup(value); } - } private static IntPtr GetEflClassStatic() { return Efl.Ui.GridDefaultItem.efl_ui_grid_default_item_class_get(); } /// Wrapper for native methods and virtual method delegates. /// For internal use by generated code only. - public new class NativeMethods : Efl.Ui.GridItem.NativeMethods + public new class NativeMethods : Efl.Ui.DefaultItem.NativeMethods { - private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); /// Gets the list of Eo operations to override. /// The list of Eo operations to be overload. public override System.Collections.Generic.List GetEoOps(System.Type type) { var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - - if (efl_content_get_static_delegate == null) - { - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); - } - - if (efl_content_set_static_delegate == null) - { - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); - } - - if (efl_content_unset_static_delegate == null) - { - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - } - - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); - } - - if (efl_text_get_static_delegate == null) - { - efl_text_get_static_delegate = new efl_text_get_delegate(text_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetText") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); - } - - if (efl_text_set_static_delegate == null) - { - efl_text_set_static_delegate = new efl_text_set_delegate(text_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetText") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); - } - - if (efl_text_markup_get_static_delegate == null) - { - efl_text_markup_get_static_delegate = new efl_text_markup_get_delegate(markup_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetMarkup") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_get_static_delegate) }); - } - - if (efl_text_markup_set_static_delegate == null) - { - efl_text_markup_set_static_delegate = new efl_text_markup_set_delegate(markup_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetMarkup") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_set_static_delegate) }); - } - descs.AddRange(base.GetEoOps(type)); return descs; } @@ -317,256 +95,6 @@ public class GridDefaultItem : Efl.Ui.GridItem, Efl.IContent, Efl.IText, Efl.ITe #pragma warning disable CA1707, CS1591, SA1300, SA1600 - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); - - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try - { - _ret_var = ((GridDefaultItem)ws.Target).GetContent(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_content_get_delegate efl_content_get_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); - - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); - - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((GridDefaultItem)ws.Target).SetContent(content); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); - } - } - - private static efl_content_set_delegate efl_content_set_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); - - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try - { - _ret_var = ((GridDefaultItem)ws.Target).UnsetContent(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_content_unset_delegate efl_content_unset_static_delegate; - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); - - private static System.String text_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - System.String _ret_var = default(System.String); - try - { - _ret_var = ((GridDefaultItem)ws.Target).GetText(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_text_get_delegate efl_text_get_static_delegate; - - - private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - - - public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - - public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); - - private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((GridDefaultItem)ws.Target).SetText(text); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); - } - } - - private static efl_text_set_delegate efl_text_set_static_delegate; - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - private delegate System.String efl_text_markup_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - public delegate System.String efl_text_markup_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_text_markup_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_get"); - - private static System.String markup_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_markup_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - System.String _ret_var = default(System.String); - try - { - _ret_var = ((GridDefaultItem)ws.Target).GetMarkup(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_text_markup_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_text_markup_get_delegate efl_text_markup_get_static_delegate; - - - private delegate void efl_text_markup_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); - - - public delegate void efl_text_markup_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); - - public static Efl.Eo.FunctionWrapper efl_text_markup_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_set"); - - private static void markup_set(System.IntPtr obj, System.IntPtr pd, System.String markup) - { - Eina.Log.Debug("function efl_text_markup_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((GridDefaultItem)ws.Target).SetMarkup(markup); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_text_markup_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), markup); - } - } - - private static efl_text_markup_set_delegate efl_text_markup_set_static_delegate; - #pragma warning restore CA1707, CS1591, SA1300, SA1600 } @@ -575,3 +103,9 @@ public class GridDefaultItem : Efl.Ui.GridItem, Efl.IContent, Efl.IText, Efl.ITe } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiGridDefaultItem_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_grid_item.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_grid_item.eo.cs deleted file mode 100644 index 9a10a814d..000000000 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_grid_item.eo.cs +++ /dev/null @@ -1,108 +0,0 @@ -#pragma warning disable CS1591 -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.ComponentModel; -namespace Efl { - -namespace Ui { - -[Efl.Ui.GridItem.NativeMethods] -[Efl.Eo.BindingEntity] -public abstract class GridItem : Efl.Ui.Item -{ - ///Pointer to the native class description. - public override System.IntPtr NativeClass - { - get - { - if (((object)this).GetType() == typeof(GridItem)) - { - return GetEflClassStatic(); - } - else - { - return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; - } - } - } - - [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - efl_ui_grid_item_class_get(); - /// Initializes a new instance of the class. - /// Parent instance. - /// The widget style to use. See - public GridItem(Efl.Object parent - , System.String style = null) : base(efl_ui_grid_item_class_get(), parent) - { - if (Efl.Eo.Globals.ParamHelperCheck(style)) - { - SetStyle(Efl.Eo.Globals.GetParamHelper(style)); - } - - FinishInstantiation(); - } - - /// Constructor to be used when objects are expected to be constructed from native code. - /// Tag struct storing the native handle of the object being constructed. - protected GridItem(ConstructingHandle ch) : base(ch) - { - } - - /// Initializes a new instance of the class. - /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. - /// The native pointer to be wrapped. - protected GridItem(Efl.Eo.Globals.WrappingHandle wh) : base(wh) - { - } - - [Efl.Eo.PrivateNativeClass] - private class GridItemRealized : GridItem - { - private GridItemRealized(Efl.Eo.Globals.WrappingHandle wh) : base(wh) - { - } - } - /// Initializes a new instance of the class. - /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - /// The pointer to the base native Eo class. - /// The Efl.Object parent of this instance. - protected GridItem(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) - { - } - - private static IntPtr GetEflClassStatic() - { - return Efl.Ui.GridItem.efl_ui_grid_item_class_get(); - } - /// Wrapper for native methods and virtual method delegates. - /// For internal use by generated code only. - public new class NativeMethods : Efl.Ui.Item.NativeMethods - { - /// Gets the list of Eo operations to override. - /// The list of Eo operations to be overload. - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - /// Returns the Eo class for the native methods of this class. - /// The native class pointer. - public override IntPtr GetEflClass() - { - return Efl.Ui.GridItem.efl_ui_grid_item_class_get(); - } - - #pragma warning disable CA1707, CS1591, SA1300, SA1600 - - #pragma warning restore CA1707, CS1591, SA1300, SA1600 - -} -} -} - -} - diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_group_item.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_group_item.eo.cs new file mode 100755 index 000000000..c0217c00f --- /dev/null +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_group_item.eo.cs @@ -0,0 +1,786 @@ +#define EFL_BETA +#pragma warning disable CS1591 +using System; +using System.Runtime.InteropServices; +using System.Collections.Generic; +using System.Linq; +using System.Threading; +using System.ComponentModel; +namespace Efl { + +namespace Ui { + +/// Group item for grids and lists +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +[Efl.Ui.GroupItem.NativeMethods] +[Efl.Eo.BindingEntity] +public class GroupItem : Efl.Ui.DefaultItem, Efl.IPack, Efl.IPackLinear +{ + /// Pointer to the native class description. + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(GroupItem)) + { + return GetEflClassStatic(); + } + else + { + return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } + } + } + + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr + efl_ui_group_item_class_get(); + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See + public GroupItem(Efl.Object parent + , System.String style = null) : base(efl_ui_group_item_class_get(), parent) + { + if (Efl.Eo.Globals.ParamHelperCheck(style)) + { + SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + + FinishInstantiation(); + } + + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. + /// Tag struct storing the native handle of the object being constructed. + protected GroupItem(ConstructingHandle ch) : base(ch) + { + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. + protected GroupItem(Efl.Eo.Globals.WrappingHandle wh) : base(wh) + { + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The Efl.Object parent of this instance. + protected GroupItem(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) + { + } + + /// Removes all packed sub-objects and unreferences them. + /// true on success, false otherwise. + virtual public bool ClearPack() { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_clear_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Removes all packed sub-objects without unreferencing them. + /// Use with caution. + /// true on success, false otherwise. + virtual public bool UnpackAll() { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_all_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Removes an existing sub-object from the container without deleting it. + /// The sub-object to unpack. + /// false if subobj wasn't in the container or couldn't be removed. + virtual public bool Unpack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Adds a sub-object to this container. + /// Depending on the container this will either fill in the default spot, replacing any already existing element or append to the end of the container if there is no default part. + /// + /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. + /// The object to pack. + /// false if subobj could not be packed. + virtual public bool Pack(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Prepend an object at the beginning of this container. + /// This is the same as (subobj, 0). + /// + /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. + /// Object to pack at the beginning. + /// false if subobj could not be packed. + virtual public bool PackBegin(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_begin_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Append object at the end of this container. + /// This is the same as (subobj, -1). + /// + /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. + /// Object to pack at the end. + /// false if subobj could not be packed. + virtual public bool PackEnd(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_end_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Prepend an object before an existing sub-object. + /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. + /// Object to pack before existing. + /// Existing reference sub-object. + /// false if existing could not be found or subobj could not be packed. + virtual public bool PackBefore(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_before_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, existing); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Append an object after an existing sub-object. + /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. + /// Object to pack after existing. + /// Existing reference sub-object. + /// false if existing could not be found or subobj could not be packed. + virtual public bool PackAfter(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_after_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, existing); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Inserts subobj BEFORE the sub-object at position index. + /// index ranges from -count to count-1, where positive numbers go from first sub-object (0) to last (count-1), and negative numbers go from last sub-object (-1) to first (-count). count is the number of sub-objects currently in the container as returned by . + /// + /// If index is less than -count, it will trigger (subobj) whereas index greater than count-1 will trigger (subobj). + /// + /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. + /// Object to pack. + /// Index of existing sub-object to insert BEFORE. Valid range is -count to (count-1). + /// false if subobj could not be packed. + virtual public bool PackAt(Efl.Gfx.IEntity subobj, int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_at_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, index); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Sub-object at a given index in this container. + /// index ranges from -count to count-1, where positive numbers go from first sub-object (0) to last (count-1), and negative numbers go from last sub-object (-1) to first (-count). count is the number of sub-objects currently in the container as returned by . + /// + /// If index is less than -count, it will return the first sub-object whereas index greater than count-1 will return the last sub-object. + /// Index of the existing sub-object to retrieve. Valid range is -count to (count-1). + /// The sub-object contained at the given index. + virtual public Efl.Gfx.IEntity GetPackContent(int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_content_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),index); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Get the index of a sub-object in this container. + /// An existing sub-object in this container. + /// -1 in case subobj is not found, or the index of subobj in the range 0 to (count-1). + virtual public int GetPackIndex(Efl.Gfx.IEntity subobj) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_index_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Pop out (remove) the sub-object at the specified index. + /// index ranges from -count to count-1, where positive numbers go from first sub-object (0) to last (count-1), and negative numbers go from last sub-object (-1) to first (-count). count is the number of sub-objects currently in the container as returned by . + /// + /// If index is less than -count, it will remove the first sub-object whereas index greater than count-1 will remove the last sub-object. + /// Index of the sub-object to remove. Valid range is -count to (count-1). + /// The sub-object if it could be removed. + virtual public Efl.Gfx.IEntity PackUnpackAt(int index) { + var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_unpack_at_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),index); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + private static IntPtr GetEflClassStatic() + { + return Efl.Ui.GroupItem.efl_ui_group_item_class_get(); + } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.DefaultItem.NativeMethods + { + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// Gets the list of Eo operations to override. + /// The list of Eo operations to be overload. + public override System.Collections.Generic.List GetEoOps(System.Type type) + { + var descs = new System.Collections.Generic.List(); + var methods = Efl.Eo.Globals.GetUserMethods(type); + + if (efl_pack_clear_static_delegate == null) + { + efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); + } + + if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate) }); + } + + if (efl_pack_unpack_all_static_delegate == null) + { + efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); + } + + if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate) }); + } + + if (efl_pack_unpack_static_delegate == null) + { + efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); + } + + if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate) }); + } + + if (efl_pack_static_delegate == null) + { + efl_pack_static_delegate = new efl_pack_delegate(pack); + } + + if (methods.FirstOrDefault(m => m.Name == "Pack") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate) }); + } + + if (efl_pack_begin_static_delegate == null) + { + efl_pack_begin_static_delegate = new efl_pack_begin_delegate(pack_begin); + } + + if (methods.FirstOrDefault(m => m.Name == "PackBegin") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_begin"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_begin_static_delegate) }); + } + + if (efl_pack_end_static_delegate == null) + { + efl_pack_end_static_delegate = new efl_pack_end_delegate(pack_end); + } + + if (methods.FirstOrDefault(m => m.Name == "PackEnd") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_end"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_end_static_delegate) }); + } + + if (efl_pack_before_static_delegate == null) + { + efl_pack_before_static_delegate = new efl_pack_before_delegate(pack_before); + } + + if (methods.FirstOrDefault(m => m.Name == "PackBefore") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_before"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_before_static_delegate) }); + } + + if (efl_pack_after_static_delegate == null) + { + efl_pack_after_static_delegate = new efl_pack_after_delegate(pack_after); + } + + if (methods.FirstOrDefault(m => m.Name == "PackAfter") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_after"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_after_static_delegate) }); + } + + if (efl_pack_at_static_delegate == null) + { + efl_pack_at_static_delegate = new efl_pack_at_delegate(pack_at); + } + + if (methods.FirstOrDefault(m => m.Name == "PackAt") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_at_static_delegate) }); + } + + if (efl_pack_content_get_static_delegate == null) + { + efl_pack_content_get_static_delegate = new efl_pack_content_get_delegate(pack_content_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetPackContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_content_get_static_delegate) }); + } + + if (efl_pack_index_get_static_delegate == null) + { + efl_pack_index_get_static_delegate = new efl_pack_index_get_delegate(pack_index_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetPackIndex") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_index_get_static_delegate) }); + } + + if (efl_pack_unpack_at_static_delegate == null) + { + efl_pack_unpack_at_static_delegate = new efl_pack_unpack_at_delegate(pack_unpack_at); + } + + if (methods.FirstOrDefault(m => m.Name == "PackUnpackAt") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_at_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.GroupItem.efl_ui_group_item_class_get(); + } + + #pragma warning disable CA1707, CS1591, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_clear"); + + private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_clear was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((GroupItem)ws.Target).ClearPack(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_pack_clear_delegate efl_pack_clear_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_all"); + + private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_pack_unpack_all was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((GroupItem)ws.Target).UnpackAll(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack"); + + private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_unpack was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((GroupItem)ws.Target).Unpack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + + private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack"); + + private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((GroupItem)ws.Target).Pack(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + + private static efl_pack_delegate efl_pack_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_begin_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_begin_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_begin_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_begin"); + + private static bool pack_begin(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_begin was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((GroupItem)ws.Target).PackBegin(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + + private static efl_pack_begin_delegate efl_pack_begin_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_end_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_end_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_end"); + + private static bool pack_end(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_end was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((GroupItem)ws.Target).PackEnd(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + + private static efl_pack_end_delegate efl_pack_end_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_before_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_before_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + public static Efl.Eo.FunctionWrapper efl_pack_before_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_before"); + + private static bool pack_before(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) + { + Eina.Log.Debug("function efl_pack_before was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((GroupItem)ws.Target).PackBefore(subobj, existing); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + } + } + + private static efl_pack_before_delegate efl_pack_before_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_after_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_after_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); + + public static Efl.Eo.FunctionWrapper efl_pack_after_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_after"); + + private static bool pack_after(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) + { + Eina.Log.Debug("function efl_pack_after was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((GroupItem)ws.Target).PackAfter(subobj, existing); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); + } + } + + private static efl_pack_after_delegate efl_pack_after_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_at_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int index); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_at_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_at"); + + private static bool pack_at(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index) + { + Eina.Log.Debug("function efl_pack_at was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((GroupItem)ws.Target).PackAt(subobj, index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index); + } + } + + private static efl_pack_at_delegate efl_pack_at_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_pack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_pack_content_get_api_delegate(System.IntPtr obj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_content_get"); + + private static Efl.Gfx.IEntity pack_content_get(System.IntPtr obj, System.IntPtr pd, int index) + { + Eina.Log.Debug("function efl_pack_content_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((GroupItem)ws.Target).GetPackContent(index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + } + } + + private static efl_pack_content_get_delegate efl_pack_content_get_static_delegate; + + + private delegate int efl_pack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + + public delegate int efl_pack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_pack_index_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_index_get"); + + private static int pack_index_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_pack_index_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((GroupItem)ws.Target).GetPackIndex(subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); + } + } + + private static efl_pack_index_get_delegate efl_pack_index_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_pack_unpack_at_delegate(System.IntPtr obj, System.IntPtr pd, int index); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_pack_unpack_at_api_delegate(System.IntPtr obj, int index); + + public static Efl.Eo.FunctionWrapper efl_pack_unpack_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_at"); + + private static Efl.Gfx.IEntity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index) + { + Eina.Log.Debug("function efl_pack_unpack_at was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); + try + { + _ret_var = ((GroupItem)ws.Target).PackUnpackAt(index); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); + } + } + + private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate; + + #pragma warning restore CA1707, CS1591, SA1300, SA1600 + +} +} +} + +} + +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiGroupItem_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_i18n.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_i18n.eo.cs old mode 100644 new mode 100755 index a592d4b26..9ec5c76b1 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_i18n.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_i18n.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Ui { /// A common Internationalization interface for UI objects. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.II18nConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface II18n : @@ -45,8 +47,8 @@ void SetLanguage(System.String language); /// If mirrored, an object is in RTL (right to left) mode instead of LTR (left to right). /// true for RTL, false for LTR (default). bool Mirrored { - get ; - set ; + get; + set; } /// Whether the property should be set automatically. /// If enabled, the system or application configuration will be used to set the value of . @@ -54,23 +56,24 @@ void SetLanguage(System.String language); /// This property may be implemented by high-level widgets (in Efl.Ui) but not by low-level widgets (in ) as the configuration should affect only high-level widgets. /// Whether the widget uses automatic mirroring bool MirroredAutomatic { - get ; - set ; + get; + set; } /// The (human) language for this object. /// The current language. System.String Language { - get ; - set ; + get; + set; } } /// A common Internationalization interface for UI objects. -sealed public class II18nConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class II18nConcrete : Efl.Eo.EoWrapper , II18n { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -86,7 +89,8 @@ sealed public class II18nConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private II18nConcrete(ConstructingHandle ch) : base(ch) { @@ -478,3 +482,21 @@ sealed public class II18nConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiII18nConcrete_ExtensionMethods { + public static Efl.BindableProperty Mirrored(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.II18n { + return new Efl.BindableProperty("mirrored", fac); + } + + public static Efl.BindableProperty MirroredAutomatic(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.II18n { + return new Efl.BindableProperty("mirrored_automatic", fac); + } + + public static Efl.BindableProperty Language(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.II18n { + return new Efl.BindableProperty("language", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_image.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_image.eo.cs old mode 100644 new mode 100755 index 006d0de33..37d09fe82 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_image.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_image.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,19 +10,21 @@ namespace Efl { namespace Ui { -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ImageDropEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when drop from drag and drop happened public System.String arg { get; set; } } /// Efl UI image class /// When loading images from a file, the property can be used to access different streams. For example, when accessing Evas image caches. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Image.NativeMethods] [Efl.Eo.BindingEntity] -public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl.Gfx.IImageLoadController, Efl.Gfx.IImageOrientable, Efl.Gfx.IView, Efl.Layout.ICalc, Efl.Layout.IGroup, Efl.Layout.ISignal, Efl.Ui.IClickable, Efl.Ui.IDraggable +public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IArrangement, Efl.Gfx.IImage, Efl.Gfx.IImageLoadController, Efl.Gfx.IImageOrientable, Efl.Gfx.IView, Efl.Input.IClickable, Efl.Layout.ICalc, Efl.Layout.IGroup, Efl.Layout.ISignal, Efl.Ui.IDraggable { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -53,7 +56,8 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Image(ConstructingHandle ch) : base(ch) { @@ -75,6 +79,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. } /// Called when drop from drag and drop happened + /// public event EventHandler DropEvt { add @@ -114,7 +119,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. } } } - ///Method to raise event DropEvt. + /// Method to raise event DropEvt. public void OnDropEvt(Efl.Ui.ImageDropEvt_Args e) { var key = "_EFL_UI_IMAGE_EVENT_DROP"; @@ -174,7 +179,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. } } } - ///Method to raise event ImagePreloadEvt. + /// Method to raise event ImagePreloadEvt. public void OnImagePreloadEvt(EventArgs e) { var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_PRELOAD"; @@ -226,7 +231,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. } } } - ///Method to raise event ImageResizeEvt. + /// Method to raise event ImageResizeEvt. public void OnImageResizeEvt(EventArgs e) { var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_RESIZE"; @@ -278,7 +283,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. } } } - ///Method to raise event ImageUnloadEvt. + /// Method to raise event ImageUnloadEvt. public void OnImageUnloadEvt(EventArgs e) { var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_UNLOAD"; @@ -330,7 +335,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. } } } - ///Method to raise event LoadDoneEvt. + /// Method to raise event LoadDoneEvt. public void OnLoadDoneEvt(EventArgs e) { var key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_DONE"; @@ -344,6 +349,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when an error happened during image loading + /// public event EventHandler LoadErrorEvt { add @@ -383,7 +389,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. } } } - ///Method to raise event LoadErrorEvt. + /// Method to raise event LoadErrorEvt. public void OnLoadErrorEvt(Efl.Gfx.IImageLoadControllerLoadErrorEvt_Args e) { var key = "_EFL_GFX_IMAGE_LOAD_CONTROLLER_EVENT_LOAD_ERROR"; @@ -404,9 +410,9 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. Marshal.FreeHGlobal(info); } } - /// The layout was recalculated. - /// (Since EFL 1.22) - public event EventHandler RecalcEvt + /// Called when object is in sequence pressed and unpressed, by the primary button + /// + public event EventHandler ClickedEvt { add { @@ -417,7 +423,8 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - EventArgs args = EventArgs.Empty; + Efl.Input.IClickableClickedEvt_Args args = new Efl.Input.IClickableClickedEvt_Args(); + args.arg = evt.Info; try { value?.Invoke(obj, args); @@ -430,7 +437,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. } }; - string key = "_EFL_LAYOUT_EVENT_RECALC"; + string key = "_EFL_INPUT_EVENT_CLICKED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -439,15 +446,15 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. { lock (eflBindingEventLock) { - string key = "_EFL_LAYOUT_EVENT_RECALC"; + string key = "_EFL_INPUT_EVENT_CLICKED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event RecalcEvt. - public void OnRecalcEvt(EventArgs e) + /// Method to raise event ClickedEvt. + public void OnClickedEvt(Efl.Input.IClickableClickedEvt_Args e) { - var key = "_EFL_LAYOUT_EVENT_RECALC"; + var key = "_EFL_INPUT_EVENT_CLICKED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -455,11 +462,20 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. return; } - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } - /// A circular dependency between parts of the object was found. - /// (Since EFL 1.22) - public event EventHandler CircularDependencyEvt + /// Called when object is in sequence pressed and unpressed by any button. The button that triggered the event can be found in the event information. + /// + public event EventHandler ClickedAnyEvt { add { @@ -470,8 +486,8 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Layout.ICalcCircularDependencyEvt_Args args = new Efl.Layout.ICalcCircularDependencyEvt_Args(); - args.arg = new Eina.Array(evt.Info, false, false); + Efl.Input.IClickableClickedAnyEvt_Args args = new Efl.Input.IClickableClickedAnyEvt_Args(); + args.arg = evt.Info; try { value?.Invoke(obj, args); @@ -484,7 +500,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. } }; - string key = "_EFL_LAYOUT_EVENT_CIRCULAR_DEPENDENCY"; + string key = "_EFL_INPUT_EVENT_CLICKED_ANY"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -493,15 +509,15 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. { lock (eflBindingEventLock) { - string key = "_EFL_LAYOUT_EVENT_CIRCULAR_DEPENDENCY"; + string key = "_EFL_INPUT_EVENT_CLICKED_ANY"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event CircularDependencyEvt. - public void OnCircularDependencyEvt(Efl.Layout.ICalcCircularDependencyEvt_Args e) + /// Method to raise event ClickedAnyEvt. + public void OnClickedAnyEvt(Efl.Input.IClickableClickedAnyEvt_Args e) { - var key = "_EFL_LAYOUT_EVENT_CIRCULAR_DEPENDENCY"; + var key = "_EFL_INPUT_EVENT_CLICKED_ANY"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -509,11 +525,20 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. return; } - IntPtr info = e.arg.Handle; - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } - /// Called when object is in sequence pressed and unpressed, by the primary button - public event EventHandler ClickedEvt + /// Called when the object is pressed, event_info is the button that got pressed + /// + public event EventHandler PressedEvt { add { @@ -524,8 +549,8 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickableClickedEvt_Args args = new Efl.Ui.IClickableClickedEvt_Args(); - args.arg = evt.Info; + Efl.Input.IClickablePressedEvt_Args args = new Efl.Input.IClickablePressedEvt_Args(); + args.arg = Marshal.ReadInt32(evt.Info); try { value?.Invoke(obj, args); @@ -538,7 +563,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. } }; - string key = "_EFL_UI_EVENT_CLICKED"; + string key = "_EFL_INPUT_EVENT_PRESSED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -547,15 +572,15 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_CLICKED"; + string key = "_EFL_INPUT_EVENT_PRESSED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ClickedEvt. - public void OnClickedEvt(Efl.Ui.IClickableClickedEvt_Args e) + /// Method to raise event PressedEvt. + public void OnPressedEvt(Efl.Input.IClickablePressedEvt_Args e) { - var key = "_EFL_UI_EVENT_CLICKED"; + var key = "_EFL_INPUT_EVENT_PRESSED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -563,10 +588,9 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. return; } - IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); try { - Marshal.StructureToPtr(e.arg, info, false); Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } finally @@ -574,8 +598,9 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. Marshal.FreeHGlobal(info); } } - /// Called when object is in sequence pressed and unpressed by any button. The button that triggered the event can be found in the event information. - public event EventHandler ClickedAnyEvt + /// Called when the object is no longer pressed, event_info is the button that got pressed + /// + public event EventHandler UnpressedEvt { add { @@ -586,8 +611,8 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickableClickedAnyEvt_Args args = new Efl.Ui.IClickableClickedAnyEvt_Args(); - args.arg = evt.Info; + Efl.Input.IClickableUnpressedEvt_Args args = new Efl.Input.IClickableUnpressedEvt_Args(); + args.arg = Marshal.ReadInt32(evt.Info); try { value?.Invoke(obj, args); @@ -600,7 +625,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. } }; - string key = "_EFL_UI_EVENT_CLICKED_ANY"; + string key = "_EFL_INPUT_EVENT_UNPRESSED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -609,15 +634,15 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_CLICKED_ANY"; + string key = "_EFL_INPUT_EVENT_UNPRESSED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ClickedAnyEvt. - public void OnClickedAnyEvt(Efl.Ui.IClickableClickedAnyEvt_Args e) + /// Method to raise event UnpressedEvt. + public void OnUnpressedEvt(Efl.Input.IClickableUnpressedEvt_Args e) { - var key = "_EFL_UI_EVENT_CLICKED_ANY"; + var key = "_EFL_INPUT_EVENT_UNPRESSED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -625,10 +650,9 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. return; } - IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); try { - Marshal.StructureToPtr(e.arg, info, false); Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } finally @@ -636,8 +660,9 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. Marshal.FreeHGlobal(info); } } - /// Called when the object is pressed, event_info is the button that got pressed - public event EventHandler PressedEvt + /// Called when the object receives a long press, event_info is the button that got pressed + /// + public event EventHandler LongpressedEvt { add { @@ -648,7 +673,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); + Efl.Input.IClickableLongpressedEvt_Args args = new Efl.Input.IClickableLongpressedEvt_Args(); args.arg = Marshal.ReadInt32(evt.Info); try { @@ -662,7 +687,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. } }; - string key = "_EFL_UI_EVENT_PRESSED"; + string key = "_EFL_INPUT_EVENT_LONGPRESSED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -671,15 +696,15 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_PRESSED"; + string key = "_EFL_INPUT_EVENT_LONGPRESSED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event PressedEvt. - public void OnPressedEvt(Efl.Ui.IClickablePressedEvt_Args e) + /// Method to raise event LongpressedEvt. + public void OnLongpressedEvt(Efl.Input.IClickableLongpressedEvt_Args e) { - var key = "_EFL_UI_EVENT_PRESSED"; + var key = "_EFL_INPUT_EVENT_LONGPRESSED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -697,8 +722,9 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. Marshal.FreeHGlobal(info); } } - /// Called when the object is no longer pressed, event_info is the button that got pressed - public event EventHandler UnpressedEvt + /// The layout was recalculated. + /// (Since EFL 1.22) + public event EventHandler RecalcEvt { add { @@ -709,8 +735,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); - args.arg = Marshal.ReadInt32(evt.Info); + EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); @@ -723,7 +748,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. } }; - string key = "_EFL_UI_EVENT_UNPRESSED"; + string key = "_EFL_LAYOUT_EVENT_RECALC"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -732,15 +757,15 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_UNPRESSED"; + string key = "_EFL_LAYOUT_EVENT_RECALC"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event UnpressedEvt. - public void OnUnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) + /// Method to raise event RecalcEvt. + public void OnRecalcEvt(EventArgs e) { - var key = "_EFL_UI_EVENT_UNPRESSED"; + var key = "_EFL_LAYOUT_EVENT_RECALC"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -748,18 +773,12 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. return; } - IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); - try - { - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - finally - { - Marshal.FreeHGlobal(info); - } + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Called when the object receives a long press, event_info is the button that got pressed - public event EventHandler LongpressedEvt + /// A circular dependency between parts of the object was found. + /// (Since EFL 1.22) + /// + public event EventHandler CircularDependencyEvt { add { @@ -770,8 +789,8 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); - args.arg = Marshal.ReadInt32(evt.Info); + Efl.Layout.ICalcCircularDependencyEvt_Args args = new Efl.Layout.ICalcCircularDependencyEvt_Args(); + args.arg = new Eina.Array(evt.Info, false, false); try { value?.Invoke(obj, args); @@ -784,7 +803,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. } }; - string key = "_EFL_UI_EVENT_LONGPRESSED"; + string key = "_EFL_LAYOUT_EVENT_CIRCULAR_DEPENDENCY"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -793,15 +812,15 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_LONGPRESSED"; + string key = "_EFL_LAYOUT_EVENT_CIRCULAR_DEPENDENCY"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event LongpressedEvt. - public void OnLongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) + /// Method to raise event CircularDependencyEvt. + public void OnCircularDependencyEvt(Efl.Layout.ICalcCircularDependencyEvt_Args e) { - var key = "_EFL_UI_EVENT_LONGPRESSED"; + var key = "_EFL_LAYOUT_EVENT_CIRCULAR_DEPENDENCY"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -809,17 +828,11 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. return; } - IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); - try - { - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - finally - { - Marshal.FreeHGlobal(info); - } + IntPtr info = e.arg.Handle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Called when drag operation starts + /// public event EventHandler DragEvt { add @@ -859,7 +872,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. } } } - ///Method to raise event DragEvt. + /// Method to raise event DragEvt. public void OnDragEvt(Efl.Ui.IDraggableDragEvt_Args e) { var key = "_EFL_UI_EVENT_DRAG"; @@ -912,7 +925,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. } } } - ///Method to raise event DragStartEvt. + /// Method to raise event DragStartEvt. public void OnDragStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_DRAG_START"; @@ -926,6 +939,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when drag stopped + /// public event EventHandler DragStopEvt { add @@ -965,7 +979,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. } } } - ///Method to raise event DragStopEvt. + /// Method to raise event DragStopEvt. public void OnDragStopEvt(Efl.Ui.IDraggableDragStopEvt_Args e) { var key = "_EFL_UI_EVENT_DRAG_STOP"; @@ -1018,7 +1032,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. } } } - ///Method to raise event DragEndEvt. + /// Method to raise event DragEndEvt. public void OnDragEndEvt(EventArgs e) { var key = "_EFL_UI_EVENT_DRAG_END"; @@ -1032,6 +1046,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when drag starts into up direction + /// public event EventHandler DragStartUpEvt { add @@ -1071,7 +1086,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. } } } - ///Method to raise event DragStartUpEvt. + /// Method to raise event DragStartUpEvt. public void OnDragStartUpEvt(Efl.Ui.IDraggableDragStartUpEvt_Args e) { var key = "_EFL_UI_EVENT_DRAG_START_UP"; @@ -1086,6 +1101,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Called when drag starts into down direction + /// public event EventHandler DragStartDownEvt { add @@ -1125,7 +1141,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. } } } - ///Method to raise event DragStartDownEvt. + /// Method to raise event DragStartDownEvt. public void OnDragStartDownEvt(Efl.Ui.IDraggableDragStartDownEvt_Args e) { var key = "_EFL_UI_EVENT_DRAG_START_DOWN"; @@ -1140,6 +1156,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Called when drag starts into right direction + /// public event EventHandler DragStartRightEvt { add @@ -1179,7 +1196,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. } } } - ///Method to raise event DragStartRightEvt. + /// Method to raise event DragStartRightEvt. public void OnDragStartRightEvt(Efl.Ui.IDraggableDragStartRightEvt_Args e) { var key = "_EFL_UI_EVENT_DRAG_START_RIGHT"; @@ -1194,6 +1211,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Called when drag starts into left direction + /// public event EventHandler DragStartLeftEvt { add @@ -1233,7 +1251,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. } } } - ///Method to raise event DragStartLeftEvt. + /// Method to raise event DragStartLeftEvt. public void OnDragStartLeftEvt(Efl.Ui.IDraggableDragStartLeftEvt_Args e) { var key = "_EFL_UI_EVENT_DRAG_START_LEFT"; @@ -1247,34 +1265,6 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. IntPtr info = e.arg.NativeHandle; Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } - /// Enable or disable scaling up or down the internal image. - /// If true, the internal image might be scaled up if necessary according to the scale type. if false, the internal image is not scaled up no matter what the scale type is. - /// If true, the internal image might be scaled down if necessary according to the scale type. if false, the internal image is not scaled down no matter what the scale type is. - virtual public void GetScalable(out bool scale_up, out bool scale_down) { - Efl.Ui.Image.NativeMethods.efl_ui_image_scalable_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out scale_up, out scale_down); - Eina.Error.RaiseIfUnhandledException(); - } - /// Enable or disable scaling up or down the internal image. - /// If true, the internal image might be scaled up if necessary according to the scale type. if false, the internal image is not scaled up no matter what the scale type is. - /// If true, the internal image might be scaled down if necessary according to the scale type. if false, the internal image is not scaled down no matter what the scale type is. - virtual public void SetScalable(bool scale_up, bool scale_down) { - Efl.Ui.Image.NativeMethods.efl_ui_image_scalable_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),scale_up, scale_down); - Eina.Error.RaiseIfUnhandledException(); - } - /// Controls how the internal image is positioned inside an image object. - /// Alignment in the horizontal axis (0 <= align_x <= 1). - /// Alignment in the vertical axis (0 <= align_y <= 1). - virtual public void GetAlign(out double align_x, out double align_y) { - Efl.Ui.Image.NativeMethods.efl_ui_image_align_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out align_x, out align_y); - Eina.Error.RaiseIfUnhandledException(); - } - /// Controls how the internal image is positioned inside an image object. - /// Alignment in the horizontal axis (0 <= align_x <= 1). - /// Alignment in the vertical axis (0 <= align_y <= 1). - virtual public void SetAlign(double align_x, double align_y) { - Efl.Ui.Image.NativeMethods.efl_ui_image_align_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),align_x, align_y); - Eina.Error.RaiseIfUnhandledException(); - } /// Get the icon name of image set by icon standard names. /// If the image was set using efl_file_set() instead of , then this function will return null. /// The icon name @@ -1495,6 +1485,36 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. Efl.IPlayerConcrete.NativeMethods.efl_player_stop_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } + /// Alignment of the container within its bounds + /// Horizontal alignment + /// Vertical alignment + virtual public void GetContentAlign(out double align_horiz, out double align_vert) { + Efl.Gfx.IArrangementConcrete.NativeMethods.efl_gfx_arrangement_content_align_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out align_horiz, out align_vert); + Eina.Error.RaiseIfUnhandledException(); + } + /// Alignment of the container within its bounds + /// Horizontal alignment + /// Vertical alignment + virtual public void SetContentAlign(double align_horiz, double align_vert) { + Efl.Gfx.IArrangementConcrete.NativeMethods.efl_gfx_arrangement_content_align_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),align_horiz, align_vert); + Eina.Error.RaiseIfUnhandledException(); + } + /// Padding between items contained in this object. + /// Horizontal padding + /// Vertical padding + /// true if scalable, false otherwise + virtual public void GetContentPadding(out double pad_horiz, out double pad_vert, out bool scalable) { + Efl.Gfx.IArrangementConcrete.NativeMethods.efl_gfx_arrangement_content_padding_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out pad_horiz, out pad_vert, out scalable); + Eina.Error.RaiseIfUnhandledException(); + } + /// Padding between items contained in this object. + /// Horizontal padding + /// Vertical padding + /// true if scalable, false otherwise + virtual public void SetContentPadding(double pad_horiz, double pad_vert, bool scalable) { + Efl.Gfx.IArrangementConcrete.NativeMethods.efl_gfx_arrangement_content_padding_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),pad_horiz, pad_vert, scalable); + Eina.Error.RaiseIfUnhandledException(); + } /// Whether to use high-quality image scaling algorithm for this image. /// When enabled, a higher quality image scaling algorithm is used when scaling images to sizes other than the source image's original one. This gives better results but is more computationally expensive. /// @@ -1527,6 +1547,32 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_type_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),scale_type); Eina.Error.RaiseIfUnhandledException(); } + /// If true, the image may be scaled to a larger size. If false, the image will never be resized larger than its native size. This is set to true by default. + /// Allow image upscaling + virtual public bool GetCanUpscale() { + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_can_upscale_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// If true, the image may be scaled to a larger size. If false, the image will never be resized larger than its native size. This is set to true by default. + /// Allow image upscaling + virtual public void SetCanUpscale(bool upscale) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_can_upscale_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),upscale); + Eina.Error.RaiseIfUnhandledException(); + } + /// If true, the image may be scaled to a smaller size. If false, the image will never be resized smaller than its native size. This is set to true by default. + /// Allow image downscaling + virtual public bool GetCanDownscale() { + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_can_downscale_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// If true, the image may be scaled to a smaller size. If false, the image will never be resized smaller than its native size. This is set to true by default. + /// Allow image downscaling + virtual public void SetCanDownscale(bool downscale) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_can_downscale_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),downscale); + Eina.Error.RaiseIfUnhandledException(); + } /// Returns 1.0 if not applicable (eg. height = 0). /// The image's ratio. virtual public double GetRatio() { @@ -1622,20 +1668,20 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. /// When the regions are set by the user, the method will walk the iterators once and then destroy them. When the regions are retrieved by the user, it is his responsibility to destroy the iterators.. It will remember the information for the lifetime of the object. It will ignore all value of , and . To reset the object you can just pass null to both horizontal and vertical at the same time. /// Representation of area that are stretchable in the image horizontal space. /// Representation of area that are stretchable in the image vertical space. - virtual public void GetStretchRegion(out Eina.Iterator horizontal, out Eina.Iterator vertical) { + virtual public void GetStretchRegion(out Eina.Iterator horizontal, out Eina.Iterator vertical) { System.IntPtr _out_horizontal = System.IntPtr.Zero; System.IntPtr _out_vertical = System.IntPtr.Zero; Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_stretch_region_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out _out_horizontal, out _out_vertical); Eina.Error.RaiseIfUnhandledException(); - horizontal = new Eina.Iterator(_out_horizontal, false); - vertical = new Eina.Iterator(_out_vertical, false); + horizontal = new Eina.Iterator(_out_horizontal, false); + vertical = new Eina.Iterator(_out_vertical, false); } /// This property defines the stretchable pixels region of an image. /// When the regions are set by the user, the method will walk the iterators once and then destroy them. When the regions are retrieved by the user, it is his responsibility to destroy the iterators.. It will remember the information for the lifetime of the object. It will ignore all value of , and . To reset the object you can just pass null to both horizontal and vertical at the same time. /// Representation of area that are stretchable in the image horizontal space. /// Representation of area that are stretchable in the image vertical space. /// return an error code if the stretch_region provided are incorrect. - virtual public Eina.Error SetStretchRegion(Eina.Iterator horizontal, Eina.Iterator vertical) { + virtual public Eina.Error SetStretchRegion(Eina.Iterator horizontal, Eina.Iterator vertical) { var _in_horizontal = horizontal.Handle; var _in_vertical = vertical.Handle; var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_stretch_region_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_horizontal, _in_vertical); @@ -1849,6 +1895,38 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. Efl.Gfx.IViewConcrete.NativeMethods.efl_gfx_view_size_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_size); Eina.Error.RaiseIfUnhandledException(); } + /// This returns true if the given object is currently in event emission + virtual public bool GetInteraction() { + var _ret_var = Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_interaction_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Change internal states that a button got pressed. + /// When the button is already pressed, this is silently ignored. + /// The number of the button. FIXME ensure to have the right interval of possible input + virtual public void Press(uint button) { + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_press_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Eina.Error.RaiseIfUnhandledException(); + } + /// Change internal states that a button got unpressed. + /// When the button is not pressed, this is silently ignored. + /// The number of the button. FIXME ensure to have the right interval of possible input + virtual public void Unpress(uint button) { + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_unpress_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Eina.Error.RaiseIfUnhandledException(); + } + /// This aborts the internal state after a press call. + /// This will stop the timer for longpress. And set the state of the clickable mixin back into the unpressed state. + virtual public void ResetButtonState(uint button) { + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_button_state_reset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Eina.Error.RaiseIfUnhandledException(); + } + /// This aborts ongoing longpress event. + /// That is, this will stop the timer for longpress. + virtual public void LongpressAbort(uint button) { + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_longpress_abort_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Eina.Error.RaiseIfUnhandledException(); + } /// Whether this object updates its size hints automatically. /// (Since EFL 1.22) /// Whether or not update the size hints. @@ -1998,7 +2076,7 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. /// /// Though there are those common uses for the two strings, one is free to use them however they like. /// - /// Signal callback registration is powerful, in the way that blobs may be used to match multiple signals at once. All the "*?[" set of fnmatch() operators can be used, both for emission and source. + /// Signal callback registration is powerful, in the way that blobs may be used to match multiple signals at once. All the "*?[" set of fnmatch() operators can be used, both for emission and source. /// /// Edje has internal signals it will emit, automatically, on various actions taking place on group parts. For example, the mouse cursor being moved, pressed, released, etc., over a given part's area, all generate individual signals. /// @@ -2056,26 +2134,6 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. Efl.Layout.ISignalConcrete.NativeMethods.efl_layout_signal_process_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),recurse); Eina.Error.RaiseIfUnhandledException(); } - /// Change internal states that a button got pressed. - /// When the button is already pressed, this is silently ignored. - /// The number of the button. FIXME ensure to have the right interval of possible input - virtual public void Press(uint button) { - Efl.Ui.IClickableConcrete.NativeMethods.efl_ui_clickable_press_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); - Eina.Error.RaiseIfUnhandledException(); - } - /// Change internal states that a button got unpressed. - /// When the button is not pressed, this is silently ignored. - /// The number of the button. FIXME ensure to have the right interval of possible input - virtual public void Unpress(uint button) { - Efl.Ui.IClickableConcrete.NativeMethods.efl_ui_clickable_unpress_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); - Eina.Error.RaiseIfUnhandledException(); - } - /// This aborts the internal state after a press call. - /// This will stop the timer for longpress. And set the state of the clickable mixin back into the unpressed state. - virtual public void ResetButtonState(uint button) { - Efl.Ui.IClickableConcrete.NativeMethods.efl_ui_clickable_button_state_reset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); - Eina.Error.RaiseIfUnhandledException(); - } /// Control whether the object's content is changed by drag and drop. /// If drag_target is true the object can be the target of a dragging object. The content of this object can then be changed into dragging content. For example, if an object deals with image and drag_target is true, the user can drag the new image and drop it into said object. This object's image can then be changed into a new image. /// Turn on or off drop_target. Default is false. @@ -2183,6 +2241,29 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. public bool Seekable { get { return GetSeekable(); } } + /// Alignment of the container within its bounds + /// Horizontal alignment + public (double, double) ContentAlign { + get { + double _out_align_horiz = default(double); + double _out_align_vert = default(double); + GetContentAlign(out _out_align_horiz,out _out_align_vert); + return (_out_align_horiz,_out_align_vert); + } + set { SetContentAlign( value.Item1, value.Item2); } + } + /// Padding between items contained in this object. + /// Horizontal padding + public (double, double, bool) ContentPadding { + get { + double _out_pad_horiz = default(double); + double _out_pad_vert = default(double); + bool _out_scalable = default(bool); + GetContentPadding(out _out_pad_horiz,out _out_pad_vert,out _out_scalable); + return (_out_pad_horiz,_out_pad_vert,_out_scalable); + } + set { SetContentPadding( value.Item1, value.Item2, value.Item3); } + } /// Whether to use high-quality image scaling algorithm for this image. /// When enabled, a higher quality image scaling algorithm is used when scaling images to sizes other than the source image's original one. This gives better results but is more computationally expensive. /// @@ -2198,6 +2279,18 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. get { return GetScaleType(); } set { SetScaleType(value); } } + /// If true, the image may be scaled to a larger size. If false, the image will never be resized larger than its native size. This is set to true by default. + /// Allow image upscaling + public bool CanUpscale { + get { return GetCanUpscale(); } + set { SetCanUpscale(value); } + } + /// If true, the image may be scaled to a smaller size. If false, the image will never be resized smaller than its native size. This is set to true by default. + /// Allow image downscaling + public bool CanDownscale { + get { return GetCanDownscale(); } + set { SetCanDownscale(value); } + } /// The native width/height ratio of the image. /// The image's ratio. public double Ratio { @@ -2211,6 +2304,28 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. public Eina.Rect ContentRegion { get { return GetContentRegion(); } } + /// Dimensions of this image's border, a region that does not scale with the center area. + /// When EFL renders an image, its source may be scaled to fit the size of the object. This function sets an area from the borders of the image inwards which is not to be scaled. This function is useful for making frames and for widget theming, where, for example, buttons may be of varying sizes, but their border size must remain constant. + /// + /// The units used for l, r, t and b are canvas units (pixels). + /// + /// Note: The border region itself may be scaled by the function. + /// + /// Note: By default, image objects have no borders set, i.e. l, r, t and b start as 0. + /// + /// Note: Similar to the concepts of 9-patch images or cap insets. + /// The border's left width. + public (int, int, int, int) Border { + get { + int _out_l = default(int); + int _out_r = default(int); + int _out_t = default(int); + int _out_b = default(int); + GetBorder(out _out_l,out _out_r,out _out_t,out _out_b); + return (_out_l,_out_r,_out_t,_out_b); + } + set { SetBorder( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Scaling factor applied to the image borders. /// This value multiplies the size of the when scaling an object. /// @@ -2229,6 +2344,18 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. get { return GetBorderCenterFill(); } set { SetBorderCenterFill(value); } } + /// This property defines the stretchable pixels region of an image. + /// When the regions are set by the user, the method will walk the iterators once and then destroy them. When the regions are retrieved by the user, it is his responsibility to destroy the iterators.. It will remember the information for the lifetime of the object. It will ignore all value of , and . To reset the object you can just pass null to both horizontal and vertical at the same time. + /// Representation of area that are stretchable in the image horizontal space. + public (Eina.Iterator, Eina.Iterator) StretchRegion { + get { + Eina.Iterator _out_horizontal = default(Eina.Iterator); + Eina.Iterator _out_vertical = default(Eina.Iterator); + GetStretchRegion(out _out_horizontal,out _out_vertical); + return (_out_horizontal,_out_vertical); + } + set { SetStretchRegion( value.Item1, value.Item2); } + } /// This represents the size of the original image in pixels. /// This may be different from the actual geometry on screen or even the size of the loaded pixel buffer. This is the size of the image as stored in the original file. /// @@ -2330,6 +2457,10 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. get { return GetViewSize(); } set { SetViewSize(value); } } + /// This returns true if the given object is currently in event emission + public bool Interaction { + get { return GetInteraction(); } + } /// Whether this object updates its size hints automatically. /// By default edje doesn't set size hints on itself. If this property is set to true, size hints will be updated after recalculation. Be careful, as recalculation may happen often, enabling this property may have a considerable performance impact as other widgets will be notified of the size hints changes. /// @@ -2389,46 +2520,6 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. var descs = new System.Collections.Generic.List(); var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_ui_image_scalable_get_static_delegate == null) - { - efl_ui_image_scalable_get_static_delegate = new efl_ui_image_scalable_get_delegate(scalable_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetScalable") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_image_scalable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_scalable_get_static_delegate) }); - } - - if (efl_ui_image_scalable_set_static_delegate == null) - { - efl_ui_image_scalable_set_static_delegate = new efl_ui_image_scalable_set_delegate(scalable_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetScalable") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_image_scalable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_scalable_set_static_delegate) }); - } - - if (efl_ui_image_align_get_static_delegate == null) - { - efl_ui_image_align_get_static_delegate = new efl_ui_image_align_get_delegate(align_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetAlign") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_image_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_align_get_static_delegate) }); - } - - if (efl_ui_image_align_set_static_delegate == null) - { - efl_ui_image_align_set_static_delegate = new efl_ui_image_align_set_delegate(align_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetAlign") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_image_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_image_align_set_static_delegate) }); - } - if (efl_ui_image_icon_get_static_delegate == null) { efl_ui_image_icon_get_static_delegate = new efl_ui_image_icon_get_delegate(icon_get); @@ -2699,6 +2790,46 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_stop"), func = Marshal.GetFunctionPointerForDelegate(efl_player_stop_static_delegate) }); } + if (efl_gfx_arrangement_content_align_get_static_delegate == null) + { + efl_gfx_arrangement_content_align_get_static_delegate = new efl_gfx_arrangement_content_align_get_delegate(content_align_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetContentAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_arrangement_content_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_arrangement_content_align_get_static_delegate) }); + } + + if (efl_gfx_arrangement_content_align_set_static_delegate == null) + { + efl_gfx_arrangement_content_align_set_static_delegate = new efl_gfx_arrangement_content_align_set_delegate(content_align_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetContentAlign") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_arrangement_content_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_arrangement_content_align_set_static_delegate) }); + } + + if (efl_gfx_arrangement_content_padding_get_static_delegate == null) + { + efl_gfx_arrangement_content_padding_get_static_delegate = new efl_gfx_arrangement_content_padding_get_delegate(content_padding_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetContentPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_arrangement_content_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_arrangement_content_padding_get_static_delegate) }); + } + + if (efl_gfx_arrangement_content_padding_set_static_delegate == null) + { + efl_gfx_arrangement_content_padding_set_static_delegate = new efl_gfx_arrangement_content_padding_set_delegate(content_padding_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetContentPadding") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_arrangement_content_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_arrangement_content_padding_set_static_delegate) }); + } + if (efl_gfx_image_smooth_scale_get_static_delegate == null) { efl_gfx_image_smooth_scale_get_static_delegate = new efl_gfx_image_smooth_scale_get_delegate(smooth_scale_get); @@ -2739,6 +2870,46 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_set_static_delegate) }); } + if (efl_gfx_image_can_upscale_get_static_delegate == null) + { + efl_gfx_image_can_upscale_get_static_delegate = new efl_gfx_image_can_upscale_get_delegate(can_upscale_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetCanUpscale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_can_upscale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_can_upscale_get_static_delegate) }); + } + + if (efl_gfx_image_can_upscale_set_static_delegate == null) + { + efl_gfx_image_can_upscale_set_static_delegate = new efl_gfx_image_can_upscale_set_delegate(can_upscale_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetCanUpscale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_can_upscale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_can_upscale_set_static_delegate) }); + } + + if (efl_gfx_image_can_downscale_get_static_delegate == null) + { + efl_gfx_image_can_downscale_get_static_delegate = new efl_gfx_image_can_downscale_get_delegate(can_downscale_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetCanDownscale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_can_downscale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_can_downscale_get_static_delegate) }); + } + + if (efl_gfx_image_can_downscale_set_static_delegate == null) + { + efl_gfx_image_can_downscale_set_static_delegate = new efl_gfx_image_can_downscale_set_delegate(can_downscale_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetCanDownscale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_can_downscale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_can_downscale_set_static_delegate) }); + } + if (efl_gfx_image_ratio_get_static_delegate == null) { efl_gfx_image_ratio_get_static_delegate = new efl_gfx_image_ratio_get_delegate(ratio_get); @@ -3089,6 +3260,56 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_view_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_view_size_set_static_delegate) }); } + if (efl_input_clickable_interaction_get_static_delegate == null) + { + efl_input_clickable_interaction_get_static_delegate = new efl_input_clickable_interaction_get_delegate(interaction_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetInteraction") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_interaction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_interaction_get_static_delegate) }); + } + + if (efl_input_clickable_press_static_delegate == null) + { + efl_input_clickable_press_static_delegate = new efl_input_clickable_press_delegate(press); + } + + if (methods.FirstOrDefault(m => m.Name == "Press") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_press"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_press_static_delegate) }); + } + + if (efl_input_clickable_unpress_static_delegate == null) + { + efl_input_clickable_unpress_static_delegate = new efl_input_clickable_unpress_delegate(unpress); + } + + if (methods.FirstOrDefault(m => m.Name == "Unpress") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_unpress"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_unpress_static_delegate) }); + } + + if (efl_input_clickable_button_state_reset_static_delegate == null) + { + efl_input_clickable_button_state_reset_static_delegate = new efl_input_clickable_button_state_reset_delegate(button_state_reset); + } + + if (methods.FirstOrDefault(m => m.Name == "ResetButtonState") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_button_state_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_button_state_reset_static_delegate) }); + } + + if (efl_input_clickable_longpress_abort_static_delegate == null) + { + efl_input_clickable_longpress_abort_static_delegate = new efl_input_clickable_longpress_abort_delegate(longpress_abort); + } + + if (methods.FirstOrDefault(m => m.Name == "LongpressAbort") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_longpress_abort"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_longpress_abort_static_delegate) }); + } + if (efl_layout_calc_auto_update_hints_get_static_delegate == null) { efl_layout_calc_auto_update_hints_get_static_delegate = new efl_layout_calc_auto_update_hints_get_delegate(calc_auto_update_hints_get); @@ -3249,36 +3470,6 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_layout_signal_process"), func = Marshal.GetFunctionPointerForDelegate(efl_layout_signal_process_static_delegate) }); } - if (efl_ui_clickable_press_static_delegate == null) - { - efl_ui_clickable_press_static_delegate = new efl_ui_clickable_press_delegate(press); - } - - if (methods.FirstOrDefault(m => m.Name == "Press") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clickable_press"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clickable_press_static_delegate) }); - } - - if (efl_ui_clickable_unpress_static_delegate == null) - { - efl_ui_clickable_unpress_static_delegate = new efl_ui_clickable_unpress_delegate(unpress); - } - - if (methods.FirstOrDefault(m => m.Name == "Unpress") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clickable_unpress"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clickable_unpress_static_delegate) }); - } - - if (efl_ui_clickable_button_state_reset_static_delegate == null) - { - efl_ui_clickable_button_state_reset_static_delegate = new efl_ui_clickable_button_state_reset_delegate(button_state_reset); - } - - if (methods.FirstOrDefault(m => m.Name == "ResetButtonState") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clickable_button_state_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clickable_button_state_reset_static_delegate) }); - } - if (efl_ui_draggable_drag_target_get_static_delegate == null) { efl_ui_draggable_drag_target_get_static_delegate = new efl_ui_draggable_drag_target_get_delegate(drag_target_get); @@ -3311,146 +3502,6 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. #pragma warning disable CA1707, CS1591, SA1300, SA1600 - - private delegate void efl_ui_image_scalable_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool scale_up, [MarshalAs(UnmanagedType.U1)] out bool scale_down); - - - public delegate void efl_ui_image_scalable_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool scale_up, [MarshalAs(UnmanagedType.U1)] out bool scale_down); - - public static Efl.Eo.FunctionWrapper efl_ui_image_scalable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_image_scalable_get"); - - private static void scalable_get(System.IntPtr obj, System.IntPtr pd, out bool scale_up, out bool scale_down) - { - Eina.Log.Debug("function efl_ui_image_scalable_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - scale_up = default(bool); scale_down = default(bool); - try - { - ((Image)ws.Target).GetScalable(out scale_up, out scale_down); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_image_scalable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out scale_up, out scale_down); - } - } - - private static efl_ui_image_scalable_get_delegate efl_ui_image_scalable_get_static_delegate; - - - private delegate void efl_ui_image_scalable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool scale_up, [MarshalAs(UnmanagedType.U1)] bool scale_down); - - - public delegate void efl_ui_image_scalable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool scale_up, [MarshalAs(UnmanagedType.U1)] bool scale_down); - - public static Efl.Eo.FunctionWrapper efl_ui_image_scalable_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_image_scalable_set"); - - private static void scalable_set(System.IntPtr obj, System.IntPtr pd, bool scale_up, bool scale_down) - { - Eina.Log.Debug("function efl_ui_image_scalable_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Image)ws.Target).SetScalable(scale_up, scale_down); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_image_scalable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale_up, scale_down); - } - } - - private static efl_ui_image_scalable_set_delegate efl_ui_image_scalable_set_static_delegate; - - - private delegate void efl_ui_image_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_x, out double align_y); - - - public delegate void efl_ui_image_align_get_api_delegate(System.IntPtr obj, out double align_x, out double align_y); - - public static Efl.Eo.FunctionWrapper efl_ui_image_align_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_image_align_get"); - - private static void align_get(System.IntPtr obj, System.IntPtr pd, out double align_x, out double align_y) - { - Eina.Log.Debug("function efl_ui_image_align_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - align_x = default(double); align_y = default(double); - try - { - ((Image)ws.Target).GetAlign(out align_x, out align_y); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_image_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_x, out align_y); - } - } - - private static efl_ui_image_align_get_delegate efl_ui_image_align_get_static_delegate; - - - private delegate void efl_ui_image_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_x, double align_y); - - - public delegate void efl_ui_image_align_set_api_delegate(System.IntPtr obj, double align_x, double align_y); - - public static Efl.Eo.FunctionWrapper efl_ui_image_align_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_image_align_set"); - - private static void align_set(System.IntPtr obj, System.IntPtr pd, double align_x, double align_y) - { - Eina.Log.Debug("function efl_ui_image_align_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Image)ws.Target).SetAlign(align_x, align_y); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_image_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_x, align_y); - } - } - - private static efl_ui_image_align_set_delegate efl_ui_image_align_set_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_image_icon_get_delegate(System.IntPtr obj, System.IntPtr pd); @@ -4414,24 +4465,24 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. private static efl_player_stop_delegate efl_player_stop_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_gfx_image_smooth_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + private delegate void efl_gfx_arrangement_content_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_gfx_image_smooth_scale_get_api_delegate(System.IntPtr obj); + + public delegate void efl_gfx_arrangement_content_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); - public static Efl.Eo.FunctionWrapper efl_gfx_image_smooth_scale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_smooth_scale_get"); + public static Efl.Eo.FunctionWrapper efl_gfx_arrangement_content_align_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_arrangement_content_align_get"); - private static bool smooth_scale_get(System.IntPtr obj, System.IntPtr pd) + private static void content_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) { - Eina.Log.Debug("function efl_gfx_image_smooth_scale_get was called"); + Eina.Log.Debug("function efl_gfx_arrangement_content_align_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - bool _ret_var = default(bool); + align_horiz = default(double); align_vert = default(double); try { - _ret_var = ((Image)ws.Target).GetSmoothScale(); + ((Image)ws.Target).GetContentAlign(out align_horiz, out align_vert); } catch (Exception e) { @@ -4439,35 +4490,34 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - + } else { - return efl_gfx_image_smooth_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + efl_gfx_arrangement_content_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); } } - private static efl_gfx_image_smooth_scale_get_delegate efl_gfx_image_smooth_scale_get_static_delegate; + private static efl_gfx_arrangement_content_align_get_delegate efl_gfx_arrangement_content_align_get_static_delegate; - private delegate void efl_gfx_image_smooth_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool smooth_scale); + private delegate void efl_gfx_arrangement_content_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); - public delegate void efl_gfx_image_smooth_scale_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool smooth_scale); + public delegate void efl_gfx_arrangement_content_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); - public static Efl.Eo.FunctionWrapper efl_gfx_image_smooth_scale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_smooth_scale_set"); + public static Efl.Eo.FunctionWrapper efl_gfx_arrangement_content_align_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_arrangement_content_align_set"); - private static void smooth_scale_set(System.IntPtr obj, System.IntPtr pd, bool smooth_scale) + private static void content_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) { - Eina.Log.Debug("function efl_gfx_image_smooth_scale_set was called"); + Eina.Log.Debug("function efl_gfx_arrangement_content_align_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + try { - ((Image)ws.Target).SetSmoothScale(smooth_scale); + ((Image)ws.Target).SetContentAlign(align_horiz, align_vert); } catch (Exception e) { @@ -4475,34 +4525,34 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + } else { - efl_gfx_image_smooth_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), smooth_scale); + efl_gfx_arrangement_content_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); } } - private static efl_gfx_image_smooth_scale_set_delegate efl_gfx_image_smooth_scale_set_static_delegate; + private static efl_gfx_arrangement_content_align_set_delegate efl_gfx_arrangement_content_align_set_static_delegate; - private delegate Efl.Gfx.ImageScaleType efl_gfx_image_scale_type_get_delegate(System.IntPtr obj, System.IntPtr pd); + private delegate void efl_gfx_arrangement_content_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); - public delegate Efl.Gfx.ImageScaleType efl_gfx_image_scale_type_get_api_delegate(System.IntPtr obj); + public delegate void efl_gfx_arrangement_content_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); - public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_type_get"); + public static Efl.Eo.FunctionWrapper efl_gfx_arrangement_content_padding_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_arrangement_content_padding_get"); - private static Efl.Gfx.ImageScaleType scale_type_get(System.IntPtr obj, System.IntPtr pd) + private static void content_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) { - Eina.Log.Debug("function efl_gfx_image_scale_type_get was called"); + Eina.Log.Debug("function efl_gfx_arrangement_content_padding_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - Efl.Gfx.ImageScaleType _ret_var = default(Efl.Gfx.ImageScaleType); + pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); try { - _ret_var = ((Image)ws.Target).GetScaleType(); + ((Image)ws.Target).GetContentPadding(out pad_horiz, out pad_vert, out scalable); } catch (Exception e) { @@ -4510,35 +4560,34 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - + } else { - return efl_gfx_image_scale_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + efl_gfx_arrangement_content_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); } } - private static efl_gfx_image_scale_type_get_delegate efl_gfx_image_scale_type_get_static_delegate; + private static efl_gfx_arrangement_content_padding_get_delegate efl_gfx_arrangement_content_padding_get_static_delegate; - private delegate void efl_gfx_image_scale_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleType scale_type); + private delegate void efl_gfx_arrangement_content_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); - public delegate void efl_gfx_image_scale_type_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageScaleType scale_type); + public delegate void efl_gfx_arrangement_content_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); - public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_type_set"); + public static Efl.Eo.FunctionWrapper efl_gfx_arrangement_content_padding_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_arrangement_content_padding_set"); - private static void scale_type_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleType scale_type) + private static void content_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) { - Eina.Log.Debug("function efl_gfx_image_scale_type_set was called"); + Eina.Log.Debug("function efl_gfx_arrangement_content_padding_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + try { - ((Image)ws.Target).SetScaleType(scale_type); + ((Image)ws.Target).SetContentPadding(pad_horiz, pad_vert, scalable); } catch (Exception e) { @@ -4546,34 +4595,34 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + } else { - efl_gfx_image_scale_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale_type); + efl_gfx_arrangement_content_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); } } - private static efl_gfx_image_scale_type_set_delegate efl_gfx_image_scale_type_set_static_delegate; + private static efl_gfx_arrangement_content_padding_set_delegate efl_gfx_arrangement_content_padding_set_static_delegate; - - private delegate double efl_gfx_image_ratio_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_smooth_scale_get_delegate(System.IntPtr obj, System.IntPtr pd); - - public delegate double efl_gfx_image_ratio_get_api_delegate(System.IntPtr obj); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_smooth_scale_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_gfx_image_ratio_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_ratio_get"); + public static Efl.Eo.FunctionWrapper efl_gfx_image_smooth_scale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_smooth_scale_get"); - private static double ratio_get(System.IntPtr obj, System.IntPtr pd) + private static bool smooth_scale_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function efl_gfx_image_ratio_get was called"); + Eina.Log.Debug("function efl_gfx_image_smooth_scale_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - double _ret_var = default(double); + bool _ret_var = default(bool); try { - _ret_var = ((Image)ws.Target).GetRatio(); + _ret_var = ((Image)ws.Target).GetSmoothScale(); } catch (Exception e) { @@ -4586,30 +4635,30 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. } else { - return efl_gfx_image_ratio_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + return efl_gfx_image_smooth_scale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static efl_gfx_image_ratio_get_delegate efl_gfx_image_ratio_get_static_delegate; + private static efl_gfx_image_smooth_scale_get_delegate efl_gfx_image_smooth_scale_get_static_delegate; - private delegate Eina.Rect.NativeStruct efl_gfx_image_content_region_get_delegate(System.IntPtr obj, System.IntPtr pd); + private delegate void efl_gfx_image_smooth_scale_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool smooth_scale); - public delegate Eina.Rect.NativeStruct efl_gfx_image_content_region_get_api_delegate(System.IntPtr obj); + public delegate void efl_gfx_image_smooth_scale_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool smooth_scale); - public static Efl.Eo.FunctionWrapper efl_gfx_image_content_region_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_content_region_get"); + public static Efl.Eo.FunctionWrapper efl_gfx_image_smooth_scale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_smooth_scale_set"); - private static Eina.Rect.NativeStruct content_region_get(System.IntPtr obj, System.IntPtr pd) + private static void smooth_scale_set(System.IntPtr obj, System.IntPtr pd, bool smooth_scale) { - Eina.Log.Debug("function efl_gfx_image_content_region_get was called"); + Eina.Log.Debug("function efl_gfx_image_smooth_scale_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - Eina.Rect _ret_var = default(Eina.Rect); + try { - _ret_var = ((Image)ws.Target).GetContentRegion(); + ((Image)ws.Target).SetSmoothScale(smooth_scale); } catch (Exception e) { @@ -4617,22 +4666,306 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - + } else { - return efl_gfx_image_content_region_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + efl_gfx_image_smooth_scale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), smooth_scale); } } - private static efl_gfx_image_content_region_get_delegate efl_gfx_image_content_region_get_static_delegate; + private static efl_gfx_image_smooth_scale_set_delegate efl_gfx_image_smooth_scale_set_static_delegate; - private delegate void efl_gfx_image_border_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b); + private delegate Efl.Gfx.ImageScaleType efl_gfx_image_scale_type_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void efl_gfx_image_border_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b); + public delegate Efl.Gfx.ImageScaleType efl_gfx_image_scale_type_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_type_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_type_get"); + + private static Efl.Gfx.ImageScaleType scale_type_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_scale_type_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Gfx.ImageScaleType _ret_var = default(Efl.Gfx.ImageScaleType); + try + { + _ret_var = ((Image)ws.Target).GetScaleType(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_scale_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_scale_type_get_delegate efl_gfx_image_scale_type_get_static_delegate; + + + private delegate void efl_gfx_image_scale_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleType scale_type); + + + public delegate void efl_gfx_image_scale_type_set_api_delegate(System.IntPtr obj, Efl.Gfx.ImageScaleType scale_type); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_scale_type_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_scale_type_set"); + + private static void scale_type_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageScaleType scale_type) + { + Eina.Log.Debug("function efl_gfx_image_scale_type_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Image)ws.Target).SetScaleType(scale_type); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_scale_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scale_type); + } + } + + private static efl_gfx_image_scale_type_set_delegate efl_gfx_image_scale_type_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_can_upscale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_can_upscale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_can_upscale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_can_upscale_get"); + + private static bool can_upscale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_can_upscale_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)ws.Target).GetCanUpscale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_can_upscale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_can_upscale_get_delegate efl_gfx_image_can_upscale_get_static_delegate; + + + private delegate void efl_gfx_image_can_upscale_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool upscale); + + + public delegate void efl_gfx_image_can_upscale_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool upscale); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_can_upscale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_can_upscale_set"); + + private static void can_upscale_set(System.IntPtr obj, System.IntPtr pd, bool upscale) + { + Eina.Log.Debug("function efl_gfx_image_can_upscale_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Image)ws.Target).SetCanUpscale(upscale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_can_upscale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), upscale); + } + } + + private static efl_gfx_image_can_upscale_set_delegate efl_gfx_image_can_upscale_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_can_downscale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_can_downscale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_can_downscale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_can_downscale_get"); + + private static bool can_downscale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_can_downscale_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)ws.Target).GetCanDownscale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_can_downscale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_can_downscale_get_delegate efl_gfx_image_can_downscale_get_static_delegate; + + + private delegate void efl_gfx_image_can_downscale_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool downscale); + + + public delegate void efl_gfx_image_can_downscale_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool downscale); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_can_downscale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_can_downscale_set"); + + private static void can_downscale_set(System.IntPtr obj, System.IntPtr pd, bool downscale) + { + Eina.Log.Debug("function efl_gfx_image_can_downscale_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Image)ws.Target).SetCanDownscale(downscale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_can_downscale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), downscale); + } + } + + private static efl_gfx_image_can_downscale_set_delegate efl_gfx_image_can_downscale_set_static_delegate; + + + private delegate double efl_gfx_image_ratio_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_gfx_image_ratio_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_ratio_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_ratio_get"); + + private static double ratio_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_ratio_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((Image)ws.Target).GetRatio(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_ratio_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_ratio_get_delegate efl_gfx_image_ratio_get_static_delegate; + + + private delegate Eina.Rect.NativeStruct efl_gfx_image_content_region_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Eina.Rect.NativeStruct efl_gfx_image_content_region_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_content_region_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_content_region_get"); + + private static Eina.Rect.NativeStruct content_region_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_content_region_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((Image)ws.Target).GetContentRegion(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_content_region_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_content_region_get_delegate efl_gfx_image_content_region_get_static_delegate; + + + private delegate void efl_gfx_image_border_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b); + + + public delegate void efl_gfx_image_border_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b); public static Efl.Eo.FunctionWrapper efl_gfx_image_border_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_border_get"); @@ -4854,8 +5187,8 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - Eina.Iterator _out_horizontal = default(Eina.Iterator); - Eina.Iterator _out_vertical = default(Eina.Iterator); + Eina.Iterator _out_horizontal = default(Eina.Iterator); + Eina.Iterator _out_vertical = default(Eina.Iterator); try { @@ -4893,8 +5226,8 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - var _in_horizontal = new Eina.Iterator(horizontal, false); - var _in_vertical = new Eina.Iterator(vertical, false); + var _in_horizontal = new Eina.Iterator(horizontal, false); + var _in_vertical = new Eina.Iterator(vertical, false); Eina.Error _ret_var = default(Eina.Error); try { @@ -5809,12 +6142,188 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. private static efl_gfx_view_size_set_delegate efl_gfx_view_size_set_static_delegate; [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_layout_calc_auto_update_hints_get_delegate(System.IntPtr obj, System.IntPtr pd); + private delegate bool efl_input_clickable_interaction_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_layout_calc_auto_update_hints_get_api_delegate(System.IntPtr obj); + public delegate bool efl_input_clickable_interaction_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_layout_calc_auto_update_hints_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_auto_update_hints_get"); + public static Efl.Eo.FunctionWrapper efl_input_clickable_interaction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_interaction_get"); + + private static bool interaction_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_clickable_interaction_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Image)ws.Target).GetInteraction(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_input_clickable_interaction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_input_clickable_interaction_get_delegate efl_input_clickable_interaction_get_static_delegate; + + + private delegate void efl_input_clickable_press_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + + + public delegate void efl_input_clickable_press_api_delegate(System.IntPtr obj, uint button); + + public static Efl.Eo.FunctionWrapper efl_input_clickable_press_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_press"); + + private static void press(System.IntPtr obj, System.IntPtr pd, uint button) + { + Eina.Log.Debug("function efl_input_clickable_press was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Image)ws.Target).Press(button); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_clickable_press_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + } + } + + private static efl_input_clickable_press_delegate efl_input_clickable_press_static_delegate; + + + private delegate void efl_input_clickable_unpress_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + + + public delegate void efl_input_clickable_unpress_api_delegate(System.IntPtr obj, uint button); + + public static Efl.Eo.FunctionWrapper efl_input_clickable_unpress_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_unpress"); + + private static void unpress(System.IntPtr obj, System.IntPtr pd, uint button) + { + Eina.Log.Debug("function efl_input_clickable_unpress was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Image)ws.Target).Unpress(button); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_clickable_unpress_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + } + } + + private static efl_input_clickable_unpress_delegate efl_input_clickable_unpress_static_delegate; + + + private delegate void efl_input_clickable_button_state_reset_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + + + public delegate void efl_input_clickable_button_state_reset_api_delegate(System.IntPtr obj, uint button); + + public static Efl.Eo.FunctionWrapper efl_input_clickable_button_state_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_button_state_reset"); + + private static void button_state_reset(System.IntPtr obj, System.IntPtr pd, uint button) + { + Eina.Log.Debug("function efl_input_clickable_button_state_reset was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Image)ws.Target).ResetButtonState(button); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_clickable_button_state_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + } + } + + private static efl_input_clickable_button_state_reset_delegate efl_input_clickable_button_state_reset_static_delegate; + + + private delegate void efl_input_clickable_longpress_abort_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + + + public delegate void efl_input_clickable_longpress_abort_api_delegate(System.IntPtr obj, uint button); + + public static Efl.Eo.FunctionWrapper efl_input_clickable_longpress_abort_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_longpress_abort"); + + private static void longpress_abort(System.IntPtr obj, System.IntPtr pd, uint button) + { + Eina.Log.Debug("function efl_input_clickable_longpress_abort was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Image)ws.Target).LongpressAbort(button); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_clickable_longpress_abort_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + } + } + + private static efl_input_clickable_longpress_abort_delegate efl_input_clickable_longpress_abort_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_layout_calc_auto_update_hints_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_layout_calc_auto_update_hints_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_layout_calc_auto_update_hints_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_layout_calc_auto_update_hints_get"); private static bool calc_auto_update_hints_get(System.IntPtr obj, System.IntPtr pd) { @@ -6382,111 +6891,6 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. private static efl_layout_signal_process_delegate efl_layout_signal_process_static_delegate; - - private delegate void efl_ui_clickable_press_delegate(System.IntPtr obj, System.IntPtr pd, uint button); - - - public delegate void efl_ui_clickable_press_api_delegate(System.IntPtr obj, uint button); - - public static Efl.Eo.FunctionWrapper efl_ui_clickable_press_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clickable_press"); - - private static void press(System.IntPtr obj, System.IntPtr pd, uint button) - { - Eina.Log.Debug("function efl_ui_clickable_press was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Image)ws.Target).Press(button); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_clickable_press_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); - } - } - - private static efl_ui_clickable_press_delegate efl_ui_clickable_press_static_delegate; - - - private delegate void efl_ui_clickable_unpress_delegate(System.IntPtr obj, System.IntPtr pd, uint button); - - - public delegate void efl_ui_clickable_unpress_api_delegate(System.IntPtr obj, uint button); - - public static Efl.Eo.FunctionWrapper efl_ui_clickable_unpress_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clickable_unpress"); - - private static void unpress(System.IntPtr obj, System.IntPtr pd, uint button) - { - Eina.Log.Debug("function efl_ui_clickable_unpress was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Image)ws.Target).Unpress(button); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_clickable_unpress_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); - } - } - - private static efl_ui_clickable_unpress_delegate efl_ui_clickable_unpress_static_delegate; - - - private delegate void efl_ui_clickable_button_state_reset_delegate(System.IntPtr obj, System.IntPtr pd, uint button); - - - public delegate void efl_ui_clickable_button_state_reset_api_delegate(System.IntPtr obj, uint button); - - public static Efl.Eo.FunctionWrapper efl_ui_clickable_button_state_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clickable_button_state_reset"); - - private static void button_state_reset(System.IntPtr obj, System.IntPtr pd, uint button) - { - Eina.Log.Debug("function efl_ui_clickable_button_state_reset was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Image)ws.Target).ResetButtonState(button); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_clickable_button_state_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); - } - } - - private static efl_ui_clickable_button_state_reset_delegate efl_ui_clickable_button_state_reset_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_draggable_drag_target_get_delegate(System.IntPtr obj, System.IntPtr pd); @@ -6566,6 +6970,139 @@ public class Image : Efl.Ui.Widget, Efl.IFile, Efl.IPlayer, Efl.Gfx.IImage, Efl. } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiImage_ExtensionMethods { + public static Efl.BindableProperty Icon(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("icon", fac); + } + + public static Efl.BindableProperty Mmap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("mmap", fac); + } + + public static Efl.BindableProperty File(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("file", fac); + } + + public static Efl.BindableProperty Key(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("key", fac); + } + + + + public static Efl.BindableProperty Play(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("play", fac); + } + + public static Efl.BindableProperty Pos(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("pos", fac); + } + + + public static Efl.BindableProperty PlaySpeed(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("play_speed", fac); + } + + public static Efl.BindableProperty Volume(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("volume", fac); + } + + public static Efl.BindableProperty Mute(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("mute", fac); + } + + + + + + public static Efl.BindableProperty SmoothScale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("smooth_scale", fac); + } + + public static Efl.BindableProperty ScaleType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("scale_type", fac); + } + + public static Efl.BindableProperty CanUpscale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("can_upscale", fac); + } + + public static Efl.BindableProperty CanDownscale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("can_downscale", fac); + } + + + + + public static Efl.BindableProperty BorderScale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("border_scale", fac); + } + + public static Efl.BindableProperty BorderCenterFill(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("border_center_fill", fac); + } + + + + public static Efl.BindableProperty ContentHint(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("content_hint", fac); + } + + public static Efl.BindableProperty ScaleHint(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("scale_hint", fac); + } + + + public static Efl.BindableProperty LoadSize(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("load_size", fac); + } + + public static Efl.BindableProperty LoadDpi(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("load_dpi", fac); + } + + + public static Efl.BindableProperty LoadRegion(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("load_region", fac); + } + + public static Efl.BindableProperty LoadOrientation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("load_orientation", fac); + } + + public static Efl.BindableProperty LoadScaleDown(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("load_scale_down", fac); + } + + public static Efl.BindableProperty LoadSkipHeader(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("load_skip_header", fac); + } + + public static Efl.BindableProperty ImageOrientation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("image_orientation", fac); + } + + public static Efl.BindableProperty ViewSize(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("view_size", fac); + } + + + public static Efl.BindableProperty CalcAutoUpdateHints(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("calc_auto_update_hints", fac); + } + + + + + + public static Efl.BindableProperty DragTarget(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Image { + return new Efl.BindableProperty("drag_target", fac); + } + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Ui { @@ -6579,7 +7116,9 @@ public struct ImageProgress public double Now; /// Total percentage public double Total; - ///Constructor for ImageProgress. + /// Constructor for ImageProgress. + /// Current percentage; + /// Total percentage; public ImageProgress( double Now = default(double), double Total = default(double) ) @@ -6588,8 +7127,8 @@ public struct ImageProgress this.Total = Total; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator ImageProgress(IntPtr ptr) { var tmp = (ImageProgress.NativeStruct)Marshal.PtrToStructure(ptr, typeof(ImageProgress.NativeStruct)); @@ -6598,7 +7137,7 @@ public struct ImageProgress #pragma warning disable CS1591 - ///Internal wrapper for struct ImageProgress. + /// Internal wrapper for struct ImageProgress. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -6606,7 +7145,7 @@ public struct ImageProgress public double Now; public double Total; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator ImageProgress.NativeStruct(ImageProgress _external_struct) { var _internal_struct = new ImageProgress.NativeStruct(); @@ -6615,7 +7154,7 @@ public struct ImageProgress return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator ImageProgress(ImageProgress.NativeStruct _internal_struct) { var _external_struct = new ImageProgress(); @@ -6647,7 +7186,9 @@ public struct ImageError public int Status; /// true if the error happened when opening the file, false otherwise public bool Open_error; - ///Constructor for ImageError. + /// Constructor for ImageError. + /// Error status of the download; + /// true if the error happened when opening the file, false otherwise; public ImageError( int Status = default(int), bool Open_error = default(bool) ) @@ -6656,8 +7197,8 @@ public struct ImageError this.Open_error = Open_error; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator ImageError(IntPtr ptr) { var tmp = (ImageError.NativeStruct)Marshal.PtrToStructure(ptr, typeof(ImageError.NativeStruct)); @@ -6666,15 +7207,15 @@ public struct ImageError #pragma warning disable CS1591 - ///Internal wrapper for struct ImageError. + /// Internal wrapper for struct ImageError. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { public int Status; - ///Internal wrapper for field Open_error + /// Internal wrapper for field Open_error public System.Byte Open_error; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator ImageError.NativeStruct(ImageError _external_struct) { var _internal_struct = new ImageError.NativeStruct(); @@ -6683,7 +7224,7 @@ public struct ImageError return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator ImageError(ImageError.NativeStruct _internal_struct) { var _external_struct = new ImageError(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_image_factory.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_image_factory.eo.cs old mode 100644 new mode 100755 index bfb2b53e4..47efa4e40 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_image_factory.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_image_factory.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Efl UI image factory class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.ImageFactory.NativeMethods] [Efl.Eo.BindingEntity] public class ImageFactory : Efl.Ui.CachingFactory { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +48,8 @@ public class ImageFactory : Efl.Ui.CachingFactory FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected ImageFactory(ConstructingHandle ch) : base(ch) { @@ -100,3 +103,9 @@ public class ImageFactory : Efl.Ui.CachingFactory } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiImageFactory_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_image_zoomable.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_image_zoomable.eo.cs old mode 100644 new mode 100755 index 85ad267eb..df81edbad --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_image_zoomable.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_image_zoomable.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,24 +10,27 @@ namespace Efl { namespace Ui { -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ImageZoomableDownloadProgressEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when photocam download progress updated public Elm.Photocam.Progress arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ImageZoomableDownloadErrorEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when photocam download failed public Elm.Photocam.Error arg { get; set; } } /// Elementary Image Zoomable class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.ImageZoomable.NativeMethods] [Efl.Eo.BindingEntity] public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollableInteractive, Efl.Ui.IScrollbar, Efl.Ui.IZoom { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -58,7 +62,8 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected ImageZoomable(ConstructingHandle ch) : base(ch) { @@ -118,7 +123,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event PressEvt. + /// Method to raise event PressEvt. public void OnPressEvt(EventArgs e) { var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_PRESS"; @@ -170,7 +175,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event LoadEvt. + /// Method to raise event LoadEvt. public void OnLoadEvt(EventArgs e) { var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOAD"; @@ -222,7 +227,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event LoadedEvt. + /// Method to raise event LoadedEvt. public void OnLoadedEvt(EventArgs e) { var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOADED"; @@ -274,7 +279,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event LoadDetailEvt. + /// Method to raise event LoadDetailEvt. public void OnLoadDetailEvt(EventArgs e) { var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOAD_DETAIL"; @@ -326,7 +331,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event LoadedDetailEvt. + /// Method to raise event LoadedDetailEvt. public void OnLoadedDetailEvt(EventArgs e) { var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_LOADED_DETAIL"; @@ -378,7 +383,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event DownloadStartEvt. + /// Method to raise event DownloadStartEvt. public void OnDownloadStartEvt(EventArgs e) { var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_START"; @@ -392,6 +397,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when photocam download progress updated + /// public event EventHandler DownloadProgressEvt { add @@ -431,7 +437,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event DownloadProgressEvt. + /// Method to raise event DownloadProgressEvt. public void OnDownloadProgressEvt(Efl.Ui.ImageZoomableDownloadProgressEvt_Args e) { var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_PROGRESS"; @@ -491,7 +497,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event DownloadDoneEvt. + /// Method to raise event DownloadDoneEvt. public void OnDownloadDoneEvt(EventArgs e) { var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_DONE"; @@ -505,6 +511,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when photocam download failed + /// public event EventHandler DownloadErrorEvt { add @@ -544,7 +551,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event DownloadErrorEvt. + /// Method to raise event DownloadErrorEvt. public void OnDownloadErrorEvt(Efl.Ui.ImageZoomableDownloadErrorEvt_Args e) { var key = "_EFL_UI_IMAGE_ZOOMABLE_EVENT_DOWNLOAD_ERROR"; @@ -604,7 +611,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event ScrollStartEvt. + /// Method to raise event ScrollStartEvt. public void OnScrollStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_START"; @@ -656,7 +663,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event ScrollEvt. + /// Method to raise event ScrollEvt. public void OnScrollEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL"; @@ -708,7 +715,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event ScrollStopEvt. + /// Method to raise event ScrollStopEvt. public void OnScrollStopEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_STOP"; @@ -760,7 +767,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event ScrollUpEvt. + /// Method to raise event ScrollUpEvt. public void OnScrollUpEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_UP"; @@ -812,7 +819,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event ScrollDownEvt. + /// Method to raise event ScrollDownEvt. public void OnScrollDownEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_DOWN"; @@ -864,7 +871,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event ScrollLeftEvt. + /// Method to raise event ScrollLeftEvt. public void OnScrollLeftEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_LEFT"; @@ -916,7 +923,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event ScrollRightEvt. + /// Method to raise event ScrollRightEvt. public void OnScrollRightEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_RIGHT"; @@ -968,7 +975,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event EdgeUpEvt. + /// Method to raise event EdgeUpEvt. public void OnEdgeUpEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_UP"; @@ -1020,7 +1027,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event EdgeDownEvt. + /// Method to raise event EdgeDownEvt. public void OnEdgeDownEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_DOWN"; @@ -1072,7 +1079,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event EdgeLeftEvt. + /// Method to raise event EdgeLeftEvt. public void OnEdgeLeftEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_LEFT"; @@ -1124,7 +1131,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event EdgeRightEvt. + /// Method to raise event EdgeRightEvt. public void OnEdgeRightEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_RIGHT"; @@ -1176,7 +1183,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event ScrollAnimStartEvt. + /// Method to raise event ScrollAnimStartEvt. public void OnScrollAnimStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; @@ -1228,7 +1235,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event ScrollAnimStopEvt. + /// Method to raise event ScrollAnimStopEvt. public void OnScrollAnimStopEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; @@ -1280,7 +1287,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event ScrollDragStartEvt. + /// Method to raise event ScrollDragStartEvt. public void OnScrollDragStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; @@ -1332,7 +1339,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event ScrollDragStopEvt. + /// Method to raise event ScrollDragStopEvt. public void OnScrollDragStopEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; @@ -1346,6 +1353,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when bar is pressed. + /// public event EventHandler BarPressEvt { add @@ -1358,7 +1366,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl if (obj != null) { Efl.Ui.IScrollbarBarPressEvt_Args args = new Efl.Ui.IScrollbarBarPressEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); @@ -1385,7 +1393,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event BarPressEvt. + /// Method to raise event BarPressEvt. public void OnBarPressEvt(Efl.Ui.IScrollbarBarPressEvt_Args e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; @@ -1407,6 +1415,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } /// Called when bar is unpressed. + /// public event EventHandler BarUnpressEvt { add @@ -1419,7 +1428,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl if (obj != null) { Efl.Ui.IScrollbarBarUnpressEvt_Args args = new Efl.Ui.IScrollbarBarUnpressEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); @@ -1446,7 +1455,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event BarUnpressEvt. + /// Method to raise event BarUnpressEvt. public void OnBarUnpressEvt(Efl.Ui.IScrollbarBarUnpressEvt_Args e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; @@ -1468,6 +1477,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } /// Called when bar is dragged. + /// public event EventHandler BarDragEvt { add @@ -1480,7 +1490,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl if (obj != null) { Efl.Ui.IScrollbarBarDragEvt_Args args = new Efl.Ui.IScrollbarBarDragEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); @@ -1507,7 +1517,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event BarDragEvt. + /// Method to raise event BarDragEvt. public void OnBarDragEvt(Efl.Ui.IScrollbarBarDragEvt_Args e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; @@ -1567,7 +1577,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event BarSizeChangedEvt. + /// Method to raise event BarSizeChangedEvt. public void OnBarSizeChangedEvt(EventArgs e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; @@ -1619,7 +1629,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event BarPosChangedEvt. + /// Method to raise event BarPosChangedEvt. public void OnBarPosChangedEvt(EventArgs e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; @@ -1633,6 +1643,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Callend when bar is shown. + /// public event EventHandler BarShowEvt { add @@ -1645,7 +1656,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl if (obj != null) { Efl.Ui.IScrollbarBarShowEvt_Args args = new Efl.Ui.IScrollbarBarShowEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); @@ -1672,7 +1683,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event BarShowEvt. + /// Method to raise event BarShowEvt. public void OnBarShowEvt(Efl.Ui.IScrollbarBarShowEvt_Args e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; @@ -1694,6 +1705,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } /// Called when bar is hidden. + /// public event EventHandler BarHideEvt { add @@ -1706,7 +1718,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl if (obj != null) { Efl.Ui.IScrollbarBarHideEvt_Args args = new Efl.Ui.IScrollbarBarHideEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); @@ -1733,7 +1745,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event BarHideEvt. + /// Method to raise event BarHideEvt. public void OnBarHideEvt(Efl.Ui.IScrollbarBarHideEvt_Args e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; @@ -1793,7 +1805,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event ZoomStartEvt. + /// Method to raise event ZoomStartEvt. public void OnZoomStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_ZOOM_START"; @@ -1845,7 +1857,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event ZoomStopEvt. + /// Method to raise event ZoomStopEvt. public void OnZoomStopEvt(EventArgs e) { var key = "_EFL_UI_EVENT_ZOOM_STOP"; @@ -1897,7 +1909,7 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } } } - ///Method to raise event ZoomChangeEvt. + /// Method to raise event ZoomChangeEvt. public void OnZoomChangeEvt(EventArgs e) { var key = "_EFL_UI_EVENT_ZOOM_CHANGE"; @@ -2217,6 +2229,18 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl public Eina.Rect ViewportGeometry { get { return GetViewportGeometry(); } } + /// Bouncing behavior + /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. + /// Horizontal bounce policy. + public (bool, bool) BounceEnabled { + get { + bool _out_horiz = default(bool); + bool _out_vert = default(bool); + GetBounceEnabled(out _out_horiz,out _out_vert); + return (_out_horiz,_out_vert); + } + set { SetBounceEnabled( value.Item1, value.Item2); } + } /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . /// true if freeze, false otherwise public bool ScrollFreeze { @@ -2229,6 +2253,17 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl get { return GetScrollHold(); } set { SetScrollHold(value); } } + /// Controls an infinite loop for a scroller. + /// The scrolling horizontal loop + public (bool, bool) Looping { + get { + bool _out_loop_h = default(bool); + bool _out_loop_v = default(bool); + GetLooping(out _out_loop_h,out _out_loop_v); + return (_out_loop_h,_out_loop_v); + } + set { SetLooping( value.Item1, value.Item2); } + } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block @@ -2236,6 +2271,30 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl get { return GetMovementBlock(); } set { SetMovementBlock(value); } } + /// Control scrolling gravity on the scrollable + /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. + /// + /// The scroller will adjust the view to glue itself as follows. + /// + /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content + /// + /// Default values for x and y are 0.0 + /// Horizontal scrolling gravity + public (double, double) Gravity { + get { + double _out_x = default(double); + double _out_y = default(double); + GetGravity(out _out_x,out _out_y); + return (_out_x,_out_y); + } + set { SetGravity( value.Item1, value.Item2); } + } + /// Prevent the scrollable from being smaller than the minimum size of the content. + /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. + /// Whether to limit the minimum horizontal size + public (bool, bool) MatchContent { + set { SetMatchContent( value.Item1, value.Item2); } + } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels @@ -2243,6 +2302,37 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl get { return GetStepSize(); } set { SetStepSize(value); } } + /// Scrollbar visibility policy + /// Horizontal scrollbar. + public (Efl.Ui.ScrollbarMode, Efl.Ui.ScrollbarMode) BarMode { + get { + Efl.Ui.ScrollbarMode _out_hbar = default(Efl.Ui.ScrollbarMode); + Efl.Ui.ScrollbarMode _out_vbar = default(Efl.Ui.ScrollbarMode); + GetBarMode(out _out_hbar,out _out_vbar); + return (_out_hbar,_out_vbar); + } + set { SetBarMode( value.Item1, value.Item2); } + } + /// Scrollbar size. It is calculated based on viewport size-content sizes. + public (double, double) BarSize { + get { + double _out_width = default(double); + double _out_height = default(double); + GetBarSize(out _out_width,out _out_height); + return (_out_width,_out_height); + } + } + /// Scrollbar position. It is calculated based on current position-maximum positions. + /// Value between 0.0 and 1.0. + public (double, double) BarPosition { + get { + double _out_posx = default(double); + double _out_posy = default(double); + GetBarPosition(out _out_posx,out _out_posy); + return (_out_posx,_out_posy); + } + set { SetBarPosition( value.Item1, value.Item2); } + } /// This sets the zoom animation state to on or off for zoomable. The default is off. When paused is true, it will stop zooming using animation on zoom level changes and change instantly, stopping any existing animations that are running. /// The paused state. public bool ZoomAnimation { @@ -3935,6 +4025,61 @@ public class ImageZoomable : Efl.Ui.Image, Efl.Ui.IScrollable, Efl.Ui.IScrollabl } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiImageZoomable_ExtensionMethods { + public static Efl.BindableProperty GestureEnabled(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ImageZoomable { + return new Efl.BindableProperty("gesture_enabled", fac); + } + + public static Efl.BindableProperty ImageRegion(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ImageZoomable { + return new Efl.BindableProperty("image_region", fac); + } + + public static Efl.BindableProperty ContentPos(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ImageZoomable { + return new Efl.BindableProperty("content_pos", fac); + } + + + + + public static Efl.BindableProperty ScrollFreeze(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ImageZoomable { + return new Efl.BindableProperty("scroll_freeze", fac); + } + + public static Efl.BindableProperty ScrollHold(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ImageZoomable { + return new Efl.BindableProperty("scroll_hold", fac); + } + + + public static Efl.BindableProperty MovementBlock(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ImageZoomable { + return new Efl.BindableProperty("movement_block", fac); + } + + + + public static Efl.BindableProperty StepSize(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ImageZoomable { + return new Efl.BindableProperty("step_size", fac); + } + + + + + public static Efl.BindableProperty ZoomAnimation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ImageZoomable { + return new Efl.BindableProperty("zoom_animation", fac); + } + + public static Efl.BindableProperty ZoomLevel(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ImageZoomable { + return new Efl.BindableProperty("zoom_level", fac); + } + + public static Efl.BindableProperty ZoomMode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ImageZoomable { + return new Efl.BindableProperty("zoom_mode", fac); + } + +} +#pragma warning restore CS1591 +#endif namespace Elm { namespace Photocam { @@ -3944,10 +4089,10 @@ namespace Photocam { [Efl.Eo.BindingEntity] public struct Error { - ///Placeholder field + /// Placeholder field public IntPtr field; - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator Error(IntPtr ptr) { var tmp = (Error.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Error.NativeStruct)); @@ -3956,19 +4101,19 @@ public struct Error #pragma warning disable CS1591 - ///Internal wrapper for struct Error. + /// Internal wrapper for struct Error. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { internal IntPtr field; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator Error.NativeStruct(Error _external_struct) { var _internal_struct = new Error.NativeStruct(); return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator Error(Error.NativeStruct _internal_struct) { var _external_struct = new Error(); @@ -3994,10 +4139,10 @@ namespace Photocam { [Efl.Eo.BindingEntity] public struct Progress { - ///Placeholder field + /// Placeholder field public IntPtr field; - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator Progress(IntPtr ptr) { var tmp = (Progress.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Progress.NativeStruct)); @@ -4006,19 +4151,19 @@ public struct Progress #pragma warning disable CS1591 - ///Internal wrapper for struct Progress. + /// Internal wrapper for struct Progress. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { internal IntPtr field; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator Progress.NativeStruct(Progress _external_struct) { var _internal_struct = new Progress.NativeStruct(); return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator Progress(Progress.NativeStruct _internal_struct) { var _external_struct = new Progress(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_image_zoomable_pan.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_image_zoomable_pan.eo.cs old mode 100644 new mode 100755 index 4ff7ed3ae..f611d6f3f --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_image_zoomable_pan.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_image_zoomable_pan.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Elementary photocom pan class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.ImageZoomablePan.NativeMethods] [Efl.Eo.BindingEntity] public class ImageZoomablePan : Efl.Ui.Pan { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class ImageZoomablePan : Efl.Ui.Pan FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected ImageZoomablePan(ConstructingHandle ch) : base(ch) { @@ -94,3 +97,9 @@ public class ImageZoomablePan : Efl.Ui.Pan } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiImageZoomablePan_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_item.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_item.eo.cs old mode 100644 new mode 100755 index f93d4861a..65aa2677e --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_item.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_item.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,12 +10,18 @@ namespace Efl { namespace Ui { -/// Item abstract class for pack widget. All item have to be inherited from this class. +/// Selectable Item abstraction. +/// This class serves as the basis to create widgets acting as selectable items inside containers like or , for example. provides user interaction through the mixin. Items can be pressed, long-pressed, etc, and appropriate events are generated. also implements the interface, meaning that "selected" and "unselected" events are automatically generated. +/// +/// Classes inheriting from this one only need to deal with the visual representation of the widget. See for example and . +/// +/// Some events are converted to edje signals so the theme can react to them: -> "efl,state,pressed", -> "efl,state,unpressed", (true) -> "efl,state,selected", (false) -> "efl,state,unselected". +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Item.NativeMethods] [Efl.Eo.BindingEntity] -public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelectable +public abstract class Item : Efl.Ui.LayoutBase, Efl.Input.IClickable, Efl.Ui.ISelectable { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +53,8 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Item(ConstructingHandle ch) : base(ch) { @@ -75,7 +83,8 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec } /// Called when object is in sequence pressed and unpressed, by the primary button - public event EventHandler ClickedEvt + /// + public event EventHandler ClickedEvt { add { @@ -86,7 +95,7 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickableClickedEvt_Args args = new Efl.Ui.IClickableClickedEvt_Args(); + Efl.Input.IClickableClickedEvt_Args args = new Efl.Input.IClickableClickedEvt_Args(); args.arg = evt.Info; try { @@ -100,7 +109,7 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec } }; - string key = "_EFL_UI_EVENT_CLICKED"; + string key = "_EFL_INPUT_EVENT_CLICKED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -109,15 +118,15 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_CLICKED"; + string key = "_EFL_INPUT_EVENT_CLICKED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ClickedEvt. - public void OnClickedEvt(Efl.Ui.IClickableClickedEvt_Args e) + /// Method to raise event ClickedEvt. + public void OnClickedEvt(Efl.Input.IClickableClickedEvt_Args e) { - var key = "_EFL_UI_EVENT_CLICKED"; + var key = "_EFL_INPUT_EVENT_CLICKED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -137,7 +146,8 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec } } /// Called when object is in sequence pressed and unpressed by any button. The button that triggered the event can be found in the event information. - public event EventHandler ClickedAnyEvt + /// + public event EventHandler ClickedAnyEvt { add { @@ -148,7 +158,7 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickableClickedAnyEvt_Args args = new Efl.Ui.IClickableClickedAnyEvt_Args(); + Efl.Input.IClickableClickedAnyEvt_Args args = new Efl.Input.IClickableClickedAnyEvt_Args(); args.arg = evt.Info; try { @@ -162,7 +172,7 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec } }; - string key = "_EFL_UI_EVENT_CLICKED_ANY"; + string key = "_EFL_INPUT_EVENT_CLICKED_ANY"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -171,15 +181,15 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_CLICKED_ANY"; + string key = "_EFL_INPUT_EVENT_CLICKED_ANY"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ClickedAnyEvt. - public void OnClickedAnyEvt(Efl.Ui.IClickableClickedAnyEvt_Args e) + /// Method to raise event ClickedAnyEvt. + public void OnClickedAnyEvt(Efl.Input.IClickableClickedAnyEvt_Args e) { - var key = "_EFL_UI_EVENT_CLICKED_ANY"; + var key = "_EFL_INPUT_EVENT_CLICKED_ANY"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -199,7 +209,8 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec } } /// Called when the object is pressed, event_info is the button that got pressed - public event EventHandler PressedEvt + /// + public event EventHandler PressedEvt { add { @@ -210,7 +221,7 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); + Efl.Input.IClickablePressedEvt_Args args = new Efl.Input.IClickablePressedEvt_Args(); args.arg = Marshal.ReadInt32(evt.Info); try { @@ -224,7 +235,7 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec } }; - string key = "_EFL_UI_EVENT_PRESSED"; + string key = "_EFL_INPUT_EVENT_PRESSED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -233,15 +244,15 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_PRESSED"; + string key = "_EFL_INPUT_EVENT_PRESSED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event PressedEvt. - public void OnPressedEvt(Efl.Ui.IClickablePressedEvt_Args e) + /// Method to raise event PressedEvt. + public void OnPressedEvt(Efl.Input.IClickablePressedEvt_Args e) { - var key = "_EFL_UI_EVENT_PRESSED"; + var key = "_EFL_INPUT_EVENT_PRESSED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -260,7 +271,8 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec } } /// Called when the object is no longer pressed, event_info is the button that got pressed - public event EventHandler UnpressedEvt + /// + public event EventHandler UnpressedEvt { add { @@ -271,7 +283,7 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); + Efl.Input.IClickableUnpressedEvt_Args args = new Efl.Input.IClickableUnpressedEvt_Args(); args.arg = Marshal.ReadInt32(evt.Info); try { @@ -285,7 +297,7 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec } }; - string key = "_EFL_UI_EVENT_UNPRESSED"; + string key = "_EFL_INPUT_EVENT_UNPRESSED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -294,15 +306,15 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_UNPRESSED"; + string key = "_EFL_INPUT_EVENT_UNPRESSED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event UnpressedEvt. - public void OnUnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) + /// Method to raise event UnpressedEvt. + public void OnUnpressedEvt(Efl.Input.IClickableUnpressedEvt_Args e) { - var key = "_EFL_UI_EVENT_UNPRESSED"; + var key = "_EFL_INPUT_EVENT_UNPRESSED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -321,7 +333,8 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec } } /// Called when the object receives a long press, event_info is the button that got pressed - public event EventHandler LongpressedEvt + /// + public event EventHandler LongpressedEvt { add { @@ -332,7 +345,7 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); + Efl.Input.IClickableLongpressedEvt_Args args = new Efl.Input.IClickableLongpressedEvt_Args(); args.arg = Marshal.ReadInt32(evt.Info); try { @@ -346,7 +359,7 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec } }; - string key = "_EFL_UI_EVENT_LONGPRESSED"; + string key = "_EFL_INPUT_EVENT_LONGPRESSED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -355,15 +368,15 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_LONGPRESSED"; + string key = "_EFL_INPUT_EVENT_LONGPRESSED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event LongpressedEvt. - public void OnLongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) + /// Method to raise event LongpressedEvt. + public void OnLongpressedEvt(Efl.Input.IClickableLongpressedEvt_Args e) { - var key = "_EFL_UI_EVENT_LONGPRESSED"; + var key = "_EFL_INPUT_EVENT_LONGPRESSED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -381,8 +394,9 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec Marshal.FreeHGlobal(info); } } - /// Called when selected - public event EventHandler ItemSelectedEvt + /// Called when the selected state has changed + /// + public event EventHandler SelectedChangedEvt { add { @@ -393,8 +407,8 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.ISelectableItemSelectedEvt_Args args = new Efl.Ui.ISelectableItemSelectedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + Efl.Ui.ISelectableSelectedChangedEvt_Args args = new Efl.Ui.ISelectableSelectedChangedEvt_Args(); + args.arg = Marshal.ReadByte(evt.Info) != 0; try { value?.Invoke(obj, args); @@ -407,7 +421,7 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec } }; - string key = "_EFL_UI_EVENT_ITEM_SELECTED"; + string key = "_EFL_UI_EVENT_SELECTED_CHANGED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -416,15 +430,15 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_ITEM_SELECTED"; + string key = "_EFL_UI_EVENT_SELECTED_CHANGED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ItemSelectedEvt. - public void OnItemSelectedEvt(Efl.Ui.ISelectableItemSelectedEvt_Args e) + /// Method to raise event SelectedChangedEvt. + public void OnSelectedChangedEvt(Efl.Ui.ISelectableSelectedChangedEvt_Args e) { - var key = "_EFL_UI_EVENT_ITEM_SELECTED"; + var key = "_EFL_UI_EVENT_SELECTED_CHANGED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -432,394 +446,26 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec return; } - IntPtr info = e.arg.NativeHandle; - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - /// Called when no longer selected - public event EventHandler ItemUnselectedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.ISelectableItemUnselectedEvt_Args args = new Efl.Ui.ISelectableItemUnselectedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ItemUnselectedEvt. - public void OnItemUnselectedEvt(Efl.Ui.ISelectableItemUnselectedEvt_Args e) - { - var key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = e.arg.NativeHandle; - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - /// Called when selection is pasted - public event EventHandler SelectionPasteEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SELECTION_PASTE"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SELECTION_PASTE"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event SelectionPasteEvt. - public void OnSelectionPasteEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SELECTION_PASTE"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when selection is copied - public event EventHandler SelectionCopyEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SELECTION_COPY"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SELECTION_COPY"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event SelectionCopyEvt. - public void OnSelectionCopyEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SELECTION_COPY"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when selection is cut - public event EventHandler SelectionCutEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SELECTION_CUT"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SELECTION_CUT"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event SelectionCutEvt. - public void OnSelectionCutEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SELECTION_CUT"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called at selection start - public event EventHandler SelectionStartEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SELECTION_START"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SELECTION_START"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event SelectionStartEvt. - public void OnSelectionStartEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SELECTION_START"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when selection is changed - public event EventHandler SelectionChangedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SELECTION_CHANGED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SELECTION_CHANGED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event SelectionChangedEvt. - public void OnSelectionChangedEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SELECTION_CHANGED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when selection is cleared - public event EventHandler SelectionClearedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SELECTION_CLEARED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SELECTION_CLEARED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } - } - ///Method to raise event SelectionClearedEvt. - public void OnSelectionClearedEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SELECTION_CLEARED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) + finally { - Eina.Log.Error($"Failed to get native event {key}"); - return; + Marshal.FreeHGlobal(info); } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// index number of item from their parent object. + /// The index of this item inside its container. + /// The container must be set through the property. + /// The index where to find this item in its container. virtual public int GetIndex() { var _ret_var = Efl.Ui.Item.NativeMethods.efl_ui_item_index_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Select property for item object. Item can be selected by user mouse/key input also - virtual public bool GetSelected() { - var _ret_var = Efl.Ui.Item.NativeMethods.efl_ui_item_selected_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Select property for item object. Item can be selected by user mouse/key input also - virtual public void SetSelected(bool select) { - Efl.Ui.Item.NativeMethods.efl_ui_item_selected_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),select); - Eina.Error.RaiseIfUnhandledException(); - } /// The container this object is part of. - /// You should never use this property yourself, the container will set it. Unsetting this while the item is packed into a container does not have an impact on its state in the container. + /// You should never use this property directly, the container will set it when the item is added. Unsetting this while the item is packed inside a container does not remove the item from the container. /// The container this item is in. virtual public Efl.Ui.Widget GetContainer() { var _ret_var = Efl.Ui.Item.NativeMethods.efl_ui_item_container_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); @@ -827,48 +473,102 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec return _ret_var; } /// The container this object is part of. - /// You should never use this property yourself, the container will set it. Unsetting this while the item is packed into a container does not have an impact on its state in the container. + /// You should never use this property directly, the container will set it when the item is added. Unsetting this while the item is packed inside a container does not remove the item from the container. /// The container this item is in. virtual public void SetContainer(Efl.Ui.Widget container) { Efl.Ui.Item.NativeMethods.efl_ui_item_container_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),container); Eina.Error.RaiseIfUnhandledException(); } + /// The parent of the item. + /// This property expresses a tree structure of items. If the parent is NULL the item is added in the root level of the content. The item parent can only be set once, when the object is invalidated, the item parent is set to NULL and still cannot be reset. + virtual public Efl.Ui.Item GetItemParent() { + var _ret_var = Efl.Ui.Item.NativeMethods.efl_ui_item_parent_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// The parent of the item. + /// This property expresses a tree structure of items. If the parent is NULL the item is added in the root level of the content. The item parent can only be set once, when the object is invalidated, the item parent is set to NULL and still cannot be reset. + virtual public void SetItemParent(Efl.Ui.Item parent) { + Efl.Ui.Item.NativeMethods.efl_ui_item_parent_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),parent); + Eina.Error.RaiseIfUnhandledException(); + } + /// This returns true if the given object is currently in event emission + virtual public bool GetInteraction() { + var _ret_var = Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_interaction_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } /// Change internal states that a button got pressed. /// When the button is already pressed, this is silently ignored. /// The number of the button. FIXME ensure to have the right interval of possible input virtual public void Press(uint button) { - Efl.Ui.IClickableConcrete.NativeMethods.efl_ui_clickable_press_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_press_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); Eina.Error.RaiseIfUnhandledException(); } /// Change internal states that a button got unpressed. /// When the button is not pressed, this is silently ignored. /// The number of the button. FIXME ensure to have the right interval of possible input virtual public void Unpress(uint button) { - Efl.Ui.IClickableConcrete.NativeMethods.efl_ui_clickable_unpress_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_unpress_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); Eina.Error.RaiseIfUnhandledException(); } /// This aborts the internal state after a press call. /// This will stop the timer for longpress. And set the state of the clickable mixin back into the unpressed state. virtual public void ResetButtonState(uint button) { - Efl.Ui.IClickableConcrete.NativeMethods.efl_ui_clickable_button_state_reset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_button_state_reset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Eina.Error.RaiseIfUnhandledException(); + } + /// This aborts ongoing longpress event. + /// That is, this will stop the timer for longpress. + virtual public void LongpressAbort(uint button) { + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_longpress_abort_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Eina.Error.RaiseIfUnhandledException(); + } + /// The selected state of this object + /// A change to this property emits the changed event. + /// The selected state of this object + virtual public bool GetSelected() { + var _ret_var = Efl.Ui.ISelectableConcrete.NativeMethods.efl_ui_selectable_selected_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// The selected state of this object + /// A change to this property emits the changed event. + /// The selected state of this object + virtual public void SetSelected(bool selected) { + Efl.Ui.ISelectableConcrete.NativeMethods.efl_ui_selectable_selected_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),selected); Eina.Error.RaiseIfUnhandledException(); } - /// index number of item from their parent object. + /// The index of this item inside its container. + /// The container must be set through the property. + /// The index where to find this item in its container. public int Index { get { return GetIndex(); } } - /// Select property for item object. Item can be selected by user mouse/key input also - public bool Selected { - get { return GetSelected(); } - set { SetSelected(value); } - } /// The container this object is part of. - /// You should never use this property yourself, the container will set it. Unsetting this while the item is packed into a container does not have an impact on its state in the container. + /// You should never use this property directly, the container will set it when the item is added. Unsetting this while the item is packed inside a container does not remove the item from the container. /// The container this item is in. public Efl.Ui.Widget Container { get { return GetContainer(); } set { SetContainer(value); } } + /// The parent of the item. + /// This property expresses a tree structure of items. If the parent is NULL the item is added in the root level of the content. The item parent can only be set once, when the object is invalidated, the item parent is set to NULL and still cannot be reset. + public Efl.Ui.Item ItemParent { + get { return GetItemParent(); } + set { SetItemParent(value); } + } + /// This returns true if the given object is currently in event emission + public bool Interaction { + get { return GetInteraction(); } + } + /// The selected state of this object + /// A change to this property emits the changed event. + /// The selected state of this object + public bool Selected { + get { return GetSelected(); } + set { SetSelected(value); } + } private static IntPtr GetEflClassStatic() { return Efl.Ui.Item.efl_ui_item_class_get(); @@ -895,74 +595,114 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_item_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_item_index_get_static_delegate) }); } - if (efl_ui_item_selected_get_static_delegate == null) + if (efl_ui_item_container_get_static_delegate == null) { - efl_ui_item_selected_get_static_delegate = new efl_ui_item_selected_get_delegate(selected_get); + efl_ui_item_container_get_static_delegate = new efl_ui_item_container_get_delegate(container_get); } - if (methods.FirstOrDefault(m => m.Name == "GetSelected") != null) + if (methods.FirstOrDefault(m => m.Name == "GetContainer") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_item_selected_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_item_selected_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_item_container_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_item_container_get_static_delegate) }); } - if (efl_ui_item_selected_set_static_delegate == null) + if (efl_ui_item_container_set_static_delegate == null) { - efl_ui_item_selected_set_static_delegate = new efl_ui_item_selected_set_delegate(selected_set); + efl_ui_item_container_set_static_delegate = new efl_ui_item_container_set_delegate(container_set); } - if (methods.FirstOrDefault(m => m.Name == "SetSelected") != null) + if (methods.FirstOrDefault(m => m.Name == "SetContainer") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_item_selected_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_item_selected_set_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_item_container_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_item_container_set_static_delegate) }); } - if (efl_ui_item_container_get_static_delegate == null) + if (efl_ui_item_parent_get_static_delegate == null) { - efl_ui_item_container_get_static_delegate = new efl_ui_item_container_get_delegate(container_get); + efl_ui_item_parent_get_static_delegate = new efl_ui_item_parent_get_delegate(item_parent_get); } - if (methods.FirstOrDefault(m => m.Name == "GetContainer") != null) + if (methods.FirstOrDefault(m => m.Name == "GetItemParent") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_item_container_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_item_container_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_item_parent_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_item_parent_get_static_delegate) }); } - if (efl_ui_item_container_set_static_delegate == null) + if (efl_ui_item_parent_set_static_delegate == null) { - efl_ui_item_container_set_static_delegate = new efl_ui_item_container_set_delegate(container_set); + efl_ui_item_parent_set_static_delegate = new efl_ui_item_parent_set_delegate(item_parent_set); } - if (methods.FirstOrDefault(m => m.Name == "SetContainer") != null) + if (methods.FirstOrDefault(m => m.Name == "SetItemParent") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_item_container_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_item_container_set_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_item_parent_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_item_parent_set_static_delegate) }); + } + + if (efl_input_clickable_interaction_get_static_delegate == null) + { + efl_input_clickable_interaction_get_static_delegate = new efl_input_clickable_interaction_get_delegate(interaction_get); } - if (efl_ui_clickable_press_static_delegate == null) + if (methods.FirstOrDefault(m => m.Name == "GetInteraction") != null) { - efl_ui_clickable_press_static_delegate = new efl_ui_clickable_press_delegate(press); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_interaction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_interaction_get_static_delegate) }); + } + + if (efl_input_clickable_press_static_delegate == null) + { + efl_input_clickable_press_static_delegate = new efl_input_clickable_press_delegate(press); } if (methods.FirstOrDefault(m => m.Name == "Press") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clickable_press"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clickable_press_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_press"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_press_static_delegate) }); } - if (efl_ui_clickable_unpress_static_delegate == null) + if (efl_input_clickable_unpress_static_delegate == null) { - efl_ui_clickable_unpress_static_delegate = new efl_ui_clickable_unpress_delegate(unpress); + efl_input_clickable_unpress_static_delegate = new efl_input_clickable_unpress_delegate(unpress); } if (methods.FirstOrDefault(m => m.Name == "Unpress") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clickable_unpress"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clickable_unpress_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_unpress"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_unpress_static_delegate) }); } - if (efl_ui_clickable_button_state_reset_static_delegate == null) + if (efl_input_clickable_button_state_reset_static_delegate == null) { - efl_ui_clickable_button_state_reset_static_delegate = new efl_ui_clickable_button_state_reset_delegate(button_state_reset); + efl_input_clickable_button_state_reset_static_delegate = new efl_input_clickable_button_state_reset_delegate(button_state_reset); } if (methods.FirstOrDefault(m => m.Name == "ResetButtonState") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clickable_button_state_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clickable_button_state_reset_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_button_state_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_button_state_reset_static_delegate) }); + } + + if (efl_input_clickable_longpress_abort_static_delegate == null) + { + efl_input_clickable_longpress_abort_static_delegate = new efl_input_clickable_longpress_abort_delegate(longpress_abort); + } + + if (methods.FirstOrDefault(m => m.Name == "LongpressAbort") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_longpress_abort"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_longpress_abort_static_delegate) }); + } + + if (efl_ui_selectable_selected_get_static_delegate == null) + { + efl_ui_selectable_selected_get_static_delegate = new efl_ui_selectable_selected_get_delegate(selected_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetSelected") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_selectable_selected_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selectable_selected_get_static_delegate) }); + } + + if (efl_ui_selectable_selected_set_static_delegate == null) + { + efl_ui_selectable_selected_set_static_delegate = new efl_ui_selectable_selected_set_delegate(selected_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetSelected") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_selectable_selected_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selectable_selected_set_static_delegate) }); } descs.AddRange(base.GetEoOps(type)); @@ -1013,24 +753,24 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec private static efl_ui_item_index_get_delegate efl_ui_item_index_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_ui_item_selected_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Widget efl_ui_item_container_get_delegate(System.IntPtr obj, System.IntPtr pd); - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_ui_item_selected_get_api_delegate(System.IntPtr obj); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Widget efl_ui_item_container_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_item_selected_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_item_selected_get"); + public static Efl.Eo.FunctionWrapper efl_ui_item_container_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_item_container_get"); - private static bool selected_get(System.IntPtr obj, System.IntPtr pd) + private static Efl.Ui.Widget container_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function efl_ui_item_selected_get was called"); + Eina.Log.Debug("function efl_ui_item_container_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - bool _ret_var = default(bool); + Efl.Ui.Widget _ret_var = default(Efl.Ui.Widget); try { - _ret_var = ((Item)ws.Target).GetSelected(); + _ret_var = ((Item)ws.Target).GetContainer(); } catch (Exception e) { @@ -1043,30 +783,30 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec } else { - return efl_ui_item_selected_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + return efl_ui_item_container_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static efl_ui_item_selected_get_delegate efl_ui_item_selected_get_static_delegate; + private static efl_ui_item_container_get_delegate efl_ui_item_container_get_static_delegate; - private delegate void efl_ui_item_selected_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool select); + private delegate void efl_ui_item_container_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Widget container); - public delegate void efl_ui_item_selected_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool select); + public delegate void efl_ui_item_container_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Widget container); - public static Efl.Eo.FunctionWrapper efl_ui_item_selected_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_item_selected_set"); + public static Efl.Eo.FunctionWrapper efl_ui_item_container_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_item_container_set"); - private static void selected_set(System.IntPtr obj, System.IntPtr pd, bool select) + private static void container_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Widget container) { - Eina.Log.Debug("function efl_ui_item_selected_set was called"); + Eina.Log.Debug("function efl_ui_item_container_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ((Item)ws.Target).SetSelected(select); + ((Item)ws.Target).SetContainer(container); } catch (Exception e) { @@ -1078,30 +818,30 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec } else { - efl_ui_item_selected_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), select); + efl_ui_item_container_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), container); } } - private static efl_ui_item_selected_set_delegate efl_ui_item_selected_set_static_delegate; + private static efl_ui_item_container_set_delegate efl_ui_item_container_set_static_delegate; [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Ui.Widget efl_ui_item_container_get_delegate(System.IntPtr obj, System.IntPtr pd); + private delegate Efl.Ui.Item efl_ui_item_parent_get_delegate(System.IntPtr obj, System.IntPtr pd); [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Ui.Widget efl_ui_item_container_get_api_delegate(System.IntPtr obj); + public delegate Efl.Ui.Item efl_ui_item_parent_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_item_container_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_item_container_get"); + public static Efl.Eo.FunctionWrapper efl_ui_item_parent_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_item_parent_get"); - private static Efl.Ui.Widget container_get(System.IntPtr obj, System.IntPtr pd) + private static Efl.Ui.Item item_parent_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function efl_ui_item_container_get was called"); + Eina.Log.Debug("function efl_ui_item_parent_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - Efl.Ui.Widget _ret_var = default(Efl.Ui.Widget); + Efl.Ui.Item _ret_var = default(Efl.Ui.Item); try { - _ret_var = ((Item)ws.Target).GetContainer(); + _ret_var = ((Item)ws.Target).GetItemParent(); } catch (Exception e) { @@ -1114,30 +854,30 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec } else { - return efl_ui_item_container_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + return efl_ui_item_parent_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static efl_ui_item_container_get_delegate efl_ui_item_container_get_static_delegate; + private static efl_ui_item_parent_get_delegate efl_ui_item_parent_get_static_delegate; - private delegate void efl_ui_item_container_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Widget container); + private delegate void efl_ui_item_parent_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Item parent); - public delegate void efl_ui_item_container_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Widget container); + public delegate void efl_ui_item_parent_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Item parent); - public static Efl.Eo.FunctionWrapper efl_ui_item_container_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_item_container_set"); + public static Efl.Eo.FunctionWrapper efl_ui_item_parent_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_item_parent_set"); - private static void container_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Widget container) + private static void item_parent_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Item parent) { - Eina.Log.Debug("function efl_ui_item_container_set was called"); + Eina.Log.Debug("function efl_ui_item_parent_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ((Item)ws.Target).SetContainer(container); + ((Item)ws.Target).SetItemParent(parent); } catch (Exception e) { @@ -1149,23 +889,59 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec } else { - efl_ui_item_container_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), container); + efl_ui_item_parent_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), parent); } } - private static efl_ui_item_container_set_delegate efl_ui_item_container_set_static_delegate; + private static efl_ui_item_parent_set_delegate efl_ui_item_parent_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_clickable_interaction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_clickable_interaction_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_clickable_interaction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_interaction_get"); + + private static bool interaction_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_clickable_interaction_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Item)ws.Target).GetInteraction(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_input_clickable_interaction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_input_clickable_interaction_get_delegate efl_input_clickable_interaction_get_static_delegate; - private delegate void efl_ui_clickable_press_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + private delegate void efl_input_clickable_press_delegate(System.IntPtr obj, System.IntPtr pd, uint button); - public delegate void efl_ui_clickable_press_api_delegate(System.IntPtr obj, uint button); + public delegate void efl_input_clickable_press_api_delegate(System.IntPtr obj, uint button); - public static Efl.Eo.FunctionWrapper efl_ui_clickable_press_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clickable_press"); + public static Efl.Eo.FunctionWrapper efl_input_clickable_press_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_press"); private static void press(System.IntPtr obj, System.IntPtr pd, uint button) { - Eina.Log.Debug("function efl_ui_clickable_press was called"); + Eina.Log.Debug("function efl_input_clickable_press was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { @@ -1184,23 +960,23 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec } else { - efl_ui_clickable_press_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + efl_input_clickable_press_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); } } - private static efl_ui_clickable_press_delegate efl_ui_clickable_press_static_delegate; + private static efl_input_clickable_press_delegate efl_input_clickable_press_static_delegate; - private delegate void efl_ui_clickable_unpress_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + private delegate void efl_input_clickable_unpress_delegate(System.IntPtr obj, System.IntPtr pd, uint button); - public delegate void efl_ui_clickable_unpress_api_delegate(System.IntPtr obj, uint button); + public delegate void efl_input_clickable_unpress_api_delegate(System.IntPtr obj, uint button); - public static Efl.Eo.FunctionWrapper efl_ui_clickable_unpress_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clickable_unpress"); + public static Efl.Eo.FunctionWrapper efl_input_clickable_unpress_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_unpress"); private static void unpress(System.IntPtr obj, System.IntPtr pd, uint button) { - Eina.Log.Debug("function efl_ui_clickable_unpress was called"); + Eina.Log.Debug("function efl_input_clickable_unpress was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { @@ -1219,23 +995,23 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec } else { - efl_ui_clickable_unpress_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + efl_input_clickable_unpress_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); } } - private static efl_ui_clickable_unpress_delegate efl_ui_clickable_unpress_static_delegate; + private static efl_input_clickable_unpress_delegate efl_input_clickable_unpress_static_delegate; - private delegate void efl_ui_clickable_button_state_reset_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + private delegate void efl_input_clickable_button_state_reset_delegate(System.IntPtr obj, System.IntPtr pd, uint button); - public delegate void efl_ui_clickable_button_state_reset_api_delegate(System.IntPtr obj, uint button); + public delegate void efl_input_clickable_button_state_reset_api_delegate(System.IntPtr obj, uint button); - public static Efl.Eo.FunctionWrapper efl_ui_clickable_button_state_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clickable_button_state_reset"); + public static Efl.Eo.FunctionWrapper efl_input_clickable_button_state_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_button_state_reset"); private static void button_state_reset(System.IntPtr obj, System.IntPtr pd, uint button) { - Eina.Log.Debug("function efl_ui_clickable_button_state_reset was called"); + Eina.Log.Debug("function efl_input_clickable_button_state_reset was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { @@ -1254,11 +1030,117 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec } else { - efl_ui_clickable_button_state_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + efl_input_clickable_button_state_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + } + } + + private static efl_input_clickable_button_state_reset_delegate efl_input_clickable_button_state_reset_static_delegate; + + + private delegate void efl_input_clickable_longpress_abort_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + + + public delegate void efl_input_clickable_longpress_abort_api_delegate(System.IntPtr obj, uint button); + + public static Efl.Eo.FunctionWrapper efl_input_clickable_longpress_abort_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_longpress_abort"); + + private static void longpress_abort(System.IntPtr obj, System.IntPtr pd, uint button) + { + Eina.Log.Debug("function efl_input_clickable_longpress_abort was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Item)ws.Target).LongpressAbort(button); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_clickable_longpress_abort_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + } + } + + private static efl_input_clickable_longpress_abort_delegate efl_input_clickable_longpress_abort_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_selectable_selected_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_selectable_selected_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_selectable_selected_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_selectable_selected_get"); + + private static bool selected_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_selectable_selected_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Item)ws.Target).GetSelected(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_selectable_selected_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_selectable_selected_get_delegate efl_ui_selectable_selected_get_static_delegate; + + + private delegate void efl_ui_selectable_selected_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool selected); + + + public delegate void efl_ui_selectable_selected_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool selected); + + public static Efl.Eo.FunctionWrapper efl_ui_selectable_selected_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_selectable_selected_set"); + + private static void selected_set(System.IntPtr obj, System.IntPtr pd, bool selected) + { + Eina.Log.Debug("function efl_ui_selectable_selected_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Item)ws.Target).SetSelected(selected); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_selectable_selected_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), selected); } } - private static efl_ui_clickable_button_state_reset_delegate efl_ui_clickable_button_state_reset_static_delegate; + private static efl_ui_selectable_selected_set_delegate efl_ui_selectable_selected_set_static_delegate; #pragma warning restore CA1707, CS1591, SA1300, SA1600 @@ -1268,3 +1150,23 @@ public abstract class Item : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ISelec } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiItem_ExtensionMethods { + + public static Efl.BindableProperty Container(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Item { + return new Efl.BindableProperty("container", fac); + } + + public static Efl.BindableProperty ItemParent(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Item { + return new Efl.BindableProperty("item_parent", fac); + } + + + public static Efl.BindableProperty Selected(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Item { + return new Efl.BindableProperty("selected", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_item_part_content.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_item_part_content.eo.cs deleted file mode 100644 index 1d37335a3..000000000 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_item_part_content.eo.cs +++ /dev/null @@ -1,327 +0,0 @@ -#pragma warning disable CS1591 -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.ComponentModel; -namespace Efl { - -namespace Ui { - -/// Item internal content part class -[Efl.Ui.ItemPartContent.NativeMethods] -[Efl.Eo.BindingEntity] -public class ItemPartContent : Efl.Ui.LayoutPart, Efl.IContent -{ - ///Pointer to the native class description. - public override System.IntPtr NativeClass - { - get - { - if (((object)this).GetType() == typeof(ItemPartContent)) - { - return GetEflClassStatic(); - } - else - { - return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; - } - } - } - - [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - efl_ui_item_part_content_class_get(); - /// Initializes a new instance of the class. - /// Parent instance. - public ItemPartContent(Efl.Object parent= null - ) : base(efl_ui_item_part_content_class_get(), parent) - { - FinishInstantiation(); - } - - /// Constructor to be used when objects are expected to be constructed from native code. - /// Tag struct storing the native handle of the object being constructed. - protected ItemPartContent(ConstructingHandle ch) : base(ch) - { - } - - /// Initializes a new instance of the class. - /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. - /// The native pointer to be wrapped. - protected ItemPartContent(Efl.Eo.Globals.WrappingHandle wh) : base(wh) - { - } - - /// Initializes a new instance of the class. - /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - /// The pointer to the base native Eo class. - /// The Efl.Object parent of this instance. - protected ItemPartContent(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) - { - } - - /// Sent after the content is set or unset using the current content object. - /// (Since EFL 1.22) - public event EventHandler ContentChangedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ContentChangedEvt. - public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = e.arg.NativeHandle; - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - /// Sub-object currently set as this object's single content. - /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). - /// (Since EFL 1.22) - /// The sub-object. - virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Sub-object currently set as this object's single content. - /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). - /// (Since EFL 1.22) - /// The sub-object. - /// true if content was successfully swallowed. - virtual public bool SetContent(Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),content); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. - /// (Since EFL 1.22) - /// Unswallowed object - virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Sub-object currently set as this object's single content. - /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). - /// (Since EFL 1.22) - /// The sub-object. - public Efl.Gfx.IEntity Content { - get { return GetContent(); } - set { SetContent(value); } - } - private static IntPtr GetEflClassStatic() - { - return Efl.Ui.ItemPartContent.efl_ui_item_part_content_class_get(); - } - /// Wrapper for native methods and virtual method delegates. - /// For internal use by generated code only. - public new class NativeMethods : Efl.Ui.LayoutPart.NativeMethods - { - private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); - /// Gets the list of Eo operations to override. - /// The list of Eo operations to be overload. - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - - if (efl_content_get_static_delegate == null) - { - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); - } - - if (efl_content_set_static_delegate == null) - { - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); - } - - if (efl_content_unset_static_delegate == null) - { - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - } - - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); - } - - descs.AddRange(base.GetEoOps(type)); - return descs; - } - /// Returns the Eo class for the native methods of this class. - /// The native class pointer. - public override IntPtr GetEflClass() - { - return Efl.Ui.ItemPartContent.efl_ui_item_part_content_class_get(); - } - - #pragma warning disable CA1707, CS1591, SA1300, SA1600 - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); - - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try - { - _ret_var = ((ItemPartContent)ws.Target).GetContent(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_content_get_delegate efl_content_get_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); - - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); - - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((ItemPartContent)ws.Target).SetContent(content); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); - } - } - - private static efl_content_set_delegate efl_content_set_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); - - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try - { - _ret_var = ((ItemPartContent)ws.Target).UnsetContent(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_content_unset_delegate efl_content_unset_static_delegate; - - #pragma warning restore CA1707, CS1591, SA1300, SA1600 - -} -} -} - -} - diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_item_part_extra.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_item_part_extra.eo.cs deleted file mode 100644 index 27d396d9f..000000000 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_item_part_extra.eo.cs +++ /dev/null @@ -1,327 +0,0 @@ -#pragma warning disable CS1591 -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.ComponentModel; -namespace Efl { - -namespace Ui { - -/// Item internal content of extra part class -[Efl.Ui.ItemPartExtra.NativeMethods] -[Efl.Eo.BindingEntity] -public class ItemPartExtra : Efl.Ui.LayoutPart, Efl.IContent -{ - ///Pointer to the native class description. - public override System.IntPtr NativeClass - { - get - { - if (((object)this).GetType() == typeof(ItemPartExtra)) - { - return GetEflClassStatic(); - } - else - { - return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; - } - } - } - - [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - efl_ui_item_part_extra_class_get(); - /// Initializes a new instance of the class. - /// Parent instance. - public ItemPartExtra(Efl.Object parent= null - ) : base(efl_ui_item_part_extra_class_get(), parent) - { - FinishInstantiation(); - } - - /// Constructor to be used when objects are expected to be constructed from native code. - /// Tag struct storing the native handle of the object being constructed. - protected ItemPartExtra(ConstructingHandle ch) : base(ch) - { - } - - /// Initializes a new instance of the class. - /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. - /// The native pointer to be wrapped. - protected ItemPartExtra(Efl.Eo.Globals.WrappingHandle wh) : base(wh) - { - } - - /// Initializes a new instance of the class. - /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - /// The pointer to the base native Eo class. - /// The Efl.Object parent of this instance. - protected ItemPartExtra(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) - { - } - - /// Sent after the content is set or unset using the current content object. - /// (Since EFL 1.22) - public event EventHandler ContentChangedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ContentChangedEvt. - public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = e.arg.NativeHandle; - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - /// Sub-object currently set as this object's single content. - /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). - /// (Since EFL 1.22) - /// The sub-object. - virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Sub-object currently set as this object's single content. - /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). - /// (Since EFL 1.22) - /// The sub-object. - /// true if content was successfully swallowed. - virtual public bool SetContent(Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),content); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. - /// (Since EFL 1.22) - /// Unswallowed object - virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Sub-object currently set as this object's single content. - /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). - /// (Since EFL 1.22) - /// The sub-object. - public Efl.Gfx.IEntity Content { - get { return GetContent(); } - set { SetContent(value); } - } - private static IntPtr GetEflClassStatic() - { - return Efl.Ui.ItemPartExtra.efl_ui_item_part_extra_class_get(); - } - /// Wrapper for native methods and virtual method delegates. - /// For internal use by generated code only. - public new class NativeMethods : Efl.Ui.LayoutPart.NativeMethods - { - private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); - /// Gets the list of Eo operations to override. - /// The list of Eo operations to be overload. - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - - if (efl_content_get_static_delegate == null) - { - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); - } - - if (efl_content_set_static_delegate == null) - { - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); - } - - if (efl_content_unset_static_delegate == null) - { - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - } - - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); - } - - descs.AddRange(base.GetEoOps(type)); - return descs; - } - /// Returns the Eo class for the native methods of this class. - /// The native class pointer. - public override IntPtr GetEflClass() - { - return Efl.Ui.ItemPartExtra.efl_ui_item_part_extra_class_get(); - } - - #pragma warning disable CA1707, CS1591, SA1300, SA1600 - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); - - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try - { - _ret_var = ((ItemPartExtra)ws.Target).GetContent(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_content_get_delegate efl_content_get_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); - - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); - - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((ItemPartExtra)ws.Target).SetContent(content); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); - } - } - - private static efl_content_set_delegate efl_content_set_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); - - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try - { - _ret_var = ((ItemPartExtra)ws.Target).UnsetContent(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_content_unset_delegate efl_content_unset_static_delegate; - - #pragma warning restore CA1707, CS1591, SA1300, SA1600 - -} -} -} - -} - diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_item_part_icon.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_item_part_icon.eo.cs deleted file mode 100644 index 6e48c6a9e..000000000 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_item_part_icon.eo.cs +++ /dev/null @@ -1,327 +0,0 @@ -#pragma warning disable CS1591 -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.ComponentModel; -namespace Efl { - -namespace Ui { - -/// Item internal content of icon part class -[Efl.Ui.ItemPartIcon.NativeMethods] -[Efl.Eo.BindingEntity] -public class ItemPartIcon : Efl.Ui.LayoutPart, Efl.IContent -{ - ///Pointer to the native class description. - public override System.IntPtr NativeClass - { - get - { - if (((object)this).GetType() == typeof(ItemPartIcon)) - { - return GetEflClassStatic(); - } - else - { - return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; - } - } - } - - [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - efl_ui_item_part_icon_class_get(); - /// Initializes a new instance of the class. - /// Parent instance. - public ItemPartIcon(Efl.Object parent= null - ) : base(efl_ui_item_part_icon_class_get(), parent) - { - FinishInstantiation(); - } - - /// Constructor to be used when objects are expected to be constructed from native code. - /// Tag struct storing the native handle of the object being constructed. - protected ItemPartIcon(ConstructingHandle ch) : base(ch) - { - } - - /// Initializes a new instance of the class. - /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. - /// The native pointer to be wrapped. - protected ItemPartIcon(Efl.Eo.Globals.WrappingHandle wh) : base(wh) - { - } - - /// Initializes a new instance of the class. - /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - /// The pointer to the base native Eo class. - /// The Efl.Object parent of this instance. - protected ItemPartIcon(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) - { - } - - /// Sent after the content is set or unset using the current content object. - /// (Since EFL 1.22) - public event EventHandler ContentChangedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ContentChangedEvt. - public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = e.arg.NativeHandle; - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - /// Sub-object currently set as this object's single content. - /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). - /// (Since EFL 1.22) - /// The sub-object. - virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Sub-object currently set as this object's single content. - /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). - /// (Since EFL 1.22) - /// The sub-object. - /// true if content was successfully swallowed. - virtual public bool SetContent(Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),content); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. - /// (Since EFL 1.22) - /// Unswallowed object - virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Sub-object currently set as this object's single content. - /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). - /// (Since EFL 1.22) - /// The sub-object. - public Efl.Gfx.IEntity Content { - get { return GetContent(); } - set { SetContent(value); } - } - private static IntPtr GetEflClassStatic() - { - return Efl.Ui.ItemPartIcon.efl_ui_item_part_icon_class_get(); - } - /// Wrapper for native methods and virtual method delegates. - /// For internal use by generated code only. - public new class NativeMethods : Efl.Ui.LayoutPart.NativeMethods - { - private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); - /// Gets the list of Eo operations to override. - /// The list of Eo operations to be overload. - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - - if (efl_content_get_static_delegate == null) - { - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); - } - - if (efl_content_set_static_delegate == null) - { - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); - } - - if (efl_content_unset_static_delegate == null) - { - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - } - - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); - } - - descs.AddRange(base.GetEoOps(type)); - return descs; - } - /// Returns the Eo class for the native methods of this class. - /// The native class pointer. - public override IntPtr GetEflClass() - { - return Efl.Ui.ItemPartIcon.efl_ui_item_part_icon_class_get(); - } - - #pragma warning disable CA1707, CS1591, SA1300, SA1600 - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); - - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try - { - _ret_var = ((ItemPartIcon)ws.Target).GetContent(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_content_get_delegate efl_content_get_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); - - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); - - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((ItemPartIcon)ws.Target).SetContent(content); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); - } - } - - private static efl_content_set_delegate efl_content_set_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); - - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try - { - _ret_var = ((ItemPartIcon)ws.Target).UnsetContent(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_content_unset_delegate efl_content_unset_static_delegate; - - #pragma warning restore CA1707, CS1591, SA1300, SA1600 - -} -} -} - -} - diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_item_part_text.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_item_part_text.eo.cs deleted file mode 100644 index 5e8963386..000000000 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_item_part_text.eo.cs +++ /dev/null @@ -1,483 +0,0 @@ -#pragma warning disable CS1591 -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.ComponentModel; -namespace Efl { - -namespace Ui { - -/// Item internal text part class -[Efl.Ui.ItemPartText.NativeMethods] -[Efl.Eo.BindingEntity] -public class ItemPartText : Efl.Ui.LayoutPart, Efl.IText, Efl.ITextMarkup, Efl.Ui.IL10n -{ - ///Pointer to the native class description. - public override System.IntPtr NativeClass - { - get - { - if (((object)this).GetType() == typeof(ItemPartText)) - { - return GetEflClassStatic(); - } - else - { - return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; - } - } - } - - [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - efl_ui_item_part_text_class_get(); - /// Initializes a new instance of the class. - /// Parent instance. - public ItemPartText(Efl.Object parent= null - ) : base(efl_ui_item_part_text_class_get(), parent) - { - FinishInstantiation(); - } - - /// Constructor to be used when objects are expected to be constructed from native code. - /// Tag struct storing the native handle of the object being constructed. - protected ItemPartText(ConstructingHandle ch) : base(ch) - { - } - - /// Initializes a new instance of the class. - /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. - /// The native pointer to be wrapped. - protected ItemPartText(Efl.Eo.Globals.WrappingHandle wh) : base(wh) - { - } - - /// Initializes a new instance of the class. - /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - /// The pointer to the base native Eo class. - /// The Efl.Object parent of this instance. - protected ItemPartText(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) - { - } - - /// Retrieves the text string currently being displayed by the given text object. - /// Do not free() the return value. - /// - /// See also . - /// (Since EFL 1.22) - /// Text string to display on it. - virtual public System.String GetText() { - var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Sets the text string to be displayed by the given text object. - /// See also . - /// (Since EFL 1.22) - /// Text string to display on it. - virtual public void SetText(System.String text) { - Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),text); - Eina.Error.RaiseIfUnhandledException(); - } - /// Markup property - /// The markup-text representation set to this text. - virtual public System.String GetMarkup() { - var _ret_var = Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Markup property - /// The markup-text representation set to this text. - virtual public void SetMarkup(System.String markup) { - Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),markup); - Eina.Error.RaiseIfUnhandledException(); - } - /// A unique string to be translated. - /// Often this will be a human-readable string (e.g. in English) but it can also be a unique string identifier that must then be translated to the current locale with dgettext() or any similar mechanism. - /// - /// Setting this property will enable translation for this object or part. - /// A translation domain. If null this means the default domain is used. - /// This returns the untranslated value of label. The translated string can usually be retrieved with . - virtual public System.String GetL10nText(out System.String domain) { - var _ret_var = Efl.Ui.IL10nConcrete.NativeMethods.efl_ui_l10n_text_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out domain); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Sets the new untranslated string and domain for this object. - /// A unique (untranslated) string. - /// A translation domain. If null this uses the default domain (eg. set by textdomain()). - virtual public void SetL10nText(System.String label, System.String domain) { - Efl.Ui.IL10nConcrete.NativeMethods.efl_ui_l10n_text_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),label, domain); - Eina.Error.RaiseIfUnhandledException(); - } - /// Requests this object to update its text strings for the current locale. - /// Currently strings are translated with dgettext, so support for this function may depend on the platform. It is up to the application to provide its own translation data. - /// - /// This function is a hook meant to be implemented by any object that supports translation. This can be called whenever a new object is created or when the current locale changes, for instance. This should only trigger further calls to to children objects. - virtual public void UpdateTranslation() { - Efl.Ui.IL10nConcrete.NativeMethods.efl_ui_l10n_translation_update_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - } - /// Markup property - /// The markup-text representation set to this text. - public System.String Markup { - get { return GetMarkup(); } - set { SetMarkup(value); } - } - private static IntPtr GetEflClassStatic() - { - return Efl.Ui.ItemPartText.efl_ui_item_part_text_class_get(); - } - /// Wrapper for native methods and virtual method delegates. - /// For internal use by generated code only. - public new class NativeMethods : Efl.Ui.LayoutPart.NativeMethods - { - private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); - /// Gets the list of Eo operations to override. - /// The list of Eo operations to be overload. - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - - if (efl_text_get_static_delegate == null) - { - efl_text_get_static_delegate = new efl_text_get_delegate(text_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetText") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); - } - - if (efl_text_set_static_delegate == null) - { - efl_text_set_static_delegate = new efl_text_set_delegate(text_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetText") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); - } - - if (efl_text_markup_get_static_delegate == null) - { - efl_text_markup_get_static_delegate = new efl_text_markup_get_delegate(markup_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetMarkup") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_get_static_delegate) }); - } - - if (efl_text_markup_set_static_delegate == null) - { - efl_text_markup_set_static_delegate = new efl_text_markup_set_delegate(markup_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetMarkup") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_set_static_delegate) }); - } - - if (efl_ui_l10n_text_get_static_delegate == null) - { - efl_ui_l10n_text_get_static_delegate = new efl_ui_l10n_text_get_delegate(l10n_text_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetL10nText") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_l10n_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_text_get_static_delegate) }); - } - - if (efl_ui_l10n_text_set_static_delegate == null) - { - efl_ui_l10n_text_set_static_delegate = new efl_ui_l10n_text_set_delegate(l10n_text_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetL10nText") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_l10n_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_text_set_static_delegate) }); - } - - if (efl_ui_l10n_translation_update_static_delegate == null) - { - efl_ui_l10n_translation_update_static_delegate = new efl_ui_l10n_translation_update_delegate(translation_update); - } - - if (methods.FirstOrDefault(m => m.Name == "UpdateTranslation") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_l10n_translation_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_l10n_translation_update_static_delegate) }); - } - - descs.AddRange(base.GetEoOps(type)); - return descs; - } - /// Returns the Eo class for the native methods of this class. - /// The native class pointer. - public override IntPtr GetEflClass() - { - return Efl.Ui.ItemPartText.efl_ui_item_part_text_class_get(); - } - - #pragma warning disable CA1707, CS1591, SA1300, SA1600 - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); - - private static System.String text_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - System.String _ret_var = default(System.String); - try - { - _ret_var = ((ItemPartText)ws.Target).GetText(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_text_get_delegate efl_text_get_static_delegate; - - - private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - - - public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - - public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); - - private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((ItemPartText)ws.Target).SetText(text); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); - } - } - - private static efl_text_set_delegate efl_text_set_static_delegate; - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - private delegate System.String efl_text_markup_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - public delegate System.String efl_text_markup_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_text_markup_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_get"); - - private static System.String markup_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_markup_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - System.String _ret_var = default(System.String); - try - { - _ret_var = ((ItemPartText)ws.Target).GetMarkup(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_text_markup_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_text_markup_get_delegate efl_text_markup_get_static_delegate; - - - private delegate void efl_text_markup_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); - - - public delegate void efl_text_markup_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); - - public static Efl.Eo.FunctionWrapper efl_text_markup_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_set"); - - private static void markup_set(System.IntPtr obj, System.IntPtr pd, System.String markup) - { - Eina.Log.Debug("function efl_text_markup_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((ItemPartText)ws.Target).SetMarkup(markup); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_text_markup_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), markup); - } - } - - private static efl_text_markup_set_delegate efl_text_markup_set_static_delegate; - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - private delegate System.String efl_ui_l10n_text_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String domain); - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - public delegate System.String efl_ui_l10n_text_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String domain); - - public static Efl.Eo.FunctionWrapper efl_ui_l10n_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_l10n_text_get"); - - private static System.String l10n_text_get(System.IntPtr obj, System.IntPtr pd, out System.String domain) - { - Eina.Log.Debug("function efl_ui_l10n_text_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - System.String _out_domain = default(System.String); - System.String _ret_var = default(System.String); - try - { - _ret_var = ((ItemPartText)ws.Target).GetL10nText(out _out_domain); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - domain = _out_domain; - return _ret_var; - - } - else - { - return efl_ui_l10n_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out domain); - } - } - - private static efl_ui_l10n_text_get_delegate efl_ui_l10n_text_get_static_delegate; - - - private delegate void efl_ui_l10n_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); - - - public delegate void efl_ui_l10n_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String label, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); - - public static Efl.Eo.FunctionWrapper efl_ui_l10n_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_l10n_text_set"); - - private static void l10n_text_set(System.IntPtr obj, System.IntPtr pd, System.String label, System.String domain) - { - Eina.Log.Debug("function efl_ui_l10n_text_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((ItemPartText)ws.Target).SetL10nText(label, domain); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_l10n_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), label, domain); - } - } - - private static efl_ui_l10n_text_set_delegate efl_ui_l10n_text_set_static_delegate; - - - private delegate void efl_ui_l10n_translation_update_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate void efl_ui_l10n_translation_update_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_l10n_translation_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_l10n_translation_update"); - - private static void translation_update(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_l10n_translation_update was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((ItemPartText)ws.Target).UpdateTranslation(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_l10n_translation_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_l10n_translation_update_delegate efl_ui_l10n_translation_update_static_delegate; - - #pragma warning restore CA1707, CS1591, SA1300, SA1600 - -} -} -} - -} - diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_l10n.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_l10n.eo.cs old mode 100644 new mode 100755 index 975490202..32fc17394 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_l10n.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_l10n.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,6 +12,7 @@ namespace Ui { /// Interface for all translatable text APIs. /// This is intended for translation of human readable on-screen text strings but may also be used in text-to-speech situations. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.IL10nConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IL10n : @@ -35,12 +37,13 @@ void UpdateTranslation(); } /// Interface for all translatable text APIs. /// This is intended for translation of human readable on-screen text strings but may also be used in text-to-speech situations. -sealed public class IL10nConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IL10nConcrete : Efl.Eo.EoWrapper , IL10n { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -56,7 +59,8 @@ sealed public class IL10nConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IL10nConcrete(ConstructingHandle ch) : base(ch) { @@ -270,3 +274,10 @@ sealed public class IL10nConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiIL10nConcrete_ExtensionMethods { + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout.eo.cs old mode 100644 new mode 100755 index 01ff10c92..e6c9d5eb6 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,12 +12,14 @@ namespace Ui { /// Elementary layout class /// When loading layouts from a file, use the property to specify the group that the data belongs to, in case it's an EET file (including Edje files). +/// +/// By default, layouts do not apply the finger_size global configuration value when calculating their geometries. /// (Since EFL 1.22) [Efl.Ui.Layout.NativeMethods] [Efl.Eo.BindingEntity] public class Layout : Efl.Ui.LayoutBase, Efl.IFile { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -48,7 +51,8 @@ public class Layout : Efl.Ui.LayoutBase, Efl.IFile FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Layout(ConstructingHandle ch) : base(ch) { @@ -632,3 +636,22 @@ public class Layout : Efl.Ui.LayoutBase, Efl.IFile } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiLayout_ExtensionMethods { + public static Efl.BindableProperty Mmap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Layout { + return new Efl.BindableProperty("mmap", fac); + } + + public static Efl.BindableProperty File(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Layout { + return new Efl.BindableProperty("file", fac); + } + + public static Efl.BindableProperty Key(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Layout { + return new Efl.BindableProperty("key", fac); + } + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_base.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_base.eo.cs old mode 100644 new mode 100755 index 78ca31f7f..af10b8ee5 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_base.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_base.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -15,7 +16,7 @@ namespace Ui { [Efl.Eo.BindingEntity] public abstract class LayoutBase : Efl.Ui.Widget, Efl.IContainer, Efl.Layout.ICalc, Efl.Layout.IGroup, Efl.Layout.ISignal, Efl.Ui.IFactoryBind { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -47,7 +48,8 @@ public abstract class LayoutBase : Efl.Ui.Widget, Efl.IContainer, Efl.Layout.ICa FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected LayoutBase(ConstructingHandle ch) : base(ch) { @@ -115,7 +117,7 @@ public abstract class LayoutBase : Efl.Ui.Widget, Efl.IContainer, Efl.Layout.ICa } } } - ///Method to raise event ThemeChangedEvt. + /// Method to raise event ThemeChangedEvt. public void OnThemeChangedEvt(EventArgs e) { var key = "_EFL_UI_LAYOUT_EVENT_THEME_CHANGED"; @@ -130,6 +132,7 @@ public abstract class LayoutBase : Efl.Ui.Widget, Efl.IContainer, Efl.Layout.ICa } /// Sent after a new sub-object was added. /// (Since EFL 1.22) + /// public event EventHandler ContentAddedEvt { add @@ -169,7 +172,7 @@ public abstract class LayoutBase : Efl.Ui.Widget, Efl.IContainer, Efl.Layout.ICa } } } - ///Method to raise event ContentAddedEvt. + /// Method to raise event ContentAddedEvt. public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; @@ -185,6 +188,7 @@ public abstract class LayoutBase : Efl.Ui.Widget, Efl.IContainer, Efl.Layout.ICa } /// Sent after a sub-object was removed, before unref. /// (Since EFL 1.22) + /// public event EventHandler ContentRemovedEvt { add @@ -224,7 +228,7 @@ public abstract class LayoutBase : Efl.Ui.Widget, Efl.IContainer, Efl.Layout.ICa } } } - ///Method to raise event ContentRemovedEvt. + /// Method to raise event ContentRemovedEvt. public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; @@ -278,7 +282,7 @@ public abstract class LayoutBase : Efl.Ui.Widget, Efl.IContainer, Efl.Layout.ICa } } } - ///Method to raise event RecalcEvt. + /// Method to raise event RecalcEvt. public void OnRecalcEvt(EventArgs e) { var key = "_EFL_LAYOUT_EVENT_RECALC"; @@ -293,6 +297,7 @@ public abstract class LayoutBase : Efl.Ui.Widget, Efl.IContainer, Efl.Layout.ICa } /// A circular dependency between parts of the object was found. /// (Since EFL 1.22) + /// public event EventHandler CircularDependencyEvt { add @@ -332,7 +337,7 @@ public abstract class LayoutBase : Efl.Ui.Widget, Efl.IContainer, Efl.Layout.ICa } } } - ///Method to raise event CircularDependencyEvt. + /// Method to raise event CircularDependencyEvt. public void OnCircularDependencyEvt(Efl.Layout.ICalcCircularDependencyEvt_Args e) { var key = "_EFL_LAYOUT_EVENT_CIRCULAR_DEPENDENCY"; @@ -346,6 +351,28 @@ public abstract class LayoutBase : Efl.Ui.Widget, Efl.IContainer, Efl.Layout.ICa IntPtr info = e.arg.Handle; Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } + /// Set a multiplier for applying finger size to the layout. + /// By default, any widget which inherits from this class will apply the finger_size global config value with a 1:1 width:height ratio during sizing calculations. This will cause the widget to scale its size based on the finger_size config value. + /// + /// To disable finger_size in a layout's sizing calculations, set the multipliers for both axes to 0. + /// (Since EFL 1.23) + /// Multiplier for X axis. + /// Multiplier for Y axis. + virtual public void GetFingerSizeMultiplier(out uint multiplier_x, out uint multiplier_y) { + Efl.Ui.LayoutBase.NativeMethods.efl_ui_layout_finger_size_multiplier_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out multiplier_x, out multiplier_y); + Eina.Error.RaiseIfUnhandledException(); + } + /// Set a multiplier for applying finger size to the layout. + /// By default, any widget which inherits from this class will apply the finger_size global config value with a 1:1 width:height ratio during sizing calculations. This will cause the widget to scale its size based on the finger_size config value. + /// + /// To disable finger_size in a layout's sizing calculations, set the multipliers for both axes to 0. + /// (Since EFL 1.23) + /// Multiplier for X axis. + /// Multiplier for Y axis. + virtual public void SetFingerSizeMultiplier(uint multiplier_x, uint multiplier_y) { + Efl.Ui.LayoutBase.NativeMethods.efl_ui_layout_finger_size_multiplier_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),multiplier_x, multiplier_y); + Eina.Error.RaiseIfUnhandledException(); + } /// The theme of this widget, defines which edje group will be used. /// Based on the type of widget (klass), a given group and a style (usually "default"), the edje group name will be formed for this object. /// @@ -381,7 +408,9 @@ public abstract class LayoutBase : Efl.Ui.Widget, Efl.IContainer, Efl.Layout.ICa return _ret_var; } /// This flag tells if this object will automatically mirror the rotation changes of the window to this object. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// true to mirror orientation changes to the theme false otherwise virtual public bool GetAutomaticThemeRotation() { var _ret_var = Efl.Ui.LayoutBase.NativeMethods.efl_ui_layout_automatic_theme_rotation_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); @@ -389,14 +418,18 @@ public abstract class LayoutBase : Efl.Ui.Widget, Efl.IContainer, Efl.Layout.ICa return _ret_var; } /// This flag tells if this object will automatically mirror the rotation changes of the window to this object. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// true to mirror orientation changes to the theme false otherwise virtual public void SetAutomaticThemeRotation(bool automatic) { Efl.Ui.LayoutBase.NativeMethods.efl_ui_layout_automatic_theme_rotation_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),automatic); Eina.Error.RaiseIfUnhandledException(); } /// Apply a new rotation value to this object. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The new rotation angle, in degrees. virtual public void ThemeRotationApply(int orientation) { Efl.Ui.LayoutBase.NativeMethods.efl_ui_layout_theme_rotation_apply_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),orientation); @@ -567,7 +600,7 @@ public abstract class LayoutBase : Efl.Ui.Widget, Efl.IContainer, Efl.Layout.ICa /// /// Though there are those common uses for the two strings, one is free to use them however they like. /// - /// Signal callback registration is powerful, in the way that blobs may be used to match multiple signals at once. All the "*?[" set of fnmatch() operators can be used, both for emission and source. + /// Signal callback registration is powerful, in the way that blobs may be used to match multiple signals at once. All the "*?[" set of fnmatch() operators can be used, both for emission and source. /// /// Edje has internal signals it will emit, automatically, on various actions taking place on group parts. For example, the mouse cursor being moved, pressed, released, etc., over a given part's area, all generate individual signals. /// @@ -632,8 +665,45 @@ public abstract class LayoutBase : Efl.Ui.Widget, Efl.IContainer, Efl.Layout.ICa Efl.Ui.IFactoryBindConcrete.NativeMethods.efl_ui_factory_bind_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),key, factory); Eina.Error.RaiseIfUnhandledException(); } - /// This flag tells if this object will automatically mirror the rotation changes of the window to this object. + /// Set a multiplier for applying finger size to the layout. + /// By default, any widget which inherits from this class will apply the finger_size global config value with a 1:1 width:height ratio during sizing calculations. This will cause the widget to scale its size based on the finger_size config value. + /// + /// To disable finger_size in a layout's sizing calculations, set the multipliers for both axes to 0. + /// (Since EFL 1.23) + /// Multiplier for X axis. + public (uint, uint) FingerSizeMultiplier { + get { + uint _out_multiplier_x = default(uint); + uint _out_multiplier_y = default(uint); + GetFingerSizeMultiplier(out _out_multiplier_x,out _out_multiplier_y); + return (_out_multiplier_x,_out_multiplier_y); + } + set { SetFingerSizeMultiplier( value.Item1, value.Item2); } + } + /// The theme of this widget, defines which edje group will be used. + /// Based on the type of widget (klass), a given group and a style (usually "default"), the edje group name will be formed for this object. + /// + /// Widgets that inherit from this class will call this function automatically so it should not be called by applications, unless you are dealing directly with a object. + /// + /// Note that style will be the new style of this object, as retrieved by . As a consequence this function can only be called during construction of the object, before finalize. + /// + /// If this returns false the widget is very likely to become non-functioning. /// (Since EFL 1.22) + /// The class of the group, eg. "button". + public (System.String, System.String, System.String) Theme { + get { + System.String _out_klass = default(System.String); + System.String _out_group = default(System.String); + System.String _out_style = default(System.String); + GetTheme(out _out_klass,out _out_group,out _out_style); + return (_out_klass,_out_group,_out_style); + } + set { SetTheme( value.Item1, value.Item2, value.Item3); } + } + /// This flag tells if this object will automatically mirror the rotation changes of the window to this object. + /// (Since EFL 1.22) + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// true to mirror orientation changes to the theme false otherwise public bool AutomaticThemeRotation { get { return GetAutomaticThemeRotation(); } @@ -691,6 +761,26 @@ public abstract class LayoutBase : Efl.Ui.Widget, Efl.IContainer, Efl.Layout.ICa var descs = new System.Collections.Generic.List(); var methods = Efl.Eo.Globals.GetUserMethods(type); + if (efl_ui_layout_finger_size_multiplier_get_static_delegate == null) + { + efl_ui_layout_finger_size_multiplier_get_static_delegate = new efl_ui_layout_finger_size_multiplier_get_delegate(finger_size_multiplier_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFingerSizeMultiplier") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_layout_finger_size_multiplier_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_finger_size_multiplier_get_static_delegate) }); + } + + if (efl_ui_layout_finger_size_multiplier_set_static_delegate == null) + { + efl_ui_layout_finger_size_multiplier_set_static_delegate = new efl_ui_layout_finger_size_multiplier_set_delegate(finger_size_multiplier_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFingerSizeMultiplier") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_layout_finger_size_multiplier_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_finger_size_multiplier_set_static_delegate) }); + } + if (efl_ui_layout_theme_get_static_delegate == null) { efl_ui_layout_theme_get_static_delegate = new efl_ui_layout_theme_get_delegate(theme_get); @@ -944,6 +1034,76 @@ public abstract class LayoutBase : Efl.Ui.Widget, Efl.IContainer, Efl.Layout.ICa #pragma warning disable CA1707, CS1591, SA1300, SA1600 + private delegate void efl_ui_layout_finger_size_multiplier_get_delegate(System.IntPtr obj, System.IntPtr pd, out uint multiplier_x, out uint multiplier_y); + + + public delegate void efl_ui_layout_finger_size_multiplier_get_api_delegate(System.IntPtr obj, out uint multiplier_x, out uint multiplier_y); + + public static Efl.Eo.FunctionWrapper efl_ui_layout_finger_size_multiplier_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_layout_finger_size_multiplier_get"); + + private static void finger_size_multiplier_get(System.IntPtr obj, System.IntPtr pd, out uint multiplier_x, out uint multiplier_y) + { + Eina.Log.Debug("function efl_ui_layout_finger_size_multiplier_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + multiplier_x = default(uint); multiplier_y = default(uint); + try + { + ((LayoutBase)ws.Target).GetFingerSizeMultiplier(out multiplier_x, out multiplier_y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_layout_finger_size_multiplier_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out multiplier_x, out multiplier_y); + } + } + + private static efl_ui_layout_finger_size_multiplier_get_delegate efl_ui_layout_finger_size_multiplier_get_static_delegate; + + + private delegate void efl_ui_layout_finger_size_multiplier_set_delegate(System.IntPtr obj, System.IntPtr pd, uint multiplier_x, uint multiplier_y); + + + public delegate void efl_ui_layout_finger_size_multiplier_set_api_delegate(System.IntPtr obj, uint multiplier_x, uint multiplier_y); + + public static Efl.Eo.FunctionWrapper efl_ui_layout_finger_size_multiplier_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_layout_finger_size_multiplier_set"); + + private static void finger_size_multiplier_set(System.IntPtr obj, System.IntPtr pd, uint multiplier_x, uint multiplier_y) + { + Eina.Log.Debug("function efl_ui_layout_finger_size_multiplier_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((LayoutBase)ws.Target).SetFingerSizeMultiplier(multiplier_x, multiplier_y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_layout_finger_size_multiplier_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), multiplier_x, multiplier_y); + } + } + + private static efl_ui_layout_finger_size_multiplier_set_delegate efl_ui_layout_finger_size_multiplier_set_static_delegate; + + private delegate void efl_ui_layout_theme_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String klass, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String group, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String style); @@ -1815,3 +1975,23 @@ public abstract class LayoutBase : Efl.Ui.Widget, Efl.IContainer, Efl.Layout.ICa } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiLayoutBase_ExtensionMethods { + + + public static Efl.BindableProperty AutomaticThemeRotation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.LayoutBase { + return new Efl.BindableProperty("automatic_theme_rotation", fac); + } + + public static Efl.BindableProperty CalcAutoUpdateHints(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.LayoutBase { + return new Efl.BindableProperty("calc_auto_update_hints", fac); + } + + + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_factory.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_factory.eo.cs old mode 100644 new mode 100755 index 775684110..7b5dcc9eb --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_factory.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_factory.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Efl Ui Layout Factory class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.LayoutFactory.NativeMethods] [Efl.Eo.BindingEntity] public class LayoutFactory : Efl.Ui.CachingFactory { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +48,8 @@ public class LayoutFactory : Efl.Ui.CachingFactory FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected LayoutFactory(ConstructingHandle ch) : base(ch) { @@ -156,3 +159,9 @@ public class LayoutFactory : Efl.Ui.CachingFactory } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiLayoutFactory_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_orientable.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_orientable.eo.cs old mode 100644 new mode 100755 index 58c1babee..a198d842f --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_orientable.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_orientable.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -34,18 +35,18 @@ void SetOrientation(Efl.Ui.LayoutOrientation dir); /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. /// Direction of the widget. Efl.Ui.LayoutOrientation Orientation { - get ; - set ; + get; + set; } } /// Interface for UI objects which can have more than one orientation. /// For example, sliders, which can be horizontal or vertical, or container boxes, which can arrange their elements in a horizontal or vertical fashion. -sealed public class ILayoutOrientableConcrete : +sealed public class ILayoutOrientableConcrete : Efl.Eo.EoWrapper , ILayoutOrientable { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -61,7 +62,8 @@ sealed public class ILayoutOrientableConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ILayoutOrientableConcrete(ConstructingHandle ch) : base(ch) { @@ -230,6 +232,16 @@ sealed public class ILayoutOrientableConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiILayoutOrientableConcrete_ExtensionMethods { + public static Efl.BindableProperty Orientation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ILayoutOrientable { + return new Efl.BindableProperty("orientation", fac); + } + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Ui { diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_orientable_readonly.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_orientable_readonly.eo.cs old mode 100644 new mode 100755 index e0e182aff..376bb3320 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_orientable_readonly.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_orientable_readonly.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,6 +10,7 @@ namespace Efl { namespace Ui { +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.ILayoutOrientableReadonlyConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface ILayoutOrientableReadonly : @@ -16,12 +18,13 @@ public interface ILayoutOrientableReadonly : Efl.Eo.IWrapper, IDisposable { } -sealed public class ILayoutOrientableReadonlyConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class ILayoutOrientableReadonlyConcrete : Efl.Eo.EoWrapper , ILayoutOrientableReadonly , Efl.Ui.ILayoutOrientable { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -37,7 +40,8 @@ sealed public class ILayoutOrientableReadonlyConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ILayoutOrientableReadonlyConcrete(ConstructingHandle ch) : base(ch) { @@ -206,3 +210,13 @@ sealed public class ILayoutOrientableReadonlyConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiILayoutOrientableReadonlyConcrete_ExtensionMethods { + public static Efl.BindableProperty Orientation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ILayoutOrientableReadonly { + return new Efl.BindableProperty("orientation", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part.eo.cs old mode 100644 new mode 100755 index 08cac8bc2..27cac51b6 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Elementary layout internal part class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.LayoutPart.NativeMethods] [Efl.Eo.BindingEntity] public class LayoutPart : Efl.Ui.WidgetPart { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class LayoutPart : Efl.Ui.WidgetPart FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected LayoutPart(ConstructingHandle ch) : base(ch) { @@ -94,3 +97,9 @@ public class LayoutPart : Efl.Ui.WidgetPart } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiLayoutPart_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_bg.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_bg.eo.cs old mode 100644 new mode 100755 index 727d18a29..1dadfe8ac --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_bg.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_bg.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Elementary layout internal part background class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.LayoutPartBg.NativeMethods] [Efl.Eo.BindingEntity] public class LayoutPartBg : Efl.Ui.WidgetPartBg { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class LayoutPartBg : Efl.Ui.WidgetPartBg FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected LayoutPartBg(ConstructingHandle ch) : base(ch) { @@ -94,3 +97,9 @@ public class LayoutPartBg : Efl.Ui.WidgetPartBg } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiLayoutPartBg_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_box.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_box.eo.cs old mode 100644 new mode 100755 index 72e3200a5..d50b86911 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_box.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_box.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Ui { /// Represents a Box created as part of a layout. /// Cannot be deleted. This is only a representation of an internal object of an EFL layout. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.LayoutPartBox.NativeMethods] [Efl.Eo.BindingEntity] public class LayoutPartBox : Efl.Ui.LayoutPart, Efl.IContainer, Efl.IPack, Efl.IPackLinear, Efl.Ui.ILayoutOrientable, Efl.Ui.ILayoutOrientableReadonly { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -41,7 +43,8 @@ public class LayoutPartBox : Efl.Ui.LayoutPart, Efl.IContainer, Efl.IPack, Efl.I FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected LayoutPartBox(ConstructingHandle ch) : base(ch) { @@ -64,6 +67,7 @@ public class LayoutPartBox : Efl.Ui.LayoutPart, Efl.IContainer, Efl.IPack, Efl.I /// Sent after a new sub-object was added. /// (Since EFL 1.22) + /// public event EventHandler ContentAddedEvt { add @@ -103,7 +107,7 @@ public class LayoutPartBox : Efl.Ui.LayoutPart, Efl.IContainer, Efl.IPack, Efl.I } } } - ///Method to raise event ContentAddedEvt. + /// Method to raise event ContentAddedEvt. public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; @@ -119,6 +123,7 @@ public class LayoutPartBox : Efl.Ui.LayoutPart, Efl.IContainer, Efl.IPack, Efl.I } /// Sent after a sub-object was removed, before unref. /// (Since EFL 1.22) + /// public event EventHandler ContentRemovedEvt { add @@ -158,7 +163,7 @@ public class LayoutPartBox : Efl.Ui.LayoutPart, Efl.IContainer, Efl.IPack, Efl.I } } } - ///Method to raise event ContentRemovedEvt. + /// Method to raise event ContentRemovedEvt. public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; @@ -334,6 +339,11 @@ public class LayoutPartBox : Efl.Ui.LayoutPart, Efl.IContainer, Efl.IPack, Efl.I Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),dir); Eina.Error.RaiseIfUnhandledException(); } + /// Real part property + /// Real part object + protected (Efl.Object, System.String) RealPart { + set { SetRealPart( value.Item1, value.Item2); } + } /// Control the direction of a given widget. /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. /// @@ -1159,3 +1169,17 @@ public class LayoutPartBox : Efl.Ui.LayoutPart, Efl.IContainer, Efl.IPack, Efl.I } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiLayoutPartBox_ExtensionMethods { + + public static Efl.BindableProperty Orientation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.LayoutPartBox { + return new Efl.BindableProperty("orientation", fac); + } +public static Efl.BindableProperty Orientation(this Efl.BindablePart part, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.LayoutPartBox { + return new Efl.BindableProperty(part.PartName, "orientation", part.Binder); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_content.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_content.eo.cs old mode 100644 new mode 100755 index 799678fd9..66ad3daa5 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_content.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_content.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Elementary layout internal part class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.LayoutPartContent.NativeMethods] [Efl.Eo.BindingEntity] public class LayoutPartContent : Efl.Ui.LayoutPart, Efl.IContent { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class LayoutPartContent : Efl.Ui.LayoutPart, Efl.IContent FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected LayoutPartContent(ConstructingHandle ch) : base(ch) { @@ -63,6 +66,7 @@ public class LayoutPartContent : Efl.Ui.LayoutPart, Efl.IContent /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) + /// public event EventHandler ContentChangedEvt { add @@ -102,7 +106,7 @@ public class LayoutPartContent : Efl.Ui.LayoutPart, Efl.IContent } } } - ///Method to raise event ContentChangedEvt. + /// Method to raise event ContentChangedEvt. public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; @@ -325,3 +329,13 @@ public class LayoutPartContent : Efl.Ui.LayoutPart, Efl.IContent } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiLayoutPartContent_ExtensionMethods { + public static Efl.BindableProperty Content(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.LayoutPartContent { + return new Efl.BindableProperty("content", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_legacy.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_legacy.eo.cs old mode 100644 new mode 100755 index 21ad0f6c5..1171b3e98 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_legacy.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_legacy.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Elementary layout internal part class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.LayoutPartLegacy.NativeMethods] [Efl.Eo.BindingEntity] public class LayoutPartLegacy : Efl.Ui.LayoutPart, Efl.IContent, Efl.IText, Efl.ITextMarkup, Efl.Ui.IL10n { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class LayoutPartLegacy : Efl.Ui.LayoutPart, Efl.IContent, Efl.IText, Efl. FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected LayoutPartLegacy(ConstructingHandle ch) : base(ch) { @@ -63,6 +66,7 @@ public class LayoutPartLegacy : Efl.Ui.LayoutPart, Efl.IContent, Efl.IText, Efl. /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) + /// public event EventHandler ContentChangedEvt { add @@ -102,7 +106,7 @@ public class LayoutPartLegacy : Efl.Ui.LayoutPart, Efl.IContent, Efl.IText, Efl. } } } - ///Method to raise event ContentChangedEvt. + /// Method to raise event ContentChangedEvt. public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; @@ -709,3 +713,19 @@ public class LayoutPartLegacy : Efl.Ui.LayoutPart, Efl.IContent, Efl.IText, Efl. } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiLayoutPartLegacy_ExtensionMethods { + public static Efl.BindableProperty Content(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.LayoutPartLegacy { + return new Efl.BindableProperty("content", fac); + } + + + public static Efl.BindableProperty Markup(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.LayoutPartLegacy { + return new Efl.BindableProperty("markup", fac); + } + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_table.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_table.eo.cs old mode 100644 new mode 100755 index 40981f25b..358d709f9 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_table.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_table.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Ui { /// Represents a Table created as part of a layout. /// Cannot be deleted. This is only a representation of an internal object of an EFL layout. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.LayoutPartTable.NativeMethods] [Efl.Eo.BindingEntity] public class LayoutPartTable : Efl.Ui.LayoutPart, Efl.IContainer, Efl.IPack, Efl.IPackTable { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -41,7 +43,8 @@ public class LayoutPartTable : Efl.Ui.LayoutPart, Efl.IContainer, Efl.IPack, Efl FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected LayoutPartTable(ConstructingHandle ch) : base(ch) { @@ -64,6 +67,7 @@ public class LayoutPartTable : Efl.Ui.LayoutPart, Efl.IContainer, Efl.IPack, Efl /// Sent after a new sub-object was added. /// (Since EFL 1.22) + /// public event EventHandler ContentAddedEvt { add @@ -103,7 +107,7 @@ public class LayoutPartTable : Efl.Ui.LayoutPart, Efl.IContainer, Efl.IPack, Efl } } } - ///Method to raise event ContentAddedEvt. + /// Method to raise event ContentAddedEvt. public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; @@ -119,6 +123,7 @@ public class LayoutPartTable : Efl.Ui.LayoutPart, Efl.IContainer, Efl.IPack, Efl } /// Sent after a sub-object was removed, before unref. /// (Since EFL 1.22) + /// public event EventHandler ContentRemovedEvt { add @@ -158,7 +163,7 @@ public class LayoutPartTable : Efl.Ui.LayoutPart, Efl.IContainer, Efl.IPack, Efl } } } - ///Method to raise event ContentRemovedEvt. + /// Method to raise event ContentRemovedEvt. public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; @@ -229,18 +234,42 @@ public class LayoutPartTable : Efl.Ui.LayoutPart, Efl.IContainer, Efl.IPack, Efl Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Position and span of the subobj in this container, may be modified to move the subobj + /// column of the subobj in this container. + /// Child object + /// Column number + /// Column span + /// Returns false if item is not a child + virtual public bool GetTableCellColumn(Efl.Gfx.IEntity subobj, out int col, out int colspan) { + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_cell_column_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, out col, out colspan); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// column of the subobj in this container. /// Child object /// Column number - /// Row number /// Column span + virtual public void SetTableCellColumn(Efl.Gfx.IEntity subobj, int col, int colspan) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_cell_column_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, col, colspan); + Eina.Error.RaiseIfUnhandledException(); + } + /// row of the subobj in this container. + /// Child object + /// Row number /// Row span /// Returns false if item is not a child - virtual public bool GetTablePosition(Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan) { - var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_position_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, out col, out row, out colspan, out rowspan); + virtual public bool GetTableCellRow(Efl.Gfx.IEntity subobj, out int row, out int rowspan) { + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_cell_row_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, out row, out rowspan); Eina.Error.RaiseIfUnhandledException(); - return _ret_var; + return _ret_var; } + /// row of the subobj in this container. + /// Child object + /// Row number + /// Row span + virtual public void SetTableCellRow(Efl.Gfx.IEntity subobj, int row, int rowspan) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_cell_row_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, row, rowspan); + Eina.Error.RaiseIfUnhandledException(); + } /// Combines and /// Number of columns /// Number of rows @@ -313,6 +342,22 @@ public class LayoutPartTable : Efl.Ui.LayoutPart, Efl.IContainer, Efl.IPack, Efl Eina.Error.RaiseIfUnhandledException(); return _ret_var; } + /// Real part property + /// Real part object + protected (Efl.Object, System.String) RealPart { + set { SetRealPart( value.Item1, value.Item2); } + } + /// Combines and + /// Number of columns + public (int, int) TableSize { + get { + int _out_cols = default(int); + int _out_rows = default(int); + GetTableSize(out _out_cols,out _out_rows); + return (_out_cols,_out_rows); + } + set { SetTableSize( value.Item1, value.Item2); } + } /// Specifies the amount of columns the table will have when the fill direction is horizontal. If it is vertical, the amount of columns depends on the amount of cells added and . /// Amount of columns. public int TableColumns { @@ -411,14 +456,44 @@ public class LayoutPartTable : Efl.Ui.LayoutPart, Efl.IContainer, Efl.IPack, Efl descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate) }); } - if (efl_pack_table_position_get_static_delegate == null) + if (efl_pack_table_cell_column_get_static_delegate == null) + { + efl_pack_table_cell_column_get_static_delegate = new efl_pack_table_cell_column_get_delegate(table_cell_column_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetTableCellColumn") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_cell_column_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_cell_column_get_static_delegate) }); + } + + if (efl_pack_table_cell_column_set_static_delegate == null) + { + efl_pack_table_cell_column_set_static_delegate = new efl_pack_table_cell_column_set_delegate(table_cell_column_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetTableCellColumn") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_cell_column_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_cell_column_set_static_delegate) }); + } + + if (efl_pack_table_cell_row_get_static_delegate == null) + { + efl_pack_table_cell_row_get_static_delegate = new efl_pack_table_cell_row_get_delegate(table_cell_row_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetTableCellRow") != null) { - efl_pack_table_position_get_static_delegate = new efl_pack_table_position_get_delegate(table_position_get); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_cell_row_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_cell_row_get_static_delegate) }); } - if (methods.FirstOrDefault(m => m.Name == "GetTablePosition") != null) + if (efl_pack_table_cell_row_set_static_delegate == null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_position_get_static_delegate) }); + efl_pack_table_cell_row_set_static_delegate = new efl_pack_table_cell_row_set_delegate(table_cell_row_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetTableCellRow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_cell_row_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_cell_row_set_static_delegate) }); } if (efl_pack_table_size_get_static_delegate == null) @@ -775,23 +850,23 @@ public class LayoutPartTable : Efl.Ui.LayoutPart, Efl.IContainer, Efl.IPack, Efl private static efl_pack_delegate efl_pack_static_delegate; [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_pack_table_position_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); + private delegate bool efl_pack_table_cell_column_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int colspan); [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_pack_table_position_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); + public delegate bool efl_pack_table_cell_column_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int colspan); - public static Efl.Eo.FunctionWrapper efl_pack_table_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_position_get"); + public static Efl.Eo.FunctionWrapper efl_pack_table_cell_column_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_cell_column_get"); - private static bool table_position_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan) + private static bool table_cell_column_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, out int col, out int colspan) { - Eina.Log.Debug("function efl_pack_table_position_get was called"); + Eina.Log.Debug("function efl_pack_table_cell_column_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - col = default(int); row = default(int); colspan = default(int); rowspan = default(int); bool _ret_var = default(bool); + col = default(int); colspan = default(int); bool _ret_var = default(bool); try { - _ret_var = ((LayoutPartTable)ws.Target).GetTablePosition(subobj, out col, out row, out colspan, out rowspan); + _ret_var = ((LayoutPartTable)ws.Target).GetTableCellColumn(subobj, out col, out colspan); } catch (Exception e) { @@ -799,16 +874,122 @@ public class LayoutPartTable : Efl.Ui.LayoutPart, Efl.IContainer, Efl.IPack, Efl Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; + return _ret_var; } else { - return efl_pack_table_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, out col, out row, out colspan, out rowspan); + return efl_pack_table_cell_column_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, out col, out colspan); } } - private static efl_pack_table_position_get_delegate efl_pack_table_position_get_static_delegate; + private static efl_pack_table_cell_column_get_delegate efl_pack_table_cell_column_get_static_delegate; + + + private delegate void efl_pack_table_cell_column_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int col, int colspan); + + + public delegate void efl_pack_table_cell_column_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int col, int colspan); + + public static Efl.Eo.FunctionWrapper efl_pack_table_cell_column_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_cell_column_set"); + + private static void table_cell_column_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int col, int colspan) + { + Eina.Log.Debug("function efl_pack_table_cell_column_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((LayoutPartTable)ws.Target).SetTableCellColumn(subobj, col, colspan); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_cell_column_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, col, colspan); + } + } + + private static efl_pack_table_cell_column_set_delegate efl_pack_table_cell_column_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_table_cell_row_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int row, out int rowspan); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_table_cell_row_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int row, out int rowspan); + + public static Efl.Eo.FunctionWrapper efl_pack_table_cell_row_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_cell_row_get"); + + private static bool table_cell_row_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, out int row, out int rowspan) + { + Eina.Log.Debug("function efl_pack_table_cell_row_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + row = default(int); rowspan = default(int); bool _ret_var = default(bool); + try + { + _ret_var = ((LayoutPartTable)ws.Target).GetTableCellRow(subobj, out row, out rowspan); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_table_cell_row_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, out row, out rowspan); + } + } + + private static efl_pack_table_cell_row_get_delegate efl_pack_table_cell_row_get_static_delegate; + + + private delegate void efl_pack_table_cell_row_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int row, int rowspan); + + + public delegate void efl_pack_table_cell_row_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int row, int rowspan); + + public static Efl.Eo.FunctionWrapper efl_pack_table_cell_row_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_cell_row_set"); + + private static void table_cell_row_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int row, int rowspan) + { + Eina.Log.Debug("function efl_pack_table_cell_row_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((LayoutPartTable)ws.Target).SetTableCellRow(subobj, row, rowspan); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_cell_row_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, row, rowspan); + } + } + + private static efl_pack_table_cell_row_set_delegate efl_pack_table_cell_row_set_static_delegate; private delegate void efl_pack_table_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int cols, out int rows); @@ -1138,3 +1319,27 @@ public class LayoutPartTable : Efl.Ui.LayoutPart, Efl.IContainer, Efl.IPack, Efl } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiLayoutPartTable_ExtensionMethods { + + + + + public static Efl.BindableProperty TableColumns(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.LayoutPartTable { + return new Efl.BindableProperty("table_columns", fac); + } +public static Efl.BindableProperty TableColumns(this Efl.BindablePart part, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.LayoutPartTable { + return new Efl.BindableProperty(part.PartName, "table_columns", part.Binder); + } + + public static Efl.BindableProperty TableRows(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.LayoutPartTable { + return new Efl.BindableProperty("table_rows", fac); + } +public static Efl.BindableProperty TableRows(this Efl.BindablePart part, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.LayoutPartTable { + return new Efl.BindableProperty(part.PartName, "table_rows", part.Binder); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_text.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_text.eo.cs old mode 100644 new mode 100755 index 097c7e3fd..7cc145ffa --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_text.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_layout_part_text.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Elementary layout internal part class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.LayoutPartText.NativeMethods] [Efl.Eo.BindingEntity] public class LayoutPartText : Efl.Ui.LayoutPart, Efl.IText, Efl.ITextMarkup, Efl.Ui.IL10n { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class LayoutPartText : Efl.Ui.LayoutPart, Efl.IText, Efl.ITextMarkup, Efl FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected LayoutPartText(ConstructingHandle ch) : base(ch) { @@ -481,3 +484,18 @@ public class LayoutPartText : Efl.Ui.LayoutPart, Efl.IText, Efl.ITextMarkup, Efl } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiLayoutPartText_ExtensionMethods { + + public static Efl.BindableProperty Markup(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.LayoutPartText { + return new Efl.BindableProperty("markup", fac); + } +public static Efl.BindableProperty Markup(this Efl.BindablePart part, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.LayoutPartText { + return new Efl.BindableProperty(part.PartName, "markup", part.Binder); + } + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_legacy.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_legacy.eo.cs old mode 100644 new mode 100755 index d59360a48..e56cadf2b --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_legacy.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_legacy.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,6 +12,7 @@ namespace Ui { /// The bg (background) widget is used for setting (solid) background decorations /// in a window (unless it has transparency enabled) or on any container object. It works just like an image but has some properties useful for backgrounds, such as setting it to tiled, centered, scaled or stretched. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.ILegacyConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface ILegacy : @@ -19,12 +21,13 @@ public interface ILegacy : } /// The bg (background) widget is used for setting (solid) background decorations /// in a window (unless it has transparency enabled) or on any container object. It works just like an image but has some properties useful for backgrounds, such as setting it to tiled, centered, scaled or stretched. -sealed public class ILegacyConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class ILegacyConcrete : Efl.Eo.EoWrapper , ILegacy { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +43,8 @@ sealed public class ILegacyConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ILegacyConcrete(ConstructingHandle ch) : base(ch) { @@ -87,3 +91,9 @@ sealed public class ILegacyConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiILegacyConcrete_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_list.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_list.eo.cs old mode 100644 new mode 100755 index c2b3271b5..c9b3b1650 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_list.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_list.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Simple list widget with Pack interface. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.List.NativeMethods] [Efl.Eo.BindingEntity] -public class List : Efl.Ui.LayoutBase, Efl.IPack, Efl.IPackLayout, Efl.IPackLinear, Efl.Gfx.IArrangement, Efl.Ui.IMultiSelectable, Efl.Ui.IScrollable, Efl.Ui.IScrollableInteractive, Efl.Ui.IScrollbar, Efl.Ui.ISelectable +public class List : Efl.Ui.Collection { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +48,8 @@ public class List : Efl.Ui.LayoutBase, Efl.IPack, Efl.IPackLayout, Efl.IPackLine FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected List(ConstructingHandle ch) : base(ch) { @@ -67,4429 +70,30 @@ public class List : Efl.Ui.LayoutBase, Efl.IPack, Efl.IPackLayout, Efl.IPackLine { } - /// Sent after the layout was updated. - public event EventHandler LayoutUpdatedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event LayoutUpdatedEvt. - public void OnLayoutUpdatedEvt(EventArgs e) - { - var key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scroll operation starts - public event EventHandler ScrollStartEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_START"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_START"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollStartEvt. - public void OnScrollStartEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_START"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scrolling - public event EventHandler ScrollEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollEvt. - public void OnScrollEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scroll operation stops - public event EventHandler ScrollStopEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_STOP"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_STOP"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollStopEvt. - public void OnScrollStopEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_STOP"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scrolling upwards - public event EventHandler ScrollUpEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_UP"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_UP"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollUpEvt. - public void OnScrollUpEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_UP"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scrolling downwards - public event EventHandler ScrollDownEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_DOWN"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_DOWN"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollDownEvt. - public void OnScrollDownEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_DOWN"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scrolling left - public event EventHandler ScrollLeftEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_LEFT"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_LEFT"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollLeftEvt. - public void OnScrollLeftEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_LEFT"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scrolling right - public event EventHandler ScrollRightEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollRightEvt. - public void OnScrollRightEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when hitting the top edge - public event EventHandler EdgeUpEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_EDGE_UP"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_EDGE_UP"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event EdgeUpEvt. - public void OnEdgeUpEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_EDGE_UP"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when hitting the bottom edge - public event EventHandler EdgeDownEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_EDGE_DOWN"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_EDGE_DOWN"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event EdgeDownEvt. - public void OnEdgeDownEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_EDGE_DOWN"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when hitting the left edge - public event EventHandler EdgeLeftEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_EDGE_LEFT"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_EDGE_LEFT"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event EdgeLeftEvt. - public void OnEdgeLeftEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_EDGE_LEFT"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when hitting the right edge - public event EventHandler EdgeRightEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_EDGE_RIGHT"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_EDGE_RIGHT"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event EdgeRightEvt. - public void OnEdgeRightEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_EDGE_RIGHT"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scroll animation starts - public event EventHandler ScrollAnimStartEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollAnimStartEvt. - public void OnScrollAnimStartEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scroll animation stopps - public event EventHandler ScrollAnimStopEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollAnimStopEvt. - public void OnScrollAnimStopEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scroll drag starts - public event EventHandler ScrollDragStartEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollDragStartEvt. - public void OnScrollDragStartEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scroll drag stops - public event EventHandler ScrollDragStopEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollDragStopEvt. - public void OnScrollDragStopEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when bar is pressed. - public event EventHandler BarPressEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.IScrollbarBarPressEvt_Args args = new Efl.Ui.IScrollbarBarPressEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event BarPressEvt. - public void OnBarPressEvt(Efl.Ui.IScrollbarBarPressEvt_Args e) - { - var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); - try - { - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - finally - { - Marshal.FreeHGlobal(info); - } - } - /// Called when bar is unpressed. - public event EventHandler BarUnpressEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.IScrollbarBarUnpressEvt_Args args = new Efl.Ui.IScrollbarBarUnpressEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event BarUnpressEvt. - public void OnBarUnpressEvt(Efl.Ui.IScrollbarBarUnpressEvt_Args e) - { - var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); - try - { - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - finally - { - Marshal.FreeHGlobal(info); - } - } - /// Called when bar is dragged. - public event EventHandler BarDragEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.IScrollbarBarDragEvt_Args args = new Efl.Ui.IScrollbarBarDragEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event BarDragEvt. - public void OnBarDragEvt(Efl.Ui.IScrollbarBarDragEvt_Args e) - { - var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); - try - { - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - finally - { - Marshal.FreeHGlobal(info); - } - } - /// Called when bar size is changed. - public event EventHandler BarSizeChangedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event BarSizeChangedEvt. - public void OnBarSizeChangedEvt(EventArgs e) - { - var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when bar position is changed. - public event EventHandler BarPosChangedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event BarPosChangedEvt. - public void OnBarPosChangedEvt(EventArgs e) - { - var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Callend when bar is shown. - public event EventHandler BarShowEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.IScrollbarBarShowEvt_Args args = new Efl.Ui.IScrollbarBarShowEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event BarShowEvt. - public void OnBarShowEvt(Efl.Ui.IScrollbarBarShowEvt_Args e) - { - var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); - try - { - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - finally - { - Marshal.FreeHGlobal(info); - } - } - /// Called when bar is hidden. - public event EventHandler BarHideEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.IScrollbarBarHideEvt_Args args = new Efl.Ui.IScrollbarBarHideEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event BarHideEvt. - public void OnBarHideEvt(Efl.Ui.IScrollbarBarHideEvt_Args e) - { - var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); - try - { - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - finally - { - Marshal.FreeHGlobal(info); - } - } - /// Called when selected - public event EventHandler ItemSelectedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.ISelectableItemSelectedEvt_Args args = new Efl.Ui.ISelectableItemSelectedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_ITEM_SELECTED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_ITEM_SELECTED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ItemSelectedEvt. - public void OnItemSelectedEvt(Efl.Ui.ISelectableItemSelectedEvt_Args e) - { - var key = "_EFL_UI_EVENT_ITEM_SELECTED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = e.arg.NativeHandle; - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - /// Called when no longer selected - public event EventHandler ItemUnselectedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.ISelectableItemUnselectedEvt_Args args = new Efl.Ui.ISelectableItemUnselectedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ItemUnselectedEvt. - public void OnItemUnselectedEvt(Efl.Ui.ISelectableItemUnselectedEvt_Args e) - { - var key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = e.arg.NativeHandle; - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - /// Called when selection is pasted - public event EventHandler SelectionPasteEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SELECTION_PASTE"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SELECTION_PASTE"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event SelectionPasteEvt. - public void OnSelectionPasteEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SELECTION_PASTE"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when selection is copied - public event EventHandler SelectionCopyEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SELECTION_COPY"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SELECTION_COPY"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event SelectionCopyEvt. - public void OnSelectionCopyEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SELECTION_COPY"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when selection is cut - public event EventHandler SelectionCutEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SELECTION_CUT"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SELECTION_CUT"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event SelectionCutEvt. - public void OnSelectionCutEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SELECTION_CUT"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called at selection start - public event EventHandler SelectionStartEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SELECTION_START"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SELECTION_START"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event SelectionStartEvt. - public void OnSelectionStartEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SELECTION_START"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when selection is changed - public event EventHandler SelectionChangedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SELECTION_CHANGED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SELECTION_CHANGED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event SelectionChangedEvt. - public void OnSelectionChangedEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SELECTION_CHANGED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when selection is cleared - public event EventHandler SelectionClearedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SELECTION_CLEARED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SELECTION_CLEARED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event SelectionClearedEvt. - public void OnSelectionClearedEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SELECTION_CLEARED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Property data of last selected item. - /// last selected item of list. - virtual public Efl.Ui.ListItem GetLastSelectedItem() { - var _ret_var = Efl.Ui.List.NativeMethods.efl_ui_list_last_selected_item_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// scroll move the item to show in the viewport. - /// Target item. - /// Boolean value for animation of scroll move. - virtual public void ItemScroll(Efl.Ui.ListItem item, bool animation) { - Efl.Ui.List.NativeMethods.efl_ui_list_item_scroll_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),item, animation); - Eina.Error.RaiseIfUnhandledException(); - } - /// scroll move the item to show at the align position of the viewport. - /// Target item. - /// align value in Viewport. - /// Boolean value for animation of scroll move. - virtual public void ItemScrollAlign(Efl.Ui.ListItem item, double align, bool animation) { - Efl.Ui.List.NativeMethods.efl_ui_list_item_scroll_align_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),item, align, animation); - Eina.Error.RaiseIfUnhandledException(); - } - /// Get the selected items iterator. The iterator sequence will be decided by selection. - /// Iterator covered by selected items list. user have to free the iterator after used. - virtual public Eina.Iterator GetSelectedItems() { - var _ret_var = Efl.Ui.List.NativeMethods.efl_ui_list_selected_items_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return new Eina.Iterator(_ret_var, true); - } - /// Removes all packed sub-objects and unreferences them. - /// true on success, false otherwise. - virtual public bool ClearPack() { - var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_clear_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Removes all packed sub-objects without unreferencing them. - /// Use with caution. - /// true on success, false otherwise. - virtual public bool UnpackAll() { - var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_all_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Removes an existing sub-object from the container without deleting it. - /// The sub-object to unpack. - /// false if subobj wasn't in the container or couldn't be removed. - virtual public bool Unpack(Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_unpack_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Adds a sub-object to this container. - /// Depending on the container this will either fill in the default spot, replacing any already existing element or append to the end of the container if there is no default part. - /// - /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// The object to pack. - /// false if subobj could not be packed. - virtual public bool Pack(Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackConcrete.NativeMethods.efl_pack_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Requests EFL to call the method on this object. - /// This may be called asynchronously. - virtual public void LayoutRequest() { - Efl.IPackLayoutConcrete.NativeMethods.efl_pack_layout_request_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - } - /// Implementation of this container's layout algorithm. - /// EFL will call this function whenever the contents of this container need to be re-laid out on the canvas. - /// - /// This can be overriden to implement custom layout behaviors. - virtual public void UpdateLayout() { - Efl.IPackLayoutConcrete.NativeMethods.efl_pack_layout_update_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - } - /// Prepend an object at the beginning of this container. - /// This is the same as (subobj, 0). - /// - /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// Object to pack at the beginning. - /// false if subobj could not be packed. - virtual public bool PackBegin(Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_begin_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Append object at the end of this container. - /// This is the same as (subobj, -1). - /// - /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// Object to pack at the end. - /// false if subobj could not be packed. - virtual public bool PackEnd(Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_end_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Prepend an object before an existing sub-object. - /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// Object to pack before existing. - /// Existing reference sub-object. - /// false if existing could not be found or subobj could not be packed. - virtual public bool PackBefore(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { - var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_before_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, existing); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Append an object after an existing sub-object. - /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// Object to pack after existing. - /// Existing reference sub-object. - /// false if existing could not be found or subobj could not be packed. - virtual public bool PackAfter(Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) { - var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_after_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, existing); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Inserts subobj BEFORE the sub-object at position index. - /// index ranges from -count to count-1, where positive numbers go from first sub-object (0) to last (count-1), and negative numbers go from last sub-object (-1) to first (-count). count is the number of sub-objects currently in the container as returned by . - /// - /// If index is less than -count, it will trigger (subobj) whereas index greater than count-1 will trigger (subobj). - /// - /// When this container is deleted, it will request deletion of the given subobj. Use to remove subobj from this container without deleting it. - /// Object to pack. - /// Index of existing sub-object to insert BEFORE. Valid range is -count to (count-1). - /// false if subobj could not be packed. - virtual public bool PackAt(Efl.Gfx.IEntity subobj, int index) { - var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_at_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, index); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Sub-object at a given index in this container. - /// index ranges from -count to count-1, where positive numbers go from first sub-object (0) to last (count-1), and negative numbers go from last sub-object (-1) to first (-count). count is the number of sub-objects currently in the container as returned by . - /// - /// If index is less than -count, it will return the first sub-object whereas index greater than count-1 will return the last sub-object. - /// Index of the existing sub-object to retrieve. Valid range is -count to (count-1). - /// The sub-object contained at the given index. - virtual public Efl.Gfx.IEntity GetPackContent(int index) { - var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_content_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),index); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Get the index of a sub-object in this container. - /// An existing sub-object in this container. - /// -1 in case subobj is not found, or the index of subobj in the range 0 to (count-1). - virtual public int GetPackIndex(Efl.Gfx.IEntity subobj) { - var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_index_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Pop out (remove) the sub-object at the specified index. - /// index ranges from -count to count-1, where positive numbers go from first sub-object (0) to last (count-1), and negative numbers go from last sub-object (-1) to first (-count). count is the number of sub-objects currently in the container as returned by . - /// - /// If index is less than -count, it will remove the first sub-object whereas index greater than count-1 will remove the last sub-object. - /// Index of the sub-object to remove. Valid range is -count to (count-1). - /// The sub-object if it could be removed. - virtual public Efl.Gfx.IEntity PackUnpackAt(int index) { - var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_unpack_at_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),index); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Alignment of the container within its bounds - /// Horizontal alignment - /// Vertical alignment - virtual public void GetContentAlign(out double align_horiz, out double align_vert) { - Efl.Gfx.IArrangementConcrete.NativeMethods.efl_gfx_arrangement_content_align_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out align_horiz, out align_vert); - Eina.Error.RaiseIfUnhandledException(); - } - /// Alignment of the container within its bounds - /// Horizontal alignment - /// Vertical alignment - virtual public void SetContentAlign(double align_horiz, double align_vert) { - Efl.Gfx.IArrangementConcrete.NativeMethods.efl_gfx_arrangement_content_align_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),align_horiz, align_vert); - Eina.Error.RaiseIfUnhandledException(); - } - /// Padding between items contained in this object. - /// Horizontal padding - /// Vertical padding - /// true if scalable, false otherwise - virtual public void GetContentPadding(out double pad_horiz, out double pad_vert, out bool scalable) { - Efl.Gfx.IArrangementConcrete.NativeMethods.efl_gfx_arrangement_content_padding_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out pad_horiz, out pad_vert, out scalable); - Eina.Error.RaiseIfUnhandledException(); - } - /// Padding between items contained in this object. - /// Horizontal padding - /// Vertical padding - /// true if scalable, false otherwise - virtual public void SetContentPadding(double pad_horiz, double pad_vert, bool scalable) { - Efl.Gfx.IArrangementConcrete.NativeMethods.efl_gfx_arrangement_content_padding_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),pad_horiz, pad_vert, scalable); - Eina.Error.RaiseIfUnhandledException(); - } - /// The mode type for children selection. - /// Type of selection of children - virtual public Efl.Ui.SelectMode GetSelectMode() { - var _ret_var = Efl.Ui.IMultiSelectableConcrete.NativeMethods.efl_ui_select_mode_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// The mode type for children selection. - /// Type of selection of children - virtual public void SetSelectMode(Efl.Ui.SelectMode mode) { - Efl.Ui.IMultiSelectableConcrete.NativeMethods.efl_ui_select_mode_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),mode); - Eina.Error.RaiseIfUnhandledException(); - } - /// The content position - /// The position is virtual value, (0, 0) starting at the top-left. - virtual public Eina.Position2D GetContentPos() { - var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_pos_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// The content position - /// The position is virtual value, (0, 0) starting at the top-left. - virtual public void SetContentPos(Eina.Position2D pos) { - Eina.Position2D.NativeStruct _in_pos = pos; - Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_pos_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_pos); - Eina.Error.RaiseIfUnhandledException(); - } - /// The content size - /// The content size in pixels. - virtual public Eina.Size2D GetContentSize() { - var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_size_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// The viewport geometry - /// It is absolute geometry. - virtual public Eina.Rect GetViewportGeometry() { - var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Bouncing behavior - /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. - /// Horizontal bounce policy. - /// Vertical bounce policy. - virtual public void GetBounceEnabled(out bool horiz, out bool vert) { - Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out horiz, out vert); - Eina.Error.RaiseIfUnhandledException(); - } - /// Bouncing behavior - /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. - /// Horizontal bounce policy. - /// Vertical bounce policy. - virtual public void SetBounceEnabled(bool horiz, bool vert) { - Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),horiz, vert); - Eina.Error.RaiseIfUnhandledException(); - } - /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . - /// true if freeze, false otherwise - virtual public bool GetScrollFreeze() { - var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . - /// true if freeze, false otherwise - virtual public void SetScrollFreeze(bool freeze) { - Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),freeze); - Eina.Error.RaiseIfUnhandledException(); - } - /// Hold property When hold turns on, it only scrolls by holding action. - /// true if hold, false otherwise - virtual public bool GetScrollHold() { - var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Hold property When hold turns on, it only scrolls by holding action. - /// true if hold, false otherwise - virtual public void SetScrollHold(bool hold) { - Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),hold); - Eina.Error.RaiseIfUnhandledException(); - } - /// Controls an infinite loop for a scroller. - /// The scrolling horizontal loop - /// The Scrolling vertical loop - virtual public void GetLooping(out bool loop_h, out bool loop_v) { - Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_looping_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out loop_h, out loop_v); - Eina.Error.RaiseIfUnhandledException(); - } - /// Controls an infinite loop for a scroller. - /// The scrolling horizontal loop - /// The Scrolling vertical loop - virtual public void SetLooping(bool loop_h, bool loop_v) { - Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_looping_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),loop_h, loop_v); - Eina.Error.RaiseIfUnhandledException(); - } - /// Blocking of scrolling (per axis) - /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. - /// Which axis (or axes) to block - virtual public Efl.Ui.ScrollBlock GetMovementBlock() { - var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_movement_block_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Blocking of scrolling (per axis) - /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. - /// Which axis (or axes) to block - virtual public void SetMovementBlock(Efl.Ui.ScrollBlock block) { - Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_movement_block_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),block); - Eina.Error.RaiseIfUnhandledException(); - } - /// Control scrolling gravity on the scrollable - /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. - /// - /// The scroller will adjust the view to glue itself as follows. - /// - /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content - /// - /// Default values for x and y are 0.0 - /// Horizontal scrolling gravity - /// Vertical scrolling gravity - virtual public void GetGravity(out double x, out double y) { - Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_gravity_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out x, out y); - Eina.Error.RaiseIfUnhandledException(); - } - /// Control scrolling gravity on the scrollable - /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. - /// - /// The scroller will adjust the view to glue itself as follows. - /// - /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content - /// - /// Default values for x and y are 0.0 - /// Horizontal scrolling gravity - /// Vertical scrolling gravity - virtual public void SetGravity(double x, double y) { - Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_gravity_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),x, y); - Eina.Error.RaiseIfUnhandledException(); - } - /// Prevent the scrollable from being smaller than the minimum size of the content. - /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. - /// Whether to limit the minimum horizontal size - /// Whether to limit the minimum vertical size - virtual public void SetMatchContent(bool w, bool h) { - Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_match_content_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),w, h); - Eina.Error.RaiseIfUnhandledException(); - } - /// Control the step size - /// Use this call to set step size. This value is used when scroller scroll by arrow key event. - /// The step size in pixels - virtual public Eina.Position2D GetStepSize() { - var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_step_size_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Control the step size - /// Use this call to set step size. This value is used when scroller scroll by arrow key event. - /// The step size in pixels - virtual public void SetStepSize(Eina.Position2D step) { - Eina.Position2D.NativeStruct _in_step = step; - Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_step_size_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_step); - Eina.Error.RaiseIfUnhandledException(); - } - /// Show a specific virtual region within the scroller content object. - /// This will ensure all (or part if it does not fit) of the designated region in the virtual content object (0, 0 starting at the top-left of the virtual content object) is shown within the scroller. This allows the scroller to "smoothly slide" to this location (if configuration in general calls for transitions). It may not jump immediately to the new location and make take a while and show other content along the way. - /// The position where to scroll. and The size user want to see - /// Whether to scroll with animation or not - virtual public void Scroll(Eina.Rect rect, bool animation) { - Eina.Rect.NativeStruct _in_rect = rect; - Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_rect, animation); - Eina.Error.RaiseIfUnhandledException(); - } - /// Scrollbar visibility policy - /// Horizontal scrollbar. - /// Vertical scrollbar. - virtual public void GetBarMode(out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) { - Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out hbar, out vbar); - Eina.Error.RaiseIfUnhandledException(); - } - /// Scrollbar visibility policy - /// Horizontal scrollbar. - /// Vertical scrollbar. - virtual public void SetBarMode(Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) { - Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),hbar, vbar); - Eina.Error.RaiseIfUnhandledException(); - } - /// Scrollbar size. It is calculated based on viewport size-content sizes. - /// Value between 0.0 and 1.0. - /// Value between 0.0 and 1.0. - virtual public void GetBarSize(out double width, out double height) { - Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out width, out height); - Eina.Error.RaiseIfUnhandledException(); - } - /// Scrollbar position. It is calculated based on current position-maximum positions. - /// Value between 0.0 and 1.0. - /// Value between 0.0 and 1.0. - virtual public void GetBarPosition(out double posx, out double posy) { - Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out posx, out posy); - Eina.Error.RaiseIfUnhandledException(); - } - /// Scrollbar position. It is calculated based on current position-maximum positions. - /// Value between 0.0 and 1.0. - /// Value between 0.0 and 1.0. - virtual public void SetBarPosition(double posx, double posy) { - Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),posx, posy); - Eina.Error.RaiseIfUnhandledException(); - } - /// Update bar visibility. - /// The object will call this function whenever the bar needs to be shown or hidden. - virtual public void UpdateBarVisibility() { - Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - } - /// Property data of last selected item. - /// last selected item of list. - public Efl.Ui.ListItem LastSelectedItem { - get { return GetLastSelectedItem(); } - } - /// The mode type for children selection. - /// Type of selection of children - public Efl.Ui.SelectMode SelectMode { - get { return GetSelectMode(); } - set { SetSelectMode(value); } - } - /// The content position - /// The position is virtual value, (0, 0) starting at the top-left. - public Eina.Position2D ContentPos { - get { return GetContentPos(); } - set { SetContentPos(value); } - } - /// The content size - /// The content size in pixels. - public Eina.Size2D ContentSize { - get { return GetContentSize(); } - } - /// The viewport geometry - /// It is absolute geometry. - public Eina.Rect ViewportGeometry { - get { return GetViewportGeometry(); } - } - /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . - /// true if freeze, false otherwise - public bool ScrollFreeze { - get { return GetScrollFreeze(); } - set { SetScrollFreeze(value); } - } - /// Hold property When hold turns on, it only scrolls by holding action. - /// true if hold, false otherwise - public bool ScrollHold { - get { return GetScrollHold(); } - set { SetScrollHold(value); } - } - /// Blocking of scrolling (per axis) - /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. - /// Which axis (or axes) to block - public Efl.Ui.ScrollBlock MovementBlock { - get { return GetMovementBlock(); } - set { SetMovementBlock(value); } - } - /// Control the step size - /// Use this call to set step size. This value is used when scroller scroll by arrow key event. - /// The step size in pixels - public Eina.Position2D StepSize { - get { return GetStepSize(); } - set { SetStepSize(value); } - } - private static IntPtr GetEflClassStatic() - { - return Efl.Ui.List.efl_ui_list_class_get(); - } - /// Wrapper for native methods and virtual method delegates. - /// For internal use by generated code only. - public new class NativeMethods : Efl.Ui.LayoutBase.NativeMethods - { - private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); - /// Gets the list of Eo operations to override. - /// The list of Eo operations to be overload. - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - - if (efl_ui_list_last_selected_item_get_static_delegate == null) - { - efl_ui_list_last_selected_item_get_static_delegate = new efl_ui_list_last_selected_item_get_delegate(last_selected_item_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetLastSelectedItem") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_last_selected_item_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_last_selected_item_get_static_delegate) }); - } - - if (efl_ui_list_item_scroll_static_delegate == null) - { - efl_ui_list_item_scroll_static_delegate = new efl_ui_list_item_scroll_delegate(item_scroll); - } - - if (methods.FirstOrDefault(m => m.Name == "ItemScroll") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_item_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_item_scroll_static_delegate) }); - } - - if (efl_ui_list_item_scroll_align_static_delegate == null) - { - efl_ui_list_item_scroll_align_static_delegate = new efl_ui_list_item_scroll_align_delegate(item_scroll_align); - } - - if (methods.FirstOrDefault(m => m.Name == "ItemScrollAlign") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_item_scroll_align"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_item_scroll_align_static_delegate) }); - } - - if (efl_ui_list_selected_items_get_static_delegate == null) - { - efl_ui_list_selected_items_get_static_delegate = new efl_ui_list_selected_items_get_delegate(selected_items_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetSelectedItems") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_list_selected_items_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_list_selected_items_get_static_delegate) }); - } - - if (efl_pack_clear_static_delegate == null) - { - efl_pack_clear_static_delegate = new efl_pack_clear_delegate(pack_clear); - } - - if (methods.FirstOrDefault(m => m.Name == "ClearPack") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_clear"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_clear_static_delegate) }); - } - - if (efl_pack_unpack_all_static_delegate == null) - { - efl_pack_unpack_all_static_delegate = new efl_pack_unpack_all_delegate(unpack_all); - } - - if (methods.FirstOrDefault(m => m.Name == "UnpackAll") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_all"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_all_static_delegate) }); - } - - if (efl_pack_unpack_static_delegate == null) - { - efl_pack_unpack_static_delegate = new efl_pack_unpack_delegate(unpack); - } - - if (methods.FirstOrDefault(m => m.Name == "Unpack") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_static_delegate) }); - } - - if (efl_pack_static_delegate == null) - { - efl_pack_static_delegate = new efl_pack_delegate(pack); - } - - if (methods.FirstOrDefault(m => m.Name == "Pack") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_static_delegate) }); - } - - if (efl_pack_layout_request_static_delegate == null) - { - efl_pack_layout_request_static_delegate = new efl_pack_layout_request_delegate(layout_request); - } - - if (methods.FirstOrDefault(m => m.Name == "LayoutRequest") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_layout_request"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_request_static_delegate) }); - } - - if (efl_pack_layout_update_static_delegate == null) - { - efl_pack_layout_update_static_delegate = new efl_pack_layout_update_delegate(layout_update); - } - - if (methods.FirstOrDefault(m => m.Name == "UpdateLayout") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_layout_update"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_update_static_delegate) }); - } - - if (efl_pack_begin_static_delegate == null) - { - efl_pack_begin_static_delegate = new efl_pack_begin_delegate(pack_begin); - } - - if (methods.FirstOrDefault(m => m.Name == "PackBegin") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_begin"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_begin_static_delegate) }); - } - - if (efl_pack_end_static_delegate == null) - { - efl_pack_end_static_delegate = new efl_pack_end_delegate(pack_end); - } - - if (methods.FirstOrDefault(m => m.Name == "PackEnd") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_end"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_end_static_delegate) }); - } - - if (efl_pack_before_static_delegate == null) - { - efl_pack_before_static_delegate = new efl_pack_before_delegate(pack_before); - } - - if (methods.FirstOrDefault(m => m.Name == "PackBefore") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_before"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_before_static_delegate) }); - } - - if (efl_pack_after_static_delegate == null) - { - efl_pack_after_static_delegate = new efl_pack_after_delegate(pack_after); - } - - if (methods.FirstOrDefault(m => m.Name == "PackAfter") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_after"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_after_static_delegate) }); - } - - if (efl_pack_at_static_delegate == null) - { - efl_pack_at_static_delegate = new efl_pack_at_delegate(pack_at); - } - - if (methods.FirstOrDefault(m => m.Name == "PackAt") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_at_static_delegate) }); - } - - if (efl_pack_content_get_static_delegate == null) - { - efl_pack_content_get_static_delegate = new efl_pack_content_get_delegate(pack_content_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetPackContent") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_content_get_static_delegate) }); - } - - if (efl_pack_index_get_static_delegate == null) - { - efl_pack_index_get_static_delegate = new efl_pack_index_get_delegate(pack_index_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetPackIndex") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_index_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_index_get_static_delegate) }); - } - - if (efl_pack_unpack_at_static_delegate == null) - { - efl_pack_unpack_at_static_delegate = new efl_pack_unpack_at_delegate(pack_unpack_at); - } - - if (methods.FirstOrDefault(m => m.Name == "PackUnpackAt") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_unpack_at"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_unpack_at_static_delegate) }); - } - - if (efl_gfx_arrangement_content_align_get_static_delegate == null) - { - efl_gfx_arrangement_content_align_get_static_delegate = new efl_gfx_arrangement_content_align_get_delegate(content_align_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetContentAlign") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_arrangement_content_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_arrangement_content_align_get_static_delegate) }); - } - - if (efl_gfx_arrangement_content_align_set_static_delegate == null) - { - efl_gfx_arrangement_content_align_set_static_delegate = new efl_gfx_arrangement_content_align_set_delegate(content_align_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetContentAlign") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_arrangement_content_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_arrangement_content_align_set_static_delegate) }); - } - - if (efl_gfx_arrangement_content_padding_get_static_delegate == null) - { - efl_gfx_arrangement_content_padding_get_static_delegate = new efl_gfx_arrangement_content_padding_get_delegate(content_padding_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetContentPadding") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_arrangement_content_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_arrangement_content_padding_get_static_delegate) }); - } - - if (efl_gfx_arrangement_content_padding_set_static_delegate == null) - { - efl_gfx_arrangement_content_padding_set_static_delegate = new efl_gfx_arrangement_content_padding_set_delegate(content_padding_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetContentPadding") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_arrangement_content_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_arrangement_content_padding_set_static_delegate) }); - } - - if (efl_ui_select_mode_get_static_delegate == null) - { - efl_ui_select_mode_get_static_delegate = new efl_ui_select_mode_get_delegate(select_mode_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetSelectMode") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_select_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_select_mode_get_static_delegate) }); - } - - if (efl_ui_select_mode_set_static_delegate == null) - { - efl_ui_select_mode_set_static_delegate = new efl_ui_select_mode_set_delegate(select_mode_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetSelectMode") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_select_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_select_mode_set_static_delegate) }); - } - - if (efl_ui_scrollable_content_pos_get_static_delegate == null) - { - efl_ui_scrollable_content_pos_get_static_delegate = new efl_ui_scrollable_content_pos_get_delegate(content_pos_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetContentPos") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_get_static_delegate) }); - } - - if (efl_ui_scrollable_content_pos_set_static_delegate == null) - { - efl_ui_scrollable_content_pos_set_static_delegate = new efl_ui_scrollable_content_pos_set_delegate(content_pos_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetContentPos") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_set_static_delegate) }); - } - - if (efl_ui_scrollable_content_size_get_static_delegate == null) - { - efl_ui_scrollable_content_size_get_static_delegate = new efl_ui_scrollable_content_size_get_delegate(content_size_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_size_get_static_delegate) }); - } - - if (efl_ui_scrollable_viewport_geometry_get_static_delegate == null) - { - efl_ui_scrollable_viewport_geometry_get_static_delegate = new efl_ui_scrollable_viewport_geometry_get_delegate(viewport_geometry_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetViewportGeometry") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_viewport_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_viewport_geometry_get_static_delegate) }); - } - - if (efl_ui_scrollable_bounce_enabled_get_static_delegate == null) - { - efl_ui_scrollable_bounce_enabled_get_static_delegate = new efl_ui_scrollable_bounce_enabled_get_delegate(bounce_enabled_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetBounceEnabled") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_bounce_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_get_static_delegate) }); - } - - if (efl_ui_scrollable_bounce_enabled_set_static_delegate == null) - { - efl_ui_scrollable_bounce_enabled_set_static_delegate = new efl_ui_scrollable_bounce_enabled_set_delegate(bounce_enabled_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetBounceEnabled") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_bounce_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_set_static_delegate) }); - } - - if (efl_ui_scrollable_scroll_freeze_get_static_delegate == null) - { - efl_ui_scrollable_scroll_freeze_get_static_delegate = new efl_ui_scrollable_scroll_freeze_get_delegate(scroll_freeze_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetScrollFreeze") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_freeze_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_get_static_delegate) }); - } - - if (efl_ui_scrollable_scroll_freeze_set_static_delegate == null) - { - efl_ui_scrollable_scroll_freeze_set_static_delegate = new efl_ui_scrollable_scroll_freeze_set_delegate(scroll_freeze_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetScrollFreeze") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_freeze_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_set_static_delegate) }); - } - - if (efl_ui_scrollable_scroll_hold_get_static_delegate == null) - { - efl_ui_scrollable_scroll_hold_get_static_delegate = new efl_ui_scrollable_scroll_hold_get_delegate(scroll_hold_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetScrollHold") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_hold_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_get_static_delegate) }); - } - - if (efl_ui_scrollable_scroll_hold_set_static_delegate == null) - { - efl_ui_scrollable_scroll_hold_set_static_delegate = new efl_ui_scrollable_scroll_hold_set_delegate(scroll_hold_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetScrollHold") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_hold_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_set_static_delegate) }); - } - - if (efl_ui_scrollable_looping_get_static_delegate == null) - { - efl_ui_scrollable_looping_get_static_delegate = new efl_ui_scrollable_looping_get_delegate(looping_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetLooping") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_looping_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_get_static_delegate) }); - } - - if (efl_ui_scrollable_looping_set_static_delegate == null) - { - efl_ui_scrollable_looping_set_static_delegate = new efl_ui_scrollable_looping_set_delegate(looping_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetLooping") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_looping_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_set_static_delegate) }); - } - - if (efl_ui_scrollable_movement_block_get_static_delegate == null) - { - efl_ui_scrollable_movement_block_get_static_delegate = new efl_ui_scrollable_movement_block_get_delegate(movement_block_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetMovementBlock") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_movement_block_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_get_static_delegate) }); - } - - if (efl_ui_scrollable_movement_block_set_static_delegate == null) - { - efl_ui_scrollable_movement_block_set_static_delegate = new efl_ui_scrollable_movement_block_set_delegate(movement_block_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetMovementBlock") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_movement_block_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_set_static_delegate) }); - } - - if (efl_ui_scrollable_gravity_get_static_delegate == null) - { - efl_ui_scrollable_gravity_get_static_delegate = new efl_ui_scrollable_gravity_get_delegate(gravity_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetGravity") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_gravity_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_get_static_delegate) }); - } - - if (efl_ui_scrollable_gravity_set_static_delegate == null) - { - efl_ui_scrollable_gravity_set_static_delegate = new efl_ui_scrollable_gravity_set_delegate(gravity_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetGravity") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_gravity_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_set_static_delegate) }); - } - - if (efl_ui_scrollable_match_content_set_static_delegate == null) - { - efl_ui_scrollable_match_content_set_static_delegate = new efl_ui_scrollable_match_content_set_delegate(match_content_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetMatchContent") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_match_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_match_content_set_static_delegate) }); - } - - if (efl_ui_scrollable_step_size_get_static_delegate == null) - { - efl_ui_scrollable_step_size_get_static_delegate = new efl_ui_scrollable_step_size_get_delegate(step_size_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetStepSize") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_step_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_get_static_delegate) }); - } - - if (efl_ui_scrollable_step_size_set_static_delegate == null) - { - efl_ui_scrollable_step_size_set_static_delegate = new efl_ui_scrollable_step_size_set_delegate(step_size_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetStepSize") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_step_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_set_static_delegate) }); - } - - if (efl_ui_scrollable_scroll_static_delegate == null) - { - efl_ui_scrollable_scroll_static_delegate = new efl_ui_scrollable_scroll_delegate(scroll); - } - - if (methods.FirstOrDefault(m => m.Name == "Scroll") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_static_delegate) }); - } - - if (efl_ui_scrollbar_bar_mode_get_static_delegate == null) - { - efl_ui_scrollbar_bar_mode_get_static_delegate = new efl_ui_scrollbar_bar_mode_get_delegate(bar_mode_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetBarMode") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_mode_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_get_static_delegate) }); - } - - if (efl_ui_scrollbar_bar_mode_set_static_delegate == null) - { - efl_ui_scrollbar_bar_mode_set_static_delegate = new efl_ui_scrollbar_bar_mode_set_delegate(bar_mode_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetBarMode") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_mode_set_static_delegate) }); - } - - if (efl_ui_scrollbar_bar_size_get_static_delegate == null) - { - efl_ui_scrollbar_bar_size_get_static_delegate = new efl_ui_scrollbar_bar_size_get_delegate(bar_size_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetBarSize") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_size_get_static_delegate) }); - } - - if (efl_ui_scrollbar_bar_position_get_static_delegate == null) - { - efl_ui_scrollbar_bar_position_get_static_delegate = new efl_ui_scrollbar_bar_position_get_delegate(bar_position_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetBarPosition") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_get_static_delegate) }); - } - - if (efl_ui_scrollbar_bar_position_set_static_delegate == null) - { - efl_ui_scrollbar_bar_position_set_static_delegate = new efl_ui_scrollbar_bar_position_set_delegate(bar_position_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetBarPosition") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_position_set_static_delegate) }); - } - - if (efl_ui_scrollbar_bar_visibility_update_static_delegate == null) - { - efl_ui_scrollbar_bar_visibility_update_static_delegate = new efl_ui_scrollbar_bar_visibility_update_delegate(bar_visibility_update); - } - - if (methods.FirstOrDefault(m => m.Name == "UpdateBarVisibility") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollbar_bar_visibility_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollbar_bar_visibility_update_static_delegate) }); - } - - descs.AddRange(base.GetEoOps(type)); - return descs; - } - /// Returns the Eo class for the native methods of this class. - /// The native class pointer. - public override IntPtr GetEflClass() - { - return Efl.Ui.List.efl_ui_list_class_get(); - } - - #pragma warning disable CA1707, CS1591, SA1300, SA1600 - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Ui.ListItem efl_ui_list_last_selected_item_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Ui.ListItem efl_ui_list_last_selected_item_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_list_last_selected_item_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_last_selected_item_get"); - - private static Efl.Ui.ListItem last_selected_item_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_list_last_selected_item_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.ListItem _ret_var = default(Efl.Ui.ListItem); - try - { - _ret_var = ((List)ws.Target).GetLastSelectedItem(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_list_last_selected_item_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_list_last_selected_item_get_delegate efl_ui_list_last_selected_item_get_static_delegate; - - - private delegate void efl_ui_list_item_scroll_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ListItem item, [MarshalAs(UnmanagedType.U1)] bool animation); - - - public delegate void efl_ui_list_item_scroll_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ListItem item, [MarshalAs(UnmanagedType.U1)] bool animation); - - public static Efl.Eo.FunctionWrapper efl_ui_list_item_scroll_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_item_scroll"); - - private static void item_scroll(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ListItem item, bool animation) - { - Eina.Log.Debug("function efl_ui_list_item_scroll was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((List)ws.Target).ItemScroll(item, animation); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_list_item_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item, animation); - } - } - - private static efl_ui_list_item_scroll_delegate efl_ui_list_item_scroll_static_delegate; - - - private delegate void efl_ui_list_item_scroll_align_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ListItem item, double align, [MarshalAs(UnmanagedType.U1)] bool animation); - - - public delegate void efl_ui_list_item_scroll_align_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ListItem item, double align, [MarshalAs(UnmanagedType.U1)] bool animation); - - public static Efl.Eo.FunctionWrapper efl_ui_list_item_scroll_align_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_item_scroll_align"); - - private static void item_scroll_align(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ListItem item, double align, bool animation) - { - Eina.Log.Debug("function efl_ui_list_item_scroll_align was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((List)ws.Target).ItemScrollAlign(item, align, animation); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_list_item_scroll_align_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), item, align, animation); - } - } - - private static efl_ui_list_item_scroll_align_delegate efl_ui_list_item_scroll_align_static_delegate; - - - private delegate System.IntPtr efl_ui_list_selected_items_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate System.IntPtr efl_ui_list_selected_items_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_list_selected_items_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_list_selected_items_get"); - - private static System.IntPtr selected_items_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_list_selected_items_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Eina.Iterator _ret_var = default(Eina.Iterator); - try - { - _ret_var = ((List)ws.Target).GetSelectedItems(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - _ret_var.Own = false; return _ret_var.Handle; - - } - else - { - return efl_ui_list_selected_items_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_list_selected_items_get_delegate efl_ui_list_selected_items_get_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_pack_clear_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_pack_clear_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_pack_clear_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_clear"); - - private static bool pack_clear(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_clear was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((List)ws.Target).ClearPack(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_pack_clear_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_pack_clear_delegate efl_pack_clear_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_pack_unpack_all_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_pack_unpack_all_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_pack_unpack_all_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_all"); - - private static bool unpack_all(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_unpack_all was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((List)ws.Target).UnpackAll(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_pack_unpack_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_pack_unpack_all_delegate efl_pack_unpack_all_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_pack_unpack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_pack_unpack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); - - public static Efl.Eo.FunctionWrapper efl_pack_unpack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack"); - - private static bool unpack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_unpack was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((List)ws.Target).Unpack(subobj); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_pack_unpack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - - private static efl_pack_unpack_delegate efl_pack_unpack_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_pack_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_pack_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); - - public static Efl.Eo.FunctionWrapper efl_pack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack"); - - private static bool pack(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((List)ws.Target).Pack(subobj); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_pack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - - private static efl_pack_delegate efl_pack_static_delegate; - - - private delegate void efl_pack_layout_request_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate void efl_pack_layout_request_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_pack_layout_request_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_layout_request"); - - private static void layout_request(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_layout_request was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((List)ws.Target).LayoutRequest(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_pack_layout_request_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_pack_layout_request_delegate efl_pack_layout_request_static_delegate; - - - private delegate void efl_pack_layout_update_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate void efl_pack_layout_update_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_pack_layout_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_layout_update"); - - private static void layout_update(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_pack_layout_update was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((List)ws.Target).UpdateLayout(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_pack_layout_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_pack_layout_update_delegate efl_pack_layout_update_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_pack_begin_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_pack_begin_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); - - public static Efl.Eo.FunctionWrapper efl_pack_begin_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_begin"); - - private static bool pack_begin(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_begin was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((List)ws.Target).PackBegin(subobj); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_pack_begin_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - - private static efl_pack_begin_delegate efl_pack_begin_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_pack_end_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_pack_end_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); - - public static Efl.Eo.FunctionWrapper efl_pack_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_end"); - - private static bool pack_end(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_end was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((List)ws.Target).PackEnd(subobj); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_pack_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - - private static efl_pack_end_delegate efl_pack_end_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_pack_before_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_pack_before_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); - - public static Efl.Eo.FunctionWrapper efl_pack_before_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_before"); - - private static bool pack_before(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) - { - Eina.Log.Debug("function efl_pack_before was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((List)ws.Target).PackBefore(subobj, existing); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_pack_before_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); - } - } - - private static efl_pack_before_delegate efl_pack_before_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_pack_after_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_pack_after_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity existing); - - public static Efl.Eo.FunctionWrapper efl_pack_after_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_after"); - - private static bool pack_after(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, Efl.Gfx.IEntity existing) - { - Eina.Log.Debug("function efl_pack_after was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((List)ws.Target).PackAfter(subobj, existing); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_pack_after_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, existing); - } - } - - private static efl_pack_after_delegate efl_pack_after_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_pack_at_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int index); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_pack_at_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int index); - - public static Efl.Eo.FunctionWrapper efl_pack_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_at"); - - private static bool pack_at(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index) - { - Eina.Log.Debug("function efl_pack_at was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((List)ws.Target).PackAt(subobj, index); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_pack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index); - } - } - - private static efl_pack_at_delegate efl_pack_at_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Gfx.IEntity efl_pack_content_get_delegate(System.IntPtr obj, System.IntPtr pd, int index); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Gfx.IEntity efl_pack_content_get_api_delegate(System.IntPtr obj, int index); - - public static Efl.Eo.FunctionWrapper efl_pack_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_content_get"); - - private static Efl.Gfx.IEntity pack_content_get(System.IntPtr obj, System.IntPtr pd, int index) - { - Eina.Log.Debug("function efl_pack_content_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try - { - _ret_var = ((List)ws.Target).GetPackContent(index); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_pack_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); - } - } - - private static efl_pack_content_get_delegate efl_pack_content_get_static_delegate; - - - private delegate int efl_pack_index_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); - - - public delegate int efl_pack_index_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); - - public static Efl.Eo.FunctionWrapper efl_pack_index_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_index_get"); - - private static int pack_index_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj) - { - Eina.Log.Debug("function efl_pack_index_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - int _ret_var = default(int); - try - { - _ret_var = ((List)ws.Target).GetPackIndex(subobj); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_pack_index_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj); - } - } - - private static efl_pack_index_get_delegate efl_pack_index_get_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Gfx.IEntity efl_pack_unpack_at_delegate(System.IntPtr obj, System.IntPtr pd, int index); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Gfx.IEntity efl_pack_unpack_at_api_delegate(System.IntPtr obj, int index); - - public static Efl.Eo.FunctionWrapper efl_pack_unpack_at_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_unpack_at"); - - private static Efl.Gfx.IEntity pack_unpack_at(System.IntPtr obj, System.IntPtr pd, int index) - { - Eina.Log.Debug("function efl_pack_unpack_at was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try - { - _ret_var = ((List)ws.Target).PackUnpackAt(index); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_pack_unpack_at_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), index); - } - } - - private static efl_pack_unpack_at_delegate efl_pack_unpack_at_static_delegate; - - - private delegate void efl_gfx_arrangement_content_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); - - - public delegate void efl_gfx_arrangement_content_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); - - public static Efl.Eo.FunctionWrapper efl_gfx_arrangement_content_align_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_arrangement_content_align_get"); - - private static void content_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) - { - Eina.Log.Debug("function efl_gfx_arrangement_content_align_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - align_horiz = default(double); align_vert = default(double); - try - { - ((List)ws.Target).GetContentAlign(out align_horiz, out align_vert); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_gfx_arrangement_content_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert); - } - } - - private static efl_gfx_arrangement_content_align_get_delegate efl_gfx_arrangement_content_align_get_static_delegate; - - - private delegate void efl_gfx_arrangement_content_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); - - - public delegate void efl_gfx_arrangement_content_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); - - public static Efl.Eo.FunctionWrapper efl_gfx_arrangement_content_align_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_arrangement_content_align_set"); - - private static void content_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) - { - Eina.Log.Debug("function efl_gfx_arrangement_content_align_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((List)ws.Target).SetContentAlign(align_horiz, align_vert); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_gfx_arrangement_content_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert); - } - } - - private static efl_gfx_arrangement_content_align_set_delegate efl_gfx_arrangement_content_align_set_static_delegate; - - - private delegate void efl_gfx_arrangement_content_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); - - - public delegate void efl_gfx_arrangement_content_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable); - - public static Efl.Eo.FunctionWrapper efl_gfx_arrangement_content_padding_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_arrangement_content_padding_get"); - - private static void content_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) - { - Eina.Log.Debug("function efl_gfx_arrangement_content_padding_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); - try - { - ((List)ws.Target).GetContentPadding(out pad_horiz, out pad_vert, out scalable); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_gfx_arrangement_content_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable); - } - } - - private static efl_gfx_arrangement_content_padding_get_delegate efl_gfx_arrangement_content_padding_get_static_delegate; - - - private delegate void efl_gfx_arrangement_content_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); - - - public delegate void efl_gfx_arrangement_content_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); - - public static Efl.Eo.FunctionWrapper efl_gfx_arrangement_content_padding_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_arrangement_content_padding_set"); - - private static void content_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) - { - Eina.Log.Debug("function efl_gfx_arrangement_content_padding_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((List)ws.Target).SetContentPadding(pad_horiz, pad_vert, scalable); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_gfx_arrangement_content_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable); - } - } - - private static efl_gfx_arrangement_content_padding_set_delegate efl_gfx_arrangement_content_padding_set_static_delegate; - - - private delegate Efl.Ui.SelectMode efl_ui_select_mode_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate Efl.Ui.SelectMode efl_ui_select_mode_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_select_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_select_mode_get"); - - private static Efl.Ui.SelectMode select_mode_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_select_mode_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.SelectMode _ret_var = default(Efl.Ui.SelectMode); - try - { - _ret_var = ((List)ws.Target).GetSelectMode(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_select_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_select_mode_get_delegate efl_ui_select_mode_get_static_delegate; - - - private delegate void efl_ui_select_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectMode mode); - - - public delegate void efl_ui_select_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.SelectMode mode); - - public static Efl.Eo.FunctionWrapper efl_ui_select_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_select_mode_set"); - - private static void select_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.SelectMode mode) - { - Eina.Log.Debug("function efl_ui_select_mode_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((List)ws.Target).SetSelectMode(mode); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_select_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mode); - } - } - - private static efl_ui_select_mode_set_delegate efl_ui_select_mode_set_static_delegate; - - - private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_pos_get"); - - private static Eina.Position2D.NativeStruct content_pos_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_content_pos_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Eina.Position2D _ret_var = default(Eina.Position2D); - try - { - _ret_var = ((List)ws.Target).GetContentPos(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_scrollable_content_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_scrollable_content_pos_get_delegate efl_ui_scrollable_content_pos_get_static_delegate; - - - private delegate void efl_ui_scrollable_content_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); - - - public delegate void efl_ui_scrollable_content_pos_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_pos_set"); - - private static void content_pos_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) - { - Eina.Log.Debug("function efl_ui_scrollable_content_pos_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Eina.Position2D _in_pos = pos; - - try - { - ((List)ws.Target).SetContentPos(_in_pos); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollable_content_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); - } - } - - private static efl_ui_scrollable_content_pos_set_delegate efl_ui_scrollable_content_pos_set_static_delegate; - - - private delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_size_get"); - - private static Eina.Size2D.NativeStruct content_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_content_size_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Eina.Size2D _ret_var = default(Eina.Size2D); - try - { - _ret_var = ((List)ws.Target).GetContentSize(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_scrollable_content_size_get_delegate efl_ui_scrollable_content_size_get_static_delegate; - - - private delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_viewport_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_viewport_geometry_get"); - - private static Eina.Rect.NativeStruct viewport_geometry_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_viewport_geometry_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Eina.Rect _ret_var = default(Eina.Rect); - try - { - _ret_var = ((List)ws.Target).GetViewportGeometry(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_scrollable_viewport_geometry_get_delegate efl_ui_scrollable_viewport_geometry_get_static_delegate; - - - private delegate void efl_ui_scrollable_bounce_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - - - public delegate void efl_ui_scrollable_bounce_enabled_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_bounce_enabled_get"); - - private static void bounce_enabled_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) - { - Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - horiz = default(bool); vert = default(bool); - try - { - ((List)ws.Target).GetBounceEnabled(out horiz, out vert); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); - } - } - - private static efl_ui_scrollable_bounce_enabled_get_delegate efl_ui_scrollable_bounce_enabled_get_static_delegate; - - - private delegate void efl_ui_scrollable_bounce_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - - - public delegate void efl_ui_scrollable_bounce_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_bounce_enabled_set"); - - private static void bounce_enabled_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) - { - Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((List)ws.Target).SetBounceEnabled(horiz, vert); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); - } - } - - private static efl_ui_scrollable_bounce_enabled_set_delegate efl_ui_scrollable_bounce_enabled_set_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_ui_scrollable_scroll_freeze_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_ui_scrollable_scroll_freeze_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_freeze_get"); - - private static bool scroll_freeze_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((List)ws.Target).GetScrollFreeze(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_scrollable_scroll_freeze_get_delegate efl_ui_scrollable_scroll_freeze_get_static_delegate; - - - private delegate void efl_ui_scrollable_scroll_freeze_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool freeze); - - - public delegate void efl_ui_scrollable_scroll_freeze_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool freeze); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_freeze_set"); - - private static void scroll_freeze_set(System.IntPtr obj, System.IntPtr pd, bool freeze) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((List)ws.Target).SetScrollFreeze(freeze); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), freeze); - } - } - - private static efl_ui_scrollable_scroll_freeze_set_delegate efl_ui_scrollable_scroll_freeze_set_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_ui_scrollable_scroll_hold_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_ui_scrollable_scroll_hold_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_hold_get"); - - private static bool scroll_hold_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((List)ws.Target).GetScrollHold(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_scrollable_scroll_hold_get_delegate efl_ui_scrollable_scroll_hold_get_static_delegate; - - - private delegate void efl_ui_scrollable_scroll_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hold); - - - public delegate void efl_ui_scrollable_scroll_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hold); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_hold_set"); - - private static void scroll_hold_set(System.IntPtr obj, System.IntPtr pd, bool hold) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((List)ws.Target).SetScrollHold(hold); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hold); - } - } - - private static efl_ui_scrollable_scroll_hold_set_delegate efl_ui_scrollable_scroll_hold_set_static_delegate; - - - private delegate void efl_ui_scrollable_looping_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); - - - public delegate void efl_ui_scrollable_looping_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_looping_get"); - - private static void looping_get(System.IntPtr obj, System.IntPtr pd, out bool loop_h, out bool loop_v) - { - Eina.Log.Debug("function efl_ui_scrollable_looping_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - loop_h = default(bool); loop_v = default(bool); - try - { - ((List)ws.Target).GetLooping(out loop_h, out loop_v); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollable_looping_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out loop_h, out loop_v); - } - } - - private static efl_ui_scrollable_looping_get_delegate efl_ui_scrollable_looping_get_static_delegate; - - - private delegate void efl_ui_scrollable_looping_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); - - - public delegate void efl_ui_scrollable_looping_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_looping_set"); - - private static void looping_set(System.IntPtr obj, System.IntPtr pd, bool loop_h, bool loop_v) - { - Eina.Log.Debug("function efl_ui_scrollable_looping_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((List)ws.Target).SetLooping(loop_h, loop_v); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollable_looping_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop_h, loop_v); - } - } - - private static efl_ui_scrollable_looping_set_delegate efl_ui_scrollable_looping_set_static_delegate; - - - private delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_movement_block_get"); - - private static Efl.Ui.ScrollBlock movement_block_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_movement_block_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.ScrollBlock _ret_var = default(Efl.Ui.ScrollBlock); - try - { - _ret_var = ((List)ws.Target).GetMovementBlock(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_scrollable_movement_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_scrollable_movement_block_get_delegate efl_ui_scrollable_movement_block_get_static_delegate; - - - private delegate void efl_ui_scrollable_movement_block_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block); - - - public delegate void efl_ui_scrollable_movement_block_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollBlock block); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_movement_block_set"); - - private static void movement_block_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block) - { - Eina.Log.Debug("function efl_ui_scrollable_movement_block_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((List)ws.Target).SetMovementBlock(block); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollable_movement_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), block); - } - } - - private static efl_ui_scrollable_movement_block_set_delegate efl_ui_scrollable_movement_block_set_static_delegate; - - - private delegate void efl_ui_scrollable_gravity_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); - - - public delegate void efl_ui_scrollable_gravity_get_api_delegate(System.IntPtr obj, out double x, out double y); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_gravity_get"); - - private static void gravity_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function efl_ui_scrollable_gravity_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - x = default(double); y = default(double); - try - { - ((List)ws.Target).GetGravity(out x, out y); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollable_gravity_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - - private static efl_ui_scrollable_gravity_get_delegate efl_ui_scrollable_gravity_get_static_delegate; - - - private delegate void efl_ui_scrollable_gravity_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); - - - public delegate void efl_ui_scrollable_gravity_set_api_delegate(System.IntPtr obj, double x, double y); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_gravity_set"); - - private static void gravity_set(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function efl_ui_scrollable_gravity_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((List)ws.Target).SetGravity(x, y); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollable_gravity_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); - } - } - - private static efl_ui_scrollable_gravity_set_delegate efl_ui_scrollable_gravity_set_static_delegate; - - - private delegate void efl_ui_scrollable_match_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); - - - public delegate void efl_ui_scrollable_match_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_match_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_match_content_set"); - - private static void match_content_set(System.IntPtr obj, System.IntPtr pd, bool w, bool h) - { - Eina.Log.Debug("function efl_ui_scrollable_match_content_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((List)ws.Target).SetMatchContent(w, h); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollable_match_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w, h); - } - } - - private static efl_ui_scrollable_match_content_set_delegate efl_ui_scrollable_match_content_set_static_delegate; - - - private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_step_size_get"); - - private static Eina.Position2D.NativeStruct step_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scrollable_step_size_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Eina.Position2D _ret_var = default(Eina.Position2D); - try - { - _ret_var = ((List)ws.Target).GetStepSize(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_scrollable_step_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_scrollable_step_size_get_delegate efl_ui_scrollable_step_size_get_static_delegate; - - - private delegate void efl_ui_scrollable_step_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step); - - - public delegate void efl_ui_scrollable_step_size_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct step); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_step_size_set"); - - private static void step_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step) - { - Eina.Log.Debug("function efl_ui_scrollable_step_size_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Eina.Position2D _in_step = step; - - try - { - ((List)ws.Target).SetStepSize(_in_step); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollable_step_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); - } - } - - private static efl_ui_scrollable_step_size_set_delegate efl_ui_scrollable_step_size_set_static_delegate; - - - private delegate void efl_ui_scrollable_scroll_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); - - - public delegate void efl_ui_scrollable_scroll_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll"); - - private static void scroll(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool animation) - { - Eina.Log.Debug("function efl_ui_scrollable_scroll was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Eina.Rect _in_rect = rect; - - try - { - ((List)ws.Target).Scroll(_in_rect, animation); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollable_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, animation); - } - } - - private static efl_ui_scrollable_scroll_delegate efl_ui_scrollable_scroll_static_delegate; - - - private delegate void efl_ui_scrollbar_bar_mode_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); - - - public delegate void efl_ui_scrollbar_bar_mode_get_api_delegate(System.IntPtr obj, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_mode_get"); - - private static void bar_mode_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.ScrollbarMode hbar, out Efl.Ui.ScrollbarMode vbar) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - hbar = default(Efl.Ui.ScrollbarMode); vbar = default(Efl.Ui.ScrollbarMode); - try - { - ((List)ws.Target).GetBarMode(out hbar, out vbar); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollbar_bar_mode_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out hbar, out vbar); - } - } - - private static efl_ui_scrollbar_bar_mode_get_delegate efl_ui_scrollbar_bar_mode_get_static_delegate; - - - private delegate void efl_ui_scrollbar_bar_mode_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); - - - public delegate void efl_ui_scrollbar_bar_mode_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_mode_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_mode_set"); - - private static void bar_mode_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollbarMode hbar, Efl.Ui.ScrollbarMode vbar) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_mode_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((List)ws.Target).SetBarMode(hbar, vbar); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollbar_bar_mode_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar, vbar); - } - } - - private static efl_ui_scrollbar_bar_mode_set_delegate efl_ui_scrollbar_bar_mode_set_static_delegate; - - - private delegate void efl_ui_scrollbar_bar_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out double width, out double height); - - - public delegate void efl_ui_scrollbar_bar_size_get_api_delegate(System.IntPtr obj, out double width, out double height); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_size_get"); - - private static void bar_size_get(System.IntPtr obj, System.IntPtr pd, out double width, out double height) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_size_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - width = default(double); height = default(double); - try - { - ((List)ws.Target).GetBarSize(out width, out height); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollbar_bar_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out width, out height); - } - } - - private static efl_ui_scrollbar_bar_size_get_delegate efl_ui_scrollbar_bar_size_get_static_delegate; - - - private delegate void efl_ui_scrollbar_bar_position_get_delegate(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy); - - - public delegate void efl_ui_scrollbar_bar_position_get_api_delegate(System.IntPtr obj, out double posx, out double posy); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_position_get"); - - private static void bar_position_get(System.IntPtr obj, System.IntPtr pd, out double posx, out double posy) - { - Eina.Log.Debug("function efl_ui_scrollbar_bar_position_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - posx = default(double); posy = default(double); - try - { - ((List)ws.Target).GetBarPosition(out posx, out posy); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollbar_bar_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out posx, out posy); - } - } - - private static efl_ui_scrollbar_bar_position_get_delegate efl_ui_scrollbar_bar_position_get_static_delegate; - - - private delegate void efl_ui_scrollbar_bar_position_set_delegate(System.IntPtr obj, System.IntPtr pd, double posx, double posy); - - - public delegate void efl_ui_scrollbar_bar_position_set_api_delegate(System.IntPtr obj, double posx, double posy); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_position_set"); - - private static void bar_position_set(System.IntPtr obj, System.IntPtr pd, double posx, double posy) + private static IntPtr GetEflClassStatic() + { + return Efl.Ui.List.efl_ui_list_class_get(); + } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Collection.NativeMethods + { + /// Gets the list of Eo operations to override. + /// The list of Eo operations to be overload. + public override System.Collections.Generic.List GetEoOps(System.Type type) { - Eina.Log.Debug("function efl_ui_scrollbar_bar_position_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((List)ws.Target).SetBarPosition(posx, posy); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollbar_bar_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), posx, posy); - } + var descs = new System.Collections.Generic.List(); + descs.AddRange(base.GetEoOps(type)); + return descs; } - - private static efl_ui_scrollbar_bar_position_set_delegate efl_ui_scrollbar_bar_position_set_static_delegate; - - - private delegate void efl_ui_scrollbar_bar_visibility_update_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate void efl_ui_scrollbar_bar_visibility_update_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_scrollbar_bar_visibility_update_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollbar_bar_visibility_update"); - - private static void bar_visibility_update(System.IntPtr obj, System.IntPtr pd) + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() { - Eina.Log.Debug("function efl_ui_scrollbar_bar_visibility_update was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((List)ws.Target).UpdateBarVisibility(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } + return Efl.Ui.List.efl_ui_list_class_get(); } - private static efl_ui_scrollbar_bar_visibility_update_delegate efl_ui_scrollbar_bar_visibility_update_static_delegate; + #pragma warning disable CA1707, CS1591, SA1300, SA1600 #pragma warning restore CA1707, CS1591, SA1300, SA1600 @@ -4499,3 +103,9 @@ public class List : Efl.Ui.LayoutBase, Efl.IPack, Efl.IPackLayout, Efl.IPackLine } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiList_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_default_item.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_default_item.eo.cs old mode 100644 new mode 100755 index b79f4b451..1f6c2cddf --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_default_item.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_default_item.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,12 +10,13 @@ namespace Efl { namespace Ui { -/// List Default Item class. This class need to be sub object of list widget. text and contents can be appliable by efl_text, efl_content or efl_part APIs. +/// List Default Item class. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.ListDefaultItem.NativeMethods] [Efl.Eo.BindingEntity] -public class ListDefaultItem : Efl.Ui.ListItem, Efl.IContent, Efl.IText, Efl.ITextMarkup +public class ListDefaultItem : Efl.Ui.DefaultItem { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +48,8 @@ public class ListDefaultItem : Efl.Ui.ListItem, Efl.IContent, Efl.IText, Efl.ITe FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected ListDefaultItem(ConstructingHandle ch) : base(ch) { @@ -67,244 +70,19 @@ public class ListDefaultItem : Efl.Ui.ListItem, Efl.IContent, Efl.IText, Efl.ITe { } - /// Sent after the content is set or unset using the current content object. - /// (Since EFL 1.22) - public event EventHandler ContentChangedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ContentChangedEvt. - public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = e.arg.NativeHandle; - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - /// The extra content part for list default item. extra part is the right-side content of list item. - public Efl.Ui.ItemPartExtra ExtraPart - { - get - { - return GetPart("extra") as Efl.Ui.ItemPartExtra; - } - } - /// The icon content part for list default item. icon part is the left-side content of list item. - public Efl.Ui.ItemPartIcon IconPart - { - get - { - return GetPart("icon") as Efl.Ui.ItemPartIcon; - } - } - /// The text part for list default item. - public Efl.Ui.ItemPartText TextPart - { - get - { - return GetPart("text") as Efl.Ui.ItemPartText; - } - } - /// Sub-object currently set as this object's single content. - /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). - /// (Since EFL 1.22) - /// The sub-object. - virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Sub-object currently set as this object's single content. - /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). - /// (Since EFL 1.22) - /// The sub-object. - /// true if content was successfully swallowed. - virtual public bool SetContent(Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),content); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. - /// (Since EFL 1.22) - /// Unswallowed object - virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Retrieves the text string currently being displayed by the given text object. - /// Do not free() the return value. - /// - /// See also . - /// (Since EFL 1.22) - /// Text string to display on it. - virtual public System.String GetText() { - var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Sets the text string to be displayed by the given text object. - /// See also . - /// (Since EFL 1.22) - /// Text string to display on it. - virtual public void SetText(System.String text) { - Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),text); - Eina.Error.RaiseIfUnhandledException(); - } - /// Markup property - /// The markup-text representation set to this text. - virtual public System.String GetMarkup() { - var _ret_var = Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Markup property - /// The markup-text representation set to this text. - virtual public void SetMarkup(System.String markup) { - Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),markup); - Eina.Error.RaiseIfUnhandledException(); - } - /// Sub-object currently set as this object's single content. - /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). - /// (Since EFL 1.22) - /// The sub-object. - public Efl.Gfx.IEntity Content { - get { return GetContent(); } - set { SetContent(value); } - } - /// Markup property - /// The markup-text representation set to this text. - public System.String Markup { - get { return GetMarkup(); } - set { SetMarkup(value); } - } private static IntPtr GetEflClassStatic() { return Efl.Ui.ListDefaultItem.efl_ui_list_default_item_class_get(); } /// Wrapper for native methods and virtual method delegates. /// For internal use by generated code only. - public new class NativeMethods : Efl.Ui.ListItem.NativeMethods + public new class NativeMethods : Efl.Ui.DefaultItem.NativeMethods { - private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); /// Gets the list of Eo operations to override. /// The list of Eo operations to be overload. public override System.Collections.Generic.List GetEoOps(System.Type type) { var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - - if (efl_content_get_static_delegate == null) - { - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); - } - - if (efl_content_set_static_delegate == null) - { - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); - } - - if (efl_content_unset_static_delegate == null) - { - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - } - - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); - } - - if (efl_text_get_static_delegate == null) - { - efl_text_get_static_delegate = new efl_text_get_delegate(text_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetText") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); - } - - if (efl_text_set_static_delegate == null) - { - efl_text_set_static_delegate = new efl_text_set_delegate(text_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetText") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); - } - - if (efl_text_markup_get_static_delegate == null) - { - efl_text_markup_get_static_delegate = new efl_text_markup_get_delegate(markup_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetMarkup") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_get_static_delegate) }); - } - - if (efl_text_markup_set_static_delegate == null) - { - efl_text_markup_set_static_delegate = new efl_text_markup_set_delegate(markup_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetMarkup") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_markup_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_markup_set_static_delegate) }); - } - descs.AddRange(base.GetEoOps(type)); return descs; } @@ -317,256 +95,6 @@ public class ListDefaultItem : Efl.Ui.ListItem, Efl.IContent, Efl.IText, Efl.ITe #pragma warning disable CA1707, CS1591, SA1300, SA1600 - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); - - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try - { - _ret_var = ((ListDefaultItem)ws.Target).GetContent(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_content_get_delegate efl_content_get_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); - - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); - - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((ListDefaultItem)ws.Target).SetContent(content); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); - } - } - - private static efl_content_set_delegate efl_content_set_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); - - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try - { - _ret_var = ((ListDefaultItem)ws.Target).UnsetContent(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_content_unset_delegate efl_content_unset_static_delegate; - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); - - private static System.String text_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - System.String _ret_var = default(System.String); - try - { - _ret_var = ((ListDefaultItem)ws.Target).GetText(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_text_get_delegate efl_text_get_static_delegate; - - - private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - - - public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - - public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); - - private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((ListDefaultItem)ws.Target).SetText(text); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); - } - } - - private static efl_text_set_delegate efl_text_set_static_delegate; - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - private delegate System.String efl_text_markup_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - public delegate System.String efl_text_markup_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_text_markup_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_get"); - - private static System.String markup_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_markup_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - System.String _ret_var = default(System.String); - try - { - _ret_var = ((ListDefaultItem)ws.Target).GetMarkup(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_text_markup_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_text_markup_get_delegate efl_text_markup_get_static_delegate; - - - private delegate void efl_text_markup_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); - - - public delegate void efl_text_markup_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String markup); - - public static Efl.Eo.FunctionWrapper efl_text_markup_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_markup_set"); - - private static void markup_set(System.IntPtr obj, System.IntPtr pd, System.String markup) - { - Eina.Log.Debug("function efl_text_markup_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((ListDefaultItem)ws.Target).SetMarkup(markup); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_text_markup_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), markup); - } - } - - private static efl_text_markup_set_delegate efl_text_markup_set_static_delegate; - #pragma warning restore CA1707, CS1591, SA1300, SA1600 } @@ -575,3 +103,9 @@ public class ListDefaultItem : Efl.Ui.ListItem, Efl.IContent, Efl.IText, Efl.ITe } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiListDefaultItem_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_item.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_item.eo.cs deleted file mode 100644 index dd80f4ecd..000000000 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_item.eo.cs +++ /dev/null @@ -1,108 +0,0 @@ -#pragma warning disable CS1591 -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.ComponentModel; -namespace Efl { - -namespace Ui { - -[Efl.Ui.ListItem.NativeMethods] -[Efl.Eo.BindingEntity] -public abstract class ListItem : Efl.Ui.Item -{ - ///Pointer to the native class description. - public override System.IntPtr NativeClass - { - get - { - if (((object)this).GetType() == typeof(ListItem)) - { - return GetEflClassStatic(); - } - else - { - return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; - } - } - } - - [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - efl_ui_list_item_class_get(); - /// Initializes a new instance of the class. - /// Parent instance. - /// The widget style to use. See - public ListItem(Efl.Object parent - , System.String style = null) : base(efl_ui_list_item_class_get(), parent) - { - if (Efl.Eo.Globals.ParamHelperCheck(style)) - { - SetStyle(Efl.Eo.Globals.GetParamHelper(style)); - } - - FinishInstantiation(); - } - - /// Constructor to be used when objects are expected to be constructed from native code. - /// Tag struct storing the native handle of the object being constructed. - protected ListItem(ConstructingHandle ch) : base(ch) - { - } - - /// Initializes a new instance of the class. - /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. - /// The native pointer to be wrapped. - protected ListItem(Efl.Eo.Globals.WrappingHandle wh) : base(wh) - { - } - - [Efl.Eo.PrivateNativeClass] - private class ListItemRealized : ListItem - { - private ListItemRealized(Efl.Eo.Globals.WrappingHandle wh) : base(wh) - { - } - } - /// Initializes a new instance of the class. - /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - /// The pointer to the base native Eo class. - /// The Efl.Object parent of this instance. - protected ListItem(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) - { - } - - private static IntPtr GetEflClassStatic() - { - return Efl.Ui.ListItem.efl_ui_list_item_class_get(); - } - /// Wrapper for native methods and virtual method delegates. - /// For internal use by generated code only. - public new class NativeMethods : Efl.Ui.Item.NativeMethods - { - /// Gets the list of Eo operations to override. - /// The list of Eo operations to be overload. - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - /// Returns the Eo class for the native methods of this class. - /// The native class pointer. - public override IntPtr GetEflClass() - { - return Efl.Ui.ListItem.efl_ui_list_item_class_get(); - } - - #pragma warning disable CA1707, CS1591, SA1300, SA1600 - - #pragma warning restore CA1707, CS1591, SA1300, SA1600 - -} -} -} - -} - diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_placeholder_item.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_placeholder_item.eo.cs old mode 100644 new mode 100755 index 02dc81891..c1da7a859 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_placeholder_item.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_placeholder_item.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// List Placeholder Item class. This item have only one swallow space, thus user can decorate item by filling the swallow with any kind of container. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.ListPlaceholderItem.NativeMethods] [Efl.Eo.BindingEntity] -public class ListPlaceholderItem : Efl.Ui.ListItem, Efl.IContent +public class ListPlaceholderItem : Efl.Ui.Item, Efl.IContent { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +48,8 @@ public class ListPlaceholderItem : Efl.Ui.ListItem, Efl.IContent FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected ListPlaceholderItem(ConstructingHandle ch) : base(ch) { @@ -69,6 +72,7 @@ public class ListPlaceholderItem : Efl.Ui.ListItem, Efl.IContent /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) + /// public event EventHandler ContentChangedEvt { add @@ -108,7 +112,7 @@ public class ListPlaceholderItem : Efl.Ui.ListItem, Efl.IContent } } } - ///Method to raise event ContentChangedEvt. + /// Method to raise event ContentChangedEvt. public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; @@ -123,11 +127,11 @@ public class ListPlaceholderItem : Efl.Ui.ListItem, Efl.IContent Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// the content part for list placeholder item. the content part is empty slot for user customizing. fill the place with container widget such as layout, box, table. - public Efl.Ui.ItemPartContent ContentPart + public Efl.Ui.LayoutPartContent ContentPart { get { - return GetPart("content") as Efl.Ui.ItemPartContent; + return GetPart("content") as Efl.Ui.LayoutPartContent; } } /// Sub-object currently set as this object's single content. @@ -171,7 +175,7 @@ public class ListPlaceholderItem : Efl.Ui.ListItem, Efl.IContent } /// Wrapper for native methods and virtual method delegates. /// For internal use by generated code only. - public new class NativeMethods : Efl.Ui.ListItem.NativeMethods + public new class NativeMethods : Efl.Ui.Item.NativeMethods { private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); /// Gets the list of Eo operations to override. @@ -339,3 +343,18 @@ public class ListPlaceholderItem : Efl.Ui.ListItem, Efl.IContent } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiListPlaceholderItem_ExtensionMethods { + public static Efl.BindableProperty Content(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ListPlaceholderItem { + return new Efl.BindableProperty("content", fac); + } + + public static Efl.BindableFactoryPart ContentPart(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTag x=null) where T : Efl.Ui.ListPlaceholderItem + { + return new Efl.BindableFactoryPart("content" ,fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view.eo.cs old mode 100644 new mode 100755 index ba71d31b9..9c9fd206d --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,47 +10,54 @@ namespace Efl { namespace Ui { -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ListViewItemRealizedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// public Efl.Ui.ListViewItemEvent arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ListViewItemUnrealizedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// public Efl.Ui.ListViewItemEvent arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ListViewItemFocusedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// public Efl.Ui.ListViewItemEvent arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ListViewItemUnfocusedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// public Efl.Ui.ListViewItemEvent arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ListViewItemHighlightedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// public Efl.Ui.ListViewItemEvent arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ListViewItemUnhighlightedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// public Efl.Ui.ListViewItemEvent arg { get; set; } } +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.ListView.NativeMethods] [Efl.Eo.BindingEntity] -public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListViewModel, Efl.Ui.IScrollable, Efl.Ui.IScrollableInteractive, Efl.Ui.IScrollbar, Efl.Ui.ISelectable, Efl.Ui.IWidgetFocusManager, Efl.Ui.Focus.IComposition, Efl.Ui.Focus.IManager, Efl.Ui.Focus.IManagerSub +public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IContainerSelectable, Efl.Ui.IListViewModel, Efl.Ui.IScrollable, Efl.Ui.IScrollableInteractive, Efl.Ui.IScrollbar, Efl.Ui.IWidgetFocusManager, Efl.Ui.Focus.IComposition, Efl.Ui.Focus.IManager, Efl.Ui.Focus.IManagerSub { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -81,7 +89,8 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected ListView(ConstructingHandle ch) : base(ch) { @@ -102,6 +111,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi { } + /// public event EventHandler ItemRealizedEvt { add @@ -141,7 +151,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } } } - ///Method to raise event ItemRealizedEvt. + /// Method to raise event ItemRealizedEvt. public void OnItemRealizedEvt(Efl.Ui.ListViewItemRealizedEvt_Args e) { var key = "_EFL_UI_LIST_VIEW_EVENT_ITEM_REALIZED"; @@ -163,6 +173,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi Marshal.FreeHGlobal(info); } } + /// public event EventHandler ItemUnrealizedEvt { add @@ -202,7 +213,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } } } - ///Method to raise event ItemUnrealizedEvt. + /// Method to raise event ItemUnrealizedEvt. public void OnItemUnrealizedEvt(Efl.Ui.ListViewItemUnrealizedEvt_Args e) { var key = "_EFL_UI_LIST_VIEW_EVENT_ITEM_UNREALIZED"; @@ -224,6 +235,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi Marshal.FreeHGlobal(info); } } + /// public event EventHandler ItemFocusedEvt { add @@ -263,7 +275,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } } } - ///Method to raise event ItemFocusedEvt. + /// Method to raise event ItemFocusedEvt. public void OnItemFocusedEvt(Efl.Ui.ListViewItemFocusedEvt_Args e) { var key = "_EFL_UI_LIST_VIEW_EVENT_ITEM_FOCUSED"; @@ -285,6 +297,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi Marshal.FreeHGlobal(info); } } + /// public event EventHandler ItemUnfocusedEvt { add @@ -324,7 +337,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } } } - ///Method to raise event ItemUnfocusedEvt. + /// Method to raise event ItemUnfocusedEvt. public void OnItemUnfocusedEvt(Efl.Ui.ListViewItemUnfocusedEvt_Args e) { var key = "_EFL_UI_LIST_VIEW_EVENT_ITEM_UNFOCUSED"; @@ -346,6 +359,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi Marshal.FreeHGlobal(info); } } + /// public event EventHandler ItemHighlightedEvt { add @@ -385,7 +399,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } } } - ///Method to raise event ItemHighlightedEvt. + /// Method to raise event ItemHighlightedEvt. public void OnItemHighlightedEvt(Efl.Ui.ListViewItemHighlightedEvt_Args e) { var key = "_EFL_UI_LIST_VIEW_EVENT_ITEM_HIGHLIGHTED"; @@ -407,6 +421,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi Marshal.FreeHGlobal(info); } } + /// public event EventHandler ItemUnhighlightedEvt { add @@ -446,7 +461,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } } } - ///Method to raise event ItemUnhighlightedEvt. + /// Method to raise event ItemUnhighlightedEvt. public void OnItemUnhighlightedEvt(Efl.Ui.ListViewItemUnhighlightedEvt_Args e) { var key = "_EFL_UI_LIST_VIEW_EVENT_ITEM_UNHIGHLIGHTED"; @@ -507,7 +522,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } } } - ///Method to raise event AccessSelectionChangedEvt. + /// Method to raise event AccessSelectionChangedEvt. public void OnAccessSelectionChangedEvt(EventArgs e) { var key = "_EFL_ACCESS_SELECTION_EVENT_ACCESS_SELECTION_CHANGED"; @@ -520,164 +535,9 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Called when scroll operation starts - public event EventHandler ScrollStartEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_START"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_START"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollStartEvt. - public void OnScrollStartEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_START"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scrolling - public event EventHandler ScrollEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollEvt. - public void OnScrollEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scroll operation stops - public event EventHandler ScrollStopEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_STOP"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_STOP"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollStopEvt. - public void OnScrollStopEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_STOP"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scrolling upwards - public event EventHandler ScrollUpEvt + /// Called when selected + /// + public event EventHandler ItemSelectedEvt { add { @@ -688,7 +548,8 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - EventArgs args = EventArgs.Empty; + Efl.Ui.IContainerSelectableItemSelectedEvt_Args args = new Efl.Ui.IContainerSelectableItemSelectedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); try { value?.Invoke(obj, args); @@ -701,7 +562,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } }; - string key = "_EFL_UI_EVENT_SCROLL_UP"; + string key = "_EFL_UI_EVENT_ITEM_SELECTED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -710,15 +571,15 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_SCROLL_UP"; + string key = "_EFL_UI_EVENT_ITEM_SELECTED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ScrollUpEvt. - public void OnScrollUpEvt(EventArgs e) + /// Method to raise event ItemSelectedEvt. + public void OnItemSelectedEvt(Efl.Ui.IContainerSelectableItemSelectedEvt_Args e) { - var key = "_EFL_UI_EVENT_SCROLL_UP"; + var key = "_EFL_UI_EVENT_ITEM_SELECTED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -726,10 +587,12 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi return; } - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } - /// Called when scrolling downwards - public event EventHandler ScrollDownEvt + /// Called when no longer selected + /// + public event EventHandler ItemUnselectedEvt { add { @@ -740,7 +603,8 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - EventArgs args = EventArgs.Empty; + Efl.Ui.IContainerSelectableItemUnselectedEvt_Args args = new Efl.Ui.IContainerSelectableItemUnselectedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); try { value?.Invoke(obj, args); @@ -753,7 +617,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } }; - string key = "_EFL_UI_EVENT_SCROLL_DOWN"; + string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -762,15 +626,15 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_SCROLL_DOWN"; + string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ScrollDownEvt. - public void OnScrollDownEvt(EventArgs e) + /// Method to raise event ItemUnselectedEvt. + public void OnItemUnselectedEvt(Efl.Ui.IContainerSelectableItemUnselectedEvt_Args e) { - var key = "_EFL_UI_EVENT_SCROLL_DOWN"; + var key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -778,10 +642,11 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi return; } - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } - /// Called when scrolling left - public event EventHandler ScrollLeftEvt + /// Called when scroll operation starts + public event EventHandler ScrollStartEvt { add { @@ -805,7 +670,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } }; - string key = "_EFL_UI_EVENT_SCROLL_LEFT"; + string key = "_EFL_UI_EVENT_SCROLL_START"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -814,15 +679,15 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_SCROLL_LEFT"; + string key = "_EFL_UI_EVENT_SCROLL_START"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ScrollLeftEvt. - public void OnScrollLeftEvt(EventArgs e) + /// Method to raise event ScrollStartEvt. + public void OnScrollStartEvt(EventArgs e) { - var key = "_EFL_UI_EVENT_SCROLL_LEFT"; + var key = "_EFL_UI_EVENT_SCROLL_START"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -832,8 +697,8 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Called when scrolling right - public event EventHandler ScrollRightEvt + /// Called when scrolling + public event EventHandler ScrollEvt { add { @@ -857,7 +722,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } }; - string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; + string key = "_EFL_UI_EVENT_SCROLL"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -866,15 +731,15 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; + string key = "_EFL_UI_EVENT_SCROLL"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ScrollRightEvt. - public void OnScrollRightEvt(EventArgs e) + /// Method to raise event ScrollEvt. + public void OnScrollEvt(EventArgs e) { - var key = "_EFL_UI_EVENT_SCROLL_RIGHT"; + var key = "_EFL_UI_EVENT_SCROLL"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -884,8 +749,8 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Called when hitting the top edge - public event EventHandler EdgeUpEvt + /// Called when scroll operation stops + public event EventHandler ScrollStopEvt { add { @@ -909,7 +774,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } }; - string key = "_EFL_UI_EVENT_EDGE_UP"; + string key = "_EFL_UI_EVENT_SCROLL_STOP"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -918,15 +783,15 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_EDGE_UP"; + string key = "_EFL_UI_EVENT_SCROLL_STOP"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event EdgeUpEvt. - public void OnEdgeUpEvt(EventArgs e) + /// Method to raise event ScrollStopEvt. + public void OnScrollStopEvt(EventArgs e) { - var key = "_EFL_UI_EVENT_EDGE_UP"; + var key = "_EFL_UI_EVENT_SCROLL_STOP"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -936,8 +801,8 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Called when hitting the bottom edge - public event EventHandler EdgeDownEvt + /// Called when scrolling upwards + public event EventHandler ScrollUpEvt { add { @@ -961,7 +826,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } }; - string key = "_EFL_UI_EVENT_EDGE_DOWN"; + string key = "_EFL_UI_EVENT_SCROLL_UP"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -970,15 +835,15 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_EDGE_DOWN"; + string key = "_EFL_UI_EVENT_SCROLL_UP"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event EdgeDownEvt. - public void OnEdgeDownEvt(EventArgs e) + /// Method to raise event ScrollUpEvt. + public void OnScrollUpEvt(EventArgs e) { - var key = "_EFL_UI_EVENT_EDGE_DOWN"; + var key = "_EFL_UI_EVENT_SCROLL_UP"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -988,8 +853,8 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Called when hitting the left edge - public event EventHandler EdgeLeftEvt + /// Called when scrolling downwards + public event EventHandler ScrollDownEvt { add { @@ -1013,7 +878,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } }; - string key = "_EFL_UI_EVENT_EDGE_LEFT"; + string key = "_EFL_UI_EVENT_SCROLL_DOWN"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -1022,15 +887,15 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_EDGE_LEFT"; + string key = "_EFL_UI_EVENT_SCROLL_DOWN"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event EdgeLeftEvt. - public void OnEdgeLeftEvt(EventArgs e) + /// Method to raise event ScrollDownEvt. + public void OnScrollDownEvt(EventArgs e) { - var key = "_EFL_UI_EVENT_EDGE_LEFT"; + var key = "_EFL_UI_EVENT_SCROLL_DOWN"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -1040,8 +905,8 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Called when hitting the right edge - public event EventHandler EdgeRightEvt + /// Called when scrolling left + public event EventHandler ScrollLeftEvt { add { @@ -1065,7 +930,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } }; - string key = "_EFL_UI_EVENT_EDGE_RIGHT"; + string key = "_EFL_UI_EVENT_SCROLL_LEFT"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -1074,15 +939,15 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_EDGE_RIGHT"; + string key = "_EFL_UI_EVENT_SCROLL_LEFT"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event EdgeRightEvt. - public void OnEdgeRightEvt(EventArgs e) + /// Method to raise event ScrollLeftEvt. + public void OnScrollLeftEvt(EventArgs e) { - var key = "_EFL_UI_EVENT_EDGE_RIGHT"; + var key = "_EFL_UI_EVENT_SCROLL_LEFT"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -1092,8 +957,8 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Called when scroll animation starts - public event EventHandler ScrollAnimStartEvt + /// Called when scrolling right + public event EventHandler ScrollRightEvt { add { @@ -1117,7 +982,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } }; - string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; + string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -1126,15 +991,15 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; + string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ScrollAnimStartEvt. - public void OnScrollAnimStartEvt(EventArgs e) + /// Method to raise event ScrollRightEvt. + public void OnScrollRightEvt(EventArgs e) { - var key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; + var key = "_EFL_UI_EVENT_SCROLL_RIGHT"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -1144,8 +1009,8 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Called when scroll animation stopps - public event EventHandler ScrollAnimStopEvt + /// Called when hitting the top edge + public event EventHandler EdgeUpEvt { add { @@ -1169,7 +1034,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } }; - string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; + string key = "_EFL_UI_EVENT_EDGE_UP"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -1178,15 +1043,15 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; + string key = "_EFL_UI_EVENT_EDGE_UP"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ScrollAnimStopEvt. - public void OnScrollAnimStopEvt(EventArgs e) + /// Method to raise event EdgeUpEvt. + public void OnEdgeUpEvt(EventArgs e) { - var key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; + var key = "_EFL_UI_EVENT_EDGE_UP"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -1196,8 +1061,8 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Called when scroll drag starts - public event EventHandler ScrollDragStartEvt + /// Called when hitting the bottom edge + public event EventHandler EdgeDownEvt { add { @@ -1221,7 +1086,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } }; - string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; + string key = "_EFL_UI_EVENT_EDGE_DOWN"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -1230,15 +1095,15 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; + string key = "_EFL_UI_EVENT_EDGE_DOWN"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ScrollDragStartEvt. - public void OnScrollDragStartEvt(EventArgs e) + /// Method to raise event EdgeDownEvt. + public void OnEdgeDownEvt(EventArgs e) { - var key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; + var key = "_EFL_UI_EVENT_EDGE_DOWN"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -1248,8 +1113,8 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Called when scroll drag stops - public event EventHandler ScrollDragStopEvt + /// Called when hitting the left edge + public event EventHandler EdgeLeftEvt { add { @@ -1273,182 +1138,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } }; - string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollDragStopEvt. - public void OnScrollDragStopEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when bar is pressed. - public event EventHandler BarPressEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.IScrollbarBarPressEvt_Args args = new Efl.Ui.IScrollbarBarPressEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event BarPressEvt. - public void OnBarPressEvt(Efl.Ui.IScrollbarBarPressEvt_Args e) - { - var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); - try - { - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - finally - { - Marshal.FreeHGlobal(info); - } - } - /// Called when bar is unpressed. - public event EventHandler BarUnpressEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.IScrollbarBarUnpressEvt_Args args = new Efl.Ui.IScrollbarBarUnpressEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event BarUnpressEvt. - public void OnBarUnpressEvt(Efl.Ui.IScrollbarBarUnpressEvt_Args e) - { - var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); - try - { - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - finally - { - Marshal.FreeHGlobal(info); - } - } - /// Called when bar is dragged. - public event EventHandler BarDragEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.IScrollbarBarDragEvt_Args args = new Efl.Ui.IScrollbarBarDragEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; + string key = "_EFL_UI_EVENT_EDGE_LEFT"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -1457,34 +1147,26 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi { lock (eflBindingEventLock) { - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; + string key = "_EFL_UI_EVENT_EDGE_LEFT"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event BarDragEvt. - public void OnBarDragEvt(Efl.Ui.IScrollbarBarDragEvt_Args e) + /// Method to raise event EdgeLeftEvt. + public void OnEdgeLeftEvt(EventArgs e) { - var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; + var key = "_EFL_UI_EVENT_EDGE_LEFT"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); - try - { - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - finally - { - Marshal.FreeHGlobal(info); + return; } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Called when bar size is changed. - public event EventHandler BarSizeChangedEvt + /// Called when hitting the right edge + public event EventHandler EdgeRightEvt { add { @@ -1508,7 +1190,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } }; - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; + string key = "_EFL_UI_EVENT_EDGE_RIGHT"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -1517,15 +1199,15 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi { lock (eflBindingEventLock) { - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; + string key = "_EFL_UI_EVENT_EDGE_RIGHT"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event BarSizeChangedEvt. - public void OnBarSizeChangedEvt(EventArgs e) + /// Method to raise event EdgeRightEvt. + public void OnEdgeRightEvt(EventArgs e) { - var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; + var key = "_EFL_UI_EVENT_EDGE_RIGHT"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -1535,8 +1217,8 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Called when bar position is changed. - public event EventHandler BarPosChangedEvt + /// Called when scroll animation starts + public event EventHandler ScrollAnimStartEvt { add { @@ -1560,7 +1242,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } }; - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; + string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -1569,15 +1251,15 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi { lock (eflBindingEventLock) { - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; + string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event BarPosChangedEvt. - public void OnBarPosChangedEvt(EventArgs e) + /// Method to raise event ScrollAnimStartEvt. + public void OnScrollAnimStartEvt(EventArgs e) { - var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; + var key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -1587,8 +1269,8 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Callend when bar is shown. - public event EventHandler BarShowEvt + /// Called when scroll animation stopps + public event EventHandler ScrollAnimStopEvt { add { @@ -1599,8 +1281,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IScrollbarBarShowEvt_Args args = new Efl.Ui.IScrollbarBarShowEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; + EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); @@ -1613,7 +1294,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } }; - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; + string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -1622,15 +1303,15 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi { lock (eflBindingEventLock) { - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; + string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event BarShowEvt. - public void OnBarShowEvt(Efl.Ui.IScrollbarBarShowEvt_Args e) + /// Method to raise event ScrollAnimStopEvt. + public void OnScrollAnimStopEvt(EventArgs e) { - var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; + var key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -1638,18 +1319,10 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi return; } - IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); - try - { - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - finally - { - Marshal.FreeHGlobal(info); - } + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Called when bar is hidden. - public event EventHandler BarHideEvt + /// Called when scroll drag starts + public event EventHandler ScrollDragStartEvt { add { @@ -1660,8 +1333,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IScrollbarBarHideEvt_Args args = new Efl.Ui.IScrollbarBarHideEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; + EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); @@ -1674,7 +1346,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } }; - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; + string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -1683,15 +1355,15 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi { lock (eflBindingEventLock) { - string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; + string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event BarHideEvt. - public void OnBarHideEvt(Efl.Ui.IScrollbarBarHideEvt_Args e) + /// Method to raise event ScrollDragStartEvt. + public void OnScrollDragStartEvt(EventArgs e) { - var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; + var key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -1699,18 +1371,10 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi return; } - IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); - try - { - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - finally - { - Marshal.FreeHGlobal(info); - } + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Called when selected - public event EventHandler ItemSelectedEvt + /// Called when scroll drag stops + public event EventHandler ScrollDragStopEvt { add { @@ -1721,8 +1385,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.ISelectableItemSelectedEvt_Args args = new Efl.Ui.ISelectableItemSelectedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); @@ -1735,7 +1398,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } }; - string key = "_EFL_UI_EVENT_ITEM_SELECTED"; + string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -1744,15 +1407,15 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_ITEM_SELECTED"; + string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ItemSelectedEvt. - public void OnItemSelectedEvt(Efl.Ui.ISelectableItemSelectedEvt_Args e) + /// Method to raise event ScrollDragStopEvt. + public void OnScrollDragStopEvt(EventArgs e) { - var key = "_EFL_UI_EVENT_ITEM_SELECTED"; + var key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -1760,11 +1423,11 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi return; } - IntPtr info = e.arg.NativeHandle; - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Called when no longer selected - public event EventHandler ItemUnselectedEvt + /// Called when bar is pressed. + /// + public event EventHandler BarPressEvt { add { @@ -1775,8 +1438,8 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.ISelectableItemUnselectedEvt_Args args = new Efl.Ui.ISelectableItemUnselectedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + Efl.Ui.IScrollbarBarPressEvt_Args args = new Efl.Ui.IScrollbarBarPressEvt_Args(); + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); @@ -1789,7 +1452,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } }; - string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -1798,15 +1461,15 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ItemUnselectedEvt. - public void OnItemUnselectedEvt(Efl.Ui.ISelectableItemUnselectedEvt_Args e) + /// Method to raise event BarPressEvt. + public void OnBarPressEvt(Efl.Ui.IScrollbarBarPressEvt_Args e) { - var key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -1814,11 +1477,19 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi return; } - IntPtr info = e.arg.NativeHandle; - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } - /// Called when selection is pasted - public event EventHandler SelectionPasteEvt + /// Called when bar is unpressed. + /// + public event EventHandler BarUnpressEvt { add { @@ -1829,7 +1500,8 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - EventArgs args = EventArgs.Empty; + Efl.Ui.IScrollbarBarUnpressEvt_Args args = new Efl.Ui.IScrollbarBarUnpressEvt_Args(); + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); @@ -1842,7 +1514,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } }; - string key = "_EFL_UI_EVENT_SELECTION_PASTE"; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -1851,15 +1523,15 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_SELECTION_PASTE"; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event SelectionPasteEvt. - public void OnSelectionPasteEvt(EventArgs e) + /// Method to raise event BarUnpressEvt. + public void OnBarUnpressEvt(Efl.Ui.IScrollbarBarUnpressEvt_Args e) { - var key = "_EFL_UI_EVENT_SELECTION_PASTE"; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -1867,10 +1539,19 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi return; } - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } - /// Called when selection is copied - public event EventHandler SelectionCopyEvt + /// Called when bar is dragged. + /// + public event EventHandler BarDragEvt { add { @@ -1881,7 +1562,8 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - EventArgs args = EventArgs.Empty; + Efl.Ui.IScrollbarBarDragEvt_Args args = new Efl.Ui.IScrollbarBarDragEvt_Args(); + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); @@ -1894,7 +1576,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } }; - string key = "_EFL_UI_EVENT_SELECTION_COPY"; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -1903,15 +1585,15 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_SELECTION_COPY"; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event SelectionCopyEvt. - public void OnSelectionCopyEvt(EventArgs e) + /// Method to raise event BarDragEvt. + public void OnBarDragEvt(Efl.Ui.IScrollbarBarDragEvt_Args e) { - var key = "_EFL_UI_EVENT_SELECTION_COPY"; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -1919,10 +1601,18 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi return; } - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } - /// Called when selection is cut - public event EventHandler SelectionCutEvt + /// Called when bar size is changed. + public event EventHandler BarSizeChangedEvt { add { @@ -1946,7 +1636,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } }; - string key = "_EFL_UI_EVENT_SELECTION_CUT"; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -1955,15 +1645,15 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_SELECTION_CUT"; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event SelectionCutEvt. - public void OnSelectionCutEvt(EventArgs e) + /// Method to raise event BarSizeChangedEvt. + public void OnBarSizeChangedEvt(EventArgs e) { - var key = "_EFL_UI_EVENT_SELECTION_CUT"; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -1973,8 +1663,8 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Called at selection start - public event EventHandler SelectionStartEvt + /// Called when bar position is changed. + public event EventHandler BarPosChangedEvt { add { @@ -1998,7 +1688,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } }; - string key = "_EFL_UI_EVENT_SELECTION_START"; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -2007,15 +1697,15 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_SELECTION_START"; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event SelectionStartEvt. - public void OnSelectionStartEvt(EventArgs e) + /// Method to raise event BarPosChangedEvt. + public void OnBarPosChangedEvt(EventArgs e) { - var key = "_EFL_UI_EVENT_SELECTION_START"; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -2025,8 +1715,9 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Called when selection is changed - public event EventHandler SelectionChangedEvt + /// Callend when bar is shown. + /// + public event EventHandler BarShowEvt { add { @@ -2037,7 +1728,8 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - EventArgs args = EventArgs.Empty; + Efl.Ui.IScrollbarBarShowEvt_Args args = new Efl.Ui.IScrollbarBarShowEvt_Args(); + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); @@ -2050,7 +1742,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } }; - string key = "_EFL_UI_EVENT_SELECTION_CHANGED"; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -2059,15 +1751,15 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_SELECTION_CHANGED"; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event SelectionChangedEvt. - public void OnSelectionChangedEvt(EventArgs e) + /// Method to raise event BarShowEvt. + public void OnBarShowEvt(Efl.Ui.IScrollbarBarShowEvt_Args e) { - var key = "_EFL_UI_EVENT_SELECTION_CHANGED"; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -2075,10 +1767,19 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi return; } - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } - /// Called when selection is cleared - public event EventHandler SelectionClearedEvt + /// Called when bar is hidden. + /// + public event EventHandler BarHideEvt { add { @@ -2089,7 +1790,8 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - EventArgs args = EventArgs.Empty; + Efl.Ui.IScrollbarBarHideEvt_Args args = new Efl.Ui.IScrollbarBarHideEvt_Args(); + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); @@ -2102,7 +1804,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } }; - string key = "_EFL_UI_EVENT_SELECTION_CLEARED"; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -2111,15 +1813,15 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_SELECTION_CLEARED"; + string key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event SelectionClearedEvt. - public void OnSelectionClearedEvt(EventArgs e) + /// Method to raise event BarHideEvt. + public void OnBarHideEvt(Efl.Ui.IScrollbarBarHideEvt_Args e) { - var key = "_EFL_UI_EVENT_SELECTION_CLEARED"; + var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -2127,10 +1829,19 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi return; } - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } } /// Redirect object has changed, the old manager is passed as an event argument. /// (Since EFL 1.22) + /// public event EventHandler RedirectChangedEvt { add @@ -2170,7 +1881,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } } } - ///Method to raise event RedirectChangedEvt. + /// Method to raise event RedirectChangedEvt. public void OnRedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; @@ -2224,7 +1935,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } } } - ///Method to raise event FlushPreEvt. + /// Method to raise event FlushPreEvt. public void OnFlushPreEvt(EventArgs e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; @@ -2277,7 +1988,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } } } - ///Method to raise event CoordsDirtyEvt. + /// Method to raise event CoordsDirtyEvt. public void OnCoordsDirtyEvt(EventArgs e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; @@ -2292,6 +2003,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } /// The manager_focus property has changed. The previously focused object is passed as an event argument. /// (Since EFL 1.22) + /// public event EventHandler ManagerFocusChangedEvt { add @@ -2331,7 +2043,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } } } - ///Method to raise event ManagerFocusChangedEvt. + /// Method to raise event ManagerFocusChangedEvt. public void OnManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; @@ -2347,6 +2059,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } /// Called when this focus manager is frozen or thawed, even_info being true indicates that it is now frozen, false indicates that it is thawed. /// (Since EFL 1.22) + /// public event EventHandler DirtyLogicFreezeChangedEvt { add @@ -2386,7 +2099,7 @@ public class ListView : Efl.Ui.LayoutBase, Efl.Access.ISelection, Efl.Ui.IListVi } } } - ///Method to raise event DirtyLogicFreezeChangedEvt. + /// Method to raise event DirtyLogicFreezeChangedEvt. public void OnDirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; @@ -2919,7 +2632,9 @@ logical_order.Own = false; } /// This will fetch the data from a registered node. /// Be aware this function will trigger a computation of all dirty nodes. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The child object to inspect. /// The list of relations starting from child. virtual public Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child) { @@ -3003,6 +2718,9 @@ logical_order.Own = false; public int SelectedChildrenCount { get { return GetSelectedChildrenCount(); } } + public (int, int) LoadRange { + set { SetLoadRange( value.Item1, value.Item2); } + } public int ModelSize { get { return GetModelSize(); } } @@ -3027,6 +2745,18 @@ logical_order.Own = false; public Eina.Rect ViewportGeometry { get { return GetViewportGeometry(); } } + /// Bouncing behavior + /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. + /// Horizontal bounce policy. + public (bool, bool) BounceEnabled { + get { + bool _out_horiz = default(bool); + bool _out_vert = default(bool); + GetBounceEnabled(out _out_horiz,out _out_vert); + return (_out_horiz,_out_vert); + } + set { SetBounceEnabled( value.Item1, value.Item2); } + } /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . /// true if freeze, false otherwise public bool ScrollFreeze { @@ -3039,6 +2769,17 @@ logical_order.Own = false; get { return GetScrollHold(); } set { SetScrollHold(value); } } + /// Controls an infinite loop for a scroller. + /// The scrolling horizontal loop + public (bool, bool) Looping { + get { + bool _out_loop_h = default(bool); + bool _out_loop_v = default(bool); + GetLooping(out _out_loop_h,out _out_loop_v); + return (_out_loop_h,_out_loop_v); + } + set { SetLooping( value.Item1, value.Item2); } + } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block @@ -3046,6 +2787,30 @@ logical_order.Own = false; get { return GetMovementBlock(); } set { SetMovementBlock(value); } } + /// Control scrolling gravity on the scrollable + /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. + /// + /// The scroller will adjust the view to glue itself as follows. + /// + /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content + /// + /// Default values for x and y are 0.0 + /// Horizontal scrolling gravity + public (double, double) Gravity { + get { + double _out_x = default(double); + double _out_y = default(double); + GetGravity(out _out_x,out _out_y); + return (_out_x,_out_y); + } + set { SetGravity( value.Item1, value.Item2); } + } + /// Prevent the scrollable from being smaller than the minimum size of the content. + /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. + /// Whether to limit the minimum horizontal size + public (bool, bool) MatchContent { + set { SetMatchContent( value.Item1, value.Item2); } + } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels @@ -3053,6 +2818,37 @@ logical_order.Own = false; get { return GetStepSize(); } set { SetStepSize(value); } } + /// Scrollbar visibility policy + /// Horizontal scrollbar. + public (Efl.Ui.ScrollbarMode, Efl.Ui.ScrollbarMode) BarMode { + get { + Efl.Ui.ScrollbarMode _out_hbar = default(Efl.Ui.ScrollbarMode); + Efl.Ui.ScrollbarMode _out_vbar = default(Efl.Ui.ScrollbarMode); + GetBarMode(out _out_hbar,out _out_vbar); + return (_out_hbar,_out_vbar); + } + set { SetBarMode( value.Item1, value.Item2); } + } + /// Scrollbar size. It is calculated based on viewport size-content sizes. + public (double, double) BarSize { + get { + double _out_width = default(double); + double _out_height = default(double); + GetBarSize(out _out_width,out _out_height); + return (_out_width,_out_height); + } + } + /// Scrollbar position. It is calculated based on current position-maximum positions. + /// Value between 0.0 and 1.0. + public (double, double) BarPosition { + get { + double _out_posx = default(double); + double _out_posy = default(double); + GetBarPosition(out _out_posx,out _out_posy); + return (_out_posx,_out_posy); + } + set { SetBarPosition( value.Item1, value.Item2); } + } /// Set the order of elements that will be used for composition /// Elements of the list can be either an Efl.Ui.Widget, an Efl.Ui.Focus.Object or an Efl.Gfx. /// @@ -6424,6 +6220,87 @@ logical_order.Own = false; } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiListView_ExtensionMethods { + public static Efl.BindableProperty Homogeneous(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ListView { + return new Efl.BindableProperty("homogeneous", fac); + } + + public static Efl.BindableProperty SelectMode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ListView { + return new Efl.BindableProperty("select_mode", fac); + } + + public static Efl.BindableProperty DefaultStyle(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ListView { + return new Efl.BindableProperty("default_style", fac); + } + + public static Efl.BindableProperty LayoutFactory(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ListView { + return new Efl.BindableProperty("layout_factory", fac); + } + + + + + + public static Efl.BindableProperty MinSize(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ListView { + return new Efl.BindableProperty("min_size", fac); + } + + public static Efl.BindableProperty ContentPos(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ListView { + return new Efl.BindableProperty("content_pos", fac); + } + + + + + public static Efl.BindableProperty ScrollFreeze(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ListView { + return new Efl.BindableProperty("scroll_freeze", fac); + } + + public static Efl.BindableProperty ScrollHold(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ListView { + return new Efl.BindableProperty("scroll_hold", fac); + } + + + public static Efl.BindableProperty MovementBlock(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ListView { + return new Efl.BindableProperty("movement_block", fac); + } + + + + public static Efl.BindableProperty StepSize(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ListView { + return new Efl.BindableProperty("step_size", fac); + } + + + + + public static Efl.BindableProperty> CompositionElements(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ListView { + return new Efl.BindableProperty>("composition_elements", fac); + } + + public static Efl.BindableProperty LogicalMode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ListView { + return new Efl.BindableProperty("logical_mode", fac); + } + + public static Efl.BindableProperty ManagerFocus(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ListView { + return new Efl.BindableProperty("manager_focus", fac); + } + + public static Efl.BindableProperty Redirect(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ListView { + return new Efl.BindableProperty("redirect", fac); + } + + + + public static Efl.BindableProperty Root(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ListView { + return new Efl.BindableProperty("root", fac); + } + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Ui { @@ -6439,7 +6316,10 @@ public struct ListViewItemEvent public Efl.IModel Child; /// TBD public int Index; - ///Constructor for ListViewItemEvent. + /// Constructor for ListViewItemEvent. + /// TBD; + /// TBD; + /// TBD; public ListViewItemEvent( Efl.Ui.Layout Layout = default(Efl.Ui.Layout), Efl.IModel Child = default(Efl.IModel), @@ -6450,8 +6330,8 @@ public struct ListViewItemEvent this.Index = Index; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator ListViewItemEvent(IntPtr ptr) { var tmp = (ListViewItemEvent.NativeStruct)Marshal.PtrToStructure(ptr, typeof(ListViewItemEvent.NativeStruct)); @@ -6460,17 +6340,17 @@ public struct ListViewItemEvent #pragma warning disable CS1591 - ///Internal wrapper for struct ListViewItemEvent. + /// Internal wrapper for struct ListViewItemEvent. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { - ///Internal wrapper for field Layout + /// Internal wrapper for field Layout public System.IntPtr Layout; - ///Internal wrapper for field Child + /// Internal wrapper for field Child public System.IntPtr Child; public int Index; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator ListViewItemEvent.NativeStruct(ListViewItemEvent _external_struct) { var _internal_struct = new ListViewItemEvent.NativeStruct(); @@ -6480,7 +6360,7 @@ public struct ListViewItemEvent return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator ListViewItemEvent(ListViewItemEvent.NativeStruct _internal_struct) { var _external_struct = new ListViewItemEvent(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_model.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_model.eo.cs old mode 100644 new mode 100755 index 8bbdd94a0..eb070531d --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_model.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_model.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,6 +10,7 @@ namespace Efl { namespace Ui { +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.IListViewModelConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IListViewModel : @@ -22,21 +24,25 @@ Eina.Size2D GetMinSize(); void SetMinSize(Eina.Size2D min); Efl.Ui.ListViewLayoutItem Realize(ref Efl.Ui.ListViewLayoutItem item); void Unrealize(ref Efl.Ui.ListViewLayoutItem item); - int ModelSize { - get ; + (int, int) LoadRange { + set; + } + int ModelSize { + get; } /// Minimal content size. Eina.Size2D MinSize { - get ; - set ; + get; + set; } } -sealed public class IListViewModelConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IListViewModelConcrete : Efl.Eo.EoWrapper , IListViewModel { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -52,7 +58,8 @@ sealed public class IListViewModelConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IListViewModelConcrete(ConstructingHandle ch) : base(ch) { @@ -103,6 +110,9 @@ sealed public class IListViewModelConcrete : Eina.Error.RaiseIfUnhandledException(); item = _in_item; } + public (int, int) LoadRange { + set { SetLoadRange( value.Item1, value.Item2); } + } public int ModelSize { get { return GetModelSize(); } } @@ -424,3 +434,15 @@ sealed public class IListViewModelConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiIListViewModelConcrete_ExtensionMethods { + + + public static Efl.BindableProperty MinSize(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IListViewModel { + return new Efl.BindableProperty("min_size", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_pan.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_pan.eo.cs old mode 100644 new mode 100755 index 0cc8d252c..5718fa5d3 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_pan.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_pan.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Elementary Efl_Ui_List_View pan class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.ListViewPan.NativeMethods] [Efl.Eo.BindingEntity] public class ListViewPan : Efl.Ui.Pan { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class ListViewPan : Efl.Ui.Pan FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected ListViewPan(ConstructingHandle ch) : base(ch) { @@ -94,3 +97,9 @@ public class ListViewPan : Efl.Ui.Pan } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiListViewPan_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_types.eot.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_types.eot.cs old mode 100644 new mode 100755 index 4458b15cd..efa481940 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_types.eot.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_view_types.eot.cs @@ -18,10 +18,21 @@ public struct ListViewLayoutItem public Efl.IModel Children; public int Index_offset; public System.IntPtr Tree_node; + /// A 2D size in pixels. public Eina.Size2D Min; + /// A 2D size in pixels. public Eina.Size2D Size; + /// A 2D location in pixels. public Eina.Position2D Pos; - ///Constructor for ListViewLayoutItem. + /// Constructor for ListViewLayoutItem. + /// ; + /// ; + /// ; + /// ; + /// ; + /// ; + /// ; + /// ; public ListViewLayoutItem( Efl.Ui.Layout Layout = default(Efl.Ui.Layout), Eina.Future Layout_request = default( Eina.Future), @@ -42,8 +53,8 @@ public struct ListViewLayoutItem this.Pos = Pos; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator ListViewLayoutItem(IntPtr ptr) { var tmp = (ListViewLayoutItem.NativeStruct)Marshal.PtrToStructure(ptr, typeof(ListViewLayoutItem.NativeStruct)); @@ -52,15 +63,15 @@ public struct ListViewLayoutItem #pragma warning disable CS1591 - ///Internal wrapper for struct ListViewLayoutItem. + /// Internal wrapper for struct ListViewLayoutItem. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { - ///Internal wrapper for field Layout + /// Internal wrapper for field Layout public System.IntPtr Layout; [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] public Eina.Future Layout_request; - ///Internal wrapper for field Children + /// Internal wrapper for field Children public System.IntPtr Children; public int Index_offset; @@ -72,7 +83,7 @@ public struct ListViewLayoutItem public Eina.Size2D.NativeStruct Size; public Eina.Position2D.NativeStruct Pos; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator ListViewLayoutItem.NativeStruct(ListViewLayoutItem _external_struct) { var _internal_struct = new ListViewLayoutItem.NativeStruct(); @@ -87,7 +98,7 @@ public struct ListViewLayoutItem return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator ListViewLayoutItem(ListViewLayoutItem.NativeStruct _internal_struct) { var _external_struct = new ListViewLayoutItem(); @@ -119,10 +130,10 @@ public struct ListViewLayoutItem [Efl.Eo.BindingEntity] public struct EflUiListViewSegArray { - ///Placeholder field + /// Placeholder field public IntPtr field; - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator EflUiListViewSegArray(IntPtr ptr) { var tmp = (EflUiListViewSegArray.NativeStruct)Marshal.PtrToStructure(ptr, typeof(EflUiListViewSegArray.NativeStruct)); @@ -131,19 +142,19 @@ public struct EflUiListViewSegArray #pragma warning disable CS1591 - ///Internal wrapper for struct EflUiListViewSegArray. + /// Internal wrapper for struct EflUiListViewSegArray. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { internal IntPtr field; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator EflUiListViewSegArray.NativeStruct(EflUiListViewSegArray _external_struct) { var _internal_struct = new EflUiListViewSegArray.NativeStruct(); return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator EflUiListViewSegArray(EflUiListViewSegArray.NativeStruct _internal_struct) { var _external_struct = new EflUiListViewSegArray(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_multi_selectable.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_multi_selectable.eo.cs old mode 100644 new mode 100755 index b64e1013d..a189d020f --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_multi_selectable.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_multi_selectable.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,10 +10,13 @@ namespace Efl { namespace Ui { -/// Efl UI Multi selectable interface. The container have to control select property of multiple chidren. +/// Interface for getting access to a range of selected items. +/// The implementor of this interface provides the possibility to select multiple Selectables. (If not, only Efl.Ui.Single_Selectable should be implemented) +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.IMultiSelectableConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IMultiSelectable : + Efl.Ui.ISingleSelectable , Efl.Eo.IWrapper, IDisposable { /// The mode type for children selection. @@ -21,20 +25,39 @@ Efl.Ui.SelectMode GetSelectMode(); /// The mode type for children selection. /// Type of selection of children void SetSelectMode(Efl.Ui.SelectMode mode); - /// The mode type for children selection. + /// Get the selected items in a iterator. The iterator sequence will be decided by selection. +/// User has to free the iterator after usage. +Eina.Iterator GetSelectedItems(); + /// Select a range of . +/// This will select the range of selectables from a to b or from b to a depending on which one comes first. If a or b are not part of the widget, a error is returned, and no change is applied. null is not allowed as either of the parameters. Both of the passed values will also be selected. +/// One side of the range. +/// The other side of the range. +void SelectRange(Efl.Ui.ISelectable a, Efl.Ui.ISelectable b); + /// Unselect a range of . +/// This will unselect the range of selectables from a to b or from b to a depending on which one comes first. If a or b are not part of the widget, a error is returned, and no change is applied. null is not allowed as either of the parameters. Both of the passed values will also be unselected. +/// One side of the range. +/// The other side of the range. +void UnselectRange(Efl.Ui.ISelectable a, Efl.Ui.ISelectable b); + /// Select all +void SelectAll(); + /// Unselect all +void UnselectAll(); + /// The mode type for children selection. /// Type of selection of children Efl.Ui.SelectMode SelectMode { - get ; - set ; + get; + set; } } -/// Efl UI Multi selectable interface. The container have to control select property of multiple chidren. -sealed public class IMultiSelectableConcrete : +/// Interface for getting access to a range of selected items. +/// The implementor of this interface provides the possibility to select multiple Selectables. (If not, only Efl.Ui.Single_Selectable should be implemented) +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IMultiSelectableConcrete : Efl.Eo.EoWrapper , IMultiSelectable - + , Efl.Ui.ISingleSelectable { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -50,13 +73,14 @@ sealed public class IMultiSelectableConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IMultiSelectableConcrete(ConstructingHandle ch) : base(ch) { } - [System.Runtime.InteropServices.DllImport("libefl.so.1")] internal static extern System.IntPtr + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_multi_selectable_interface_get(); /// Initializes a new instance of the class. /// Internal usage: This is used when interacting with C code and should not be used directly. @@ -65,6 +89,58 @@ sealed public class IMultiSelectableConcrete : { } + /// Called when there is a change in the selection state, this event will collect all the item selection change events that are happening within one loop iteration. This means, you will only get this event once, even if a lot of items have changed. If you are interested in detailed changes, subscribe to the selection,changed event of Efl.Ui.Selectable. + public event EventHandler SelectionChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_SINGLE_SELECTABLE_EVENT_SELECTION_CHANGED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_SINGLE_SELECTABLE_EVENT_SELECTION_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event SelectionChangedEvt. + public void OnSelectionChangedEvt(EventArgs e) + { + var key = "_EFL_UI_SINGLE_SELECTABLE_EVENT_SELECTION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// The mode type for children selection. /// Type of selection of children public Efl.Ui.SelectMode GetSelectMode() { @@ -78,12 +154,82 @@ sealed public class IMultiSelectableConcrete : Efl.Ui.IMultiSelectableConcrete.NativeMethods.efl_ui_select_mode_set_ptr.Value.Delegate(this.NativeHandle,mode); Eina.Error.RaiseIfUnhandledException(); } + /// Get the selected items in a iterator. The iterator sequence will be decided by selection. + /// User has to free the iterator after usage. + public Eina.Iterator GetSelectedItems() { + var _ret_var = Efl.Ui.IMultiSelectableConcrete.NativeMethods.efl_ui_selected_items_get_ptr.Value.Delegate(this.NativeHandle); + Eina.Error.RaiseIfUnhandledException(); + return new Eina.Iterator(_ret_var, true); + } + /// Select a range of . + /// This will select the range of selectables from a to b or from b to a depending on which one comes first. If a or b are not part of the widget, a error is returned, and no change is applied. null is not allowed as either of the parameters. Both of the passed values will also be selected. + /// One side of the range. + /// The other side of the range. + public void SelectRange(Efl.Ui.ISelectable a, Efl.Ui.ISelectable b) { + Efl.Ui.IMultiSelectableConcrete.NativeMethods.efl_ui_select_range_ptr.Value.Delegate(this.NativeHandle,a, b); + Eina.Error.RaiseIfUnhandledException(); + } + /// Unselect a range of . + /// This will unselect the range of selectables from a to b or from b to a depending on which one comes first. If a or b are not part of the widget, a error is returned, and no change is applied. null is not allowed as either of the parameters. Both of the passed values will also be unselected. + /// One side of the range. + /// The other side of the range. + public void UnselectRange(Efl.Ui.ISelectable a, Efl.Ui.ISelectable b) { + Efl.Ui.IMultiSelectableConcrete.NativeMethods.efl_ui_unselect_range_ptr.Value.Delegate(this.NativeHandle,a, b); + Eina.Error.RaiseIfUnhandledException(); + } + /// Select all + public void SelectAll() { + Efl.Ui.IMultiSelectableConcrete.NativeMethods.efl_ui_select_all_ptr.Value.Delegate(this.NativeHandle); + Eina.Error.RaiseIfUnhandledException(); + } + /// Unselect all + public void UnselectAll() { + Efl.Ui.IMultiSelectableConcrete.NativeMethods.efl_ui_unselect_all_ptr.Value.Delegate(this.NativeHandle); + Eina.Error.RaiseIfUnhandledException(); + } + /// The selectable that was selected most recently. + /// The latest selected item. + public Efl.Ui.ISelectable GetLastSelected() { + var _ret_var = Efl.Ui.ISingleSelectableConcrete.NativeMethods.efl_ui_single_selectable_last_selected_get_ptr.Value.Delegate(this.NativeHandle); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// A object that will be selected in case nothing is selected + /// A object set to this property will be selected instead of no item beeing selected. Which means, there will be always at least one element selected. If this property is NULL, the state of "no item is selected" can be reached. + /// + /// Setting this property as a result of selection events results in undefined behavior. + public Efl.Ui.ISelectable GetFallbackSelection() { + var _ret_var = Efl.Ui.ISingleSelectableConcrete.NativeMethods.efl_ui_single_selectable_fallback_selection_get_ptr.Value.Delegate(this.NativeHandle); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// A object that will be selected in case nothing is selected + /// A object set to this property will be selected instead of no item beeing selected. Which means, there will be always at least one element selected. If this property is NULL, the state of "no item is selected" can be reached. + /// + /// Setting this property as a result of selection events results in undefined behavior. + public void SetFallbackSelection(Efl.Ui.ISelectable fallback) { + Efl.Ui.ISingleSelectableConcrete.NativeMethods.efl_ui_single_selectable_fallback_selection_set_ptr.Value.Delegate(this.NativeHandle,fallback); + Eina.Error.RaiseIfUnhandledException(); + } /// The mode type for children selection. /// Type of selection of children public Efl.Ui.SelectMode SelectMode { get { return GetSelectMode(); } set { SetSelectMode(value); } } + /// The selectable that was selected most recently. + /// The latest selected item. + public Efl.Ui.ISelectable LastSelected { + get { return GetLastSelected(); } + } + /// A object that will be selected in case nothing is selected + /// A object set to this property will be selected instead of no item beeing selected. Which means, there will be always at least one element selected. If this property is NULL, the state of "no item is selected" can be reached. + /// + /// Setting this property as a result of selection events results in undefined behavior. + public Efl.Ui.ISelectable FallbackSelection { + get { return GetFallbackSelection(); } + set { SetFallbackSelection(value); } + } private static IntPtr GetEflClassStatic() { return Efl.Ui.IMultiSelectableConcrete.efl_ui_multi_selectable_interface_get(); @@ -92,7 +238,7 @@ sealed public class IMultiSelectableConcrete : /// For internal use by generated code only. public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods { - private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl); + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); /// Gets the list of Eo operations to override. /// The list of Eo operations to be overload. public override System.Collections.Generic.List GetEoOps(System.Type type) @@ -120,6 +266,86 @@ sealed public class IMultiSelectableConcrete : descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_select_mode_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_select_mode_set_static_delegate) }); } + if (efl_ui_selected_items_get_static_delegate == null) + { + efl_ui_selected_items_get_static_delegate = new efl_ui_selected_items_get_delegate(selected_items_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetSelectedItems") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_selected_items_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selected_items_get_static_delegate) }); + } + + if (efl_ui_select_range_static_delegate == null) + { + efl_ui_select_range_static_delegate = new efl_ui_select_range_delegate(select_range); + } + + if (methods.FirstOrDefault(m => m.Name == "SelectRange") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_select_range"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_select_range_static_delegate) }); + } + + if (efl_ui_unselect_range_static_delegate == null) + { + efl_ui_unselect_range_static_delegate = new efl_ui_unselect_range_delegate(unselect_range); + } + + if (methods.FirstOrDefault(m => m.Name == "UnselectRange") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_unselect_range"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_unselect_range_static_delegate) }); + } + + if (efl_ui_select_all_static_delegate == null) + { + efl_ui_select_all_static_delegate = new efl_ui_select_all_delegate(select_all); + } + + if (methods.FirstOrDefault(m => m.Name == "SelectAll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_select_all"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_select_all_static_delegate) }); + } + + if (efl_ui_unselect_all_static_delegate == null) + { + efl_ui_unselect_all_static_delegate = new efl_ui_unselect_all_delegate(unselect_all); + } + + if (methods.FirstOrDefault(m => m.Name == "UnselectAll") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_unselect_all"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_unselect_all_static_delegate) }); + } + + if (efl_ui_single_selectable_last_selected_get_static_delegate == null) + { + efl_ui_single_selectable_last_selected_get_static_delegate = new efl_ui_single_selectable_last_selected_get_delegate(last_selected_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetLastSelected") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_single_selectable_last_selected_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_single_selectable_last_selected_get_static_delegate) }); + } + + if (efl_ui_single_selectable_fallback_selection_get_static_delegate == null) + { + efl_ui_single_selectable_fallback_selection_get_static_delegate = new efl_ui_single_selectable_fallback_selection_get_delegate(fallback_selection_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFallbackSelection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_single_selectable_fallback_selection_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_single_selectable_fallback_selection_get_static_delegate) }); + } + + if (efl_ui_single_selectable_fallback_selection_set_static_delegate == null) + { + efl_ui_single_selectable_fallback_selection_set_static_delegate = new efl_ui_single_selectable_fallback_selection_set_delegate(fallback_selection_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFallbackSelection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_single_selectable_fallback_selection_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_single_selectable_fallback_selection_set_static_delegate) }); + } + return descs; } /// Returns the Eo class for the native methods of this class. @@ -202,6 +428,289 @@ sealed public class IMultiSelectableConcrete : private static efl_ui_select_mode_set_delegate efl_ui_select_mode_set_static_delegate; + + private delegate System.IntPtr efl_ui_selected_items_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate System.IntPtr efl_ui_selected_items_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_selected_items_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_selected_items_get"); + + private static System.IntPtr selected_items_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_selected_items_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Iterator _ret_var = default(Eina.Iterator); + try + { + _ret_var = ((IMultiSelectable)ws.Target).GetSelectedItems(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + _ret_var.Own = false; return _ret_var.Handle; + + } + else + { + return efl_ui_selected_items_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_selected_items_get_delegate efl_ui_selected_items_get_static_delegate; + + + private delegate void efl_ui_select_range_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ISelectable a, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ISelectable b); + + + public delegate void efl_ui_select_range_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ISelectable a, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ISelectable b); + + public static Efl.Eo.FunctionWrapper efl_ui_select_range_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_select_range"); + + private static void select_range(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ISelectable a, Efl.Ui.ISelectable b) + { + Eina.Log.Debug("function efl_ui_select_range was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((IMultiSelectable)ws.Target).SelectRange(a, b); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_select_range_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), a, b); + } + } + + private static efl_ui_select_range_delegate efl_ui_select_range_static_delegate; + + + private delegate void efl_ui_unselect_range_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ISelectable a, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ISelectable b); + + + public delegate void efl_ui_unselect_range_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ISelectable a, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ISelectable b); + + public static Efl.Eo.FunctionWrapper efl_ui_unselect_range_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_unselect_range"); + + private static void unselect_range(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ISelectable a, Efl.Ui.ISelectable b) + { + Eina.Log.Debug("function efl_ui_unselect_range was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((IMultiSelectable)ws.Target).UnselectRange(a, b); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_unselect_range_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), a, b); + } + } + + private static efl_ui_unselect_range_delegate efl_ui_unselect_range_static_delegate; + + + private delegate void efl_ui_select_all_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_select_all_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_select_all_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_select_all"); + + private static void select_all(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_select_all was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((IMultiSelectable)ws.Target).SelectAll(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_select_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_select_all_delegate efl_ui_select_all_static_delegate; + + + private delegate void efl_ui_unselect_all_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate void efl_ui_unselect_all_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_unselect_all_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_unselect_all"); + + private static void unselect_all(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_unselect_all was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((IMultiSelectable)ws.Target).UnselectAll(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_unselect_all_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_unselect_all_delegate efl_ui_unselect_all_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.ISelectable efl_ui_single_selectable_last_selected_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.ISelectable efl_ui_single_selectable_last_selected_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_single_selectable_last_selected_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_single_selectable_last_selected_get"); + + private static Efl.Ui.ISelectable last_selected_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_single_selectable_last_selected_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Ui.ISelectable _ret_var = default(Efl.Ui.ISelectable); + try + { + _ret_var = ((IMultiSelectable)ws.Target).GetLastSelected(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_single_selectable_last_selected_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_single_selectable_last_selected_get_delegate efl_ui_single_selectable_last_selected_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.ISelectable efl_ui_single_selectable_fallback_selection_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.ISelectable efl_ui_single_selectable_fallback_selection_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_single_selectable_fallback_selection_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_single_selectable_fallback_selection_get"); + + private static Efl.Ui.ISelectable fallback_selection_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_single_selectable_fallback_selection_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Ui.ISelectable _ret_var = default(Efl.Ui.ISelectable); + try + { + _ret_var = ((IMultiSelectable)ws.Target).GetFallbackSelection(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_single_selectable_fallback_selection_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_single_selectable_fallback_selection_get_delegate efl_ui_single_selectable_fallback_selection_get_static_delegate; + + + private delegate void efl_ui_single_selectable_fallback_selection_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ISelectable fallback); + + + public delegate void efl_ui_single_selectable_fallback_selection_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ISelectable fallback); + + public static Efl.Eo.FunctionWrapper efl_ui_single_selectable_fallback_selection_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_single_selectable_fallback_selection_set"); + + private static void fallback_selection_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ISelectable fallback) + { + Eina.Log.Debug("function efl_ui_single_selectable_fallback_selection_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((IMultiSelectable)ws.Target).SetFallbackSelection(fallback); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_single_selectable_fallback_selection_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fallback); + } + } + + private static efl_ui_single_selectable_fallback_selection_set_delegate efl_ui_single_selectable_fallback_selection_set_static_delegate; + #pragma warning restore CA1707, CS1591, SA1300, SA1600 } @@ -210,6 +719,21 @@ sealed public class IMultiSelectableConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiIMultiSelectableConcrete_ExtensionMethods { + public static Efl.BindableProperty SelectMode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IMultiSelectable { + return new Efl.BindableProperty("select_mode", fac); + } + + + public static Efl.BindableProperty FallbackSelection(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IMultiSelectable { + return new Efl.BindableProperty("fallback_selection", fac); + } + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Ui { diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar.eo.cs old mode 100644 new mode 100755 index 28c858345..e11f085de --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Ui { /// Navigation_Bar widget. /// Navigation_Bar widget provides a bar form useful for navigation. Navigation_Bar has a back button which is used to navigate to the previous content in the stack. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.NavigationBar.NativeMethods] [Efl.Eo.BindingEntity] public class NavigationBar : Efl.Ui.LayoutBase, Efl.IText { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -47,7 +49,8 @@ public class NavigationBar : Efl.Ui.LayoutBase, Efl.IText FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected NavigationBar(ConstructingHandle ch) : base(ch) { @@ -225,3 +228,15 @@ public class NavigationBar : Efl.Ui.LayoutBase, Efl.IText } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiNavigationBar_ExtensionMethods { + + public static Efl.BindableFactoryPart BackButtonPart(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTag x=null) where T : Efl.Ui.NavigationBar + { + return new Efl.BindableFactoryPart("back_button" ,fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar_part.eo.cs old mode 100644 new mode 100755 index 43f52a7d3..d1133e8dd --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar_part.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Efl UI Navigation_Bar internal part class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.NavigationBarPart.NativeMethods] [Efl.Eo.BindingEntity] public class NavigationBarPart : Efl.Ui.LayoutPartContent { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class NavigationBarPart : Efl.Ui.LayoutPartContent FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected NavigationBarPart(ConstructingHandle ch) : base(ch) { @@ -94,3 +97,9 @@ public class NavigationBarPart : Efl.Ui.LayoutPartContent } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiNavigationBarPart_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar_part_back_button.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar_part_back_button.eo.cs old mode 100644 new mode 100755 index 63aed6796..df21b55f0 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar_part_back_button.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_bar_part_back_button.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Efl Ui Navigation_Bar internal part back button class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.NavigationBarPartBackButton.NativeMethods] [Efl.Eo.BindingEntity] public class NavigationBarPartBackButton : Efl.Ui.LayoutPart, Efl.IContent, Efl.IText, Efl.Gfx.IEntity { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class NavigationBarPartBackButton : Efl.Ui.LayoutPart, Efl.IContent, Efl. FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected NavigationBarPartBackButton(ConstructingHandle ch) : base(ch) { @@ -63,6 +66,7 @@ public class NavigationBarPartBackButton : Efl.Ui.LayoutPart, Efl.IContent, Efl. /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) + /// public event EventHandler ContentChangedEvt { add @@ -102,7 +106,7 @@ public class NavigationBarPartBackButton : Efl.Ui.LayoutPart, Efl.IContent, Efl. } } } - ///Method to raise event ContentChangedEvt. + /// Method to raise event ContentChangedEvt. public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; @@ -118,6 +122,7 @@ public class NavigationBarPartBackButton : Efl.Ui.LayoutPart, Efl.IContent, Efl. } /// Object's visibility state changed, the event value is the new state. /// (Since EFL 1.22) + /// public event EventHandler VisibilityChangedEvt { add @@ -157,7 +162,7 @@ public class NavigationBarPartBackButton : Efl.Ui.LayoutPart, Efl.IContent, Efl. } } } - ///Method to raise event VisibilityChangedEvt. + /// Method to raise event VisibilityChangedEvt. public void OnVisibilityChangedEvt(Efl.Gfx.IEntityVisibilityChangedEvt_Args e) { var key = "_EFL_GFX_ENTITY_EVENT_VISIBILITY_CHANGED"; @@ -180,6 +185,7 @@ public class NavigationBarPartBackButton : Efl.Ui.LayoutPart, Efl.IContent, Efl. } /// Object was moved, its position during the event is the new one. /// (Since EFL 1.22) + /// public event EventHandler PositionChangedEvt { add @@ -219,7 +225,7 @@ public class NavigationBarPartBackButton : Efl.Ui.LayoutPart, Efl.IContent, Efl. } } } - ///Method to raise event PositionChangedEvt. + /// Method to raise event PositionChangedEvt. public void OnPositionChangedEvt(Efl.Gfx.IEntityPositionChangedEvt_Args e) { var key = "_EFL_GFX_ENTITY_EVENT_POSITION_CHANGED"; @@ -243,6 +249,7 @@ public class NavigationBarPartBackButton : Efl.Ui.LayoutPart, Efl.IContent, Efl. } /// Object was resized, its size during the event is the new one. /// (Since EFL 1.22) + /// public event EventHandler SizeChangedEvt { add @@ -282,7 +289,7 @@ public class NavigationBarPartBackButton : Efl.Ui.LayoutPart, Efl.IContent, Efl. } } } - ///Method to raise event SizeChangedEvt. + /// Method to raise event SizeChangedEvt. public void OnSizeChangedEvt(Efl.Gfx.IEntitySizeChangedEvt_Args e) { var key = "_EFL_GFX_ENTITY_EVENT_SIZE_CHANGED"; @@ -1202,3 +1209,34 @@ public class NavigationBarPartBackButton : Efl.Ui.LayoutPart, Efl.IContent, Efl. } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiNavigationBarPartBackButton_ExtensionMethods { + public static Efl.BindableProperty Content(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.NavigationBarPartBackButton { + return new Efl.BindableProperty("content", fac); + } + + + public static Efl.BindableProperty Position(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.NavigationBarPartBackButton { + return new Efl.BindableProperty("position", fac); + } + + public static Efl.BindableProperty Size(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.NavigationBarPartBackButton { + return new Efl.BindableProperty("size", fac); + } + + public static Efl.BindableProperty Geometry(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.NavigationBarPartBackButton { + return new Efl.BindableProperty("geometry", fac); + } + + public static Efl.BindableProperty Visible(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.NavigationBarPartBackButton { + return new Efl.BindableProperty("visible", fac); + } + + public static Efl.BindableProperty Scale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.NavigationBarPartBackButton { + return new Efl.BindableProperty("scale", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_layout.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_layout.eo.cs old mode 100644 new mode 100755 index 99a2fd145..30eebca8e --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_layout.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_navigation_layout.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Ui { /// Navigation_Layout widget. /// Navigation_Layout widget provides a layout form useful for navigation. Navigation_Layout widget is used to be pushed to or popped from Stack widget(Efl.Ui.Stack class) as a content. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.NavigationLayout.NativeMethods] [Efl.Eo.BindingEntity] public class NavigationLayout : Efl.Ui.LayoutBase, Efl.IContent { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -47,7 +49,8 @@ public class NavigationLayout : Efl.Ui.LayoutBase, Efl.IContent FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected NavigationLayout(ConstructingHandle ch) : base(ch) { @@ -70,6 +73,7 @@ public class NavigationLayout : Efl.Ui.LayoutBase, Efl.IContent /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) + /// public event EventHandler ContentChangedEvt { add @@ -109,7 +113,7 @@ public class NavigationLayout : Efl.Ui.LayoutBase, Efl.IContent } } } - ///Method to raise event ContentChangedEvt. + /// Method to raise event ContentChangedEvt. public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; @@ -442,3 +446,17 @@ public class NavigationLayout : Efl.Ui.LayoutBase, Efl.IContent } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiNavigationLayout_ExtensionMethods { + public static Efl.BindableProperty Bar(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.NavigationLayout { + return new Efl.BindableProperty("bar", fac); + } + + public static Efl.BindableProperty Content(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.NavigationLayout { + return new Efl.BindableProperty("content", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_pan.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_pan.eo.cs old mode 100644 new mode 100755 index 626e38a97..02c32eaf5 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_pan.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_pan.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,12 +10,16 @@ namespace Efl { namespace Ui { -/// Elementary pan class +/// Pan widget class. +/// This widget positions its contents (set using ) relative to the widget itself. This is particularly useful for large content which does not fit inside its container. In this case only a portion is shown. +/// +/// The position of this "window" into the content can be changed using . This widget does not provide means for a user to change the content's position (like scroll bars). This widget is meant to be used internally by other clases like . +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Pan.NativeMethods] [Efl.Eo.BindingEntity] public class Pan : Efl.Canvas.Group, Efl.IContent { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +45,8 @@ public class Pan : Efl.Canvas.Group, Efl.IContent FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Pan(ConstructingHandle ch) : base(ch) { @@ -61,7 +67,7 @@ public class Pan : Efl.Canvas.Group, Efl.IContent { } - /// Called when pan content changed + /// The content has changed. public event EventHandler PanContentChangedEvt { add @@ -100,7 +106,7 @@ public class Pan : Efl.Canvas.Group, Efl.IContent } } } - ///Method to raise event PanContentChangedEvt. + /// Method to raise event PanContentChangedEvt. public void OnPanContentChangedEvt(EventArgs e) { var key = "_EFL_UI_PAN_EVENT_PAN_CONTENT_CHANGED"; @@ -113,7 +119,7 @@ public class Pan : Efl.Canvas.Group, Efl.IContent Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Called when pan viewport changed + /// This widget's position or size has changed. public event EventHandler PanViewportChangedEvt { add @@ -152,7 +158,7 @@ public class Pan : Efl.Canvas.Group, Efl.IContent } } } - ///Method to raise event PanViewportChangedEvt. + /// Method to raise event PanViewportChangedEvt. public void OnPanViewportChangedEvt(EventArgs e) { var key = "_EFL_UI_PAN_EVENT_PAN_VIEWPORT_CHANGED"; @@ -165,7 +171,7 @@ public class Pan : Efl.Canvas.Group, Efl.IContent Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Called when pan position changed + /// The content's position has changed. public event EventHandler PanPositionChangedEvt { add @@ -204,7 +210,7 @@ public class Pan : Efl.Canvas.Group, Efl.IContent } } } - ///Method to raise event PanPositionChangedEvt. + /// Method to raise event PanPositionChangedEvt. public void OnPanPositionChangedEvt(EventArgs e) { var key = "_EFL_UI_PAN_EVENT_PAN_POSITION_CHANGED"; @@ -219,6 +225,7 @@ public class Pan : Efl.Canvas.Group, Efl.IContent } /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) + /// public event EventHandler ContentChangedEvt { add @@ -258,7 +265,7 @@ public class Pan : Efl.Canvas.Group, Efl.IContent } } } - ///Method to raise event ContentChangedEvt. + /// Method to raise event ContentChangedEvt. public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; @@ -272,31 +279,38 @@ public class Pan : Efl.Canvas.Group, Efl.IContent IntPtr info = e.arg.NativeHandle; Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } - /// Position + /// Position of the content inside the Pan widget. + /// Setting the position to makes the upper left corner of the content visible. Setting the position to makes the lower right corner of the content visible. Values outside this range are valid and make the background show. + /// Content position. virtual public Eina.Position2D GetPanPosition() { var _ret_var = Efl.Ui.Pan.NativeMethods.efl_ui_pan_position_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Position + /// Position of the content inside the Pan widget. + /// Setting the position to makes the upper left corner of the content visible. Setting the position to makes the lower right corner of the content visible. Values outside this range are valid and make the background show. + /// Content position. virtual public void SetPanPosition(Eina.Position2D position) { Eina.Position2D.NativeStruct _in_position = position; Efl.Ui.Pan.NativeMethods.efl_ui_pan_position_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_position); Eina.Error.RaiseIfUnhandledException(); } - /// Content size + /// Size of the content currently set through . This is a convenience proxy. + /// The size of the content. virtual public Eina.Size2D GetContentSize() { var _ret_var = Efl.Ui.Pan.NativeMethods.efl_ui_pan_content_size_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// The minimal position to scroll + /// Position you can set to so that the content's upper left corner is visible. Always (0, 0). + /// Content's upper left corner position. virtual public Eina.Position2D GetPanPositionMin() { var _ret_var = Efl.Ui.Pan.NativeMethods.efl_ui_pan_position_min_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// The maximal position to scroll + /// Position you can set to so that the content's lower right corner is visible. It depends both on the content's size and this widget's size. + /// Content's lower right corner position. virtual public Eina.Position2D GetPanPositionMax() { var _ret_var = Efl.Ui.Pan.NativeMethods.efl_ui_pan_position_max_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); @@ -329,20 +343,25 @@ public class Pan : Efl.Canvas.Group, Efl.IContent Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Position + /// Position of the content inside the Pan widget. + /// Setting the position to makes the upper left corner of the content visible. Setting the position to makes the lower right corner of the content visible. Values outside this range are valid and make the background show. + /// Content position. public Eina.Position2D PanPosition { get { return GetPanPosition(); } set { SetPanPosition(value); } } - /// Content size + /// Size of the content currently set through . This is a convenience proxy. + /// The size of the content. public Eina.Size2D ContentSize { get { return GetContentSize(); } } - /// The minimal position to scroll + /// Position you can set to so that the content's upper left corner is visible. Always (0, 0). + /// Content's upper left corner position. public Eina.Position2D PanPositionMin { get { return GetPanPositionMin(); } } - /// The maximal position to scroll + /// Position you can set to so that the content's lower right corner is visible. It depends both on the content's size and this widget's size. + /// Content's lower right corner position. public Eina.Position2D PanPositionMax { get { return GetPanPositionMax(); } } @@ -758,3 +777,20 @@ public class Pan : Efl.Canvas.Group, Efl.IContent } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiPan_ExtensionMethods { + public static Efl.BindableProperty PanPosition(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Pan { + return new Efl.BindableProperty("pan_position", fac); + } + + + + + public static Efl.BindableProperty Content(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Pan { + return new Efl.BindableProperty("content", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_panel.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_panel.eo.cs old mode 100644 new mode 100755 index 93ea40f34..d72c30d56 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_panel.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_panel.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Elementary panel class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Panel.NativeMethods] [Efl.Eo.BindingEntity] -public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui.IWidgetFocusManager, Efl.Ui.Focus.ILayer, Efl.Ui.Focus.IManager, Efl.Ui.Focus.IManagerSub, Elm.IInterfaceScrollable +public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui.IScrollableInteractive, Efl.Ui.IWidgetFocusManager, Efl.Ui.Focus.ILayer, Efl.Ui.Focus.IManager { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +48,8 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Panel(ConstructingHandle ch) : base(ch) { @@ -106,7 +109,7 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } } } - ///Method to raise event ToggledEvt. + /// Method to raise event ToggledEvt. public void OnToggledEvt(EventArgs e) { var key = "_EFL_UI_PANEL_EVENT_TOGGLED"; @@ -121,6 +124,7 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) + /// public event EventHandler ContentChangedEvt { add @@ -160,7 +164,7 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } } } - ///Method to raise event ContentChangedEvt. + /// Method to raise event ContentChangedEvt. public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; @@ -213,7 +217,7 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } } } - ///Method to raise event ScrollStartEvt. + /// Method to raise event ScrollStartEvt. public void OnScrollStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_START"; @@ -265,7 +269,7 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } } } - ///Method to raise event ScrollEvt. + /// Method to raise event ScrollEvt. public void OnScrollEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL"; @@ -317,7 +321,7 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } } } - ///Method to raise event ScrollStopEvt. + /// Method to raise event ScrollStopEvt. public void OnScrollStopEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_STOP"; @@ -369,7 +373,7 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } } } - ///Method to raise event ScrollUpEvt. + /// Method to raise event ScrollUpEvt. public void OnScrollUpEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_UP"; @@ -421,7 +425,7 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } } } - ///Method to raise event ScrollDownEvt. + /// Method to raise event ScrollDownEvt. public void OnScrollDownEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_DOWN"; @@ -473,7 +477,7 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } } } - ///Method to raise event ScrollLeftEvt. + /// Method to raise event ScrollLeftEvt. public void OnScrollLeftEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_LEFT"; @@ -525,7 +529,7 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } } } - ///Method to raise event ScrollRightEvt. + /// Method to raise event ScrollRightEvt. public void OnScrollRightEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_RIGHT"; @@ -577,7 +581,7 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } } } - ///Method to raise event EdgeUpEvt. + /// Method to raise event EdgeUpEvt. public void OnEdgeUpEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_UP"; @@ -629,7 +633,7 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } } } - ///Method to raise event EdgeDownEvt. + /// Method to raise event EdgeDownEvt. public void OnEdgeDownEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_DOWN"; @@ -681,7 +685,7 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } } } - ///Method to raise event EdgeLeftEvt. + /// Method to raise event EdgeLeftEvt. public void OnEdgeLeftEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_LEFT"; @@ -733,7 +737,7 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } } } - ///Method to raise event EdgeRightEvt. + /// Method to raise event EdgeRightEvt. public void OnEdgeRightEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_RIGHT"; @@ -785,7 +789,7 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } } } - ///Method to raise event ScrollAnimStartEvt. + /// Method to raise event ScrollAnimStartEvt. public void OnScrollAnimStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; @@ -837,7 +841,7 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } } } - ///Method to raise event ScrollAnimStopEvt. + /// Method to raise event ScrollAnimStopEvt. public void OnScrollAnimStopEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; @@ -889,7 +893,7 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } } } - ///Method to raise event ScrollDragStartEvt. + /// Method to raise event ScrollDragStartEvt. public void OnScrollDragStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; @@ -941,7 +945,7 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } } } - ///Method to raise event ScrollDragStopEvt. + /// Method to raise event ScrollDragStopEvt. public void OnScrollDragStopEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; @@ -956,6 +960,7 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } /// Redirect object has changed, the old manager is passed as an event argument. /// (Since EFL 1.22) + /// public event EventHandler RedirectChangedEvt { add @@ -995,7 +1000,7 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } } } - ///Method to raise event RedirectChangedEvt. + /// Method to raise event RedirectChangedEvt. public void OnRedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; @@ -1049,7 +1054,7 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } } } - ///Method to raise event FlushPreEvt. + /// Method to raise event FlushPreEvt. public void OnFlushPreEvt(EventArgs e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; @@ -1102,7 +1107,7 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } } } - ///Method to raise event CoordsDirtyEvt. + /// Method to raise event CoordsDirtyEvt. public void OnCoordsDirtyEvt(EventArgs e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; @@ -1117,6 +1122,7 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } /// The manager_focus property has changed. The previously focused object is passed as an event argument. /// (Since EFL 1.22) + /// public event EventHandler ManagerFocusChangedEvt { add @@ -1156,7 +1162,7 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } } } - ///Method to raise event ManagerFocusChangedEvt. + /// Method to raise event ManagerFocusChangedEvt. public void OnManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; @@ -1172,6 +1178,7 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } /// Called when this focus manager is frozen or thawed, even_info being true indicates that it is now frozen, false indicates that it is thawed. /// (Since EFL 1.22) + /// public event EventHandler DirtyLogicFreezeChangedEvt { add @@ -1211,7 +1218,7 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } } } - ///Method to raise event DirtyLogicFreezeChangedEvt. + /// Method to raise event DirtyLogicFreezeChangedEvt. public void OnDirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; @@ -1232,58 +1239,6 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Marshal.FreeHGlobal(info); } } - /// Called when content changed - public event EventHandler ChangedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_ELM_INTERFACE_SCROLLABLE_EVENT_CHANGED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_ELM_INTERFACE_SCROLLABLE_EVENT_CHANGED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ChangedEvt. - public void OnChangedEvt(EventArgs e) - { - var key = "_ELM_INTERFACE_SCROLLABLE_EVENT_CHANGED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } /// Gets the orientation of the panel. /// The panel orientation. virtual public Efl.Ui.PanelOrient GetOrient() { @@ -1369,6 +1324,166 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.RaiseIfUnhandledException(); return _ret_var; } + /// The content position + /// The position is virtual value, (0, 0) starting at the top-left. + virtual public Eina.Position2D GetContentPos() { + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_pos_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// The content position + /// The position is virtual value, (0, 0) starting at the top-left. + virtual public void SetContentPos(Eina.Position2D pos) { + Eina.Position2D.NativeStruct _in_pos = pos; + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_pos_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_pos); + Eina.Error.RaiseIfUnhandledException(); + } + /// The content size + /// The content size in pixels. + virtual public Eina.Size2D GetContentSize() { + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_content_size_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// The viewport geometry + /// It is absolute geometry. + virtual public Eina.Rect GetViewportGeometry() { + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Bouncing behavior + /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. + /// Horizontal bounce policy. + /// Vertical bounce policy. + virtual public void GetBounceEnabled(out bool horiz, out bool vert) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out horiz, out vert); + Eina.Error.RaiseIfUnhandledException(); + } + /// Bouncing behavior + /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. + /// Horizontal bounce policy. + /// Vertical bounce policy. + virtual public void SetBounceEnabled(bool horiz, bool vert) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),horiz, vert); + Eina.Error.RaiseIfUnhandledException(); + } + /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . + /// true if freeze, false otherwise + virtual public bool GetScrollFreeze() { + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . + /// true if freeze, false otherwise + virtual public void SetScrollFreeze(bool freeze) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),freeze); + Eina.Error.RaiseIfUnhandledException(); + } + /// Hold property When hold turns on, it only scrolls by holding action. + /// true if hold, false otherwise + virtual public bool GetScrollHold() { + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Hold property When hold turns on, it only scrolls by holding action. + /// true if hold, false otherwise + virtual public void SetScrollHold(bool hold) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),hold); + Eina.Error.RaiseIfUnhandledException(); + } + /// Controls an infinite loop for a scroller. + /// The scrolling horizontal loop + /// The Scrolling vertical loop + virtual public void GetLooping(out bool loop_h, out bool loop_v) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_looping_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out loop_h, out loop_v); + Eina.Error.RaiseIfUnhandledException(); + } + /// Controls an infinite loop for a scroller. + /// The scrolling horizontal loop + /// The Scrolling vertical loop + virtual public void SetLooping(bool loop_h, bool loop_v) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_looping_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),loop_h, loop_v); + Eina.Error.RaiseIfUnhandledException(); + } + /// Blocking of scrolling (per axis) + /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. + /// Which axis (or axes) to block + virtual public Efl.Ui.ScrollBlock GetMovementBlock() { + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_movement_block_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Blocking of scrolling (per axis) + /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. + /// Which axis (or axes) to block + virtual public void SetMovementBlock(Efl.Ui.ScrollBlock block) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_movement_block_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),block); + Eina.Error.RaiseIfUnhandledException(); + } + /// Control scrolling gravity on the scrollable + /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. + /// + /// The scroller will adjust the view to glue itself as follows. + /// + /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content + /// + /// Default values for x and y are 0.0 + /// Horizontal scrolling gravity + /// Vertical scrolling gravity + virtual public void GetGravity(out double x, out double y) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_gravity_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out x, out y); + Eina.Error.RaiseIfUnhandledException(); + } + /// Control scrolling gravity on the scrollable + /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. + /// + /// The scroller will adjust the view to glue itself as follows. + /// + /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content + /// + /// Default values for x and y are 0.0 + /// Horizontal scrolling gravity + /// Vertical scrolling gravity + virtual public void SetGravity(double x, double y) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_gravity_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),x, y); + Eina.Error.RaiseIfUnhandledException(); + } + /// Prevent the scrollable from being smaller than the minimum size of the content. + /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. + /// Whether to limit the minimum horizontal size + /// Whether to limit the minimum vertical size + virtual public void SetMatchContent(bool w, bool h) { + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_match_content_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),w, h); + Eina.Error.RaiseIfUnhandledException(); + } + /// Control the step size + /// Use this call to set step size. This value is used when scroller scroll by arrow key event. + /// The step size in pixels + virtual public Eina.Position2D GetStepSize() { + var _ret_var = Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_step_size_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Control the step size + /// Use this call to set step size. This value is used when scroller scroll by arrow key event. + /// The step size in pixels + virtual public void SetStepSize(Eina.Position2D step) { + Eina.Position2D.NativeStruct _in_step = step; + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_step_size_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_step); + Eina.Error.RaiseIfUnhandledException(); + } + /// Show a specific virtual region within the scroller content object. + /// This will ensure all (or part if it does not fit) of the designated region in the virtual content object (0, 0 starting at the top-left of the virtual content object) is shown within the scroller. This allows the scroller to "smoothly slide" to this location (if configuration in general calls for transitions). It may not jump immediately to the new location and make take a while and show other content along the way. + /// The position where to scroll. and The size user want to see + /// Whether to scroll with animation or not + virtual public void Scroll(Eina.Rect rect, bool animation) { + Eina.Rect.NativeStruct _in_rect = rect; + Efl.Ui.IScrollableInteractiveConcrete.NativeMethods.efl_ui_scrollable_scroll_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_rect, animation); + Eina.Error.RaiseIfUnhandledException(); + } /// If the widget needs a focus manager, this function will be called. /// It can be used and overriden to inject your own manager or set custom options on the focus manager. /// (Since EFL 1.22) @@ -1512,7 +1627,9 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } /// This will fetch the data from a registered node. /// Be aware this function will trigger a computation of all dirty nodes. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The child object to inspect. /// The list of relations starting from child. virtual public Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child) { @@ -1568,6 +1685,96 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } + /// Gets the orientation of the panel. + /// The panel orientation. + public Efl.Ui.PanelOrient Orient { + get { return GetOrient(); } + set { SetOrient(value); } + } + /// Gets the state of the panel. + /// If true, the panel will run the animation to disappear. + public bool Hidden { + get { return GetHidden(); } + set { SetHidden(value); } + } + /// Gets the state of the scrollability. + /// The scrollable state. + public bool Scrollable { + get { return GetScrollable(); } + set { SetScrollable(value); } + } + /// Gets the size of the scrollable panel. + /// Size ratio + public double ScrollableContentSize { + get { return GetScrollableContentSize(); } + set { SetScrollableContentSize(value); } + } + /// Sub-object currently set as this object's single content. + /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). + /// (Since EFL 1.22) + /// The sub-object. + public Efl.Gfx.IEntity Content { + get { return GetContent(); } + set { SetContent(value); } + } + /// The content position + /// The position is virtual value, (0, 0) starting at the top-left. + public Eina.Position2D ContentPos { + get { return GetContentPos(); } + set { SetContentPos(value); } + } + /// The content size + /// The content size in pixels. + public Eina.Size2D ContentSize { + get { return GetContentSize(); } + } + /// The viewport geometry + /// It is absolute geometry. + public Eina.Rect ViewportGeometry { + get { return GetViewportGeometry(); } + } + /// Bouncing behavior + /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. + /// Horizontal bounce policy. + public (bool, bool) BounceEnabled { + get { + bool _out_horiz = default(bool); + bool _out_vert = default(bool); + GetBounceEnabled(out _out_horiz,out _out_vert); + return (_out_horiz,_out_vert); + } + set { SetBounceEnabled( value.Item1, value.Item2); } + } + /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . + /// true if freeze, false otherwise + public bool ScrollFreeze { + get { return GetScrollFreeze(); } + set { SetScrollFreeze(value); } + } + /// Hold property When hold turns on, it only scrolls by holding action. + /// true if hold, false otherwise + public bool ScrollHold { + get { return GetScrollHold(); } + set { SetScrollHold(value); } + } + /// Controls an infinite loop for a scroller. + /// The scrolling horizontal loop + public (bool, bool) Looping { + get { + bool _out_loop_h = default(bool); + bool _out_loop_v = default(bool); + GetLooping(out _out_loop_h,out _out_loop_v); + return (_out_loop_h,_out_loop_v); + } + set { SetLooping( value.Item1, value.Item2); } + } + /// Blocking of scrolling (per axis) + /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. + /// Which axis (or axes) to block + public Efl.Ui.ScrollBlock MovementBlock { + get { return GetMovementBlock(); } + set { SetMovementBlock(value); } + } /// Control scrolling gravity on the scrollable /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. /// @@ -1576,610 +1783,28 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content /// /// Default values for x and y are 0.0 - /// Horizontal scrolling gravity - /// Vertical scrolling gravity - virtual public void GetGravity(out double x, out double y) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_gravity_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out x, out y); - Eina.Error.RaiseIfUnhandledException(); - } - /// Control scrolling gravity on the scrollable - /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. - /// - /// The scroller will adjust the view to glue itself as follows. - /// - /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content - /// - /// Default values for x and y are 0.0 - /// Horizontal scrolling gravity - /// Vertical scrolling gravity - virtual public void SetGravity(double x, double y) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_gravity_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),x, y); - Eina.Error.RaiseIfUnhandledException(); - } - /// Bouncing behavior - /// When scrolling, the scroller may "bounce" when reaching an edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axis. This API will set if it is enabled for the given axis with the boolean parameters for each axis. - /// Horizontal bounce policy. - /// Vertical bounce policy. - virtual public void GetBounceAllow(out bool horiz, out bool vert) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_bounce_allow_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out horiz, out vert); - Eina.Error.RaiseIfUnhandledException(); - } - /// Bouncing behavior - /// When scrolling, the scroller may "bounce" when reaching an edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axis. This API will set if it is enabled for the given axis with the boolean parameters for each axis. - /// Horizontal bounce policy. - /// Vertical bounce policy. - virtual public void SetBounceAllow(bool horiz, bool vert) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_bounce_allow_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),horiz, vert); - Eina.Error.RaiseIfUnhandledException(); - } - /// Control Wheel disable Enable or disable mouse wheel to be used to scroll the scroller content. heel is enabled by default. - /// true if wheel is disabled, false otherwise - virtual public bool GetWheelDisabled() { - var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_wheel_disabled_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Control Wheel disable Enable or disable mouse wheel to be used to scroll the scroller content. heel is enabled by default. - /// true if wheel is disabled, false otherwise - virtual public void SetWheelDisabled(bool disabled) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_wheel_disabled_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),disabled); - Eina.Error.RaiseIfUnhandledException(); - } - /// Blocking of scrolling (per axis) - /// This function will block scrolling movement (by input of a user) in a given direction. One can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. - /// - /// What makes this function different from freeze_push(), hold_push() and lock_x_set() (or lock_y_set()) is that it doesn't propagate its effects to any parent or child widget of obj. Only the target scrollable widget will be locked with regard to scrolling. - /// Which axis (or axes) to block - virtual public Efl.Ui.ScrollBlock GetMovementBlock() { - var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_movement_block_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Blocking of scrolling (per axis) - /// This function will block scrolling movement (by input of a user) in a given direction. One can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. - /// - /// What makes this function different from freeze_push(), hold_push() and lock_x_set() (or lock_y_set()) is that it doesn't propagate its effects to any parent or child widget of obj. Only the target scrollable widget will be locked with regard to scrolling. - /// Which axis (or axes) to block - virtual public void SetMovementBlock(Efl.Ui.ScrollBlock block) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_movement_block_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),block); - Eina.Error.RaiseIfUnhandledException(); - } - /// Momentum animator - /// true if disabled, false otherwise - virtual public bool GetMomentumAnimatorDisabled() { - var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_momentum_animator_disabled_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Momentum animator - /// true if disabled, false otherwise - virtual public void SetMomentumAnimatorDisabled(bool disabled) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_momentum_animator_disabled_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),disabled); - Eina.Error.RaiseIfUnhandledException(); - } - /// Scrollbar visibility policy - /// #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off. This applies respectively for the horizontal and vertical scrollbars. - /// Horizontal scrollbar policy - /// Vertical scrollbar policy - virtual public void GetPolicy(out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_policy_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out hbar, out vbar); - Eina.Error.RaiseIfUnhandledException(); - } - /// Scrollbar visibility policy - /// #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off. This applies respectively for the horizontal and vertical scrollbars. - /// Horizontal scrollbar policy - /// Vertical scrollbar policy - virtual public void SetPolicy(Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_policy_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),hbar, vbar); - Eina.Error.RaiseIfUnhandledException(); - } - /// Currently visible content region - /// This gets the current region in the content object that is visible through the scroller. The region co-ordinates are returned in the x, y, w, h values pointed to. - /// - /// Note: All coordinates are relative to the content. - /// - /// See: . - /// X coordinate of the region - /// Y coordinate of the region - /// Width of the region - /// Height of the region - virtual public void GetContentRegion(out int x, out int y, out int w, out int h) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_region_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out x, out y, out w, out h); - Eina.Error.RaiseIfUnhandledException(); - } - /// Currently visible content region - /// This gets the current region in the content object that is visible through the scroller. The region co-ordinates are returned in the x, y, w, h values pointed to. - /// - /// Note: All coordinates are relative to the content. - /// - /// See: . - /// X coordinate of the region - /// Y coordinate of the region - /// Width of the region - /// Height of the region - virtual public void SetContentRegion(int x, int y, int w, int h) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_region_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),x, y, w, h); - Eina.Error.RaiseIfUnhandledException(); - } - /// It decides whether the scrollable object propagates the events to content object or not. - /// true if events are propagated, false otherwise - virtual public bool GetContentEvents() { - var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_events_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// It decides whether the scrollable object propagates the events to content object or not. - /// true if events are propagated, false otherwise - virtual public void SetContentEvents(bool repeat_events) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_events_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),repeat_events); - Eina.Error.RaiseIfUnhandledException(); - } - /// Scroll page size relative to viewport size. - /// The scroller is capable of limiting scrolling by the user to "pages". That is to jump by and only show a "whole page" at a time as if the continuous area of the scroller content is split into page sized pieces. This sets the size of a page relative to the viewport of the scroller. 1.0 is "1 viewport" is size (horizontally or vertically). 0.0 turns it off in that axis. This is mutually exclusive with page size (see for more information). Likewise 0.5 is "half a viewport". Sane usable values are normally between 0.0 and 1.0 including 1.0. If you only want 1 axis to be page "limited", use 0.0 for the other axis. - /// The horizontal page relative size - /// The vertical page relative size - virtual public void GetPageSize(out int x, out int y) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_size_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out x, out y); - Eina.Error.RaiseIfUnhandledException(); - } - /// Scroll page size relative to viewport size. - /// The scroller is capable of limiting scrolling by the user to "pages". That is to jump by and only show a "whole page" at a time as if the continuous area of the scroller content is split into page sized pieces. This sets the size of a page relative to the viewport of the scroller. 1.0 is "1 viewport" is size (horizontally or vertically). 0.0 turns it off in that axis. This is mutually exclusive with page size (see for more information). Likewise 0.5 is "half a viewport". Sane usable values are normally between 0.0 and 1.0 including 1.0. If you only want 1 axis to be page "limited", use 0.0 for the other axis. - /// The horizontal page relative size - /// The vertical page relative size - virtual public void SetPageSize(int x, int y) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_size_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),x, y); - Eina.Error.RaiseIfUnhandledException(); - } - /// Bounce animator - /// true if bounce animation is disabled, false otherwise - virtual public bool GetBounceAnimatorDisabled() { - var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_bounce_animator_disabled_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Bounce animator - /// true if bounce animation is disabled, false otherwise - virtual public void SetBounceAnimatorDisabled(bool disabled) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_bounce_animator_disabled_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),disabled); - Eina.Error.RaiseIfUnhandledException(); - } - /// Page scroll limit - /// Page limit horizontal - /// Page limit vertical - virtual public void GetPageScrollLimit(out int page_limit_h, out int page_limit_v) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_scroll_limit_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out page_limit_h, out page_limit_v); - Eina.Error.RaiseIfUnhandledException(); - } - /// Page scroll limit - /// Page limit horizontal - /// Page limit vertical - virtual public void SetPageScrollLimit(int page_limit_h, int page_limit_v) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_scroll_limit_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),page_limit_h, page_limit_v); - Eina.Error.RaiseIfUnhandledException(); - } - /// Page snapping behavior - /// When scrolling, if a scroller is paged (see elm_scroller_page_size_set() and elm_scroller_page_relative_set()), the scroller may snap to pages when being scrolled, i.e., even if it had momentum to scroll further, it will stop at the next page boundaries. This is disabled, by default, for both axis. This function will set if it that is enabled or not, for each axis. - /// - /// Note: If obj is not set to have pages, nothing will happen after this call. - /// Allow snap horizontally - /// Allow snap vertically - virtual public void GetPageSnapAllow(out bool horiz, out bool vert) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_snap_allow_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out horiz, out vert); - Eina.Error.RaiseIfUnhandledException(); - } - /// Page snapping behavior - /// When scrolling, if a scroller is paged (see elm_scroller_page_size_set() and elm_scroller_page_relative_set()), the scroller may snap to pages when being scrolled, i.e., even if it had momentum to scroll further, it will stop at the next page boundaries. This is disabled, by default, for both axis. This function will set if it that is enabled or not, for each axis. - /// - /// Note: If obj is not set to have pages, nothing will happen after this call. - /// Allow snap horizontally - /// Allow snap vertically - virtual public void SetPageSnapAllow(bool horiz, bool vert) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_snap_allow_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),horiz, vert); - Eina.Error.RaiseIfUnhandledException(); - } - /// Pagin property - /// Page relation horizontal - /// Page relation vertical - /// Page size horizontal - /// Page size vertical - virtual public void GetPaging(out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_paging_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out pagerel_h, out pagerel_v, out pagesize_h, out pagesize_v); - Eina.Error.RaiseIfUnhandledException(); - } - /// Pagin property - /// Page relation horizontal - /// Page relation vertical - /// Page size horizontal - /// Page size vertical - virtual public void SetPaging(double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_paging_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),pagerel_h, pagerel_v, pagesize_h, pagesize_v); - Eina.Error.RaiseIfUnhandledException(); - } - /// Single direction scroll configuration - /// This makes it possible to restrict scrolling to a single direction, with a "soft" or "hard" behavior. - /// - /// The hard behavior restricts the scrolling to a single direction all of the time while the soft one will restrict depending on factors such as the movement angle. If the user scrolls roughly in one direction only, it will only move according to it while if the move was clearly wanted on both axes, it will happen on both of them. - /// The single direction scroll policy - virtual public Elm.Scroller.SingleDirection GetSingleDirection() { - var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_single_direction_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Single direction scroll configuration - /// This makes it possible to restrict scrolling to a single direction, with a "soft" or "hard" behavior. - /// - /// The hard behavior restricts the scrolling to a single direction all of the time while the soft one will restrict depending on factors such as the movement angle. If the user scrolls roughly in one direction only, it will only move according to it while if the move was clearly wanted on both axes, it will happen on both of them. - /// The single direction scroll policy - virtual public void SetSingleDirection(Elm.Scroller.SingleDirection single_dir) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_single_direction_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),single_dir); - Eina.Error.RaiseIfUnhandledException(); - } - /// Step size - /// X coordinate - /// Y coordinate - virtual public void GetStepSize(out int x, out int y) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_step_size_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out x, out y); - Eina.Error.RaiseIfUnhandledException(); - } - /// Step size - /// X coordinate - /// Y coordinate - virtual public void SetStepSize(int x, int y) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_step_size_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),x, y); - Eina.Error.RaiseIfUnhandledException(); - } - /// Controls an infinite loop for a scroller. - /// The scrolling horizontal loop - /// The scrolling vertical loop - virtual public void GetContentLoop(out bool loop_h, out bool loop_v) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_loop_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out loop_h, out loop_v); - Eina.Error.RaiseIfUnhandledException(); - } - /// Controls an infinite loop for a scroller. - /// The scrolling horizontal loop - /// The scrolling vertical loop - virtual public void SetContentLoop(bool loop_h, bool loop_v) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_loop_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),loop_h, loop_v); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the content has been moved up. - /// The callback - virtual public void SetScrollUpCb(ElmInterfaceScrollableCb scroll_up_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_up_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),scroll_up_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the horizontal scrollbar is dragged. - /// The callback - virtual public void SetHbarDragCb(ElmInterfaceScrollableCb hbar_drag_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_hbar_drag_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),hbar_drag_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when dragging of the contents has started. - /// The callback - virtual public void SetDragStartCb(ElmInterfaceScrollableCb drag_start_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_drag_start_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),drag_start_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when scrolling of the contents has started. - /// The callback - virtual public void SetScrollStartCb(ElmInterfaceScrollableCb scroll_start_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_start_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),scroll_start_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Freeze property - /// true if freeze, false otherwise - virtual public void SetFreeze(bool freeze) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_freeze_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),freeze); - Eina.Error.RaiseIfUnhandledException(); - } - /// When the viewport is resized, the callback is called. - /// The callback - virtual public void SetContentViewportResizeCb(ElmInterfaceScrollableResizeCb viewport_resize_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_viewport_resize_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),viewport_resize_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the content has been moved to the left - /// The callback - virtual public void SetScrollLeftCb(ElmInterfaceScrollableCb scroll_left_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_left_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),scroll_left_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the vertical scrollbar is pressed. - /// The callback - virtual public void SetVbarPressCb(ElmInterfaceScrollableCb vbar_press_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_vbar_press_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),vbar_press_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the horizontal scrollbar is pressed. - /// The callback - virtual public void SetHbarPressCb(ElmInterfaceScrollableCb hbar_press_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_hbar_press_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),hbar_press_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the horizontal scrollbar is unpressed. - /// The callback - virtual public void SetHbarUnpressCb(ElmInterfaceScrollableCb hbar_unpress_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_hbar_unpress_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),hbar_unpress_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when dragging of the contents has stopped. - /// The callback - virtual public void SetDragStopCb(ElmInterfaceScrollableCb drag_stop_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_drag_stop_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),drag_stop_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when scrolling of the contents has stopped. - /// The callback - virtual public void SetScrollStopCb(ElmInterfaceScrollableCb scroll_stop_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_stop_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),scroll_stop_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Extern pan - /// Pan object - virtual public void SetExternPan(Efl.Canvas.Object pan) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_extern_pan_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),pan); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the visible page changes. - /// The callback - virtual public void SetPageChangeCb(ElmInterfaceScrollableCb page_change_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_change_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),page_change_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Hold property - /// true if hold, false otherwise - virtual public void SetHold(bool hold) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_hold_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),hold); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the scrolling animation has started. - /// The callback - virtual public void SetAnimateStartCb(ElmInterfaceScrollableCb animate_start_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_animate_start_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),animate_start_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the content has been moved down. - /// The callback - virtual public void SetScrollDownCb(ElmInterfaceScrollableCb scroll_down_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_down_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),scroll_down_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set scroll page size relative to viewport size. - /// Page relation horizontal - /// Page relation vertical - virtual public void SetPageRelative(double h_pagerel, double v_pagerel) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_relative_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),h_pagerel, v_pagerel); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the content has been moved. - /// The callback - virtual public void SetScrollCb(ElmInterfaceScrollableCb scroll_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),scroll_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the scrolling animation has stopped. - /// The callback - virtual public void SetAnimateStopCb(ElmInterfaceScrollableCb animate_stop_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_animate_stop_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),animate_stop_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// set the callback to run on minimal limit content - /// The callback - virtual public void SetContentMinLimitCb(ElmInterfaceScrollableMinLimitCb min_limit_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_min_limit_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),min_limit_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the content has been moved to the right. - /// The callback - virtual public void SetScrollRightCb(ElmInterfaceScrollableCb scroll_right_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_right_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),scroll_right_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Content property - /// Content object - virtual public void SetScrollableContent(Efl.Canvas.Object content) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),content); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the left edge of the content has been reached. - /// The callback - virtual public void SetEdgeLeftCb(ElmInterfaceScrollableCb edge_left_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_edge_left_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),edge_left_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the horizontal scrollbar is dragged. - /// The callback - virtual public void SetVbarDragCb(ElmInterfaceScrollableCb vbar_drag_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_vbar_drag_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),vbar_drag_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the horizontal scrollbar is unpressed. - /// The callback - virtual public void SetVbarUnpressCb(ElmInterfaceScrollableCb vbar_unpress_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_vbar_unpress_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),vbar_unpress_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the bottom edge of the content has been reached. - /// The callback - virtual public void SetEdgeBottomCb(ElmInterfaceScrollableCb edge_bottom_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_edge_bottom_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),edge_bottom_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the right edge of the content has been reached. - /// The callback - virtual public void SetEdgeRightCb(ElmInterfaceScrollableCb edge_right_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_edge_right_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),edge_right_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the top edge of the content has been reached. - /// The callback - virtual public void SetEdgeTopCb(ElmInterfaceScrollableCb edge_top_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_edge_top_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),edge_top_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Object property - /// Edje object - /// Evas object - virtual public void SetObjects(Efl.Canvas.Object edje_object, Efl.Canvas.Object hit_rectangle) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_objects_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),edje_object, hit_rectangle); - Eina.Error.RaiseIfUnhandledException(); - } - /// Get scroll last page number. - /// The page number starts from 0. 0 is the first page. This returns the last page number among the pages. - /// - /// See: , and . - /// The horizontal page number - /// The vertical page number - virtual public void GetLastPage(out int pagenumber_h, out int pagenumber_v) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_last_page_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out pagenumber_h, out pagenumber_v); - Eina.Error.RaiseIfUnhandledException(); - } - /// Get scroll current page number. - /// The page number starts from 0. 0 is the first page. Current page means the page which meets the top-left of the viewport. If there are two or more pages in the viewport, it returns the number of the page which meets the top-left of the viewport. - /// - /// See: , and . - /// The horizontal page number - /// The vertical page number - virtual public void GetCurrentPage(out int pagenumber_h, out int pagenumber_v) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_current_page_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out pagenumber_h, out pagenumber_v); - Eina.Error.RaiseIfUnhandledException(); - } - /// Content viewport geometry - /// X coordinate - /// Y coordinate - /// Width - /// Height - virtual public void GetContentViewportGeometry(out int x, out int y, out int w, out int h) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_viewport_geometry_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out x, out y, out w, out h); - Eina.Error.RaiseIfUnhandledException(); - } - /// Get the size of the content object - /// This gets the size of the content object of the scroller. - /// Width of the content object. - /// Height of the content object. - virtual public void GetContentSize(out int w, out int h) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_size_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out w, out h); - Eina.Error.RaiseIfUnhandledException(); - } - /// Whether scrolling should loop around. - /// True to enable looping. - virtual public bool GetItemLoopEnabled() { - var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_item_loop_enabled_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Whether scrolling should loop around. - /// True to enable looping. - virtual public void SetItemLoopEnabled(bool enable) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_item_loop_enabled_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),enable); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the content position - /// X coordinate - /// Y coordinate - /// Send signals to the theme corresponding to the scroll direction, or if an edge was reached. - virtual public void SetContentPos(int x, int y, bool sig) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_pos_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),x, y, sig); - Eina.Error.RaiseIfUnhandledException(); - } - /// Get content position - /// X coordinate - /// Y coordinate - virtual public void GetContentPos(out int x, out int y) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_pos_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out x, out y); - Eina.Error.RaiseIfUnhandledException(); - } - /// Show a specific virtual region within the scroller content object by page number. - /// 0, 0 of the indicated page is located at the top-left of the viewport. This will jump to the page directly without animation. - /// - /// See . - /// The horizontal page number - /// The vertical page number - virtual public void ShowPage(int pagenumber_h, int pagenumber_v) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_show_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),pagenumber_h, pagenumber_v); - Eina.Error.RaiseIfUnhandledException(); - } - /// Show a specific virtual region within the scroller content object. - /// This will ensure all (or part if it does not fit) of the designated region in the virtual content object (0, 0 starting at the top-left of the virtual content object) is shown within the scroller. Unlike elm_scroller_region_show(), this allows the scroller to "smoothly slide" to this location (if configuration in general calls for transitions). It may not jump immediately to the new location and make take a while and show other content along the way. - /// - /// See - /// X coordinate of the region - /// Y coordinate of the region - /// Width of the region - /// Height of the region - virtual public void RegionBringIn(int x, int y, int w, int h) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_region_bring_in_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),x, y, w, h); - Eina.Error.RaiseIfUnhandledException(); - } - /// Show a specific virtual region within the scroller content object by page number. - /// 0, 0 of the indicated page is located at the top-left of the viewport. This will slide to the page with animation. - /// - /// - /// The horizontal page number - /// The vertical page number - virtual public void PageBringIn(int pagenumber_h, int pagenumber_v) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_bring_in_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),pagenumber_h, pagenumber_v); - Eina.Error.RaiseIfUnhandledException(); - } - /// Show a specific virtual region within the scroller content object - /// This will ensure all (or part if it does not fit) of the designated region in the virtual content object (0, 0 starting at the top-left of the virtual content object) is shown within the scroller. - /// X coordinate of the region - /// Y coordinate of the region - /// Width of the region - /// Height of the region - virtual public void ShowContentRegion(int x, int y, int w, int h) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_region_show_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),x, y, w, h); - Eina.Error.RaiseIfUnhandledException(); - } + /// Horizontal scrolling gravity + public (double, double) Gravity { + get { + double _out_x = default(double); + double _out_y = default(double); + GetGravity(out _out_x,out _out_y); + return (_out_x,_out_y); + } + set { SetGravity( value.Item1, value.Item2); } + } /// Prevent the scrollable from being smaller than the minimum size of the content. /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. - /// Whether to limit the minimum horizontal size - /// Whether to limit the minimum vertical size - virtual public void ContentMinLimit(bool w, bool h) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_min_limit_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),w, h); - Eina.Error.RaiseIfUnhandledException(); - } - virtual public void SetWantedRegion(int x, int y) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_wanted_region_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),x, y); - Eina.Error.RaiseIfUnhandledException(); - } - virtual public void CustomPanPosAdjust(int x, int y) { - var _in_x = Eina.PrimitiveConversion.ManagedToPointerAlloc(x); - var _in_y = Eina.PrimitiveConversion.ManagedToPointerAlloc(y); - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_custom_pan_pos_adjust_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_x, _in_y); - Eina.Error.RaiseIfUnhandledException(); - } - /// Gets the orientation of the panel. - /// The panel orientation. - public Efl.Ui.PanelOrient Orient { - get { return GetOrient(); } - set { SetOrient(value); } - } - /// Gets the state of the panel. - /// If true, the panel will run the animation to disappear. - public bool Hidden { - get { return GetHidden(); } - set { SetHidden(value); } - } - /// Gets the state of the scrollability. - /// The scrollable state. - public bool Scrollable { - get { return GetScrollable(); } - set { SetScrollable(value); } - } - /// Gets the size of the scrollable panel. - /// Size ratio - public double ScrollableContentSize { - get { return GetScrollableContentSize(); } - set { SetScrollableContentSize(value); } + /// Whether to limit the minimum horizontal size + public (bool, bool) MatchContent { + set { SetMatchContent( value.Item1, value.Item2); } } - /// Sub-object currently set as this object's single content. - /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). - /// (Since EFL 1.22) - /// The sub-object. - public Efl.Gfx.IEntity Content { - get { return GetContent(); } - set { SetContent(value); } + /// Control the step size + /// Use this call to set step size. This value is used when scroller scroll by arrow key event. + /// The step size in pixels + public Eina.Position2D StepSize { + get { return GetStepSize(); } + set { SetStepSize(value); } } /// Enable property /// true to set enable the layer false to disable it @@ -2187,6 +1812,17 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui get { return GetEnable(); } set { SetEnable(value); } } + /// Constructor for setting the behaviour of the layer + /// true means layer will set itself once the inheriting widget becomes visible, false means the layer isn't enabled automatically + public (bool, bool) Behaviour { + get { + bool _out_enable_on_visible = default(bool); + bool _out_cycle = default(bool); + GetBehaviour(out _out_enable_on_visible,out _out_cycle); + return (_out_enable_on_visible,_out_cycle); + } + set { SetBehaviour( value.Item1, value.Item2); } + } /// The element which is currently focused by this manager /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. /// (Since EFL 1.22) @@ -2218,194 +1854,6 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui get { return GetRoot(); } set { SetRoot(value); } } - /// Control Wheel disable Enable or disable mouse wheel to be used to scroll the scroller content. heel is enabled by default. - /// true if wheel is disabled, false otherwise - public bool WheelDisabled { - get { return GetWheelDisabled(); } - set { SetWheelDisabled(value); } - } - /// Blocking of scrolling (per axis) - /// This function will block scrolling movement (by input of a user) in a given direction. One can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. - /// - /// What makes this function different from freeze_push(), hold_push() and lock_x_set() (or lock_y_set()) is that it doesn't propagate its effects to any parent or child widget of obj. Only the target scrollable widget will be locked with regard to scrolling. - /// Which axis (or axes) to block - public Efl.Ui.ScrollBlock MovementBlock { - get { return GetMovementBlock(); } - set { SetMovementBlock(value); } - } - /// Momentum animator - /// true if disabled, false otherwise - public bool MomentumAnimatorDisabled { - get { return GetMomentumAnimatorDisabled(); } - set { SetMomentumAnimatorDisabled(value); } - } - /// It decides whether the scrollable object propagates the events to content object or not. - /// true if events are propagated, false otherwise - public bool ContentEvents { - get { return GetContentEvents(); } - set { SetContentEvents(value); } - } - /// Bounce animator - /// true if bounce animation is disabled, false otherwise - public bool BounceAnimatorDisabled { - get { return GetBounceAnimatorDisabled(); } - set { SetBounceAnimatorDisabled(value); } - } - /// Single direction scroll configuration - /// This makes it possible to restrict scrolling to a single direction, with a "soft" or "hard" behavior. - /// - /// The hard behavior restricts the scrolling to a single direction all of the time while the soft one will restrict depending on factors such as the movement angle. If the user scrolls roughly in one direction only, it will only move according to it while if the move was clearly wanted on both axes, it will happen on both of them. - /// The single direction scroll policy - public Elm.Scroller.SingleDirection SingleDirection { - get { return GetSingleDirection(); } - set { SetSingleDirection(value); } - } - /// Set the callback to run when the content has been moved up. - /// The callback - public ElmInterfaceScrollableCb ScrollUpCb { - set { SetScrollUpCb(value); } - } - /// Set the callback to run when the horizontal scrollbar is dragged. - /// The callback - public ElmInterfaceScrollableCb HbarDragCb { - set { SetHbarDragCb(value); } - } - /// Set the callback to run when dragging of the contents has started. - /// The callback - public ElmInterfaceScrollableCb DragStartCb { - set { SetDragStartCb(value); } - } - /// Set the callback to run when scrolling of the contents has started. - /// The callback - public ElmInterfaceScrollableCb ScrollStartCb { - set { SetScrollStartCb(value); } - } - /// Freeze property - /// true if freeze, false otherwise - public bool Freeze { - set { SetFreeze(value); } - } - /// When the viewport is resized, the callback is called. - /// The callback - public ElmInterfaceScrollableResizeCb ContentViewportResizeCb { - set { SetContentViewportResizeCb(value); } - } - /// Set the callback to run when the content has been moved to the left - /// The callback - public ElmInterfaceScrollableCb ScrollLeftCb { - set { SetScrollLeftCb(value); } - } - /// Set the callback to run when the vertical scrollbar is pressed. - /// The callback - public ElmInterfaceScrollableCb VbarPressCb { - set { SetVbarPressCb(value); } - } - /// Set the callback to run when the horizontal scrollbar is pressed. - /// The callback - public ElmInterfaceScrollableCb HbarPressCb { - set { SetHbarPressCb(value); } - } - /// Set the callback to run when the horizontal scrollbar is unpressed. - /// The callback - public ElmInterfaceScrollableCb HbarUnpressCb { - set { SetHbarUnpressCb(value); } - } - /// Set the callback to run when dragging of the contents has stopped. - /// The callback - public ElmInterfaceScrollableCb DragStopCb { - set { SetDragStopCb(value); } - } - /// Set the callback to run when scrolling of the contents has stopped. - /// The callback - public ElmInterfaceScrollableCb ScrollStopCb { - set { SetScrollStopCb(value); } - } - /// Extern pan - /// Pan object - public Efl.Canvas.Object ExternPan { - set { SetExternPan(value); } - } - /// Set the callback to run when the visible page changes. - /// The callback - public ElmInterfaceScrollableCb PageChangeCb { - set { SetPageChangeCb(value); } - } - /// Hold property - /// true if hold, false otherwise - public bool Hold { - set { SetHold(value); } - } - /// Set the callback to run when the scrolling animation has started. - /// The callback - public ElmInterfaceScrollableCb AnimateStartCb { - set { SetAnimateStartCb(value); } - } - /// Set the callback to run when the content has been moved down. - /// The callback - public ElmInterfaceScrollableCb ScrollDownCb { - set { SetScrollDownCb(value); } - } - /// Set the callback to run when the content has been moved. - /// The callback - public ElmInterfaceScrollableCb ScrollCb { - set { SetScrollCb(value); } - } - /// Set the callback to run when the scrolling animation has stopped. - /// The callback - public ElmInterfaceScrollableCb AnimateStopCb { - set { SetAnimateStopCb(value); } - } - /// set the callback to run on minimal limit content - /// The callback - public ElmInterfaceScrollableMinLimitCb ContentMinLimitCb { - set { SetContentMinLimitCb(value); } - } - /// Set the callback to run when the content has been moved to the right. - /// The callback - public ElmInterfaceScrollableCb ScrollRightCb { - set { SetScrollRightCb(value); } - } - /// Content property - /// Content object - public Efl.Canvas.Object ScrollableContent { - set { SetScrollableContent(value); } - } - /// Set the callback to run when the left edge of the content has been reached. - /// The callback - public ElmInterfaceScrollableCb EdgeLeftCb { - set { SetEdgeLeftCb(value); } - } - /// Set the callback to run when the horizontal scrollbar is dragged. - /// The callback - public ElmInterfaceScrollableCb VbarDragCb { - set { SetVbarDragCb(value); } - } - /// Set the callback to run when the horizontal scrollbar is unpressed. - /// The callback - public ElmInterfaceScrollableCb VbarUnpressCb { - set { SetVbarUnpressCb(value); } - } - /// Set the callback to run when the bottom edge of the content has been reached. - /// The callback - public ElmInterfaceScrollableCb EdgeBottomCb { - set { SetEdgeBottomCb(value); } - } - /// Set the callback to run when the right edge of the content has been reached. - /// The callback - public ElmInterfaceScrollableCb EdgeRightCb { - set { SetEdgeRightCb(value); } - } - /// Set the callback to run when the top edge of the content has been reached. - /// The callback - public ElmInterfaceScrollableCb EdgeTopCb { - set { SetEdgeTopCb(value); } - } - /// Whether scrolling should loop around. - /// True to enable looping. - public bool ItemLoopEnabled { - get { return GetItemLoopEnabled(); } - set { SetItemLoopEnabled(value); } - } private static IntPtr GetEflClassStatic() { return Efl.Ui.Panel.efl_ui_panel_class_get(); @@ -2542,2916 +1990,537 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); } - if (efl_ui_widget_focus_manager_create_static_delegate == null) + if (efl_ui_scrollable_content_pos_get_static_delegate == null) { - efl_ui_widget_focus_manager_create_static_delegate = new efl_ui_widget_focus_manager_create_delegate(focus_manager_create); + efl_ui_scrollable_content_pos_get_static_delegate = new efl_ui_scrollable_content_pos_get_delegate(content_pos_get); } - if (methods.FirstOrDefault(m => m.Name == "FocusManagerCreate") != null) + if (methods.FirstOrDefault(m => m.Name == "GetContentPos") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_manager_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_manager_create_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_get_static_delegate) }); } - if (efl_ui_focus_layer_enable_get_static_delegate == null) + if (efl_ui_scrollable_content_pos_set_static_delegate == null) { - efl_ui_focus_layer_enable_get_static_delegate = new efl_ui_focus_layer_enable_get_delegate(enable_get); + efl_ui_scrollable_content_pos_set_static_delegate = new efl_ui_scrollable_content_pos_set_delegate(content_pos_set); } - if (methods.FirstOrDefault(m => m.Name == "GetEnable") != null) + if (methods.FirstOrDefault(m => m.Name == "SetContentPos") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_layer_enable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_enable_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_pos_set_static_delegate) }); } - if (efl_ui_focus_layer_enable_set_static_delegate == null) + if (efl_ui_scrollable_content_size_get_static_delegate == null) { - efl_ui_focus_layer_enable_set_static_delegate = new efl_ui_focus_layer_enable_set_delegate(enable_set); + efl_ui_scrollable_content_size_get_static_delegate = new efl_ui_scrollable_content_size_get_delegate(content_size_get); } - if (methods.FirstOrDefault(m => m.Name == "SetEnable") != null) + if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_layer_enable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_enable_set_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_content_size_get_static_delegate) }); } - if (efl_ui_focus_layer_behaviour_get_static_delegate == null) + if (efl_ui_scrollable_viewport_geometry_get_static_delegate == null) { - efl_ui_focus_layer_behaviour_get_static_delegate = new efl_ui_focus_layer_behaviour_get_delegate(behaviour_get); + efl_ui_scrollable_viewport_geometry_get_static_delegate = new efl_ui_scrollable_viewport_geometry_get_delegate(viewport_geometry_get); } - if (methods.FirstOrDefault(m => m.Name == "GetBehaviour") != null) + if (methods.FirstOrDefault(m => m.Name == "GetViewportGeometry") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_layer_behaviour_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_behaviour_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_viewport_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_viewport_geometry_get_static_delegate) }); } - if (efl_ui_focus_layer_behaviour_set_static_delegate == null) + if (efl_ui_scrollable_bounce_enabled_get_static_delegate == null) { - efl_ui_focus_layer_behaviour_set_static_delegate = new efl_ui_focus_layer_behaviour_set_delegate(behaviour_set); + efl_ui_scrollable_bounce_enabled_get_static_delegate = new efl_ui_scrollable_bounce_enabled_get_delegate(bounce_enabled_get); } - if (methods.FirstOrDefault(m => m.Name == "SetBehaviour") != null) + if (methods.FirstOrDefault(m => m.Name == "GetBounceEnabled") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_layer_behaviour_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_behaviour_set_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_bounce_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_get_static_delegate) }); } - if (efl_ui_focus_manager_focus_get_static_delegate == null) + if (efl_ui_scrollable_bounce_enabled_set_static_delegate == null) { - efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); + efl_ui_scrollable_bounce_enabled_set_static_delegate = new efl_ui_scrollable_bounce_enabled_set_delegate(bounce_enabled_set); } - if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) + if (methods.FirstOrDefault(m => m.Name == "SetBounceEnabled") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_bounce_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_bounce_enabled_set_static_delegate) }); } - if (efl_ui_focus_manager_focus_set_static_delegate == null) + if (efl_ui_scrollable_scroll_freeze_get_static_delegate == null) { - efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); + efl_ui_scrollable_scroll_freeze_get_static_delegate = new efl_ui_scrollable_scroll_freeze_get_delegate(scroll_freeze_get); } - if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) + if (methods.FirstOrDefault(m => m.Name == "GetScrollFreeze") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_freeze_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_get_static_delegate) }); } - if (efl_ui_focus_manager_redirect_get_static_delegate == null) + if (efl_ui_scrollable_scroll_freeze_set_static_delegate == null) { - efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); + efl_ui_scrollable_scroll_freeze_set_static_delegate = new efl_ui_scrollable_scroll_freeze_set_delegate(scroll_freeze_set); } - if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) + if (methods.FirstOrDefault(m => m.Name == "SetScrollFreeze") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_freeze_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_freeze_set_static_delegate) }); } - if (efl_ui_focus_manager_redirect_set_static_delegate == null) + if (efl_ui_scrollable_scroll_hold_get_static_delegate == null) { - efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); + efl_ui_scrollable_scroll_hold_get_static_delegate = new efl_ui_scrollable_scroll_hold_get_delegate(scroll_hold_get); } - if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) + if (methods.FirstOrDefault(m => m.Name == "GetScrollHold") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_hold_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_get_static_delegate) }); } - if (efl_ui_focus_manager_border_elements_get_static_delegate == null) + if (efl_ui_scrollable_scroll_hold_set_static_delegate == null) { - efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); + efl_ui_scrollable_scroll_hold_set_static_delegate = new efl_ui_scrollable_scroll_hold_set_delegate(scroll_hold_set); } - if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) + if (methods.FirstOrDefault(m => m.Name == "SetScrollHold") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll_hold_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_hold_set_static_delegate) }); } - if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) + if (efl_ui_scrollable_looping_get_static_delegate == null) { - efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); + efl_ui_scrollable_looping_get_static_delegate = new efl_ui_scrollable_looping_get_delegate(looping_get); } - if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) + if (methods.FirstOrDefault(m => m.Name == "GetLooping") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_looping_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_get_static_delegate) }); } - if (efl_ui_focus_manager_root_get_static_delegate == null) + if (efl_ui_scrollable_looping_set_static_delegate == null) { - efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); + efl_ui_scrollable_looping_set_static_delegate = new efl_ui_scrollable_looping_set_delegate(looping_set); } - if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) + if (methods.FirstOrDefault(m => m.Name == "SetLooping") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_looping_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_looping_set_static_delegate) }); } - if (efl_ui_focus_manager_root_set_static_delegate == null) + if (efl_ui_scrollable_movement_block_get_static_delegate == null) { - efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); + efl_ui_scrollable_movement_block_get_static_delegate = new efl_ui_scrollable_movement_block_get_delegate(movement_block_get); } - if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) + if (methods.FirstOrDefault(m => m.Name == "GetMovementBlock") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_movement_block_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_get_static_delegate) }); } - if (efl_ui_focus_manager_move_static_delegate == null) + if (efl_ui_scrollable_movement_block_set_static_delegate == null) { - efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); + efl_ui_scrollable_movement_block_set_static_delegate = new efl_ui_scrollable_movement_block_set_delegate(movement_block_set); } - if (methods.FirstOrDefault(m => m.Name == "Move") != null) + if (methods.FirstOrDefault(m => m.Name == "SetMovementBlock") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_movement_block_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_movement_block_set_static_delegate) }); } - if (efl_ui_focus_manager_request_move_static_delegate == null) + if (efl_ui_scrollable_gravity_get_static_delegate == null) { - efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); + efl_ui_scrollable_gravity_get_static_delegate = new efl_ui_scrollable_gravity_get_delegate(gravity_get); } - if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) + if (methods.FirstOrDefault(m => m.Name == "GetGravity") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_gravity_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_get_static_delegate) }); } - if (efl_ui_focus_manager_request_subchild_static_delegate == null) + if (efl_ui_scrollable_gravity_set_static_delegate == null) { - efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); + efl_ui_scrollable_gravity_set_static_delegate = new efl_ui_scrollable_gravity_set_delegate(gravity_set); } - if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) + if (methods.FirstOrDefault(m => m.Name == "SetGravity") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_gravity_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_gravity_set_static_delegate) }); } - if (efl_ui_focus_manager_fetch_static_delegate == null) + if (efl_ui_scrollable_match_content_set_static_delegate == null) { - efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); + efl_ui_scrollable_match_content_set_static_delegate = new efl_ui_scrollable_match_content_set_delegate(match_content_set); } - if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) + if (methods.FirstOrDefault(m => m.Name == "SetMatchContent") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_match_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_match_content_set_static_delegate) }); } - if (efl_ui_focus_manager_logical_end_static_delegate == null) + if (efl_ui_scrollable_step_size_get_static_delegate == null) { - efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); + efl_ui_scrollable_step_size_get_static_delegate = new efl_ui_scrollable_step_size_get_delegate(step_size_get); } - if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) + if (methods.FirstOrDefault(m => m.Name == "GetStepSize") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_step_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_get_static_delegate) }); } - if (efl_ui_focus_manager_reset_history_static_delegate == null) + if (efl_ui_scrollable_step_size_set_static_delegate == null) { - efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); + efl_ui_scrollable_step_size_set_static_delegate = new efl_ui_scrollable_step_size_set_delegate(step_size_set); } - if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) + if (methods.FirstOrDefault(m => m.Name == "SetStepSize") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_step_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_step_size_set_static_delegate) }); } - if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) + if (efl_ui_scrollable_scroll_static_delegate == null) { - efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); + efl_ui_scrollable_scroll_static_delegate = new efl_ui_scrollable_scroll_delegate(scroll); } - if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) + if (methods.FirstOrDefault(m => m.Name == "Scroll") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scrollable_scroll"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scrollable_scroll_static_delegate) }); } - if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) + if (efl_ui_widget_focus_manager_create_static_delegate == null) { - efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); + efl_ui_widget_focus_manager_create_static_delegate = new efl_ui_widget_focus_manager_create_delegate(focus_manager_create); } - if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) + if (methods.FirstOrDefault(m => m.Name == "FocusManagerCreate") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_manager_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_manager_create_static_delegate) }); } - if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) + if (efl_ui_focus_layer_enable_get_static_delegate == null) { - efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); + efl_ui_focus_layer_enable_get_static_delegate = new efl_ui_focus_layer_enable_get_delegate(enable_get); } - if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) + if (methods.FirstOrDefault(m => m.Name == "GetEnable") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_layer_enable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_enable_get_static_delegate) }); } - if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) + if (efl_ui_focus_layer_enable_set_static_delegate == null) { - efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); + efl_ui_focus_layer_enable_set_static_delegate = new efl_ui_focus_layer_enable_set_delegate(enable_set); } - if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) + if (methods.FirstOrDefault(m => m.Name == "SetEnable") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_layer_enable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_enable_set_static_delegate) }); } - if (elm_interface_scrollable_gravity_get_static_delegate == null) + if (efl_ui_focus_layer_behaviour_get_static_delegate == null) { - elm_interface_scrollable_gravity_get_static_delegate = new elm_interface_scrollable_gravity_get_delegate(gravity_get); + efl_ui_focus_layer_behaviour_get_static_delegate = new efl_ui_focus_layer_behaviour_get_delegate(behaviour_get); } - if (methods.FirstOrDefault(m => m.Name == "GetGravity") != null) + if (methods.FirstOrDefault(m => m.Name == "GetBehaviour") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_gravity_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_gravity_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_layer_behaviour_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_behaviour_get_static_delegate) }); } - if (elm_interface_scrollable_gravity_set_static_delegate == null) + if (efl_ui_focus_layer_behaviour_set_static_delegate == null) { - elm_interface_scrollable_gravity_set_static_delegate = new elm_interface_scrollable_gravity_set_delegate(gravity_set); + efl_ui_focus_layer_behaviour_set_static_delegate = new efl_ui_focus_layer_behaviour_set_delegate(behaviour_set); } - if (methods.FirstOrDefault(m => m.Name == "SetGravity") != null) + if (methods.FirstOrDefault(m => m.Name == "SetBehaviour") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_gravity_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_gravity_set_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_layer_behaviour_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_layer_behaviour_set_static_delegate) }); } - if (elm_interface_scrollable_bounce_allow_get_static_delegate == null) + if (efl_ui_focus_manager_focus_get_static_delegate == null) { - elm_interface_scrollable_bounce_allow_get_static_delegate = new elm_interface_scrollable_bounce_allow_get_delegate(bounce_allow_get); + efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); } - if (methods.FirstOrDefault(m => m.Name == "GetBounceAllow") != null) + if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_bounce_allow_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_bounce_allow_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate) }); } - if (elm_interface_scrollable_bounce_allow_set_static_delegate == null) + if (efl_ui_focus_manager_focus_set_static_delegate == null) { - elm_interface_scrollable_bounce_allow_set_static_delegate = new elm_interface_scrollable_bounce_allow_set_delegate(bounce_allow_set); + efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); } - if (methods.FirstOrDefault(m => m.Name == "SetBounceAllow") != null) + if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_bounce_allow_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_bounce_allow_set_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate) }); } - if (elm_interface_scrollable_wheel_disabled_get_static_delegate == null) + if (efl_ui_focus_manager_redirect_get_static_delegate == null) { - elm_interface_scrollable_wheel_disabled_get_static_delegate = new elm_interface_scrollable_wheel_disabled_get_delegate(wheel_disabled_get); + efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); } - if (methods.FirstOrDefault(m => m.Name == "GetWheelDisabled") != null) + if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_wheel_disabled_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_wheel_disabled_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate) }); } - if (elm_interface_scrollable_wheel_disabled_set_static_delegate == null) + if (efl_ui_focus_manager_redirect_set_static_delegate == null) { - elm_interface_scrollable_wheel_disabled_set_static_delegate = new elm_interface_scrollable_wheel_disabled_set_delegate(wheel_disabled_set); + efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); } - if (methods.FirstOrDefault(m => m.Name == "SetWheelDisabled") != null) + if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_wheel_disabled_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_wheel_disabled_set_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate) }); } - if (elm_interface_scrollable_movement_block_get_static_delegate == null) + if (efl_ui_focus_manager_border_elements_get_static_delegate == null) { - elm_interface_scrollable_movement_block_get_static_delegate = new elm_interface_scrollable_movement_block_get_delegate(movement_block_get); + efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); } - if (methods.FirstOrDefault(m => m.Name == "GetMovementBlock") != null) + if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_movement_block_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_movement_block_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate) }); } - if (elm_interface_scrollable_movement_block_set_static_delegate == null) + if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) { - elm_interface_scrollable_movement_block_set_static_delegate = new elm_interface_scrollable_movement_block_set_delegate(movement_block_set); + efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); } - if (methods.FirstOrDefault(m => m.Name == "SetMovementBlock") != null) + if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_movement_block_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_movement_block_set_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate) }); } - if (elm_interface_scrollable_momentum_animator_disabled_get_static_delegate == null) + if (efl_ui_focus_manager_root_get_static_delegate == null) { - elm_interface_scrollable_momentum_animator_disabled_get_static_delegate = new elm_interface_scrollable_momentum_animator_disabled_get_delegate(momentum_animator_disabled_get); + efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); } - if (methods.FirstOrDefault(m => m.Name == "GetMomentumAnimatorDisabled") != null) + if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_momentum_animator_disabled_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_momentum_animator_disabled_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate) }); } - if (elm_interface_scrollable_momentum_animator_disabled_set_static_delegate == null) + if (efl_ui_focus_manager_root_set_static_delegate == null) { - elm_interface_scrollable_momentum_animator_disabled_set_static_delegate = new elm_interface_scrollable_momentum_animator_disabled_set_delegate(momentum_animator_disabled_set); + efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); } - if (methods.FirstOrDefault(m => m.Name == "SetMomentumAnimatorDisabled") != null) + if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_momentum_animator_disabled_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_momentum_animator_disabled_set_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate) }); } - if (elm_interface_scrollable_policy_get_static_delegate == null) + if (efl_ui_focus_manager_move_static_delegate == null) { - elm_interface_scrollable_policy_get_static_delegate = new elm_interface_scrollable_policy_get_delegate(policy_get); + efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); } - if (methods.FirstOrDefault(m => m.Name == "GetPolicy") != null) + if (methods.FirstOrDefault(m => m.Name == "Move") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_policy_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_policy_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate) }); } - if (elm_interface_scrollable_policy_set_static_delegate == null) + if (efl_ui_focus_manager_request_move_static_delegate == null) { - elm_interface_scrollable_policy_set_static_delegate = new elm_interface_scrollable_policy_set_delegate(policy_set); + efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); } - if (methods.FirstOrDefault(m => m.Name == "SetPolicy") != null) + if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_policy_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_policy_set_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate) }); } - if (elm_interface_scrollable_content_region_get_static_delegate == null) + if (efl_ui_focus_manager_request_subchild_static_delegate == null) { - elm_interface_scrollable_content_region_get_static_delegate = new elm_interface_scrollable_content_region_get_delegate(content_region_get); + efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); } - if (methods.FirstOrDefault(m => m.Name == "GetContentRegion") != null) + if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_region_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_region_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate) }); } - if (elm_interface_scrollable_content_region_set_static_delegate == null) + if (efl_ui_focus_manager_fetch_static_delegate == null) { - elm_interface_scrollable_content_region_set_static_delegate = new elm_interface_scrollable_content_region_set_delegate(content_region_set); + efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); } - if (methods.FirstOrDefault(m => m.Name == "SetContentRegion") != null) + if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_region_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_region_set_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate) }); } - if (elm_interface_scrollable_content_events_get_static_delegate == null) + if (efl_ui_focus_manager_logical_end_static_delegate == null) { - elm_interface_scrollable_content_events_get_static_delegate = new elm_interface_scrollable_content_events_get_delegate(content_events_get); + efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); } - if (methods.FirstOrDefault(m => m.Name == "GetContentEvents") != null) + if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_events_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_events_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate) }); } - if (elm_interface_scrollable_content_events_set_static_delegate == null) + if (efl_ui_focus_manager_reset_history_static_delegate == null) { - elm_interface_scrollable_content_events_set_static_delegate = new elm_interface_scrollable_content_events_set_delegate(content_events_set); + efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); } - if (methods.FirstOrDefault(m => m.Name == "SetContentEvents") != null) + if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_events_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_events_set_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate) }); } - if (elm_interface_scrollable_page_size_get_static_delegate == null) + if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) { - elm_interface_scrollable_page_size_get_static_delegate = new elm_interface_scrollable_page_size_get_delegate(page_size_get); + efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); } - if (methods.FirstOrDefault(m => m.Name == "GetPageSize") != null) + if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_size_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_size_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate) }); } - if (elm_interface_scrollable_page_size_set_static_delegate == null) + if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) { - elm_interface_scrollable_page_size_set_static_delegate = new elm_interface_scrollable_page_size_set_delegate(page_size_set); + efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); } - if (methods.FirstOrDefault(m => m.Name == "SetPageSize") != null) + if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_size_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_size_set_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate) }); } - if (elm_interface_scrollable_bounce_animator_disabled_get_static_delegate == null) + if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) { - elm_interface_scrollable_bounce_animator_disabled_get_static_delegate = new elm_interface_scrollable_bounce_animator_disabled_get_delegate(bounce_animator_disabled_get); + efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); } - if (methods.FirstOrDefault(m => m.Name == "GetBounceAnimatorDisabled") != null) + if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_bounce_animator_disabled_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_bounce_animator_disabled_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate) }); } - if (elm_interface_scrollable_bounce_animator_disabled_set_static_delegate == null) + if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) { - elm_interface_scrollable_bounce_animator_disabled_set_static_delegate = new elm_interface_scrollable_bounce_animator_disabled_set_delegate(bounce_animator_disabled_set); + efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); } - if (methods.FirstOrDefault(m => m.Name == "SetBounceAnimatorDisabled") != null) + if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_bounce_animator_disabled_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_bounce_animator_disabled_set_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate) }); } - if (elm_interface_scrollable_page_scroll_limit_get_static_delegate == null) - { - elm_interface_scrollable_page_scroll_limit_get_static_delegate = new elm_interface_scrollable_page_scroll_limit_get_delegate(page_scroll_limit_get); - } + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.Panel.efl_ui_panel_class_get(); + } - if (methods.FirstOrDefault(m => m.Name == "GetPageScrollLimit") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_scroll_limit_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_scroll_limit_get_static_delegate) }); - } + #pragma warning disable CA1707, CS1591, SA1300, SA1600 - if (elm_interface_scrollable_page_scroll_limit_set_static_delegate == null) - { - elm_interface_scrollable_page_scroll_limit_set_static_delegate = new elm_interface_scrollable_page_scroll_limit_set_delegate(page_scroll_limit_set); - } + + private delegate Efl.Ui.PanelOrient efl_ui_panel_orient_get_delegate(System.IntPtr obj, System.IntPtr pd); - if (methods.FirstOrDefault(m => m.Name == "SetPageScrollLimit") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_scroll_limit_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_scroll_limit_set_static_delegate) }); - } + + public delegate Efl.Ui.PanelOrient efl_ui_panel_orient_get_api_delegate(System.IntPtr obj); - if (elm_interface_scrollable_page_snap_allow_get_static_delegate == null) - { - elm_interface_scrollable_page_snap_allow_get_static_delegate = new elm_interface_scrollable_page_snap_allow_get_delegate(page_snap_allow_get); - } + public static Efl.Eo.FunctionWrapper efl_ui_panel_orient_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_orient_get"); - if (methods.FirstOrDefault(m => m.Name == "GetPageSnapAllow") != null) + private static Efl.Ui.PanelOrient orient_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_panel_orient_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_snap_allow_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_snap_allow_get_static_delegate) }); - } + Efl.Ui.PanelOrient _ret_var = default(Efl.Ui.PanelOrient); + try + { + _ret_var = ((Panel)ws.Target).GetOrient(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - if (elm_interface_scrollable_page_snap_allow_set_static_delegate == null) - { - elm_interface_scrollable_page_snap_allow_set_static_delegate = new elm_interface_scrollable_page_snap_allow_set_delegate(page_snap_allow_set); - } + return _ret_var; - if (methods.FirstOrDefault(m => m.Name == "SetPageSnapAllow") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_snap_allow_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_snap_allow_set_static_delegate) }); } - - if (elm_interface_scrollable_paging_get_static_delegate == null) + else { - elm_interface_scrollable_paging_get_static_delegate = new elm_interface_scrollable_paging_get_delegate(paging_get); + return efl_ui_panel_orient_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } + } - if (methods.FirstOrDefault(m => m.Name == "GetPaging") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_paging_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_paging_get_static_delegate) }); - } + private static efl_ui_panel_orient_get_delegate efl_ui_panel_orient_get_static_delegate; - if (elm_interface_scrollable_paging_set_static_delegate == null) - { - elm_interface_scrollable_paging_set_static_delegate = new elm_interface_scrollable_paging_set_delegate(paging_set); - } + + private delegate void efl_ui_panel_orient_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.PanelOrient orient); - if (methods.FirstOrDefault(m => m.Name == "SetPaging") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_paging_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_paging_set_static_delegate) }); - } + + public delegate void efl_ui_panel_orient_set_api_delegate(System.IntPtr obj, Efl.Ui.PanelOrient orient); - if (elm_interface_scrollable_single_direction_get_static_delegate == null) - { - elm_interface_scrollable_single_direction_get_static_delegate = new elm_interface_scrollable_single_direction_get_delegate(single_direction_get); - } + public static Efl.Eo.FunctionWrapper efl_ui_panel_orient_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_orient_set"); - if (methods.FirstOrDefault(m => m.Name == "GetSingleDirection") != null) + private static void orient_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.PanelOrient orient) + { + Eina.Log.Debug("function efl_ui_panel_orient_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_single_direction_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_single_direction_get_static_delegate) }); - } + + try + { + ((Panel)ws.Target).SetOrient(orient); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - if (elm_interface_scrollable_single_direction_set_static_delegate == null) - { - elm_interface_scrollable_single_direction_set_static_delegate = new elm_interface_scrollable_single_direction_set_delegate(single_direction_set); + } - - if (methods.FirstOrDefault(m => m.Name == "SetSingleDirection") != null) + else { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_single_direction_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_single_direction_set_static_delegate) }); + efl_ui_panel_orient_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), orient); } + } - if (elm_interface_scrollable_step_size_get_static_delegate == null) - { - elm_interface_scrollable_step_size_get_static_delegate = new elm_interface_scrollable_step_size_get_delegate(step_size_get); - } + private static efl_ui_panel_orient_set_delegate efl_ui_panel_orient_set_static_delegate; - if (methods.FirstOrDefault(m => m.Name == "GetStepSize") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_step_size_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_step_size_get_static_delegate) }); - } + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_panel_hidden_get_delegate(System.IntPtr obj, System.IntPtr pd); - if (elm_interface_scrollable_step_size_set_static_delegate == null) - { - elm_interface_scrollable_step_size_set_static_delegate = new elm_interface_scrollable_step_size_set_delegate(step_size_set); - } + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_panel_hidden_get_api_delegate(System.IntPtr obj); - if (methods.FirstOrDefault(m => m.Name == "SetStepSize") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_step_size_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_step_size_set_static_delegate) }); - } + public static Efl.Eo.FunctionWrapper efl_ui_panel_hidden_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_hidden_get"); - if (elm_interface_scrollable_content_loop_get_static_delegate == null) - { - elm_interface_scrollable_content_loop_get_static_delegate = new elm_interface_scrollable_content_loop_get_delegate(content_loop_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetContentLoop") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_loop_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_loop_get_static_delegate) }); - } - - if (elm_interface_scrollable_content_loop_set_static_delegate == null) - { - elm_interface_scrollable_content_loop_set_static_delegate = new elm_interface_scrollable_content_loop_set_delegate(content_loop_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetContentLoop") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_loop_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_loop_set_static_delegate) }); - } - - if (elm_interface_scrollable_scroll_up_cb_set_static_delegate == null) - { - elm_interface_scrollable_scroll_up_cb_set_static_delegate = new elm_interface_scrollable_scroll_up_cb_set_delegate(scroll_up_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetScrollUpCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_up_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_up_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_hbar_drag_cb_set_static_delegate == null) - { - elm_interface_scrollable_hbar_drag_cb_set_static_delegate = new elm_interface_scrollable_hbar_drag_cb_set_delegate(hbar_drag_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetHbarDragCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_hbar_drag_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_hbar_drag_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_drag_start_cb_set_static_delegate == null) - { - elm_interface_scrollable_drag_start_cb_set_static_delegate = new elm_interface_scrollable_drag_start_cb_set_delegate(drag_start_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetDragStartCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_drag_start_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_drag_start_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_scroll_start_cb_set_static_delegate == null) - { - elm_interface_scrollable_scroll_start_cb_set_static_delegate = new elm_interface_scrollable_scroll_start_cb_set_delegate(scroll_start_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetScrollStartCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_start_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_start_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_freeze_set_static_delegate == null) - { - elm_interface_scrollable_freeze_set_static_delegate = new elm_interface_scrollable_freeze_set_delegate(freeze_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetFreeze") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_freeze_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_freeze_set_static_delegate) }); - } - - if (elm_interface_scrollable_content_viewport_resize_cb_set_static_delegate == null) - { - elm_interface_scrollable_content_viewport_resize_cb_set_static_delegate = new elm_interface_scrollable_content_viewport_resize_cb_set_delegate(content_viewport_resize_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetContentViewportResizeCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_viewport_resize_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_viewport_resize_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_scroll_left_cb_set_static_delegate == null) - { - elm_interface_scrollable_scroll_left_cb_set_static_delegate = new elm_interface_scrollable_scroll_left_cb_set_delegate(scroll_left_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetScrollLeftCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_left_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_left_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_vbar_press_cb_set_static_delegate == null) - { - elm_interface_scrollable_vbar_press_cb_set_static_delegate = new elm_interface_scrollable_vbar_press_cb_set_delegate(vbar_press_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetVbarPressCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_vbar_press_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_vbar_press_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_hbar_press_cb_set_static_delegate == null) - { - elm_interface_scrollable_hbar_press_cb_set_static_delegate = new elm_interface_scrollable_hbar_press_cb_set_delegate(hbar_press_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetHbarPressCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_hbar_press_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_hbar_press_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_hbar_unpress_cb_set_static_delegate == null) - { - elm_interface_scrollable_hbar_unpress_cb_set_static_delegate = new elm_interface_scrollable_hbar_unpress_cb_set_delegate(hbar_unpress_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetHbarUnpressCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_hbar_unpress_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_hbar_unpress_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_drag_stop_cb_set_static_delegate == null) - { - elm_interface_scrollable_drag_stop_cb_set_static_delegate = new elm_interface_scrollable_drag_stop_cb_set_delegate(drag_stop_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetDragStopCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_drag_stop_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_drag_stop_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_scroll_stop_cb_set_static_delegate == null) - { - elm_interface_scrollable_scroll_stop_cb_set_static_delegate = new elm_interface_scrollable_scroll_stop_cb_set_delegate(scroll_stop_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetScrollStopCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_stop_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_stop_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_extern_pan_set_static_delegate == null) - { - elm_interface_scrollable_extern_pan_set_static_delegate = new elm_interface_scrollable_extern_pan_set_delegate(extern_pan_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetExternPan") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_extern_pan_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_extern_pan_set_static_delegate) }); - } - - if (elm_interface_scrollable_page_change_cb_set_static_delegate == null) - { - elm_interface_scrollable_page_change_cb_set_static_delegate = new elm_interface_scrollable_page_change_cb_set_delegate(page_change_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetPageChangeCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_change_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_change_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_hold_set_static_delegate == null) - { - elm_interface_scrollable_hold_set_static_delegate = new elm_interface_scrollable_hold_set_delegate(hold_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetHold") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_hold_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_hold_set_static_delegate) }); - } - - if (elm_interface_scrollable_animate_start_cb_set_static_delegate == null) - { - elm_interface_scrollable_animate_start_cb_set_static_delegate = new elm_interface_scrollable_animate_start_cb_set_delegate(animate_start_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetAnimateStartCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_animate_start_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_animate_start_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_scroll_down_cb_set_static_delegate == null) - { - elm_interface_scrollable_scroll_down_cb_set_static_delegate = new elm_interface_scrollable_scroll_down_cb_set_delegate(scroll_down_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetScrollDownCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_down_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_down_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_page_relative_set_static_delegate == null) - { - elm_interface_scrollable_page_relative_set_static_delegate = new elm_interface_scrollable_page_relative_set_delegate(page_relative_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetPageRelative") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_relative_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_relative_set_static_delegate) }); - } - - if (elm_interface_scrollable_scroll_cb_set_static_delegate == null) - { - elm_interface_scrollable_scroll_cb_set_static_delegate = new elm_interface_scrollable_scroll_cb_set_delegate(scroll_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetScrollCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_animate_stop_cb_set_static_delegate == null) - { - elm_interface_scrollable_animate_stop_cb_set_static_delegate = new elm_interface_scrollable_animate_stop_cb_set_delegate(animate_stop_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetAnimateStopCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_animate_stop_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_animate_stop_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_content_min_limit_cb_set_static_delegate == null) - { - elm_interface_scrollable_content_min_limit_cb_set_static_delegate = new elm_interface_scrollable_content_min_limit_cb_set_delegate(content_min_limit_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetContentMinLimitCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_min_limit_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_min_limit_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_scroll_right_cb_set_static_delegate == null) - { - elm_interface_scrollable_scroll_right_cb_set_static_delegate = new elm_interface_scrollable_scroll_right_cb_set_delegate(scroll_right_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetScrollRightCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_right_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_right_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_content_set_static_delegate == null) - { - elm_interface_scrollable_content_set_static_delegate = new elm_interface_scrollable_content_set_delegate(scrollable_content_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetScrollableContent") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_set_static_delegate) }); - } - - if (elm_interface_scrollable_edge_left_cb_set_static_delegate == null) - { - elm_interface_scrollable_edge_left_cb_set_static_delegate = new elm_interface_scrollable_edge_left_cb_set_delegate(edge_left_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetEdgeLeftCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_edge_left_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_edge_left_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_vbar_drag_cb_set_static_delegate == null) - { - elm_interface_scrollable_vbar_drag_cb_set_static_delegate = new elm_interface_scrollable_vbar_drag_cb_set_delegate(vbar_drag_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetVbarDragCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_vbar_drag_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_vbar_drag_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_vbar_unpress_cb_set_static_delegate == null) - { - elm_interface_scrollable_vbar_unpress_cb_set_static_delegate = new elm_interface_scrollable_vbar_unpress_cb_set_delegate(vbar_unpress_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetVbarUnpressCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_vbar_unpress_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_vbar_unpress_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_edge_bottom_cb_set_static_delegate == null) - { - elm_interface_scrollable_edge_bottom_cb_set_static_delegate = new elm_interface_scrollable_edge_bottom_cb_set_delegate(edge_bottom_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetEdgeBottomCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_edge_bottom_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_edge_bottom_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_edge_right_cb_set_static_delegate == null) - { - elm_interface_scrollable_edge_right_cb_set_static_delegate = new elm_interface_scrollable_edge_right_cb_set_delegate(edge_right_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetEdgeRightCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_edge_right_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_edge_right_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_edge_top_cb_set_static_delegate == null) - { - elm_interface_scrollable_edge_top_cb_set_static_delegate = new elm_interface_scrollable_edge_top_cb_set_delegate(edge_top_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetEdgeTopCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_edge_top_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_edge_top_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_objects_set_static_delegate == null) - { - elm_interface_scrollable_objects_set_static_delegate = new elm_interface_scrollable_objects_set_delegate(objects_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetObjects") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_objects_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_objects_set_static_delegate) }); - } - - if (elm_interface_scrollable_last_page_get_static_delegate == null) - { - elm_interface_scrollable_last_page_get_static_delegate = new elm_interface_scrollable_last_page_get_delegate(last_page_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetLastPage") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_last_page_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_last_page_get_static_delegate) }); - } - - if (elm_interface_scrollable_current_page_get_static_delegate == null) - { - elm_interface_scrollable_current_page_get_static_delegate = new elm_interface_scrollable_current_page_get_delegate(current_page_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetCurrentPage") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_current_page_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_current_page_get_static_delegate) }); - } - - if (elm_interface_scrollable_content_viewport_geometry_get_static_delegate == null) - { - elm_interface_scrollable_content_viewport_geometry_get_static_delegate = new elm_interface_scrollable_content_viewport_geometry_get_delegate(content_viewport_geometry_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetContentViewportGeometry") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_viewport_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_viewport_geometry_get_static_delegate) }); - } - - if (elm_interface_scrollable_content_size_get_static_delegate == null) - { - elm_interface_scrollable_content_size_get_static_delegate = new elm_interface_scrollable_content_size_get_delegate(content_size_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_size_get_static_delegate) }); - } - - if (elm_interface_scrollable_item_loop_enabled_get_static_delegate == null) - { - elm_interface_scrollable_item_loop_enabled_get_static_delegate = new elm_interface_scrollable_item_loop_enabled_get_delegate(item_loop_enabled_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetItemLoopEnabled") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_item_loop_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_item_loop_enabled_get_static_delegate) }); - } - - if (elm_interface_scrollable_item_loop_enabled_set_static_delegate == null) - { - elm_interface_scrollable_item_loop_enabled_set_static_delegate = new elm_interface_scrollable_item_loop_enabled_set_delegate(item_loop_enabled_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetItemLoopEnabled") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_item_loop_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_item_loop_enabled_set_static_delegate) }); - } - - if (elm_interface_scrollable_content_pos_set_static_delegate == null) - { - elm_interface_scrollable_content_pos_set_static_delegate = new elm_interface_scrollable_content_pos_set_delegate(content_pos_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetContentPos") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_pos_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_pos_set_static_delegate) }); - } - - if (elm_interface_scrollable_content_pos_get_static_delegate == null) - { - elm_interface_scrollable_content_pos_get_static_delegate = new elm_interface_scrollable_content_pos_get_delegate(content_pos_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetContentPos") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_pos_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_pos_get_static_delegate) }); - } - - if (elm_interface_scrollable_page_show_static_delegate == null) - { - elm_interface_scrollable_page_show_static_delegate = new elm_interface_scrollable_page_show_delegate(page_show); - } - - if (methods.FirstOrDefault(m => m.Name == "ShowPage") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_show"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_show_static_delegate) }); - } - - if (elm_interface_scrollable_region_bring_in_static_delegate == null) - { - elm_interface_scrollable_region_bring_in_static_delegate = new elm_interface_scrollable_region_bring_in_delegate(region_bring_in); - } - - if (methods.FirstOrDefault(m => m.Name == "RegionBringIn") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_region_bring_in"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_region_bring_in_static_delegate) }); - } - - if (elm_interface_scrollable_page_bring_in_static_delegate == null) - { - elm_interface_scrollable_page_bring_in_static_delegate = new elm_interface_scrollable_page_bring_in_delegate(page_bring_in); - } - - if (methods.FirstOrDefault(m => m.Name == "PageBringIn") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_bring_in"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_bring_in_static_delegate) }); - } - - if (elm_interface_scrollable_content_region_show_static_delegate == null) - { - elm_interface_scrollable_content_region_show_static_delegate = new elm_interface_scrollable_content_region_show_delegate(content_region_show); - } - - if (methods.FirstOrDefault(m => m.Name == "ShowContentRegion") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_region_show"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_region_show_static_delegate) }); - } - - if (elm_interface_scrollable_content_min_limit_static_delegate == null) - { - elm_interface_scrollable_content_min_limit_static_delegate = new elm_interface_scrollable_content_min_limit_delegate(content_min_limit); - } - - if (methods.FirstOrDefault(m => m.Name == "ContentMinLimit") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_min_limit"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_min_limit_static_delegate) }); - } - - if (elm_interface_scrollable_wanted_region_set_static_delegate == null) - { - elm_interface_scrollable_wanted_region_set_static_delegate = new elm_interface_scrollable_wanted_region_set_delegate(wanted_region_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetWantedRegion") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_wanted_region_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_wanted_region_set_static_delegate) }); - } - - if (elm_interface_scrollable_custom_pan_pos_adjust_static_delegate == null) - { - elm_interface_scrollable_custom_pan_pos_adjust_static_delegate = new elm_interface_scrollable_custom_pan_pos_adjust_delegate(custom_pan_pos_adjust); - } - - if (methods.FirstOrDefault(m => m.Name == "CustomPanPosAdjust") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_custom_pan_pos_adjust"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_custom_pan_pos_adjust_static_delegate) }); - } - - descs.AddRange(base.GetEoOps(type)); - return descs; - } - /// Returns the Eo class for the native methods of this class. - /// The native class pointer. - public override IntPtr GetEflClass() - { - return Efl.Ui.Panel.efl_ui_panel_class_get(); - } - - #pragma warning disable CA1707, CS1591, SA1300, SA1600 - - - private delegate Efl.Ui.PanelOrient efl_ui_panel_orient_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate Efl.Ui.PanelOrient efl_ui_panel_orient_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_panel_orient_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_orient_get"); - - private static Efl.Ui.PanelOrient orient_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_panel_orient_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.PanelOrient _ret_var = default(Efl.Ui.PanelOrient); - try - { - _ret_var = ((Panel)ws.Target).GetOrient(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_panel_orient_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_panel_orient_get_delegate efl_ui_panel_orient_get_static_delegate; - - - private delegate void efl_ui_panel_orient_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.PanelOrient orient); - - - public delegate void efl_ui_panel_orient_set_api_delegate(System.IntPtr obj, Efl.Ui.PanelOrient orient); - - public static Efl.Eo.FunctionWrapper efl_ui_panel_orient_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_orient_set"); - - private static void orient_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.PanelOrient orient) - { - Eina.Log.Debug("function efl_ui_panel_orient_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Panel)ws.Target).SetOrient(orient); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_panel_orient_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), orient); - } - } - - private static efl_ui_panel_orient_set_delegate efl_ui_panel_orient_set_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_ui_panel_hidden_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_ui_panel_hidden_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_panel_hidden_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_hidden_get"); - - private static bool hidden_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_panel_hidden_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((Panel)ws.Target).GetHidden(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_panel_hidden_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_panel_hidden_get_delegate efl_ui_panel_hidden_get_static_delegate; - - - private delegate void efl_ui_panel_hidden_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hidden); - - - public delegate void efl_ui_panel_hidden_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hidden); - - public static Efl.Eo.FunctionWrapper efl_ui_panel_hidden_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_hidden_set"); - - private static void hidden_set(System.IntPtr obj, System.IntPtr pd, bool hidden) - { - Eina.Log.Debug("function efl_ui_panel_hidden_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Panel)ws.Target).SetHidden(hidden); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_panel_hidden_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hidden); - } - } - - private static efl_ui_panel_hidden_set_delegate efl_ui_panel_hidden_set_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_ui_panel_scrollable_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_ui_panel_scrollable_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_panel_scrollable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_scrollable_get"); - - private static bool scrollable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_panel_scrollable_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((Panel)ws.Target).GetScrollable(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_panel_scrollable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_panel_scrollable_get_delegate efl_ui_panel_scrollable_get_static_delegate; - - - private delegate void efl_ui_panel_scrollable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool scrollable); - - - public delegate void efl_ui_panel_scrollable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool scrollable); - - public static Efl.Eo.FunctionWrapper efl_ui_panel_scrollable_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_scrollable_set"); - - private static void scrollable_set(System.IntPtr obj, System.IntPtr pd, bool scrollable) - { - Eina.Log.Debug("function efl_ui_panel_scrollable_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Panel)ws.Target).SetScrollable(scrollable); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_panel_scrollable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scrollable); - } - } - - private static efl_ui_panel_scrollable_set_delegate efl_ui_panel_scrollable_set_static_delegate; - - - private delegate double efl_ui_panel_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate double efl_ui_panel_scrollable_content_size_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_panel_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_scrollable_content_size_get"); - - private static double scrollable_content_size_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_panel_scrollable_content_size_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - double _ret_var = default(double); - try - { - _ret_var = ((Panel)ws.Target).GetScrollableContentSize(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_panel_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_panel_scrollable_content_size_get_delegate efl_ui_panel_scrollable_content_size_get_static_delegate; - - - private delegate void efl_ui_panel_scrollable_content_size_set_delegate(System.IntPtr obj, System.IntPtr pd, double ratio); - - - public delegate void efl_ui_panel_scrollable_content_size_set_api_delegate(System.IntPtr obj, double ratio); - - public static Efl.Eo.FunctionWrapper efl_ui_panel_scrollable_content_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_scrollable_content_size_set"); - - private static void scrollable_content_size_set(System.IntPtr obj, System.IntPtr pd, double ratio) - { - Eina.Log.Debug("function efl_ui_panel_scrollable_content_size_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Panel)ws.Target).SetScrollableContentSize(ratio); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_panel_scrollable_content_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ratio); - } - } - - private static efl_ui_panel_scrollable_content_size_set_delegate efl_ui_panel_scrollable_content_size_set_static_delegate; - - - private delegate void efl_ui_panel_toggle_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate void efl_ui_panel_toggle_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_panel_toggle_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_toggle"); - - private static void toggle(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_panel_toggle was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Panel)ws.Target).Toggle(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_panel_toggle_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_panel_toggle_delegate efl_ui_panel_toggle_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); - - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try - { - _ret_var = ((Panel)ws.Target).GetContent(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_content_get_delegate efl_content_get_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); - - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); - - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((Panel)ws.Target).SetContent(content); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); - } - } - - private static efl_content_set_delegate efl_content_set_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); - - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try - { - _ret_var = ((Panel)ws.Target).UnsetContent(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_content_unset_delegate efl_content_unset_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_manager_create_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_manager_create"); - - private static Efl.Ui.Focus.IManager focus_manager_create(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_widget_focus_manager_create was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try - { - _ret_var = ((Panel)ws.Target).FocusManagerCreate(root); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_widget_focus_manager_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); - } - } - - private static efl_ui_widget_focus_manager_create_delegate efl_ui_widget_focus_manager_create_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_ui_focus_layer_enable_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_ui_focus_layer_enable_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_enable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_layer_enable_get"); - - private static bool enable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_layer_enable_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((Panel)ws.Target).GetEnable(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_focus_layer_enable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_focus_layer_enable_get_delegate efl_ui_focus_layer_enable_get_static_delegate; - - - private delegate void efl_ui_focus_layer_enable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool v); - - - public delegate void efl_ui_focus_layer_enable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool v); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_enable_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_layer_enable_set"); - - private static void enable_set(System.IntPtr obj, System.IntPtr pd, bool v) - { - Eina.Log.Debug("function efl_ui_focus_layer_enable_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Panel)ws.Target).SetEnable(v); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_focus_layer_enable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), v); - } - } - - private static efl_ui_focus_layer_enable_set_delegate efl_ui_focus_layer_enable_set_static_delegate; - - - private delegate void efl_ui_focus_layer_behaviour_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] out bool cycle); - - - public delegate void efl_ui_focus_layer_behaviour_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] out bool cycle); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_behaviour_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_layer_behaviour_get"); - - private static void behaviour_get(System.IntPtr obj, System.IntPtr pd, out bool enable_on_visible, out bool cycle) - { - Eina.Log.Debug("function efl_ui_focus_layer_behaviour_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - enable_on_visible = default(bool); cycle = default(bool); - try - { - ((Panel)ws.Target).GetBehaviour(out enable_on_visible, out cycle); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_focus_layer_behaviour_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out enable_on_visible, out cycle); - } - } - - private static efl_ui_focus_layer_behaviour_get_delegate efl_ui_focus_layer_behaviour_get_static_delegate; - - - private delegate void efl_ui_focus_layer_behaviour_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] bool cycle); - - - public delegate void efl_ui_focus_layer_behaviour_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] bool cycle); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_behaviour_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_layer_behaviour_set"); - - private static void behaviour_set(System.IntPtr obj, System.IntPtr pd, bool enable_on_visible, bool cycle) - { - Eina.Log.Debug("function efl_ui_focus_layer_behaviour_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Panel)ws.Target).SetBehaviour(enable_on_visible, cycle); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_focus_layer_behaviour_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable_on_visible, cycle); - } - } - - private static efl_ui_focus_layer_behaviour_set_delegate efl_ui_focus_layer_behaviour_set_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_get"); - - private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try - { - _ret_var = ((Panel)ws.Target).GetManagerFocus(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; - - - private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); - - - public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_set"); - - private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) - { - Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Panel)ws.Target).SetManagerFocus(focus); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); - } - } - - private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_get"); - - private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try - { - _ret_var = ((Panel)ws.Target).GetRedirect(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; - - - private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); - - - public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_set"); - - private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) - { - Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Panel)ws.Target).SetRedirect(redirect); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); - } - } - - private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; - - - private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_border_elements_get"); - - private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Eina.Iterator _ret_var = default(Eina.Iterator); - try - { - _ret_var = ((Panel)ws.Target).GetBorderElements(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var.Handle; - - } - else - { - return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; - - - private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); - - - public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_viewport_elements_get"); - - private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) - { - Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Eina.Rect _in_viewport = viewport; - Eina.Iterator _ret_var = default(Eina.Iterator); - try - { - _ret_var = ((Panel)ws.Target).GetViewportElements(_in_viewport); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var.Handle; - - } - else - { - return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); - } - } - - private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_get"); - - private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try - { - _ret_var = ((Panel)ws.Target).GetRoot(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_set"); - - private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((Panel)ws.Target).SetRoot(root); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); - } - } - - private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_move"); - - private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) - { - Eina.Log.Debug("function efl_ui_focus_manager_move was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try - { - _ret_var = ((Panel)ws.Target).Move(direction); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); - } - } - - private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_move"); - - private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) - { - Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try - { - _ret_var = ((Panel)ws.Target).MoveRequest(direction, child, logical); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical); - } - } - - private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_subchild"); - - private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try - { - _ret_var = ((Panel)ws.Target).RequestSubchild(root); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); - } - } - - private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; - - - private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); - - - public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_fetch"); - - private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) - { - Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); - try - { - _ret_var = ((Panel)ws.Target).Fetch(child); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - - } - else - { - return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); - } - } - - private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; - - - private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_logical_end"); - - private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); - try - { - _ret_var = ((Panel)ws.Target).LogicalEnd(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; - - - private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_reset_history"); - - private static void reset_history(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Panel)ws.Target).ResetHistory(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; - - - private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_pop_history_stack"); - - private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Panel)ws.Target).PopHistoryStack(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; - - - private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); - - - public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_setup_on_first_touch"); - - private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) - { - Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Panel)ws.Target).SetupOnFirstTouch(direction, entry); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry); - } - } - - private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; - - - private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_freeze"); - - private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Panel)ws.Target).FreezeDirtyLogic(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; - - - private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); - - private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Panel)ws.Target).DirtyLogicUnfreeze(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; - - - private delegate void elm_interface_scrollable_gravity_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); - - - public delegate void elm_interface_scrollable_gravity_get_api_delegate(System.IntPtr obj, out double x, out double y); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_gravity_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_gravity_get"); - - private static void gravity_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function elm_interface_scrollable_gravity_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - x = default(double); y = default(double); - try - { - ((Panel)ws.Target).GetGravity(out x, out y); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_gravity_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - - private static elm_interface_scrollable_gravity_get_delegate elm_interface_scrollable_gravity_get_static_delegate; - - - private delegate void elm_interface_scrollable_gravity_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); - - - public delegate void elm_interface_scrollable_gravity_set_api_delegate(System.IntPtr obj, double x, double y); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_gravity_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_gravity_set"); - - private static void gravity_set(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function elm_interface_scrollable_gravity_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Panel)ws.Target).SetGravity(x, y); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_gravity_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); - } - } - - private static elm_interface_scrollable_gravity_set_delegate elm_interface_scrollable_gravity_set_static_delegate; - - - private delegate void elm_interface_scrollable_bounce_allow_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - - - public delegate void elm_interface_scrollable_bounce_allow_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_bounce_allow_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_bounce_allow_get"); - - private static void bounce_allow_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) - { - Eina.Log.Debug("function elm_interface_scrollable_bounce_allow_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - horiz = default(bool); vert = default(bool); - try - { - ((Panel)ws.Target).GetBounceAllow(out horiz, out vert); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_bounce_allow_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); - } - } - - private static elm_interface_scrollable_bounce_allow_get_delegate elm_interface_scrollable_bounce_allow_get_static_delegate; - - - private delegate void elm_interface_scrollable_bounce_allow_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - - - public delegate void elm_interface_scrollable_bounce_allow_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_bounce_allow_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_bounce_allow_set"); - - private static void bounce_allow_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) - { - Eina.Log.Debug("function elm_interface_scrollable_bounce_allow_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Panel)ws.Target).SetBounceAllow(horiz, vert); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_bounce_allow_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); - } - } - - private static elm_interface_scrollable_bounce_allow_set_delegate elm_interface_scrollable_bounce_allow_set_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool elm_interface_scrollable_wheel_disabled_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool elm_interface_scrollable_wheel_disabled_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_wheel_disabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_wheel_disabled_get"); - - private static bool wheel_disabled_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function elm_interface_scrollable_wheel_disabled_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((Panel)ws.Target).GetWheelDisabled(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return elm_interface_scrollable_wheel_disabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static elm_interface_scrollable_wheel_disabled_get_delegate elm_interface_scrollable_wheel_disabled_get_static_delegate; - - - private delegate void elm_interface_scrollable_wheel_disabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool disabled); - - - public delegate void elm_interface_scrollable_wheel_disabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool disabled); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_wheel_disabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_wheel_disabled_set"); - - private static void wheel_disabled_set(System.IntPtr obj, System.IntPtr pd, bool disabled) - { - Eina.Log.Debug("function elm_interface_scrollable_wheel_disabled_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Panel)ws.Target).SetWheelDisabled(disabled); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_wheel_disabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), disabled); - } - } - - private static elm_interface_scrollable_wheel_disabled_set_delegate elm_interface_scrollable_wheel_disabled_set_static_delegate; - - - private delegate Efl.Ui.ScrollBlock elm_interface_scrollable_movement_block_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate Efl.Ui.ScrollBlock elm_interface_scrollable_movement_block_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_movement_block_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_movement_block_get"); - - private static Efl.Ui.ScrollBlock movement_block_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function elm_interface_scrollable_movement_block_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.ScrollBlock _ret_var = default(Efl.Ui.ScrollBlock); - try - { - _ret_var = ((Panel)ws.Target).GetMovementBlock(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return elm_interface_scrollable_movement_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static elm_interface_scrollable_movement_block_get_delegate elm_interface_scrollable_movement_block_get_static_delegate; - - - private delegate void elm_interface_scrollable_movement_block_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block); - - - public delegate void elm_interface_scrollable_movement_block_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollBlock block); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_movement_block_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_movement_block_set"); - - private static void movement_block_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block) - { - Eina.Log.Debug("function elm_interface_scrollable_movement_block_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Panel)ws.Target).SetMovementBlock(block); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_movement_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), block); - } - } - - private static elm_interface_scrollable_movement_block_set_delegate elm_interface_scrollable_movement_block_set_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool elm_interface_scrollable_momentum_animator_disabled_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool elm_interface_scrollable_momentum_animator_disabled_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_momentum_animator_disabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_momentum_animator_disabled_get"); - - private static bool momentum_animator_disabled_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function elm_interface_scrollable_momentum_animator_disabled_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((Panel)ws.Target).GetMomentumAnimatorDisabled(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return elm_interface_scrollable_momentum_animator_disabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static elm_interface_scrollable_momentum_animator_disabled_get_delegate elm_interface_scrollable_momentum_animator_disabled_get_static_delegate; - - - private delegate void elm_interface_scrollable_momentum_animator_disabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool disabled); - - - public delegate void elm_interface_scrollable_momentum_animator_disabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool disabled); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_momentum_animator_disabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_momentum_animator_disabled_set"); - - private static void momentum_animator_disabled_set(System.IntPtr obj, System.IntPtr pd, bool disabled) - { - Eina.Log.Debug("function elm_interface_scrollable_momentum_animator_disabled_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Panel)ws.Target).SetMomentumAnimatorDisabled(disabled); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_momentum_animator_disabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), disabled); - } - } - - private static elm_interface_scrollable_momentum_animator_disabled_set_delegate elm_interface_scrollable_momentum_animator_disabled_set_static_delegate; - - - private delegate void elm_interface_scrollable_policy_get_delegate(System.IntPtr obj, System.IntPtr pd, out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar); - - - public delegate void elm_interface_scrollable_policy_get_api_delegate(System.IntPtr obj, out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_policy_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_policy_get"); - - private static void policy_get(System.IntPtr obj, System.IntPtr pd, out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar) - { - Eina.Log.Debug("function elm_interface_scrollable_policy_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - hbar = default(Elm.Scroller.Policy); vbar = default(Elm.Scroller.Policy); - try - { - ((Panel)ws.Target).GetPolicy(out hbar, out vbar); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_policy_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out hbar, out vbar); - } - } - - private static elm_interface_scrollable_policy_get_delegate elm_interface_scrollable_policy_get_static_delegate; - - - private delegate void elm_interface_scrollable_policy_set_delegate(System.IntPtr obj, System.IntPtr pd, Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar); - - - public delegate void elm_interface_scrollable_policy_set_api_delegate(System.IntPtr obj, Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_policy_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_policy_set"); - - private static void policy_set(System.IntPtr obj, System.IntPtr pd, Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar) - { - Eina.Log.Debug("function elm_interface_scrollable_policy_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Panel)ws.Target).SetPolicy(hbar, vbar); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_policy_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar, vbar); - } - } - - private static elm_interface_scrollable_policy_set_delegate elm_interface_scrollable_policy_set_static_delegate; - - - private delegate void elm_interface_scrollable_content_region_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y, out int w, out int h); - - - public delegate void elm_interface_scrollable_content_region_get_api_delegate(System.IntPtr obj, out int x, out int y, out int w, out int h); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_region_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_region_get"); - - private static void content_region_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y, out int w, out int h) - { - Eina.Log.Debug("function elm_interface_scrollable_content_region_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - x = default(int); y = default(int); w = default(int); h = default(int); - try - { - ((Panel)ws.Target).GetContentRegion(out x, out y, out w, out h); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_content_region_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y, out w, out h); - } - } - - private static elm_interface_scrollable_content_region_get_delegate elm_interface_scrollable_content_region_get_static_delegate; - - - private delegate void elm_interface_scrollable_content_region_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h); - - - public delegate void elm_interface_scrollable_content_region_set_api_delegate(System.IntPtr obj, int x, int y, int w, int h); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_region_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_region_set"); - - private static void content_region_set(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h) - { - Eina.Log.Debug("function elm_interface_scrollable_content_region_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Panel)ws.Target).SetContentRegion(x, y, w, h); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_content_region_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h); - } - } - - private static elm_interface_scrollable_content_region_set_delegate elm_interface_scrollable_content_region_set_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool elm_interface_scrollable_content_events_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool elm_interface_scrollable_content_events_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_events_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_events_get"); - - private static bool content_events_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function elm_interface_scrollable_content_events_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((Panel)ws.Target).GetContentEvents(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return elm_interface_scrollable_content_events_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static elm_interface_scrollable_content_events_get_delegate elm_interface_scrollable_content_events_get_static_delegate; - - - private delegate void elm_interface_scrollable_content_events_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool repeat_events); - - - public delegate void elm_interface_scrollable_content_events_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool repeat_events); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_events_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_events_set"); - - private static void content_events_set(System.IntPtr obj, System.IntPtr pd, bool repeat_events) - { - Eina.Log.Debug("function elm_interface_scrollable_content_events_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Panel)ws.Target).SetContentEvents(repeat_events); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_content_events_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), repeat_events); - } - } - - private static elm_interface_scrollable_content_events_set_delegate elm_interface_scrollable_content_events_set_static_delegate; - - - private delegate void elm_interface_scrollable_page_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y); - - - public delegate void elm_interface_scrollable_page_size_get_api_delegate(System.IntPtr obj, out int x, out int y); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_size_get"); - - private static void page_size_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y) - { - Eina.Log.Debug("function elm_interface_scrollable_page_size_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - x = default(int); y = default(int); - try - { - ((Panel)ws.Target).GetPageSize(out x, out y); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_page_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - - private static elm_interface_scrollable_page_size_get_delegate elm_interface_scrollable_page_size_get_static_delegate; - - - private delegate void elm_interface_scrollable_page_size_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y); - - - public delegate void elm_interface_scrollable_page_size_set_api_delegate(System.IntPtr obj, int x, int y); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_size_set"); - - private static void page_size_set(System.IntPtr obj, System.IntPtr pd, int x, int y) - { - Eina.Log.Debug("function elm_interface_scrollable_page_size_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Panel)ws.Target).SetPageSize(x, y); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_page_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); - } - } - - private static elm_interface_scrollable_page_size_set_delegate elm_interface_scrollable_page_size_set_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool elm_interface_scrollable_bounce_animator_disabled_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool elm_interface_scrollable_bounce_animator_disabled_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_bounce_animator_disabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_bounce_animator_disabled_get"); - - private static bool bounce_animator_disabled_get(System.IntPtr obj, System.IntPtr pd) + private static bool hidden_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function elm_interface_scrollable_bounce_animator_disabled_get was called"); + Eina.Log.Debug("function efl_ui_panel_hidden_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { - _ret_var = ((Panel)ws.Target).GetBounceAnimatorDisabled(); + _ret_var = ((Panel)ws.Target).GetHidden(); } catch (Exception e) { @@ -5464,30 +2533,30 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } else { - return elm_interface_scrollable_bounce_animator_disabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + return efl_ui_panel_hidden_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static elm_interface_scrollable_bounce_animator_disabled_get_delegate elm_interface_scrollable_bounce_animator_disabled_get_static_delegate; + private static efl_ui_panel_hidden_get_delegate efl_ui_panel_hidden_get_static_delegate; - private delegate void elm_interface_scrollable_bounce_animator_disabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool disabled); + private delegate void efl_ui_panel_hidden_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hidden); - public delegate void elm_interface_scrollable_bounce_animator_disabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool disabled); + public delegate void efl_ui_panel_hidden_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hidden); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_bounce_animator_disabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_bounce_animator_disabled_set"); + public static Efl.Eo.FunctionWrapper efl_ui_panel_hidden_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_hidden_set"); - private static void bounce_animator_disabled_set(System.IntPtr obj, System.IntPtr pd, bool disabled) + private static void hidden_set(System.IntPtr obj, System.IntPtr pd, bool hidden) { - Eina.Log.Debug("function elm_interface_scrollable_bounce_animator_disabled_set was called"); + Eina.Log.Debug("function efl_ui_panel_hidden_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ((Panel)ws.Target).SetBounceAnimatorDisabled(disabled); + ((Panel)ws.Target).SetHidden(hidden); } catch (Exception e) { @@ -5499,240 +2568,30 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } else { - elm_interface_scrollable_bounce_animator_disabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), disabled); - } - } - - private static elm_interface_scrollable_bounce_animator_disabled_set_delegate elm_interface_scrollable_bounce_animator_disabled_set_static_delegate; - - - private delegate void elm_interface_scrollable_page_scroll_limit_get_delegate(System.IntPtr obj, System.IntPtr pd, out int page_limit_h, out int page_limit_v); - - - public delegate void elm_interface_scrollable_page_scroll_limit_get_api_delegate(System.IntPtr obj, out int page_limit_h, out int page_limit_v); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_scroll_limit_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_scroll_limit_get"); - - private static void page_scroll_limit_get(System.IntPtr obj, System.IntPtr pd, out int page_limit_h, out int page_limit_v) - { - Eina.Log.Debug("function elm_interface_scrollable_page_scroll_limit_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - page_limit_h = default(int); page_limit_v = default(int); - try - { - ((Panel)ws.Target).GetPageScrollLimit(out page_limit_h, out page_limit_v); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_page_scroll_limit_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out page_limit_h, out page_limit_v); - } - } - - private static elm_interface_scrollable_page_scroll_limit_get_delegate elm_interface_scrollable_page_scroll_limit_get_static_delegate; - - - private delegate void elm_interface_scrollable_page_scroll_limit_set_delegate(System.IntPtr obj, System.IntPtr pd, int page_limit_h, int page_limit_v); - - - public delegate void elm_interface_scrollable_page_scroll_limit_set_api_delegate(System.IntPtr obj, int page_limit_h, int page_limit_v); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_scroll_limit_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_scroll_limit_set"); - - private static void page_scroll_limit_set(System.IntPtr obj, System.IntPtr pd, int page_limit_h, int page_limit_v) - { - Eina.Log.Debug("function elm_interface_scrollable_page_scroll_limit_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Panel)ws.Target).SetPageScrollLimit(page_limit_h, page_limit_v); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_page_scroll_limit_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), page_limit_h, page_limit_v); - } - } - - private static elm_interface_scrollable_page_scroll_limit_set_delegate elm_interface_scrollable_page_scroll_limit_set_static_delegate; - - - private delegate void elm_interface_scrollable_page_snap_allow_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - - - public delegate void elm_interface_scrollable_page_snap_allow_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_snap_allow_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_snap_allow_get"); - - private static void page_snap_allow_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) - { - Eina.Log.Debug("function elm_interface_scrollable_page_snap_allow_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - horiz = default(bool); vert = default(bool); - try - { - ((Panel)ws.Target).GetPageSnapAllow(out horiz, out vert); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_page_snap_allow_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); - } - } - - private static elm_interface_scrollable_page_snap_allow_get_delegate elm_interface_scrollable_page_snap_allow_get_static_delegate; - - - private delegate void elm_interface_scrollable_page_snap_allow_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - - - public delegate void elm_interface_scrollable_page_snap_allow_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_snap_allow_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_snap_allow_set"); - - private static void page_snap_allow_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) - { - Eina.Log.Debug("function elm_interface_scrollable_page_snap_allow_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Panel)ws.Target).SetPageSnapAllow(horiz, vert); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_page_snap_allow_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); - } - } - - private static elm_interface_scrollable_page_snap_allow_set_delegate elm_interface_scrollable_page_snap_allow_set_static_delegate; - - - private delegate void elm_interface_scrollable_paging_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v); - - - public delegate void elm_interface_scrollable_paging_get_api_delegate(System.IntPtr obj, out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_paging_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_paging_get"); - - private static void paging_get(System.IntPtr obj, System.IntPtr pd, out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v) - { - Eina.Log.Debug("function elm_interface_scrollable_paging_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - pagerel_h = default(double); pagerel_v = default(double); pagesize_h = default(int); pagesize_v = default(int); - try - { - ((Panel)ws.Target).GetPaging(out pagerel_h, out pagerel_v, out pagesize_h, out pagesize_v); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_paging_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pagerel_h, out pagerel_v, out pagesize_h, out pagesize_v); - } - } - - private static elm_interface_scrollable_paging_get_delegate elm_interface_scrollable_paging_get_static_delegate; - - - private delegate void elm_interface_scrollable_paging_set_delegate(System.IntPtr obj, System.IntPtr pd, double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v); - - - public delegate void elm_interface_scrollable_paging_set_api_delegate(System.IntPtr obj, double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_paging_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_paging_set"); - - private static void paging_set(System.IntPtr obj, System.IntPtr pd, double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v) - { - Eina.Log.Debug("function elm_interface_scrollable_paging_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Panel)ws.Target).SetPaging(pagerel_h, pagerel_v, pagesize_h, pagesize_v); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_paging_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pagerel_h, pagerel_v, pagesize_h, pagesize_v); + efl_ui_panel_hidden_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hidden); } } - private static elm_interface_scrollable_paging_set_delegate elm_interface_scrollable_paging_set_static_delegate; + private static efl_ui_panel_hidden_set_delegate efl_ui_panel_hidden_set_static_delegate; - - private delegate Elm.Scroller.SingleDirection elm_interface_scrollable_single_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_panel_scrollable_get_delegate(System.IntPtr obj, System.IntPtr pd); - - public delegate Elm.Scroller.SingleDirection elm_interface_scrollable_single_direction_get_api_delegate(System.IntPtr obj); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_panel_scrollable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_single_direction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_single_direction_get"); + public static Efl.Eo.FunctionWrapper efl_ui_panel_scrollable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_scrollable_get"); - private static Elm.Scroller.SingleDirection single_direction_get(System.IntPtr obj, System.IntPtr pd) + private static bool scrollable_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function elm_interface_scrollable_single_direction_get was called"); + Eina.Log.Debug("function efl_ui_panel_scrollable_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - Elm.Scroller.SingleDirection _ret_var = default(Elm.Scroller.SingleDirection); + bool _ret_var = default(bool); try { - _ret_var = ((Panel)ws.Target).GetSingleDirection(); + _ret_var = ((Panel)ws.Target).GetScrollable(); } catch (Exception e) { @@ -5745,30 +2604,30 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } else { - return elm_interface_scrollable_single_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + return efl_ui_panel_scrollable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static elm_interface_scrollable_single_direction_get_delegate elm_interface_scrollable_single_direction_get_static_delegate; + private static efl_ui_panel_scrollable_get_delegate efl_ui_panel_scrollable_get_static_delegate; - private delegate void elm_interface_scrollable_single_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Elm.Scroller.SingleDirection single_dir); + private delegate void efl_ui_panel_scrollable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool scrollable); - public delegate void elm_interface_scrollable_single_direction_set_api_delegate(System.IntPtr obj, Elm.Scroller.SingleDirection single_dir); + public delegate void efl_ui_panel_scrollable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool scrollable); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_single_direction_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_single_direction_set"); + public static Efl.Eo.FunctionWrapper efl_ui_panel_scrollable_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_scrollable_set"); - private static void single_direction_set(System.IntPtr obj, System.IntPtr pd, Elm.Scroller.SingleDirection single_dir) + private static void scrollable_set(System.IntPtr obj, System.IntPtr pd, bool scrollable) { - Eina.Log.Debug("function elm_interface_scrollable_single_direction_set was called"); + Eina.Log.Debug("function efl_ui_panel_scrollable_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ((Panel)ws.Target).SetSingleDirection(single_dir); + ((Panel)ws.Target).SetScrollable(scrollable); } catch (Exception e) { @@ -5780,30 +2639,30 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } else { - elm_interface_scrollable_single_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), single_dir); + efl_ui_panel_scrollable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scrollable); } } - private static elm_interface_scrollable_single_direction_set_delegate elm_interface_scrollable_single_direction_set_static_delegate; + private static efl_ui_panel_scrollable_set_delegate efl_ui_panel_scrollable_set_static_delegate; - private delegate void elm_interface_scrollable_step_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y); + private delegate double efl_ui_panel_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void elm_interface_scrollable_step_size_get_api_delegate(System.IntPtr obj, out int x, out int y); + public delegate double efl_ui_panel_scrollable_content_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_step_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_step_size_get"); + public static Efl.Eo.FunctionWrapper efl_ui_panel_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_scrollable_content_size_get"); - private static void step_size_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y) + private static double scrollable_content_size_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function elm_interface_scrollable_step_size_get was called"); + Eina.Log.Debug("function efl_ui_panel_scrollable_content_size_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - x = default(int); y = default(int); + double _ret_var = default(double); try { - ((Panel)ws.Target).GetStepSize(out x, out y); + _ret_var = ((Panel)ws.Target).GetScrollableContentSize(); } catch (Exception e) { @@ -5811,34 +2670,35 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + return _ret_var; + } else { - elm_interface_scrollable_step_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + return efl_ui_panel_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static elm_interface_scrollable_step_size_get_delegate elm_interface_scrollable_step_size_get_static_delegate; + private static efl_ui_panel_scrollable_content_size_get_delegate efl_ui_panel_scrollable_content_size_get_static_delegate; - private delegate void elm_interface_scrollable_step_size_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y); + private delegate void efl_ui_panel_scrollable_content_size_set_delegate(System.IntPtr obj, System.IntPtr pd, double ratio); - public delegate void elm_interface_scrollable_step_size_set_api_delegate(System.IntPtr obj, int x, int y); + public delegate void efl_ui_panel_scrollable_content_size_set_api_delegate(System.IntPtr obj, double ratio); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_step_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_step_size_set"); + public static Efl.Eo.FunctionWrapper efl_ui_panel_scrollable_content_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_scrollable_content_size_set"); - private static void step_size_set(System.IntPtr obj, System.IntPtr pd, int x, int y) + private static void scrollable_content_size_set(System.IntPtr obj, System.IntPtr pd, double ratio) { - Eina.Log.Debug("function elm_interface_scrollable_step_size_set was called"); + Eina.Log.Debug("function efl_ui_panel_scrollable_content_size_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + try { - ((Panel)ws.Target).SetStepSize(x, y); + ((Panel)ws.Target).SetScrollableContentSize(ratio); } catch (Exception e) { @@ -5846,34 +2706,34 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + } else { - elm_interface_scrollable_step_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + efl_ui_panel_scrollable_content_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ratio); } } - private static elm_interface_scrollable_step_size_set_delegate elm_interface_scrollable_step_size_set_static_delegate; + private static efl_ui_panel_scrollable_content_size_set_delegate efl_ui_panel_scrollable_content_size_set_static_delegate; - private delegate void elm_interface_scrollable_content_loop_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); + private delegate void efl_ui_panel_toggle_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void elm_interface_scrollable_content_loop_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); + public delegate void efl_ui_panel_toggle_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_loop_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_loop_get"); + public static Efl.Eo.FunctionWrapper efl_ui_panel_toggle_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_panel_toggle"); - private static void content_loop_get(System.IntPtr obj, System.IntPtr pd, out bool loop_h, out bool loop_v) + private static void toggle(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function elm_interface_scrollable_content_loop_get was called"); + Eina.Log.Debug("function efl_ui_panel_toggle was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - loop_h = default(bool); loop_v = default(bool); + try { - ((Panel)ws.Target).GetContentLoop(out loop_h, out loop_v); + ((Panel)ws.Target).Toggle(); } catch (Exception e) { @@ -5881,34 +2741,34 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + } else { - elm_interface_scrollable_content_loop_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out loop_h, out loop_v); + efl_ui_panel_toggle_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static elm_interface_scrollable_content_loop_get_delegate elm_interface_scrollable_content_loop_get_static_delegate; + private static efl_ui_panel_toggle_delegate efl_ui_panel_toggle_static_delegate; - - private delegate void elm_interface_scrollable_content_loop_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); - - public delegate void elm_interface_scrollable_content_loop_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_loop_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_loop_set"); + public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); - private static void content_loop_set(System.IntPtr obj, System.IntPtr pd, bool loop_h, bool loop_v) + private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function elm_interface_scrollable_content_loop_set was called"); + Eina.Log.Debug("function efl_content_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); try { - ((Panel)ws.Target).SetContentLoop(loop_h, loop_v); + _ret_var = ((Panel)ws.Target).GetContent(); } catch (Exception e) { @@ -5916,34 +2776,35 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + return _ret_var; + } else { - elm_interface_scrollable_content_loop_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop_h, loop_v); + return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static elm_interface_scrollable_content_loop_set_delegate elm_interface_scrollable_content_loop_set_static_delegate; + private static efl_content_get_delegate efl_content_get_static_delegate; - - private delegate void elm_interface_scrollable_scroll_up_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_up_cb); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); - - public delegate void elm_interface_scrollable_scroll_up_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_up_cb); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_up_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_up_cb_set"); + public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); - private static void scroll_up_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_up_cb) + private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) { - Eina.Log.Debug("function elm_interface_scrollable_scroll_up_cb_set was called"); + Eina.Log.Debug("function efl_content_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + bool _ret_var = default(bool); try { - ((Panel)ws.Target).SetScrollUpCb(scroll_up_cb); + _ret_var = ((Panel)ws.Target).SetContent(content); } catch (Exception e) { @@ -5951,34 +2812,35 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + return _ret_var; + } else { - elm_interface_scrollable_scroll_up_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_up_cb); + return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); } } - private static elm_interface_scrollable_scroll_up_cb_set_delegate elm_interface_scrollable_scroll_up_cb_set_static_delegate; + private static efl_content_set_delegate efl_content_set_static_delegate; - - private delegate void elm_interface_scrollable_hbar_drag_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_drag_cb); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); - - public delegate void elm_interface_scrollable_hbar_drag_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb hbar_drag_cb); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_hbar_drag_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_hbar_drag_cb_set"); + public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); - private static void hbar_drag_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_drag_cb) + private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function elm_interface_scrollable_hbar_drag_cb_set was called"); + Eina.Log.Debug("function efl_content_unset was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); try { - ((Panel)ws.Target).SetHbarDragCb(hbar_drag_cb); + _ret_var = ((Panel)ws.Target).UnsetContent(); } catch (Exception e) { @@ -5986,34 +2848,35 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + return _ret_var; + } else { - elm_interface_scrollable_hbar_drag_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar_drag_cb); + return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static elm_interface_scrollable_hbar_drag_cb_set_delegate elm_interface_scrollable_hbar_drag_cb_set_static_delegate; + private static efl_content_unset_delegate efl_content_unset_static_delegate; - private delegate void elm_interface_scrollable_drag_start_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb drag_start_cb); + private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void elm_interface_scrollable_drag_start_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb drag_start_cb); + public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_content_pos_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_drag_start_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_drag_start_cb_set"); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_pos_get"); - private static void drag_start_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb drag_start_cb) + private static Eina.Position2D.NativeStruct content_pos_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function elm_interface_scrollable_drag_start_cb_set was called"); + Eina.Log.Debug("function efl_ui_scrollable_content_pos_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + Eina.Position2D _ret_var = default(Eina.Position2D); try { - ((Panel)ws.Target).SetDragStartCb(drag_start_cb); + _ret_var = ((Panel)ws.Target).GetContentPos(); } catch (Exception e) { @@ -6021,34 +2884,36 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + return _ret_var; + } else { - elm_interface_scrollable_drag_start_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), drag_start_cb); + return efl_ui_scrollable_content_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static elm_interface_scrollable_drag_start_cb_set_delegate elm_interface_scrollable_drag_start_cb_set_static_delegate; + private static efl_ui_scrollable_content_pos_get_delegate efl_ui_scrollable_content_pos_get_static_delegate; - private delegate void elm_interface_scrollable_scroll_start_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_start_cb); + private delegate void efl_ui_scrollable_content_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos); - public delegate void elm_interface_scrollable_scroll_start_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_start_cb); + public delegate void efl_ui_scrollable_content_pos_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct pos); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_start_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_start_cb_set"); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_pos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_pos_set"); - private static void scroll_start_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_start_cb) + private static void content_pos_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct pos) { - Eina.Log.Debug("function elm_interface_scrollable_scroll_start_cb_set was called"); + Eina.Log.Debug("function efl_ui_scrollable_content_pos_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + Eina.Position2D _in_pos = pos; + try { - ((Panel)ws.Target).SetScrollStartCb(scroll_start_cb); + ((Panel)ws.Target).SetContentPos(_in_pos); } catch (Exception e) { @@ -6060,30 +2925,30 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } else { - elm_interface_scrollable_scroll_start_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_start_cb); + efl_ui_scrollable_content_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pos); } } - private static elm_interface_scrollable_scroll_start_cb_set_delegate elm_interface_scrollable_scroll_start_cb_set_static_delegate; + private static efl_ui_scrollable_content_pos_set_delegate efl_ui_scrollable_content_pos_set_static_delegate; - private delegate void elm_interface_scrollable_freeze_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool freeze); + private delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void elm_interface_scrollable_freeze_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool freeze); + public delegate Eina.Size2D.NativeStruct efl_ui_scrollable_content_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_freeze_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_freeze_set"); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_content_size_get"); - private static void freeze_set(System.IntPtr obj, System.IntPtr pd, bool freeze) + private static Eina.Size2D.NativeStruct content_size_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function elm_interface_scrollable_freeze_set was called"); + Eina.Log.Debug("function efl_ui_scrollable_content_size_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + Eina.Size2D _ret_var = default(Eina.Size2D); try { - ((Panel)ws.Target).SetFreeze(freeze); + _ret_var = ((Panel)ws.Target).GetContentSize(); } catch (Exception e) { @@ -6091,34 +2956,35 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + return _ret_var; + } else { - elm_interface_scrollable_freeze_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), freeze); + return efl_ui_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static elm_interface_scrollable_freeze_set_delegate elm_interface_scrollable_freeze_set_static_delegate; + private static efl_ui_scrollable_content_size_get_delegate efl_ui_scrollable_content_size_get_static_delegate; - private delegate void elm_interface_scrollable_content_viewport_resize_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableResizeCb viewport_resize_cb); + private delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void elm_interface_scrollable_content_viewport_resize_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableResizeCb viewport_resize_cb); + public delegate Eina.Rect.NativeStruct efl_ui_scrollable_viewport_geometry_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_viewport_resize_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_viewport_resize_cb_set"); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_viewport_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_viewport_geometry_get"); - private static void content_viewport_resize_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableResizeCb viewport_resize_cb) + private static Eina.Rect.NativeStruct viewport_geometry_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function elm_interface_scrollable_content_viewport_resize_cb_set was called"); + Eina.Log.Debug("function efl_ui_scrollable_viewport_geometry_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + Eina.Rect _ret_var = default(Eina.Rect); try { - ((Panel)ws.Target).SetContentViewportResizeCb(viewport_resize_cb); + _ret_var = ((Panel)ws.Target).GetViewportGeometry(); } catch (Exception e) { @@ -6126,34 +2992,35 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + return _ret_var; + } else { - elm_interface_scrollable_content_viewport_resize_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport_resize_cb); + return efl_ui_scrollable_viewport_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static elm_interface_scrollable_content_viewport_resize_cb_set_delegate elm_interface_scrollable_content_viewport_resize_cb_set_static_delegate; + private static efl_ui_scrollable_viewport_geometry_get_delegate efl_ui_scrollable_viewport_geometry_get_static_delegate; - private delegate void elm_interface_scrollable_scroll_left_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_left_cb); + private delegate void efl_ui_scrollable_bounce_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - public delegate void elm_interface_scrollable_scroll_left_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_left_cb); + public delegate void efl_ui_scrollable_bounce_enabled_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_left_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_left_cb_set"); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_bounce_enabled_get"); - private static void scroll_left_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_left_cb) + private static void bounce_enabled_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) { - Eina.Log.Debug("function elm_interface_scrollable_scroll_left_cb_set was called"); + Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + horiz = default(bool); vert = default(bool); try { - ((Panel)ws.Target).SetScrollLeftCb(scroll_left_cb); + ((Panel)ws.Target).GetBounceEnabled(out horiz, out vert); } catch (Exception e) { @@ -6161,34 +3028,34 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + } else { - elm_interface_scrollable_scroll_left_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_left_cb); + efl_ui_scrollable_bounce_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); } } - private static elm_interface_scrollable_scroll_left_cb_set_delegate elm_interface_scrollable_scroll_left_cb_set_static_delegate; + private static efl_ui_scrollable_bounce_enabled_get_delegate efl_ui_scrollable_bounce_enabled_get_static_delegate; - private delegate void elm_interface_scrollable_vbar_press_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_press_cb); + private delegate void efl_ui_scrollable_bounce_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - public delegate void elm_interface_scrollable_vbar_press_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb vbar_press_cb); + public delegate void efl_ui_scrollable_bounce_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_vbar_press_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_vbar_press_cb_set"); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_bounce_enabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_bounce_enabled_set"); - private static void vbar_press_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_press_cb) + private static void bounce_enabled_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) { - Eina.Log.Debug("function elm_interface_scrollable_vbar_press_cb_set was called"); + Eina.Log.Debug("function efl_ui_scrollable_bounce_enabled_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + try { - ((Panel)ws.Target).SetVbarPressCb(vbar_press_cb); + ((Panel)ws.Target).SetBounceEnabled(horiz, vert); } catch (Exception e) { @@ -6196,34 +3063,34 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + } else { - elm_interface_scrollable_vbar_press_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), vbar_press_cb); + efl_ui_scrollable_bounce_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); } } - private static elm_interface_scrollable_vbar_press_cb_set_delegate elm_interface_scrollable_vbar_press_cb_set_static_delegate; + private static efl_ui_scrollable_bounce_enabled_set_delegate efl_ui_scrollable_bounce_enabled_set_static_delegate; - - private delegate void elm_interface_scrollable_hbar_press_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_press_cb); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_scrollable_scroll_freeze_get_delegate(System.IntPtr obj, System.IntPtr pd); - - public delegate void elm_interface_scrollable_hbar_press_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb hbar_press_cb); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_scrollable_scroll_freeze_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_hbar_press_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_hbar_press_cb_set"); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_freeze_get"); - private static void hbar_press_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_press_cb) + private static bool scroll_freeze_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function elm_interface_scrollable_hbar_press_cb_set was called"); + Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + bool _ret_var = default(bool); try { - ((Panel)ws.Target).SetHbarPressCb(hbar_press_cb); + _ret_var = ((Panel)ws.Target).GetScrollFreeze(); } catch (Exception e) { @@ -6231,34 +3098,35 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + return _ret_var; + } else { - elm_interface_scrollable_hbar_press_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar_press_cb); + return efl_ui_scrollable_scroll_freeze_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static elm_interface_scrollable_hbar_press_cb_set_delegate elm_interface_scrollable_hbar_press_cb_set_static_delegate; + private static efl_ui_scrollable_scroll_freeze_get_delegate efl_ui_scrollable_scroll_freeze_get_static_delegate; - private delegate void elm_interface_scrollable_hbar_unpress_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_unpress_cb); + private delegate void efl_ui_scrollable_scroll_freeze_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool freeze); - public delegate void elm_interface_scrollable_hbar_unpress_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb hbar_unpress_cb); + public delegate void efl_ui_scrollable_scroll_freeze_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool freeze); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_hbar_unpress_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_hbar_unpress_cb_set"); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_freeze_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_freeze_set"); - private static void hbar_unpress_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_unpress_cb) + private static void scroll_freeze_set(System.IntPtr obj, System.IntPtr pd, bool freeze) { - Eina.Log.Debug("function elm_interface_scrollable_hbar_unpress_cb_set was called"); + Eina.Log.Debug("function efl_ui_scrollable_scroll_freeze_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ((Panel)ws.Target).SetHbarUnpressCb(hbar_unpress_cb); + ((Panel)ws.Target).SetScrollFreeze(freeze); } catch (Exception e) { @@ -6270,30 +3138,30 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } else { - elm_interface_scrollable_hbar_unpress_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar_unpress_cb); + efl_ui_scrollable_scroll_freeze_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), freeze); } } - private static elm_interface_scrollable_hbar_unpress_cb_set_delegate elm_interface_scrollable_hbar_unpress_cb_set_static_delegate; + private static efl_ui_scrollable_scroll_freeze_set_delegate efl_ui_scrollable_scroll_freeze_set_static_delegate; - - private delegate void elm_interface_scrollable_drag_stop_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb drag_stop_cb); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_scrollable_scroll_hold_get_delegate(System.IntPtr obj, System.IntPtr pd); - - public delegate void elm_interface_scrollable_drag_stop_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb drag_stop_cb); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_scrollable_scroll_hold_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_drag_stop_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_drag_stop_cb_set"); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_hold_get"); - private static void drag_stop_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb drag_stop_cb) + private static bool scroll_hold_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function elm_interface_scrollable_drag_stop_cb_set was called"); + Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + bool _ret_var = default(bool); try { - ((Panel)ws.Target).SetDragStopCb(drag_stop_cb); + _ret_var = ((Panel)ws.Target).GetScrollHold(); } catch (Exception e) { @@ -6301,34 +3169,35 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + return _ret_var; + } else { - elm_interface_scrollable_drag_stop_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), drag_stop_cb); + return efl_ui_scrollable_scroll_hold_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static elm_interface_scrollable_drag_stop_cb_set_delegate elm_interface_scrollable_drag_stop_cb_set_static_delegate; + private static efl_ui_scrollable_scroll_hold_get_delegate efl_ui_scrollable_scroll_hold_get_static_delegate; - private delegate void elm_interface_scrollable_scroll_stop_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_stop_cb); + private delegate void efl_ui_scrollable_scroll_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hold); - public delegate void elm_interface_scrollable_scroll_stop_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_stop_cb); + public delegate void efl_ui_scrollable_scroll_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hold); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_stop_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_stop_cb_set"); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_hold_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll_hold_set"); - private static void scroll_stop_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_stop_cb) + private static void scroll_hold_set(System.IntPtr obj, System.IntPtr pd, bool hold) { - Eina.Log.Debug("function elm_interface_scrollable_scroll_stop_cb_set was called"); + Eina.Log.Debug("function efl_ui_scrollable_scroll_hold_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ((Panel)ws.Target).SetScrollStopCb(scroll_stop_cb); + ((Panel)ws.Target).SetScrollHold(hold); } catch (Exception e) { @@ -6340,30 +3209,30 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } else { - elm_interface_scrollable_scroll_stop_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_stop_cb); + efl_ui_scrollable_scroll_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hold); } } - private static elm_interface_scrollable_scroll_stop_cb_set_delegate elm_interface_scrollable_scroll_stop_cb_set_static_delegate; + private static efl_ui_scrollable_scroll_hold_set_delegate efl_ui_scrollable_scroll_hold_set_static_delegate; - private delegate void elm_interface_scrollable_extern_pan_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object pan); + private delegate void efl_ui_scrollable_looping_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); - public delegate void elm_interface_scrollable_extern_pan_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object pan); + public delegate void efl_ui_scrollable_looping_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_extern_pan_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_extern_pan_set"); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_looping_get"); - private static void extern_pan_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object pan) + private static void looping_get(System.IntPtr obj, System.IntPtr pd, out bool loop_h, out bool loop_v) { - Eina.Log.Debug("function elm_interface_scrollable_extern_pan_set was called"); + Eina.Log.Debug("function efl_ui_scrollable_looping_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + loop_h = default(bool); loop_v = default(bool); try { - ((Panel)ws.Target).SetExternPan(pan); + ((Panel)ws.Target).GetLooping(out loop_h, out loop_v); } catch (Exception e) { @@ -6371,34 +3240,34 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + } else { - elm_interface_scrollable_extern_pan_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pan); + efl_ui_scrollable_looping_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out loop_h, out loop_v); } } - private static elm_interface_scrollable_extern_pan_set_delegate elm_interface_scrollable_extern_pan_set_static_delegate; + private static efl_ui_scrollable_looping_get_delegate efl_ui_scrollable_looping_get_static_delegate; - private delegate void elm_interface_scrollable_page_change_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb page_change_cb); + private delegate void efl_ui_scrollable_looping_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); - public delegate void elm_interface_scrollable_page_change_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb page_change_cb); + public delegate void efl_ui_scrollable_looping_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_change_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_change_cb_set"); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_looping_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_looping_set"); - private static void page_change_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb page_change_cb) + private static void looping_set(System.IntPtr obj, System.IntPtr pd, bool loop_h, bool loop_v) { - Eina.Log.Debug("function elm_interface_scrollable_page_change_cb_set was called"); + Eina.Log.Debug("function efl_ui_scrollable_looping_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + try { - ((Panel)ws.Target).SetPageChangeCb(page_change_cb); + ((Panel)ws.Target).SetLooping(loop_h, loop_v); } catch (Exception e) { @@ -6406,34 +3275,34 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + } else { - elm_interface_scrollable_page_change_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), page_change_cb); + efl_ui_scrollable_looping_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop_h, loop_v); } } - private static elm_interface_scrollable_page_change_cb_set_delegate elm_interface_scrollable_page_change_cb_set_static_delegate; + private static efl_ui_scrollable_looping_set_delegate efl_ui_scrollable_looping_set_static_delegate; - private delegate void elm_interface_scrollable_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hold); + private delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void elm_interface_scrollable_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hold); + public delegate Efl.Ui.ScrollBlock efl_ui_scrollable_movement_block_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_hold_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_hold_set"); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_movement_block_get"); - private static void hold_set(System.IntPtr obj, System.IntPtr pd, bool hold) + private static Efl.Ui.ScrollBlock movement_block_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function elm_interface_scrollable_hold_set was called"); + Eina.Log.Debug("function efl_ui_scrollable_movement_block_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + Efl.Ui.ScrollBlock _ret_var = default(Efl.Ui.ScrollBlock); try { - ((Panel)ws.Target).SetHold(hold); + _ret_var = ((Panel)ws.Target).GetMovementBlock(); } catch (Exception e) { @@ -6441,34 +3310,35 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + return _ret_var; + } else { - elm_interface_scrollable_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hold); + return efl_ui_scrollable_movement_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static elm_interface_scrollable_hold_set_delegate elm_interface_scrollable_hold_set_static_delegate; + private static efl_ui_scrollable_movement_block_get_delegate efl_ui_scrollable_movement_block_get_static_delegate; - private delegate void elm_interface_scrollable_animate_start_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb animate_start_cb); + private delegate void efl_ui_scrollable_movement_block_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block); - public delegate void elm_interface_scrollable_animate_start_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb animate_start_cb); + public delegate void efl_ui_scrollable_movement_block_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollBlock block); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_animate_start_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_animate_start_cb_set"); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_movement_block_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_movement_block_set"); - private static void animate_start_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb animate_start_cb) + private static void movement_block_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block) { - Eina.Log.Debug("function elm_interface_scrollable_animate_start_cb_set was called"); + Eina.Log.Debug("function efl_ui_scrollable_movement_block_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ((Panel)ws.Target).SetAnimateStartCb(animate_start_cb); + ((Panel)ws.Target).SetMovementBlock(block); } catch (Exception e) { @@ -6480,30 +3350,30 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } else { - elm_interface_scrollable_animate_start_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animate_start_cb); + efl_ui_scrollable_movement_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), block); } } - private static elm_interface_scrollable_animate_start_cb_set_delegate elm_interface_scrollable_animate_start_cb_set_static_delegate; + private static efl_ui_scrollable_movement_block_set_delegate efl_ui_scrollable_movement_block_set_static_delegate; - private delegate void elm_interface_scrollable_scroll_down_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_down_cb); + private delegate void efl_ui_scrollable_gravity_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); - public delegate void elm_interface_scrollable_scroll_down_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_down_cb); + public delegate void efl_ui_scrollable_gravity_get_api_delegate(System.IntPtr obj, out double x, out double y); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_down_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_down_cb_set"); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_gravity_get"); - private static void scroll_down_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_down_cb) + private static void gravity_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) { - Eina.Log.Debug("function elm_interface_scrollable_scroll_down_cb_set was called"); + Eina.Log.Debug("function efl_ui_scrollable_gravity_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + x = default(double); y = default(double); try { - ((Panel)ws.Target).SetScrollDownCb(scroll_down_cb); + ((Panel)ws.Target).GetGravity(out x, out y); } catch (Exception e) { @@ -6511,34 +3381,34 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + } else { - elm_interface_scrollable_scroll_down_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_down_cb); + efl_ui_scrollable_gravity_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); } } - private static elm_interface_scrollable_scroll_down_cb_set_delegate elm_interface_scrollable_scroll_down_cb_set_static_delegate; + private static efl_ui_scrollable_gravity_get_delegate efl_ui_scrollable_gravity_get_static_delegate; - private delegate void elm_interface_scrollable_page_relative_set_delegate(System.IntPtr obj, System.IntPtr pd, double h_pagerel, double v_pagerel); + private delegate void efl_ui_scrollable_gravity_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); - public delegate void elm_interface_scrollable_page_relative_set_api_delegate(System.IntPtr obj, double h_pagerel, double v_pagerel); + public delegate void efl_ui_scrollable_gravity_set_api_delegate(System.IntPtr obj, double x, double y); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_relative_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_relative_set"); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_gravity_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_gravity_set"); - private static void page_relative_set(System.IntPtr obj, System.IntPtr pd, double h_pagerel, double v_pagerel) + private static void gravity_set(System.IntPtr obj, System.IntPtr pd, double x, double y) { - Eina.Log.Debug("function elm_interface_scrollable_page_relative_set was called"); + Eina.Log.Debug("function efl_ui_scrollable_gravity_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ((Panel)ws.Target).SetPageRelative(h_pagerel, v_pagerel); + ((Panel)ws.Target).SetGravity(x, y); } catch (Exception e) { @@ -6550,30 +3420,30 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } else { - elm_interface_scrollable_page_relative_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), h_pagerel, v_pagerel); + efl_ui_scrollable_gravity_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); } } - private static elm_interface_scrollable_page_relative_set_delegate elm_interface_scrollable_page_relative_set_static_delegate; + private static efl_ui_scrollable_gravity_set_delegate efl_ui_scrollable_gravity_set_static_delegate; - private delegate void elm_interface_scrollable_scroll_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_cb); + private delegate void efl_ui_scrollable_match_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); - public delegate void elm_interface_scrollable_scroll_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_cb); + public delegate void efl_ui_scrollable_match_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_cb_set"); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_match_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_match_content_set"); - private static void scroll_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_cb) + private static void match_content_set(System.IntPtr obj, System.IntPtr pd, bool w, bool h) { - Eina.Log.Debug("function elm_interface_scrollable_scroll_cb_set was called"); + Eina.Log.Debug("function efl_ui_scrollable_match_content_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + try { - ((Panel)ws.Target).SetScrollCb(scroll_cb); + ((Panel)ws.Target).SetMatchContent(w, h); } catch (Exception e) { @@ -6581,34 +3451,34 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + } else { - elm_interface_scrollable_scroll_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_cb); + efl_ui_scrollable_match_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w, h); } } - private static elm_interface_scrollable_scroll_cb_set_delegate elm_interface_scrollable_scroll_cb_set_static_delegate; + private static efl_ui_scrollable_match_content_set_delegate efl_ui_scrollable_match_content_set_static_delegate; - private delegate void elm_interface_scrollable_animate_stop_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb animate_stop_cb); + private delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void elm_interface_scrollable_animate_stop_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb animate_stop_cb); + public delegate Eina.Position2D.NativeStruct efl_ui_scrollable_step_size_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_animate_stop_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_animate_stop_cb_set"); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_step_size_get"); - private static void animate_stop_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb animate_stop_cb) + private static Eina.Position2D.NativeStruct step_size_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function elm_interface_scrollable_animate_stop_cb_set was called"); + Eina.Log.Debug("function efl_ui_scrollable_step_size_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + Eina.Position2D _ret_var = default(Eina.Position2D); try { - ((Panel)ws.Target).SetAnimateStopCb(animate_stop_cb); + _ret_var = ((Panel)ws.Target).GetStepSize(); } catch (Exception e) { @@ -6616,34 +3486,36 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + return _ret_var; + } else { - elm_interface_scrollable_animate_stop_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animate_stop_cb); + return efl_ui_scrollable_step_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static elm_interface_scrollable_animate_stop_cb_set_delegate elm_interface_scrollable_animate_stop_cb_set_static_delegate; + private static efl_ui_scrollable_step_size_get_delegate efl_ui_scrollable_step_size_get_static_delegate; - private delegate void elm_interface_scrollable_content_min_limit_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableMinLimitCb min_limit_cb); + private delegate void efl_ui_scrollable_step_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step); - public delegate void elm_interface_scrollable_content_min_limit_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableMinLimitCb min_limit_cb); + public delegate void efl_ui_scrollable_step_size_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct step); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_min_limit_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_min_limit_cb_set"); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_step_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_step_size_set"); - private static void content_min_limit_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableMinLimitCb min_limit_cb) + private static void step_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct step) { - Eina.Log.Debug("function elm_interface_scrollable_content_min_limit_cb_set was called"); + Eina.Log.Debug("function efl_ui_scrollable_step_size_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + Eina.Position2D _in_step = step; + try { - ((Panel)ws.Target).SetContentMinLimitCb(min_limit_cb); + ((Panel)ws.Target).SetStepSize(_in_step); } catch (Exception e) { @@ -6655,30 +3527,31 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } else { - elm_interface_scrollable_content_min_limit_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), min_limit_cb); + efl_ui_scrollable_step_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); } } - private static elm_interface_scrollable_content_min_limit_cb_set_delegate elm_interface_scrollable_content_min_limit_cb_set_static_delegate; + private static efl_ui_scrollable_step_size_set_delegate efl_ui_scrollable_step_size_set_static_delegate; - private delegate void elm_interface_scrollable_scroll_right_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_right_cb); + private delegate void efl_ui_scrollable_scroll_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); - public delegate void elm_interface_scrollable_scroll_right_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_right_cb); + public delegate void efl_ui_scrollable_scroll_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct rect, [MarshalAs(UnmanagedType.U1)] bool animation); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_right_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_right_cb_set"); + public static Efl.Eo.FunctionWrapper efl_ui_scrollable_scroll_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scrollable_scroll"); - private static void scroll_right_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_right_cb) + private static void scroll(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect, bool animation) { - Eina.Log.Debug("function elm_interface_scrollable_scroll_right_cb_set was called"); + Eina.Log.Debug("function efl_ui_scrollable_scroll was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + Eina.Rect _in_rect = rect; + try { - ((Panel)ws.Target).SetScrollRightCb(scroll_right_cb); + ((Panel)ws.Target).Scroll(_in_rect, animation); } catch (Exception e) { @@ -6686,34 +3559,34 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + } else { - elm_interface_scrollable_scroll_right_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_right_cb); + efl_ui_scrollable_scroll_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect, animation); } } - private static elm_interface_scrollable_scroll_right_cb_set_delegate elm_interface_scrollable_scroll_right_cb_set_static_delegate; + private static efl_ui_scrollable_scroll_delegate efl_ui_scrollable_scroll_static_delegate; - - private delegate void elm_interface_scrollable_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object content); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - - public delegate void elm_interface_scrollable_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object content); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_set"); + public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_manager_create_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_manager_create"); - private static void scrollable_content_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object content) + private static Efl.Ui.Focus.IManager focus_manager_create(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) { - Eina.Log.Debug("function elm_interface_scrollable_content_set was called"); + Eina.Log.Debug("function efl_ui_widget_focus_manager_create was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); try { - ((Panel)ws.Target).SetScrollableContent(content); + _ret_var = ((Panel)ws.Target).FocusManagerCreate(root); } catch (Exception e) { @@ -6721,34 +3594,35 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + return _ret_var; + } else { - elm_interface_scrollable_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + return efl_ui_widget_focus_manager_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); } } - private static elm_interface_scrollable_content_set_delegate elm_interface_scrollable_content_set_static_delegate; + private static efl_ui_widget_focus_manager_create_delegate efl_ui_widget_focus_manager_create_static_delegate; - - private delegate void elm_interface_scrollable_edge_left_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_left_cb); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_focus_layer_enable_get_delegate(System.IntPtr obj, System.IntPtr pd); - - public delegate void elm_interface_scrollable_edge_left_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb edge_left_cb); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_focus_layer_enable_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_edge_left_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_edge_left_cb_set"); + public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_enable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_layer_enable_get"); - private static void edge_left_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_left_cb) + private static bool enable_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function elm_interface_scrollable_edge_left_cb_set was called"); + Eina.Log.Debug("function efl_ui_focus_layer_enable_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + bool _ret_var = default(bool); try { - ((Panel)ws.Target).SetEdgeLeftCb(edge_left_cb); + _ret_var = ((Panel)ws.Target).GetEnable(); } catch (Exception e) { @@ -6756,34 +3630,35 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + return _ret_var; + } else { - elm_interface_scrollable_edge_left_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edge_left_cb); + return efl_ui_focus_layer_enable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static elm_interface_scrollable_edge_left_cb_set_delegate elm_interface_scrollable_edge_left_cb_set_static_delegate; + private static efl_ui_focus_layer_enable_get_delegate efl_ui_focus_layer_enable_get_static_delegate; - private delegate void elm_interface_scrollable_vbar_drag_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_drag_cb); + private delegate void efl_ui_focus_layer_enable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool v); - public delegate void elm_interface_scrollable_vbar_drag_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb vbar_drag_cb); + public delegate void efl_ui_focus_layer_enable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool v); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_vbar_drag_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_vbar_drag_cb_set"); + public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_enable_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_layer_enable_set"); - private static void vbar_drag_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_drag_cb) + private static void enable_set(System.IntPtr obj, System.IntPtr pd, bool v) { - Eina.Log.Debug("function elm_interface_scrollable_vbar_drag_cb_set was called"); + Eina.Log.Debug("function efl_ui_focus_layer_enable_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ((Panel)ws.Target).SetVbarDragCb(vbar_drag_cb); + ((Panel)ws.Target).SetEnable(v); } catch (Exception e) { @@ -6795,30 +3670,30 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } else { - elm_interface_scrollable_vbar_drag_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), vbar_drag_cb); + efl_ui_focus_layer_enable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), v); } } - private static elm_interface_scrollable_vbar_drag_cb_set_delegate elm_interface_scrollable_vbar_drag_cb_set_static_delegate; + private static efl_ui_focus_layer_enable_set_delegate efl_ui_focus_layer_enable_set_static_delegate; - private delegate void elm_interface_scrollable_vbar_unpress_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_unpress_cb); + private delegate void efl_ui_focus_layer_behaviour_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] out bool cycle); - public delegate void elm_interface_scrollable_vbar_unpress_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb vbar_unpress_cb); + public delegate void efl_ui_focus_layer_behaviour_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] out bool cycle); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_vbar_unpress_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_vbar_unpress_cb_set"); + public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_behaviour_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_layer_behaviour_get"); - private static void vbar_unpress_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_unpress_cb) + private static void behaviour_get(System.IntPtr obj, System.IntPtr pd, out bool enable_on_visible, out bool cycle) { - Eina.Log.Debug("function elm_interface_scrollable_vbar_unpress_cb_set was called"); + Eina.Log.Debug("function efl_ui_focus_layer_behaviour_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + enable_on_visible = default(bool); cycle = default(bool); try { - ((Panel)ws.Target).SetVbarUnpressCb(vbar_unpress_cb); + ((Panel)ws.Target).GetBehaviour(out enable_on_visible, out cycle); } catch (Exception e) { @@ -6826,34 +3701,34 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + } else { - elm_interface_scrollable_vbar_unpress_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), vbar_unpress_cb); + efl_ui_focus_layer_behaviour_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out enable_on_visible, out cycle); } } - private static elm_interface_scrollable_vbar_unpress_cb_set_delegate elm_interface_scrollable_vbar_unpress_cb_set_static_delegate; + private static efl_ui_focus_layer_behaviour_get_delegate efl_ui_focus_layer_behaviour_get_static_delegate; - private delegate void elm_interface_scrollable_edge_bottom_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_bottom_cb); + private delegate void efl_ui_focus_layer_behaviour_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] bool cycle); - public delegate void elm_interface_scrollable_edge_bottom_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb edge_bottom_cb); + public delegate void efl_ui_focus_layer_behaviour_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable_on_visible, [MarshalAs(UnmanagedType.U1)] bool cycle); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_edge_bottom_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_edge_bottom_cb_set"); + public static Efl.Eo.FunctionWrapper efl_ui_focus_layer_behaviour_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_layer_behaviour_set"); - private static void edge_bottom_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_bottom_cb) + private static void behaviour_set(System.IntPtr obj, System.IntPtr pd, bool enable_on_visible, bool cycle) { - Eina.Log.Debug("function elm_interface_scrollable_edge_bottom_cb_set was called"); + Eina.Log.Debug("function efl_ui_focus_layer_behaviour_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + try { - ((Panel)ws.Target).SetEdgeBottomCb(edge_bottom_cb); + ((Panel)ws.Target).SetBehaviour(enable_on_visible, cycle); } catch (Exception e) { @@ -6861,34 +3736,34 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + } else { - elm_interface_scrollable_edge_bottom_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edge_bottom_cb); + efl_ui_focus_layer_behaviour_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable_on_visible, cycle); } } - private static elm_interface_scrollable_edge_bottom_cb_set_delegate elm_interface_scrollable_edge_bottom_cb_set_static_delegate; + private static efl_ui_focus_layer_behaviour_set_delegate efl_ui_focus_layer_behaviour_set_static_delegate; - - private delegate void elm_interface_scrollable_edge_right_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_right_cb); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); - - public delegate void elm_interface_scrollable_edge_right_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb edge_right_cb); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_edge_right_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_edge_right_cb_set"); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_get"); - private static void edge_right_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_right_cb) + private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function elm_interface_scrollable_edge_right_cb_set was called"); + Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); try { - ((Panel)ws.Target).SetEdgeRightCb(edge_right_cb); + _ret_var = ((Panel)ws.Target).GetManagerFocus(); } catch (Exception e) { @@ -6896,34 +3771,35 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + return _ret_var; + } else { - elm_interface_scrollable_edge_right_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edge_right_cb); + return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static elm_interface_scrollable_edge_right_cb_set_delegate elm_interface_scrollable_edge_right_cb_set_static_delegate; + private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; - private delegate void elm_interface_scrollable_edge_top_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_top_cb); + private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); - public delegate void elm_interface_scrollable_edge_top_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb edge_top_cb); + public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_edge_top_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_edge_top_cb_set"); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_set"); - private static void edge_top_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_top_cb) + private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) { - Eina.Log.Debug("function elm_interface_scrollable_edge_top_cb_set was called"); + Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ((Panel)ws.Target).SetEdgeTopCb(edge_top_cb); + ((Panel)ws.Target).SetManagerFocus(focus); } catch (Exception e) { @@ -6935,30 +3811,30 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } else { - elm_interface_scrollable_edge_top_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edge_top_cb); + efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); } } - private static elm_interface_scrollable_edge_top_cb_set_delegate elm_interface_scrollable_edge_top_cb_set_static_delegate; + private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; - - private delegate void elm_interface_scrollable_objects_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object edje_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object hit_rectangle); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); - - public delegate void elm_interface_scrollable_objects_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object edje_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object hit_rectangle); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_objects_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_objects_set"); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_get"); - private static void objects_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object edje_object, Efl.Canvas.Object hit_rectangle) + private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function elm_interface_scrollable_objects_set was called"); + Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); try { - ((Panel)ws.Target).SetObjects(edje_object, hit_rectangle); + _ret_var = ((Panel)ws.Target).GetRedirect(); } catch (Exception e) { @@ -6966,34 +3842,35 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + return _ret_var; + } else { - elm_interface_scrollable_objects_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edje_object, hit_rectangle); + return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static elm_interface_scrollable_objects_set_delegate elm_interface_scrollable_objects_set_static_delegate; + private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; - private delegate void elm_interface_scrollable_last_page_get_delegate(System.IntPtr obj, System.IntPtr pd, out int pagenumber_h, out int pagenumber_v); + private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); - public delegate void elm_interface_scrollable_last_page_get_api_delegate(System.IntPtr obj, out int pagenumber_h, out int pagenumber_v); + public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_last_page_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_last_page_get"); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_set"); - private static void last_page_get(System.IntPtr obj, System.IntPtr pd, out int pagenumber_h, out int pagenumber_v) + private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) { - Eina.Log.Debug("function elm_interface_scrollable_last_page_get was called"); + Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - pagenumber_h = default(int); pagenumber_v = default(int); + try { - ((Panel)ws.Target).GetLastPage(out pagenumber_h, out pagenumber_v); + ((Panel)ws.Target).SetRedirect(redirect); } catch (Exception e) { @@ -7001,34 +3878,34 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + } else { - elm_interface_scrollable_last_page_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pagenumber_h, out pagenumber_v); + efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); } } - private static elm_interface_scrollable_last_page_get_delegate elm_interface_scrollable_last_page_get_static_delegate; + private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; - private delegate void elm_interface_scrollable_current_page_get_delegate(System.IntPtr obj, System.IntPtr pd, out int pagenumber_h, out int pagenumber_v); + private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void elm_interface_scrollable_current_page_get_api_delegate(System.IntPtr obj, out int pagenumber_h, out int pagenumber_v); + public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_current_page_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_current_page_get"); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_border_elements_get"); - private static void current_page_get(System.IntPtr obj, System.IntPtr pd, out int pagenumber_h, out int pagenumber_v) + private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function elm_interface_scrollable_current_page_get was called"); + Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - pagenumber_h = default(int); pagenumber_v = default(int); + Eina.Iterator _ret_var = default(Eina.Iterator); try { - ((Panel)ws.Target).GetCurrentPage(out pagenumber_h, out pagenumber_v); + _ret_var = ((Panel)ws.Target).GetBorderElements(); } catch (Exception e) { @@ -7036,34 +3913,36 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + return _ret_var.Handle; + } else { - elm_interface_scrollable_current_page_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pagenumber_h, out pagenumber_v); + return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static elm_interface_scrollable_current_page_get_delegate elm_interface_scrollable_current_page_get_static_delegate; + private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; - private delegate void elm_interface_scrollable_content_viewport_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y, out int w, out int h); + private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); - public delegate void elm_interface_scrollable_content_viewport_geometry_get_api_delegate(System.IntPtr obj, out int x, out int y, out int w, out int h); + public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_viewport_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_viewport_geometry_get"); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_viewport_elements_get"); - private static void content_viewport_geometry_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y, out int w, out int h) + private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) { - Eina.Log.Debug("function elm_interface_scrollable_content_viewport_geometry_get was called"); + Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - x = default(int); y = default(int); w = default(int); h = default(int); + Eina.Rect _in_viewport = viewport; + Eina.Iterator _ret_var = default(Eina.Iterator); try { - ((Panel)ws.Target).GetContentViewportGeometry(out x, out y, out w, out h); + _ret_var = ((Panel)ws.Target).GetViewportElements(_in_viewport); } catch (Exception e) { @@ -7071,34 +3950,35 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + return _ret_var.Handle; + } else { - elm_interface_scrollable_content_viewport_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y, out w, out h); + return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); } } - private static elm_interface_scrollable_content_viewport_geometry_get_delegate elm_interface_scrollable_content_viewport_geometry_get_static_delegate; + private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate; - - private delegate void elm_interface_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int w, out int h); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); - - public delegate void elm_interface_scrollable_content_size_get_api_delegate(System.IntPtr obj, out int w, out int h); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_size_get"); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_get"); - private static void content_size_get(System.IntPtr obj, System.IntPtr pd, out int w, out int h) + private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function elm_interface_scrollable_content_size_get was called"); + Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - w = default(int); h = default(int); + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); try { - ((Panel)ws.Target).GetContentSize(out w, out h); + _ret_var = ((Panel)ws.Target).GetRoot(); } catch (Exception e) { @@ -7106,34 +3986,35 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + return _ret_var; + } else { - elm_interface_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out w, out h); + return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static elm_interface_scrollable_content_size_get_delegate elm_interface_scrollable_content_size_get_static_delegate; + private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; [return: MarshalAs(UnmanagedType.U1)] - private delegate bool elm_interface_scrollable_item_loop_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd); + private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); [return: MarshalAs(UnmanagedType.U1)] - public delegate bool elm_interface_scrollable_item_loop_enabled_get_api_delegate(System.IntPtr obj); + public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_item_loop_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_item_loop_enabled_get"); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_set"); - private static bool item_loop_enabled_get(System.IntPtr obj, System.IntPtr pd) + private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) { - Eina.Log.Debug("function elm_interface_scrollable_item_loop_enabled_get was called"); + Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - bool _ret_var = default(bool); + bool _ret_var = default(bool); try { - _ret_var = ((Panel)ws.Target).GetItemLoopEnabled(); + _ret_var = ((Panel)ws.Target).SetRoot(root); } catch (Exception e) { @@ -7141,35 +4022,35 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; + return _ret_var; } else { - return elm_interface_scrollable_item_loop_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); } } - private static elm_interface_scrollable_item_loop_enabled_get_delegate elm_interface_scrollable_item_loop_enabled_get_static_delegate; + private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; - - private delegate void elm_interface_scrollable_item_loop_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); - - public delegate void elm_interface_scrollable_item_loop_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_item_loop_enabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_item_loop_enabled_set"); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_move"); - private static void item_loop_enabled_set(System.IntPtr obj, System.IntPtr pd, bool enable) + private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) { - Eina.Log.Debug("function elm_interface_scrollable_item_loop_enabled_set was called"); + Eina.Log.Debug("function efl_ui_focus_manager_move was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); try { - ((Panel)ws.Target).SetItemLoopEnabled(enable); + _ret_var = ((Panel)ws.Target).Move(direction); } catch (Exception e) { @@ -7177,34 +4058,35 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + return _ret_var; + } else { - elm_interface_scrollable_item_loop_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable); + return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); } } - private static elm_interface_scrollable_item_loop_enabled_set_delegate elm_interface_scrollable_item_loop_enabled_set_static_delegate; + private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; - - private delegate void elm_interface_scrollable_content_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y, [MarshalAs(UnmanagedType.U1)] bool sig); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); - - public delegate void elm_interface_scrollable_content_pos_set_api_delegate(System.IntPtr obj, int x, int y, [MarshalAs(UnmanagedType.U1)] bool sig); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_pos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_pos_set"); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_move"); - private static void content_pos_set(System.IntPtr obj, System.IntPtr pd, int x, int y, bool sig) + private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) { - Eina.Log.Debug("function elm_interface_scrollable_content_pos_set was called"); + Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); try { - ((Panel)ws.Target).SetContentPos(x, y, sig); + _ret_var = ((Panel)ws.Target).MoveRequest(direction, child, logical); } catch (Exception e) { @@ -7212,34 +4094,35 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + return _ret_var; + } else { - elm_interface_scrollable_content_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, sig); + return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical); } } - private static elm_interface_scrollable_content_pos_set_delegate elm_interface_scrollable_content_pos_set_static_delegate; + private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; - - private delegate void elm_interface_scrollable_content_pos_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - - public delegate void elm_interface_scrollable_content_pos_get_api_delegate(System.IntPtr obj, out int x, out int y); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_pos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_pos_get"); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_subchild"); - private static void content_pos_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y) + private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) { - Eina.Log.Debug("function elm_interface_scrollable_content_pos_get was called"); + Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - x = default(int); y = default(int); + Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); try { - ((Panel)ws.Target).GetContentPos(out x, out y); + _ret_var = ((Panel)ws.Target).RequestSubchild(root); } catch (Exception e) { @@ -7247,34 +4130,35 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + return _ret_var; + } else { - elm_interface_scrollable_content_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); + return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); } } - private static elm_interface_scrollable_content_pos_get_delegate elm_interface_scrollable_content_pos_get_static_delegate; + private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; - private delegate void elm_interface_scrollable_page_show_delegate(System.IntPtr obj, System.IntPtr pd, int pagenumber_h, int pagenumber_v); + private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); - public delegate void elm_interface_scrollable_page_show_api_delegate(System.IntPtr obj, int pagenumber_h, int pagenumber_v); + public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_show_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_show"); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_fetch"); - private static void page_show(System.IntPtr obj, System.IntPtr pd, int pagenumber_h, int pagenumber_v) + private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) { - Eina.Log.Debug("function elm_interface_scrollable_page_show was called"); + Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); try { - ((Panel)ws.Target).ShowPage(pagenumber_h, pagenumber_v); + _ret_var = ((Panel)ws.Target).Fetch(child); } catch (Exception e) { @@ -7282,34 +4166,35 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); + } else { - elm_interface_scrollable_page_show_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pagenumber_h, pagenumber_v); + return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); } } - private static elm_interface_scrollable_page_show_delegate elm_interface_scrollable_page_show_static_delegate; + private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; - private delegate void elm_interface_scrollable_region_bring_in_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h); + private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void elm_interface_scrollable_region_bring_in_api_delegate(System.IntPtr obj, int x, int y, int w, int h); + public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_region_bring_in_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_region_bring_in"); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_logical_end"); - private static void region_bring_in(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h) + private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function elm_interface_scrollable_region_bring_in was called"); + Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); try { - ((Panel)ws.Target).RegionBringIn(x, y, w, h); + _ret_var = ((Panel)ws.Target).LogicalEnd(); } catch (Exception e) { @@ -7317,34 +4202,35 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + return _ret_var; + } else { - elm_interface_scrollable_region_bring_in_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h); + return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static elm_interface_scrollable_region_bring_in_delegate elm_interface_scrollable_region_bring_in_static_delegate; + private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; - private delegate void elm_interface_scrollable_page_bring_in_delegate(System.IntPtr obj, System.IntPtr pd, int pagenumber_h, int pagenumber_v); + private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void elm_interface_scrollable_page_bring_in_api_delegate(System.IntPtr obj, int pagenumber_h, int pagenumber_v); + public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_bring_in_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_bring_in"); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_reset_history"); - private static void page_bring_in(System.IntPtr obj, System.IntPtr pd, int pagenumber_h, int pagenumber_v) + private static void reset_history(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function elm_interface_scrollable_page_bring_in was called"); + Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + try { - ((Panel)ws.Target).PageBringIn(pagenumber_h, pagenumber_v); + ((Panel)ws.Target).ResetHistory(); } catch (Exception e) { @@ -7352,34 +4238,34 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + } else { - elm_interface_scrollable_page_bring_in_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pagenumber_h, pagenumber_v); + efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static elm_interface_scrollable_page_bring_in_delegate elm_interface_scrollable_page_bring_in_static_delegate; + private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; - private delegate void elm_interface_scrollable_content_region_show_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h); + private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void elm_interface_scrollable_content_region_show_api_delegate(System.IntPtr obj, int x, int y, int w, int h); + public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_region_show_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_region_show"); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_pop_history_stack"); - private static void content_region_show(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h) + private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function elm_interface_scrollable_content_region_show was called"); + Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + try { - ((Panel)ws.Target).ShowContentRegion(x, y, w, h); + ((Panel)ws.Target).PopHistoryStack(); } catch (Exception e) { @@ -7387,34 +4273,34 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + } else { - elm_interface_scrollable_content_region_show_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h); + efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static elm_interface_scrollable_content_region_show_delegate elm_interface_scrollable_content_region_show_static_delegate; + private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; - private delegate void elm_interface_scrollable_content_min_limit_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); + private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); - public delegate void elm_interface_scrollable_content_min_limit_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); + public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_min_limit_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_min_limit"); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_setup_on_first_touch"); - private static void content_min_limit(System.IntPtr obj, System.IntPtr pd, bool w, bool h) + private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { - Eina.Log.Debug("function elm_interface_scrollable_content_min_limit was called"); + Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ((Panel)ws.Target).ContentMinLimit(w, h); + ((Panel)ws.Target).SetupOnFirstTouch(direction, entry); } catch (Exception e) { @@ -7426,30 +4312,30 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } else { - elm_interface_scrollable_content_min_limit_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w, h); + efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry); } } - private static elm_interface_scrollable_content_min_limit_delegate elm_interface_scrollable_content_min_limit_static_delegate; + private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; - private delegate void elm_interface_scrollable_wanted_region_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y); + private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void elm_interface_scrollable_wanted_region_set_api_delegate(System.IntPtr obj, int x, int y); + public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_wanted_region_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_wanted_region_set"); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_freeze"); - private static void wanted_region_set(System.IntPtr obj, System.IntPtr pd, int x, int y) + private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function elm_interface_scrollable_wanted_region_set was called"); + Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + try { - ((Panel)ws.Target).SetWantedRegion(x, y); + ((Panel)ws.Target).FreezeDirtyLogic(); } catch (Exception e) { @@ -7457,36 +4343,34 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + } else { - elm_interface_scrollable_wanted_region_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static elm_interface_scrollable_wanted_region_set_delegate elm_interface_scrollable_wanted_region_set_static_delegate; + private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; - private delegate void elm_interface_scrollable_custom_pan_pos_adjust_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr x, System.IntPtr y); + private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); - public delegate void elm_interface_scrollable_custom_pan_pos_adjust_api_delegate(System.IntPtr obj, System.IntPtr x, System.IntPtr y); + public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_custom_pan_pos_adjust_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_custom_pan_pos_adjust"); + public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); - private static void custom_pan_pos_adjust(System.IntPtr obj, System.IntPtr pd, System.IntPtr x, System.IntPtr y) + private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function elm_interface_scrollable_custom_pan_pos_adjust was called"); + Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - var _in_x = Eina.PrimitiveConversion.PointerToManaged(x); - var _in_y = Eina.PrimitiveConversion.PointerToManaged(y); - + try { - ((Panel)ws.Target).CustomPanPosAdjust(_in_x, _in_y); + ((Panel)ws.Target).DirtyLogicUnfreeze(); } catch (Exception e) { @@ -7494,15 +4378,15 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + } else { - elm_interface_scrollable_custom_pan_pos_adjust_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static elm_interface_scrollable_custom_pan_pos_adjust_delegate elm_interface_scrollable_custom_pan_pos_adjust_static_delegate; + private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; #pragma warning restore CA1707, CS1591, SA1300, SA1600 @@ -7512,6 +4396,77 @@ public class Panel : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiPanel_ExtensionMethods { + public static Efl.BindableProperty Orient(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Panel { + return new Efl.BindableProperty("orient", fac); + } + + public static Efl.BindableProperty Hidden(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Panel { + return new Efl.BindableProperty("hidden", fac); + } + + public static Efl.BindableProperty Scrollable(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Panel { + return new Efl.BindableProperty("scrollable", fac); + } + + public static Efl.BindableProperty ScrollableContentSize(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Panel { + return new Efl.BindableProperty("scrollable_content_size", fac); + } + + public static Efl.BindableProperty Content(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Panel { + return new Efl.BindableProperty("content", fac); + } + + public static Efl.BindableProperty ContentPos(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Panel { + return new Efl.BindableProperty("content_pos", fac); + } + + + + + public static Efl.BindableProperty ScrollFreeze(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Panel { + return new Efl.BindableProperty("scroll_freeze", fac); + } + + public static Efl.BindableProperty ScrollHold(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Panel { + return new Efl.BindableProperty("scroll_hold", fac); + } + + + public static Efl.BindableProperty MovementBlock(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Panel { + return new Efl.BindableProperty("movement_block", fac); + } + + + + public static Efl.BindableProperty StepSize(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Panel { + return new Efl.BindableProperty("step_size", fac); + } + + public static Efl.BindableProperty Enable(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Panel { + return new Efl.BindableProperty("enable", fac); + } + + + public static Efl.BindableProperty ManagerFocus(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Panel { + return new Efl.BindableProperty("manager_focus", fac); + } + + public static Efl.BindableProperty Redirect(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Panel { + return new Efl.BindableProperty("redirect", fac); + } + + + + public static Efl.BindableProperty Root(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Panel { + return new Efl.BindableProperty("root", fac); + } + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Ui { @@ -7547,7 +4502,9 @@ public struct PanelScrollInfo public double Rel_x; /// content scrolled position (0.0 ~ 1.0) in the panel public double Rel_y; - ///Constructor for PanelScrollInfo. + /// Constructor for PanelScrollInfo. + /// content scrolled position (0.0 ~ 1.0) in the panel; + /// content scrolled position (0.0 ~ 1.0) in the panel; public PanelScrollInfo( double Rel_x = default(double), double Rel_y = default(double) ) @@ -7556,8 +4513,8 @@ public struct PanelScrollInfo this.Rel_y = Rel_y; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator PanelScrollInfo(IntPtr ptr) { var tmp = (PanelScrollInfo.NativeStruct)Marshal.PtrToStructure(ptr, typeof(PanelScrollInfo.NativeStruct)); @@ -7566,7 +4523,7 @@ public struct PanelScrollInfo #pragma warning disable CS1591 - ///Internal wrapper for struct PanelScrollInfo. + /// Internal wrapper for struct PanelScrollInfo. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -7574,7 +4531,7 @@ public struct PanelScrollInfo public double Rel_x; public double Rel_y; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator PanelScrollInfo.NativeStruct(PanelScrollInfo _external_struct) { var _internal_struct = new PanelScrollInfo.NativeStruct(); @@ -7583,7 +4540,7 @@ public struct PanelScrollInfo return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator PanelScrollInfo(PanelScrollInfo.NativeStruct _internal_struct) { var _external_struct = new PanelScrollInfo(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_panes.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_panes.eo.cs old mode 100644 new mode 100755 index 1c8d3fcd5..e3f31233e --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_panes.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_panes.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Elementary panes class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Panes.NativeMethods] [Efl.Eo.BindingEntity] -public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrientable +public class Panes : Efl.Ui.LayoutBase, Efl.Input.IClickable, Efl.Ui.ILayoutOrientable { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +48,8 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Panes(ConstructingHandle ch) : base(ch) { @@ -106,7 +109,7 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta } } } - ///Method to raise event PressEvt. + /// Method to raise event PressEvt. public void OnPressEvt(EventArgs e) { var key = "_ELM_PANES_EVENT_PRESS"; @@ -158,7 +161,7 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta } } } - ///Method to raise event UnpressEvt. + /// Method to raise event UnpressEvt. public void OnUnpressEvt(EventArgs e) { var key = "_ELM_PANES_EVENT_UNPRESS"; @@ -172,7 +175,8 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when object is in sequence pressed and unpressed, by the primary button - public event EventHandler ClickedEvt + /// + public event EventHandler ClickedEvt { add { @@ -183,7 +187,7 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickableClickedEvt_Args args = new Efl.Ui.IClickableClickedEvt_Args(); + Efl.Input.IClickableClickedEvt_Args args = new Efl.Input.IClickableClickedEvt_Args(); args.arg = evt.Info; try { @@ -197,7 +201,7 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta } }; - string key = "_EFL_UI_EVENT_CLICKED"; + string key = "_EFL_INPUT_EVENT_CLICKED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -206,15 +210,15 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_CLICKED"; + string key = "_EFL_INPUT_EVENT_CLICKED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ClickedEvt. - public void OnClickedEvt(Efl.Ui.IClickableClickedEvt_Args e) + /// Method to raise event ClickedEvt. + public void OnClickedEvt(Efl.Input.IClickableClickedEvt_Args e) { - var key = "_EFL_UI_EVENT_CLICKED"; + var key = "_EFL_INPUT_EVENT_CLICKED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -234,7 +238,8 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta } } /// Called when object is in sequence pressed and unpressed by any button. The button that triggered the event can be found in the event information. - public event EventHandler ClickedAnyEvt + /// + public event EventHandler ClickedAnyEvt { add { @@ -245,7 +250,7 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickableClickedAnyEvt_Args args = new Efl.Ui.IClickableClickedAnyEvt_Args(); + Efl.Input.IClickableClickedAnyEvt_Args args = new Efl.Input.IClickableClickedAnyEvt_Args(); args.arg = evt.Info; try { @@ -259,7 +264,7 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta } }; - string key = "_EFL_UI_EVENT_CLICKED_ANY"; + string key = "_EFL_INPUT_EVENT_CLICKED_ANY"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -268,15 +273,15 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_CLICKED_ANY"; + string key = "_EFL_INPUT_EVENT_CLICKED_ANY"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ClickedAnyEvt. - public void OnClickedAnyEvt(Efl.Ui.IClickableClickedAnyEvt_Args e) + /// Method to raise event ClickedAnyEvt. + public void OnClickedAnyEvt(Efl.Input.IClickableClickedAnyEvt_Args e) { - var key = "_EFL_UI_EVENT_CLICKED_ANY"; + var key = "_EFL_INPUT_EVENT_CLICKED_ANY"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -296,7 +301,8 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta } } /// Called when the object is pressed, event_info is the button that got pressed - public event EventHandler PressedEvt + /// + public event EventHandler PressedEvt { add { @@ -307,7 +313,7 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); + Efl.Input.IClickablePressedEvt_Args args = new Efl.Input.IClickablePressedEvt_Args(); args.arg = Marshal.ReadInt32(evt.Info); try { @@ -321,7 +327,7 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta } }; - string key = "_EFL_UI_EVENT_PRESSED"; + string key = "_EFL_INPUT_EVENT_PRESSED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -330,15 +336,15 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_PRESSED"; + string key = "_EFL_INPUT_EVENT_PRESSED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event PressedEvt. - public void OnPressedEvt(Efl.Ui.IClickablePressedEvt_Args e) + /// Method to raise event PressedEvt. + public void OnPressedEvt(Efl.Input.IClickablePressedEvt_Args e) { - var key = "_EFL_UI_EVENT_PRESSED"; + var key = "_EFL_INPUT_EVENT_PRESSED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -357,7 +363,8 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta } } /// Called when the object is no longer pressed, event_info is the button that got pressed - public event EventHandler UnpressedEvt + /// + public event EventHandler UnpressedEvt { add { @@ -368,7 +375,7 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); + Efl.Input.IClickableUnpressedEvt_Args args = new Efl.Input.IClickableUnpressedEvt_Args(); args.arg = Marshal.ReadInt32(evt.Info); try { @@ -382,7 +389,7 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta } }; - string key = "_EFL_UI_EVENT_UNPRESSED"; + string key = "_EFL_INPUT_EVENT_UNPRESSED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -391,15 +398,15 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_UNPRESSED"; + string key = "_EFL_INPUT_EVENT_UNPRESSED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event UnpressedEvt. - public void OnUnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) + /// Method to raise event UnpressedEvt. + public void OnUnpressedEvt(Efl.Input.IClickableUnpressedEvt_Args e) { - var key = "_EFL_UI_EVENT_UNPRESSED"; + var key = "_EFL_INPUT_EVENT_UNPRESSED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -418,7 +425,8 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta } } /// Called when the object receives a long press, event_info is the button that got pressed - public event EventHandler LongpressedEvt + /// + public event EventHandler LongpressedEvt { add { @@ -429,7 +437,7 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); + Efl.Input.IClickableLongpressedEvt_Args args = new Efl.Input.IClickableLongpressedEvt_Args(); args.arg = Marshal.ReadInt32(evt.Info); try { @@ -443,7 +451,7 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta } }; - string key = "_EFL_UI_EVENT_LONGPRESSED"; + string key = "_EFL_INPUT_EVENT_LONGPRESSED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -452,15 +460,15 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_LONGPRESSED"; + string key = "_EFL_INPUT_EVENT_LONGPRESSED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event LongpressedEvt. - public void OnLongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) + /// Method to raise event LongpressedEvt. + public void OnLongpressedEvt(Efl.Input.IClickableLongpressedEvt_Args e) { - var key = "_EFL_UI_EVENT_LONGPRESSED"; + var key = "_EFL_INPUT_EVENT_LONGPRESSED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -536,24 +544,36 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta Efl.Ui.Panes.NativeMethods.efl_ui_panes_fixed_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),kw_fixed); Eina.Error.RaiseIfUnhandledException(); } + /// This returns true if the given object is currently in event emission + virtual public bool GetInteraction() { + var _ret_var = Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_interaction_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } /// Change internal states that a button got pressed. /// When the button is already pressed, this is silently ignored. /// The number of the button. FIXME ensure to have the right interval of possible input virtual public void Press(uint button) { - Efl.Ui.IClickableConcrete.NativeMethods.efl_ui_clickable_press_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_press_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); Eina.Error.RaiseIfUnhandledException(); } /// Change internal states that a button got unpressed. /// When the button is not pressed, this is silently ignored. /// The number of the button. FIXME ensure to have the right interval of possible input virtual public void Unpress(uint button) { - Efl.Ui.IClickableConcrete.NativeMethods.efl_ui_clickable_unpress_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_unpress_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); Eina.Error.RaiseIfUnhandledException(); } /// This aborts the internal state after a press call. /// This will stop the timer for longpress. And set the state of the clickable mixin back into the unpressed state. virtual public void ResetButtonState(uint button) { - Efl.Ui.IClickableConcrete.NativeMethods.efl_ui_clickable_button_state_reset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_button_state_reset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Eina.Error.RaiseIfUnhandledException(); + } + /// This aborts ongoing longpress event. + /// That is, this will stop the timer for longpress. + virtual public void LongpressAbort(uint button) { + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_longpress_abort_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); Eina.Error.RaiseIfUnhandledException(); } /// Control the direction of a given widget. @@ -595,6 +615,10 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta get { return GetFixed(); } set { SetFixed(value); } } + /// This returns true if the given object is currently in event emission + public bool Interaction { + get { return GetInteraction(); } + } /// Control the direction of a given widget. /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. /// @@ -660,34 +684,54 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_panes_fixed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_panes_fixed_set_static_delegate) }); } - if (efl_ui_clickable_press_static_delegate == null) + if (efl_input_clickable_interaction_get_static_delegate == null) + { + efl_input_clickable_interaction_get_static_delegate = new efl_input_clickable_interaction_get_delegate(interaction_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetInteraction") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_interaction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_interaction_get_static_delegate) }); + } + + if (efl_input_clickable_press_static_delegate == null) { - efl_ui_clickable_press_static_delegate = new efl_ui_clickable_press_delegate(press); + efl_input_clickable_press_static_delegate = new efl_input_clickable_press_delegate(press); } if (methods.FirstOrDefault(m => m.Name == "Press") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clickable_press"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clickable_press_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_press"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_press_static_delegate) }); } - if (efl_ui_clickable_unpress_static_delegate == null) + if (efl_input_clickable_unpress_static_delegate == null) { - efl_ui_clickable_unpress_static_delegate = new efl_ui_clickable_unpress_delegate(unpress); + efl_input_clickable_unpress_static_delegate = new efl_input_clickable_unpress_delegate(unpress); } if (methods.FirstOrDefault(m => m.Name == "Unpress") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clickable_unpress"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clickable_unpress_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_unpress"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_unpress_static_delegate) }); } - if (efl_ui_clickable_button_state_reset_static_delegate == null) + if (efl_input_clickable_button_state_reset_static_delegate == null) { - efl_ui_clickable_button_state_reset_static_delegate = new efl_ui_clickable_button_state_reset_delegate(button_state_reset); + efl_input_clickable_button_state_reset_static_delegate = new efl_input_clickable_button_state_reset_delegate(button_state_reset); } if (methods.FirstOrDefault(m => m.Name == "ResetButtonState") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clickable_button_state_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clickable_button_state_reset_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_button_state_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_button_state_reset_static_delegate) }); + } + + if (efl_input_clickable_longpress_abort_static_delegate == null) + { + efl_input_clickable_longpress_abort_static_delegate = new efl_input_clickable_longpress_abort_delegate(longpress_abort); + } + + if (methods.FirstOrDefault(m => m.Name == "LongpressAbort") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_longpress_abort"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_longpress_abort_static_delegate) }); } if (efl_ui_layout_orientation_get_static_delegate == null) @@ -864,17 +908,53 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta private static efl_ui_panes_fixed_set_delegate efl_ui_panes_fixed_set_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_clickable_interaction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_clickable_interaction_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_clickable_interaction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_interaction_get"); + + private static bool interaction_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_clickable_interaction_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Panes)ws.Target).GetInteraction(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_input_clickable_interaction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_input_clickable_interaction_get_delegate efl_input_clickable_interaction_get_static_delegate; + - private delegate void efl_ui_clickable_press_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + private delegate void efl_input_clickable_press_delegate(System.IntPtr obj, System.IntPtr pd, uint button); - public delegate void efl_ui_clickable_press_api_delegate(System.IntPtr obj, uint button); + public delegate void efl_input_clickable_press_api_delegate(System.IntPtr obj, uint button); - public static Efl.Eo.FunctionWrapper efl_ui_clickable_press_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clickable_press"); + public static Efl.Eo.FunctionWrapper efl_input_clickable_press_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_press"); private static void press(System.IntPtr obj, System.IntPtr pd, uint button) { - Eina.Log.Debug("function efl_ui_clickable_press was called"); + Eina.Log.Debug("function efl_input_clickable_press was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { @@ -893,23 +973,23 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta } else { - efl_ui_clickable_press_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + efl_input_clickable_press_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); } } - private static efl_ui_clickable_press_delegate efl_ui_clickable_press_static_delegate; + private static efl_input_clickable_press_delegate efl_input_clickable_press_static_delegate; - private delegate void efl_ui_clickable_unpress_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + private delegate void efl_input_clickable_unpress_delegate(System.IntPtr obj, System.IntPtr pd, uint button); - public delegate void efl_ui_clickable_unpress_api_delegate(System.IntPtr obj, uint button); + public delegate void efl_input_clickable_unpress_api_delegate(System.IntPtr obj, uint button); - public static Efl.Eo.FunctionWrapper efl_ui_clickable_unpress_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clickable_unpress"); + public static Efl.Eo.FunctionWrapper efl_input_clickable_unpress_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_unpress"); private static void unpress(System.IntPtr obj, System.IntPtr pd, uint button) { - Eina.Log.Debug("function efl_ui_clickable_unpress was called"); + Eina.Log.Debug("function efl_input_clickable_unpress was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { @@ -928,23 +1008,23 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta } else { - efl_ui_clickable_unpress_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + efl_input_clickable_unpress_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); } } - private static efl_ui_clickable_unpress_delegate efl_ui_clickable_unpress_static_delegate; + private static efl_input_clickable_unpress_delegate efl_input_clickable_unpress_static_delegate; - private delegate void efl_ui_clickable_button_state_reset_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + private delegate void efl_input_clickable_button_state_reset_delegate(System.IntPtr obj, System.IntPtr pd, uint button); - public delegate void efl_ui_clickable_button_state_reset_api_delegate(System.IntPtr obj, uint button); + public delegate void efl_input_clickable_button_state_reset_api_delegate(System.IntPtr obj, uint button); - public static Efl.Eo.FunctionWrapper efl_ui_clickable_button_state_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clickable_button_state_reset"); + public static Efl.Eo.FunctionWrapper efl_input_clickable_button_state_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_button_state_reset"); private static void button_state_reset(System.IntPtr obj, System.IntPtr pd, uint button) { - Eina.Log.Debug("function efl_ui_clickable_button_state_reset was called"); + Eina.Log.Debug("function efl_input_clickable_button_state_reset was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { @@ -963,11 +1043,46 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta } else { - efl_ui_clickable_button_state_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + efl_input_clickable_button_state_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); } } - private static efl_ui_clickable_button_state_reset_delegate efl_ui_clickable_button_state_reset_static_delegate; + private static efl_input_clickable_button_state_reset_delegate efl_input_clickable_button_state_reset_static_delegate; + + + private delegate void efl_input_clickable_longpress_abort_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + + + public delegate void efl_input_clickable_longpress_abort_api_delegate(System.IntPtr obj, uint button); + + public static Efl.Eo.FunctionWrapper efl_input_clickable_longpress_abort_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_longpress_abort"); + + private static void longpress_abort(System.IntPtr obj, System.IntPtr pd, uint button) + { + Eina.Log.Debug("function efl_input_clickable_longpress_abort was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Panes)ws.Target).LongpressAbort(button); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_clickable_longpress_abort_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + } + } + + private static efl_input_clickable_longpress_abort_delegate efl_input_clickable_longpress_abort_static_delegate; private delegate Efl.Ui.LayoutOrientation efl_ui_layout_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd); @@ -1048,3 +1163,32 @@ public class Panes : Efl.Ui.LayoutBase, Efl.Ui.IClickable, Efl.Ui.ILayoutOrienta } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiPanes_ExtensionMethods { + public static Efl.BindableProperty SplitRatio(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Panes { + return new Efl.BindableProperty("split_ratio", fac); + } + + public static Efl.BindableProperty Fixed(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Panes { + return new Efl.BindableProperty("fixed", fac); + } + + + public static Efl.BindableProperty Orientation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Panes { + return new Efl.BindableProperty("orientation", fac); + } + + public static Efl.BindableFactoryPart SecondPart(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTag x=null) where T : Efl.Ui.Panes + { + return new Efl.BindableFactoryPart("second" ,fac); + } + + public static Efl.BindableFactoryPart FirstPart(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTag x=null) where T : Efl.Ui.Panes + { + return new Efl.BindableFactoryPart("first" ,fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_panes_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_panes_part.eo.cs old mode 100644 new mode 100755 index 56682cb6f..99d0f89d9 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_panes_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_panes_part.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Elementary Panes internal part class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.PanesPart.NativeMethods] [Efl.Eo.BindingEntity] public class PanesPart : Efl.Ui.LayoutPartContent { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class PanesPart : Efl.Ui.LayoutPartContent FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected PanesPart(ConstructingHandle ch) : base(ch) { @@ -320,3 +323,17 @@ public class PanesPart : Efl.Ui.LayoutPartContent } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiPanesPart_ExtensionMethods { + public static Efl.BindableProperty HintMinAllow(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.PanesPart { + return new Efl.BindableProperty("hint_min_allow", fac); + } + + public static Efl.BindableProperty SplitRatioMin(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.PanesPart { + return new Efl.BindableProperty("split_ratio_min", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_popup.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_popup.eo.cs old mode 100644 new mode 100755 index 530b28407..158b89cf8 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_popup.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_popup.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// EFL UI popup class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Popup.NativeMethods] [Efl.Eo.BindingEntity] -public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager, Efl.Ui.Focus.ILayer, Efl.Ui.Focus.IManager +public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager, Efl.Ui.IWidgetScrollableContent, Efl.Ui.Focus.ILayer, Efl.Ui.Focus.IManager { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +48,8 @@ public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Popup(ConstructingHandle ch) : base(ch) { @@ -106,7 +109,7 @@ public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager } } } - ///Method to raise event BackwallClickedEvt. + /// Method to raise event BackwallClickedEvt. public void OnBackwallClickedEvt(EventArgs e) { var key = "_EFL_UI_POPUP_EVENT_BACKWALL_CLICKED"; @@ -158,7 +161,7 @@ public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager } } } - ///Method to raise event TimeoutEvt. + /// Method to raise event TimeoutEvt. public void OnTimeoutEvt(EventArgs e) { var key = "_EFL_UI_POPUP_EVENT_TIMEOUT"; @@ -173,6 +176,7 @@ public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager } /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) + /// public event EventHandler ContentChangedEvt { add @@ -212,7 +216,7 @@ public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager } } } - ///Method to raise event ContentChangedEvt. + /// Method to raise event ContentChangedEvt. public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; @@ -226,8 +230,72 @@ public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager IntPtr info = e.arg.NativeHandle; Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } + /// The optimal size for the widget based on scrollable content. + /// + public event EventHandler OptimalSizeCalcEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.IWidgetScrollableContentOptimalSizeCalcEvt_Args args = new Efl.Ui.IWidgetScrollableContentOptimalSizeCalcEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_WIDGET_SCROLLABLE_CONTENT_EVENT_OPTIMAL_SIZE_CALC"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_WIDGET_SCROLLABLE_CONTENT_EVENT_OPTIMAL_SIZE_CALC"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event OptimalSizeCalcEvt. + public void OnOptimalSizeCalcEvt(Efl.Ui.IWidgetScrollableContentOptimalSizeCalcEvt_Args e) + { + var key = "_EFL_UI_WIDGET_SCROLLABLE_CONTENT_EVENT_OPTIMAL_SIZE_CALC"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } /// Redirect object has changed, the old manager is passed as an event argument. /// (Since EFL 1.22) + /// public event EventHandler RedirectChangedEvt { add @@ -267,7 +335,7 @@ public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager } } } - ///Method to raise event RedirectChangedEvt. + /// Method to raise event RedirectChangedEvt. public void OnRedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; @@ -321,7 +389,7 @@ public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager } } } - ///Method to raise event FlushPreEvt. + /// Method to raise event FlushPreEvt. public void OnFlushPreEvt(EventArgs e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; @@ -374,7 +442,7 @@ public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager } } } - ///Method to raise event CoordsDirtyEvt. + /// Method to raise event CoordsDirtyEvt. public void OnCoordsDirtyEvt(EventArgs e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; @@ -389,6 +457,7 @@ public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager } /// The manager_focus property has changed. The previously focused object is passed as an event argument. /// (Since EFL 1.22) + /// public event EventHandler ManagerFocusChangedEvt { add @@ -428,7 +497,7 @@ public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager } } } - ///Method to raise event ManagerFocusChangedEvt. + /// Method to raise event ManagerFocusChangedEvt. public void OnManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; @@ -444,6 +513,7 @@ public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager } /// Called when this focus manager is frozen or thawed, even_info being true indicates that it is now frozen, false indicates that it is thawed. /// (Since EFL 1.22) + /// public event EventHandler DirtyLogicFreezeChangedEvt { add @@ -483,7 +553,7 @@ public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager } } } - ///Method to raise event DirtyLogicFreezeChangedEvt. + /// Method to raise event DirtyLogicFreezeChangedEvt. public void OnDirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; @@ -538,18 +608,39 @@ public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager Efl.Ui.Popup.NativeMethods.efl_ui_popup_timeout_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),time); Eina.Error.RaiseIfUnhandledException(); } - /// get the current popup size. - virtual public Eina.Size2D GetPopupSize() { - var _ret_var = Efl.Ui.Popup.NativeMethods.efl_ui_popup_size_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + /// Returns the anchor object which the popup is following. + /// The object which popup is following. + virtual public Efl.Canvas.Object GetAnchor() { + var _ret_var = Efl.Ui.Popup.NativeMethods.efl_ui_popup_anchor_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Set the popup size. - virtual public void SetPopupSize(Eina.Size2D size) { - Eina.Size2D.NativeStruct _in_size = size; - Efl.Ui.Popup.NativeMethods.efl_ui_popup_size_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_size); + /// Set anchor popup to follow an anchor object. If anchor object is moved or parent window is resized, the anchor popup moves to the new position. If anchor object is set to NULL, the anchor popup stops following the anchor object. When the popup is moved by using gfx_position_set, anchor is set NULL. + /// The object which popup is following. + virtual public void SetAnchor(Efl.Canvas.Object anchor) { + Efl.Ui.Popup.NativeMethods.efl_ui_popup_anchor_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),anchor); Eina.Error.RaiseIfUnhandledException(); } + /// Get the align priority of a popup. + /// First align priority + /// Second align priority + /// Third align priority + /// Fourth align priority + /// Fifth align priority + virtual public void GetAlignPriority(out Efl.Ui.PopupAlign first, out Efl.Ui.PopupAlign second, out Efl.Ui.PopupAlign third, out Efl.Ui.PopupAlign fourth, out Efl.Ui.PopupAlign fifth) { + Efl.Ui.Popup.NativeMethods.efl_ui_popup_align_priority_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out first, out second, out third, out fourth, out fifth); + Eina.Error.RaiseIfUnhandledException(); + } + /// Set the align priority of a popup. + /// First align priority + /// Second align priority + /// Third align priority + /// Fourth align priority + /// Fifth align priority + virtual public void SetAlignPriority(Efl.Ui.PopupAlign first, Efl.Ui.PopupAlign second, Efl.Ui.PopupAlign third, Efl.Ui.PopupAlign fourth, Efl.Ui.PopupAlign fifth) { + Efl.Ui.Popup.NativeMethods.efl_ui_popup_align_priority_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),first, second, third, fourth, fifth); + Eina.Error.RaiseIfUnhandledException(); + } /// Sub-object currently set as this object's single content. /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). /// (Since EFL 1.22) @@ -587,6 +678,52 @@ public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager Eina.Error.RaiseIfUnhandledException(); return _ret_var; } + /// Widgets can call this function during their implementation after the super call to determine whether the internal scroller has performed sizing calculations. + /// The optimal_size,calc event will have been emitted during the super call if this method returns true. + /// + /// In the case that this returns true, it's likely that the widget should be completing its internal sizing calculations from the optimal_size,calc callback using + /// + /// `efl_canvas_group_calculate(efl_super(ev->object, EFL_UI_WIDGET_SCROLLABLE_CONTENT_MIXIN));` + /// + /// in order to skip the scrollable sizing calc. + /// Whether the internal scroller has done sizing calcs. + virtual public bool GetScrollableContentDidGroupCalc() { + var _ret_var = Efl.Ui.IWidgetScrollableContentConcrete.NativeMethods.efl_ui_widget_scrollable_content_did_group_calc_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// This is the content which will be placed in the internal scroller. + /// The content object. + virtual public Efl.Canvas.Object GetScrollableContent() { + var _ret_var = Efl.Ui.IWidgetScrollableContentConcrete.NativeMethods.efl_ui_widget_scrollable_content_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// This is the content which will be placed in the internal scroller. + /// The content object. + /// True on success + virtual public bool SetScrollableContent(Efl.Canvas.Object content) { + var _ret_var = Efl.Ui.IWidgetScrollableContentConcrete.NativeMethods.efl_ui_widget_scrollable_content_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),content); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Retrieves the text string currently being displayed by the given text object. + /// Do not free() the return value. + /// + /// See also . + /// Text string to display on it. + virtual public System.String GetScrollableText() { + var _ret_var = Efl.Ui.IWidgetScrollableContentConcrete.NativeMethods.efl_ui_widget_scrollable_text_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Sets the text string to be displayed by the given text object. The text will be scrollable depending on its size relative to the object's geometry. + /// See also . + /// Text string to display on it. + virtual public void SetScrollableText(System.String text) { + Efl.Ui.IWidgetScrollableContentConcrete.NativeMethods.efl_ui_widget_scrollable_text_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),text); + Eina.Error.RaiseIfUnhandledException(); + } /// Enable property /// true to set enable the layer false to disable it virtual public bool GetEnable() { @@ -720,7 +857,9 @@ public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager } /// This will fetch the data from a registered node. /// Be aware this function will trigger a computation of all dirty nodes. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The child object to inspect. /// The list of relations starting from child. virtual public Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child) { @@ -788,10 +927,25 @@ public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager get { return GetTimeout(); } set { SetTimeout(value); } } - /// get the current popup size. - public Eina.Size2D PopupSize { - get { return GetPopupSize(); } - set { SetPopupSize(value); } + /// Returns the anchor object which the popup is following. + /// The object which popup is following. + public Efl.Canvas.Object Anchor { + get { return GetAnchor(); } + set { SetAnchor(value); } + } + /// Get the align priority of a popup. + /// First align priority + public (Efl.Ui.PopupAlign, Efl.Ui.PopupAlign, Efl.Ui.PopupAlign, Efl.Ui.PopupAlign, Efl.Ui.PopupAlign) AlignPriority { + get { + Efl.Ui.PopupAlign _out_first = default(Efl.Ui.PopupAlign); + Efl.Ui.PopupAlign _out_second = default(Efl.Ui.PopupAlign); + Efl.Ui.PopupAlign _out_third = default(Efl.Ui.PopupAlign); + Efl.Ui.PopupAlign _out_fourth = default(Efl.Ui.PopupAlign); + Efl.Ui.PopupAlign _out_fifth = default(Efl.Ui.PopupAlign); + GetAlignPriority(out _out_first,out _out_second,out _out_third,out _out_fourth,out _out_fifth); + return (_out_first,_out_second,_out_third,_out_fourth,_out_fifth); + } + set { SetAlignPriority( value.Item1, value.Item2, value.Item3, value.Item4, value.Item5); } } /// Sub-object currently set as this object's single content. /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). @@ -801,12 +955,50 @@ public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager get { return GetContent(); } set { SetContent(value); } } + /// Widgets can call this function during their implementation after the super call to determine whether the internal scroller has performed sizing calculations. + /// The optimal_size,calc event will have been emitted during the super call if this method returns true. + /// + /// In the case that this returns true, it's likely that the widget should be completing its internal sizing calculations from the optimal_size,calc callback using + /// + /// `efl_canvas_group_calculate(efl_super(ev->object, EFL_UI_WIDGET_SCROLLABLE_CONTENT_MIXIN));` + /// + /// in order to skip the scrollable sizing calc. + /// Whether the internal scroller has done sizing calcs. + public bool ScrollableContentDidGroupCalc { + get { return GetScrollableContentDidGroupCalc(); } + } + /// This is the content which will be placed in the internal scroller. + /// The content object. + public Efl.Canvas.Object ScrollableContent { + get { return GetScrollableContent(); } + set { SetScrollableContent(value); } + } + /// Retrieves the text string currently being displayed by the given text object. + /// Do not free() the return value. + /// + /// See also . + /// Text string to display on it. + public System.String ScrollableText { + get { return GetScrollableText(); } + set { SetScrollableText(value); } + } /// Enable property /// true to set enable the layer false to disable it public bool Enable { get { return GetEnable(); } set { SetEnable(value); } } + /// Constructor for setting the behaviour of the layer + /// true means layer will set itself once the inheriting widget becomes visible, false means the layer isn't enabled automatically + public (bool, bool) Behaviour { + get { + bool _out_enable_on_visible = default(bool); + bool _out_cycle = default(bool); + GetBehaviour(out _out_enable_on_visible,out _out_cycle); + return (_out_enable_on_visible,_out_cycle); + } + set { SetBehaviour( value.Item1, value.Item2); } + } /// The element which is currently focused by this manager /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. /// (Since EFL 1.22) @@ -894,24 +1086,44 @@ public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_popup_timeout_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_popup_timeout_set_static_delegate) }); } - if (efl_ui_popup_size_get_static_delegate == null) + if (efl_ui_popup_anchor_get_static_delegate == null) + { + efl_ui_popup_anchor_get_static_delegate = new efl_ui_popup_anchor_get_delegate(anchor_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetAnchor") != null) { - efl_ui_popup_size_get_static_delegate = new efl_ui_popup_size_get_delegate(popup_size_get); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_popup_anchor_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_popup_anchor_get_static_delegate) }); } - if (methods.FirstOrDefault(m => m.Name == "GetPopupSize") != null) + if (efl_ui_popup_anchor_set_static_delegate == null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_popup_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_popup_size_get_static_delegate) }); + efl_ui_popup_anchor_set_static_delegate = new efl_ui_popup_anchor_set_delegate(anchor_set); } - if (efl_ui_popup_size_set_static_delegate == null) + if (methods.FirstOrDefault(m => m.Name == "SetAnchor") != null) { - efl_ui_popup_size_set_static_delegate = new efl_ui_popup_size_set_delegate(popup_size_set); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_popup_anchor_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_popup_anchor_set_static_delegate) }); } - if (methods.FirstOrDefault(m => m.Name == "SetPopupSize") != null) + if (efl_ui_popup_align_priority_get_static_delegate == null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_popup_size_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_popup_size_set_static_delegate) }); + efl_ui_popup_align_priority_get_static_delegate = new efl_ui_popup_align_priority_get_delegate(align_priority_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetAlignPriority") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_popup_align_priority_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_popup_align_priority_get_static_delegate) }); + } + + if (efl_ui_popup_align_priority_set_static_delegate == null) + { + efl_ui_popup_align_priority_set_static_delegate = new efl_ui_popup_align_priority_set_delegate(align_priority_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetAlignPriority") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_popup_align_priority_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_popup_align_priority_set_static_delegate) }); } if (efl_content_get_static_delegate == null) @@ -954,6 +1166,56 @@ public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_manager_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_manager_create_static_delegate) }); } + if (efl_ui_widget_scrollable_content_did_group_calc_get_static_delegate == null) + { + efl_ui_widget_scrollable_content_did_group_calc_get_static_delegate = new efl_ui_widget_scrollable_content_did_group_calc_get_delegate(scrollable_content_did_group_calc_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetScrollableContentDidGroupCalc") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_scrollable_content_did_group_calc_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_scrollable_content_did_group_calc_get_static_delegate) }); + } + + if (efl_ui_widget_scrollable_content_get_static_delegate == null) + { + efl_ui_widget_scrollable_content_get_static_delegate = new efl_ui_widget_scrollable_content_get_delegate(scrollable_content_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetScrollableContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_scrollable_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_scrollable_content_get_static_delegate) }); + } + + if (efl_ui_widget_scrollable_content_set_static_delegate == null) + { + efl_ui_widget_scrollable_content_set_static_delegate = new efl_ui_widget_scrollable_content_set_delegate(scrollable_content_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScrollableContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_scrollable_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_scrollable_content_set_static_delegate) }); + } + + if (efl_ui_widget_scrollable_text_get_static_delegate == null) + { + efl_ui_widget_scrollable_text_get_static_delegate = new efl_ui_widget_scrollable_text_get_delegate(scrollable_text_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetScrollableText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_scrollable_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_scrollable_text_get_static_delegate) }); + } + + if (efl_ui_widget_scrollable_text_set_static_delegate == null) + { + efl_ui_widget_scrollable_text_set_static_delegate = new efl_ui_widget_scrollable_text_set_delegate(scrollable_text_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScrollableText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_scrollable_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_scrollable_text_set_static_delegate) }); + } + if (efl_ui_focus_layer_enable_get_static_delegate == null) { efl_ui_focus_layer_enable_get_static_delegate = new efl_ui_focus_layer_enable_get_delegate(enable_get); @@ -1328,24 +1590,24 @@ public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager private static efl_ui_popup_timeout_set_delegate efl_ui_popup_timeout_set_static_delegate; - - private delegate Eina.Size2D.NativeStruct efl_ui_popup_size_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Object efl_ui_popup_anchor_get_delegate(System.IntPtr obj, System.IntPtr pd); - - public delegate Eina.Size2D.NativeStruct efl_ui_popup_size_get_api_delegate(System.IntPtr obj); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Object efl_ui_popup_anchor_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_popup_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_popup_size_get"); + public static Efl.Eo.FunctionWrapper efl_ui_popup_anchor_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_popup_anchor_get"); - private static Eina.Size2D.NativeStruct popup_size_get(System.IntPtr obj, System.IntPtr pd) + private static Efl.Canvas.Object anchor_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function efl_ui_popup_size_get was called"); + Eina.Log.Debug("function efl_ui_popup_anchor_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - Eina.Size2D _ret_var = default(Eina.Size2D); + Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); try { - _ret_var = ((Popup)ws.Target).GetPopupSize(); + _ret_var = ((Popup)ws.Target).GetAnchor(); } catch (Exception e) { @@ -1358,31 +1620,30 @@ public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager } else { - return efl_ui_popup_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + return efl_ui_popup_anchor_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static efl_ui_popup_size_get_delegate efl_ui_popup_size_get_static_delegate; + private static efl_ui_popup_anchor_get_delegate efl_ui_popup_anchor_get_static_delegate; - private delegate void efl_ui_popup_size_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size); + private delegate void efl_ui_popup_anchor_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object anchor); - public delegate void efl_ui_popup_size_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct size); + public delegate void efl_ui_popup_anchor_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object anchor); - public static Efl.Eo.FunctionWrapper efl_ui_popup_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_popup_size_set"); + public static Efl.Eo.FunctionWrapper efl_ui_popup_anchor_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_popup_anchor_set"); - private static void popup_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) + private static void anchor_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object anchor) { - Eina.Log.Debug("function efl_ui_popup_size_set was called"); + Eina.Log.Debug("function efl_ui_popup_anchor_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - Eina.Size2D _in_size = size; - + try { - ((Popup)ws.Target).SetPopupSize(_in_size); + ((Popup)ws.Target).SetAnchor(anchor); } catch (Exception e) { @@ -1394,11 +1655,81 @@ public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager } else { - efl_ui_popup_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); + efl_ui_popup_anchor_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), anchor); } } - private static efl_ui_popup_size_set_delegate efl_ui_popup_size_set_static_delegate; + private static efl_ui_popup_anchor_set_delegate efl_ui_popup_anchor_set_static_delegate; + + + private delegate void efl_ui_popup_align_priority_get_delegate(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.PopupAlign first, out Efl.Ui.PopupAlign second, out Efl.Ui.PopupAlign third, out Efl.Ui.PopupAlign fourth, out Efl.Ui.PopupAlign fifth); + + + public delegate void efl_ui_popup_align_priority_get_api_delegate(System.IntPtr obj, out Efl.Ui.PopupAlign first, out Efl.Ui.PopupAlign second, out Efl.Ui.PopupAlign third, out Efl.Ui.PopupAlign fourth, out Efl.Ui.PopupAlign fifth); + + public static Efl.Eo.FunctionWrapper efl_ui_popup_align_priority_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_popup_align_priority_get"); + + private static void align_priority_get(System.IntPtr obj, System.IntPtr pd, out Efl.Ui.PopupAlign first, out Efl.Ui.PopupAlign second, out Efl.Ui.PopupAlign third, out Efl.Ui.PopupAlign fourth, out Efl.Ui.PopupAlign fifth) + { + Eina.Log.Debug("function efl_ui_popup_align_priority_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + first = default(Efl.Ui.PopupAlign); second = default(Efl.Ui.PopupAlign); third = default(Efl.Ui.PopupAlign); fourth = default(Efl.Ui.PopupAlign); fifth = default(Efl.Ui.PopupAlign); + try + { + ((Popup)ws.Target).GetAlignPriority(out first, out second, out third, out fourth, out fifth); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_popup_align_priority_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out first, out second, out third, out fourth, out fifth); + } + } + + private static efl_ui_popup_align_priority_get_delegate efl_ui_popup_align_priority_get_static_delegate; + + + private delegate void efl_ui_popup_align_priority_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.PopupAlign first, Efl.Ui.PopupAlign second, Efl.Ui.PopupAlign third, Efl.Ui.PopupAlign fourth, Efl.Ui.PopupAlign fifth); + + + public delegate void efl_ui_popup_align_priority_set_api_delegate(System.IntPtr obj, Efl.Ui.PopupAlign first, Efl.Ui.PopupAlign second, Efl.Ui.PopupAlign third, Efl.Ui.PopupAlign fourth, Efl.Ui.PopupAlign fifth); + + public static Efl.Eo.FunctionWrapper efl_ui_popup_align_priority_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_popup_align_priority_set"); + + private static void align_priority_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.PopupAlign first, Efl.Ui.PopupAlign second, Efl.Ui.PopupAlign third, Efl.Ui.PopupAlign fourth, Efl.Ui.PopupAlign fifth) + { + Eina.Log.Debug("function efl_ui_popup_align_priority_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Popup)ws.Target).SetAlignPriority(first, second, third, fourth, fifth); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_popup_align_priority_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), first, second, third, fourth, fifth); + } + } + + private static efl_ui_popup_align_priority_set_delegate efl_ui_popup_align_priority_set_static_delegate; [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); @@ -1544,6 +1875,185 @@ public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager private static efl_ui_widget_focus_manager_create_delegate efl_ui_widget_focus_manager_create_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_widget_scrollable_content_did_group_calc_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_widget_scrollable_content_did_group_calc_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_scrollable_content_did_group_calc_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_scrollable_content_did_group_calc_get"); + + private static bool scrollable_content_did_group_calc_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_scrollable_content_did_group_calc_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Popup)ws.Target).GetScrollableContentDidGroupCalc(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_scrollable_content_did_group_calc_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_widget_scrollable_content_did_group_calc_get_delegate efl_ui_widget_scrollable_content_did_group_calc_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Object efl_ui_widget_scrollable_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Object efl_ui_widget_scrollable_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_scrollable_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_scrollable_content_get"); + + private static Efl.Canvas.Object scrollable_content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_scrollable_content_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); + try + { + _ret_var = ((Popup)ws.Target).GetScrollableContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_scrollable_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_widget_scrollable_content_get_delegate efl_ui_widget_scrollable_content_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_widget_scrollable_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object content); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_widget_scrollable_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object content); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_scrollable_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_scrollable_content_set"); + + private static bool scrollable_content_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object content) + { + Eina.Log.Debug("function efl_ui_widget_scrollable_content_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Popup)ws.Target).SetScrollableContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_scrollable_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } + } + + private static efl_ui_widget_scrollable_content_set_delegate efl_ui_widget_scrollable_content_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_widget_scrollable_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_widget_scrollable_text_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_scrollable_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_scrollable_text_get"); + + private static System.String scrollable_text_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_scrollable_text_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Popup)ws.Target).GetScrollableText(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_scrollable_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_widget_scrollable_text_get_delegate efl_ui_widget_scrollable_text_get_static_delegate; + + + private delegate void efl_ui_widget_scrollable_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + + public delegate void efl_ui_widget_scrollable_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_scrollable_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_scrollable_text_set"); + + private static void scrollable_text_set(System.IntPtr obj, System.IntPtr pd, System.String text) + { + Eina.Log.Debug("function efl_ui_widget_scrollable_text_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Popup)ws.Target).SetScrollableText(text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_scrollable_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); + } + } + + private static efl_ui_widget_scrollable_text_set_delegate efl_ui_widget_scrollable_text_set_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_ui_focus_layer_enable_get_delegate(System.IntPtr obj, System.IntPtr pd); @@ -2335,6 +2845,62 @@ public class Popup : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IWidgetFocusManager } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiPopup_ExtensionMethods { + public static Efl.BindableProperty Align(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Popup { + return new Efl.BindableProperty("align", fac); + } + + public static Efl.BindableProperty Timeout(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Popup { + return new Efl.BindableProperty("timeout", fac); + } + + public static Efl.BindableProperty Anchor(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Popup { + return new Efl.BindableProperty("anchor", fac); + } + + + public static Efl.BindableProperty Content(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Popup { + return new Efl.BindableProperty("content", fac); + } + + + public static Efl.BindableProperty ScrollableContent(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Popup { + return new Efl.BindableProperty("scrollable_content", fac); + } + + public static Efl.BindableProperty ScrollableText(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Popup { + return new Efl.BindableProperty("scrollable_text", fac); + } + + public static Efl.BindableProperty Enable(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Popup { + return new Efl.BindableProperty("enable", fac); + } + + + public static Efl.BindableProperty ManagerFocus(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Popup { + return new Efl.BindableProperty("manager_focus", fac); + } + + public static Efl.BindableProperty Redirect(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Popup { + return new Efl.BindableProperty("redirect", fac); + } + + + + public static Efl.BindableProperty Root(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Popup { + return new Efl.BindableProperty("root", fac); + } + + public static Efl.BindablePart BackwallPart(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTag x=null) where T : Efl.Ui.Popup + { + return new Efl.BindablePart("backwall" ,fac); + } + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Ui { diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_popup_part_backwall.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_popup_part_backwall.eo.cs old mode 100644 new mode 100755 index 46cc21041..e04756bf8 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_popup_part_backwall.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_popup_part_backwall.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Efl UI Popup internal part backwall class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.PopupPartBackwall.NativeMethods] [Efl.Eo.BindingEntity] public class PopupPartBackwall : Efl.Ui.LayoutPart, Efl.IFile { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class PopupPartBackwall : Efl.Ui.LayoutPart, Efl.IFile FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected PopupPartBackwall(ConstructingHandle ch) : base(ch) { @@ -737,3 +740,38 @@ public class PopupPartBackwall : Efl.Ui.LayoutPart, Efl.IFile } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiPopupPartBackwall_ExtensionMethods { + public static Efl.BindableProperty RepeatEvents(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.PopupPartBackwall { + return new Efl.BindableProperty("repeat_events", fac); + } +public static Efl.BindableProperty RepeatEvents(this Efl.BindablePart part, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.PopupPartBackwall { + return new Efl.BindableProperty(part.PartName, "repeat_events", part.Binder); + } + + public static Efl.BindableProperty Mmap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.PopupPartBackwall { + return new Efl.BindableProperty("mmap", fac); + } +public static Efl.BindableProperty Mmap(this Efl.BindablePart part, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.PopupPartBackwall { + return new Efl.BindableProperty(part.PartName, "mmap", part.Binder); + } + + public static Efl.BindableProperty File(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.PopupPartBackwall { + return new Efl.BindableProperty("file", fac); + } +public static Efl.BindableProperty File(this Efl.BindablePart part, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.PopupPartBackwall { + return new Efl.BindableProperty(part.PartName, "file", part.Binder); + } + + public static Efl.BindableProperty Key(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.PopupPartBackwall { + return new Efl.BindableProperty("key", fac); + } +public static Efl.BindableProperty Key(this Efl.BindablePart part, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.PopupPartBackwall { + return new Efl.BindableProperty(part.PartName, "key", part.Binder); + } + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_position_manager_data_access_v1.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_position_manager_data_access_v1.eo.cs new file mode 100755 index 000000000..85d6fc047 --- /dev/null +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_position_manager_data_access_v1.eo.cs @@ -0,0 +1,854 @@ +#define EFL_BETA +#pragma warning disable CS1591 +using System; +using System.Runtime.InteropServices; +using System.Collections.Generic; +using System.Linq; +using System.Threading; +using System.ComponentModel; +namespace Efl { + +namespace Ui { + +namespace PositionManager { + +/// The range of items to fill into @.memory. The length of memory must be bigger or equal to the requested items +/// The slice to fill the information in, the full slice will be filled if there are enough items +[Efl.Eo.BindingEntity] +public delegate Efl.Ui.PositionManager.ObjectBatchResult ObjectBatchCallback(Efl.Ui.PositionManager.RequestRange range, Eina.RwSlice memory); +public delegate Efl.Ui.PositionManager.ObjectBatchResult.NativeStruct ObjectBatchCallbackInternal(IntPtr data, Efl.Ui.PositionManager.RequestRange.NativeStruct range, Eina.RwSlice memory); +internal class ObjectBatchCallbackWrapper : IDisposable +{ + + private ObjectBatchCallbackInternal _cb; + private IntPtr _cb_data; + private EinaFreeCb _cb_free_cb; + + internal ObjectBatchCallbackWrapper (ObjectBatchCallbackInternal _cb, IntPtr _cb_data, EinaFreeCb _cb_free_cb) + { + this._cb = _cb; + this._cb_data = _cb_data; + this._cb_free_cb = _cb_free_cb; + } + + ~ObjectBatchCallbackWrapper() + { + Dispose(false); + } + + protected virtual void Dispose(bool disposing) + { + if (this._cb_free_cb != null) + { + if (disposing) + { + this._cb_free_cb(this._cb_data); + } + else + { + Efl.Eo.Globals.ThreadSafeFreeCbExec(this._cb_free_cb, this._cb_data); + } + this._cb_free_cb = null; + this._cb_data = IntPtr.Zero; + this._cb = null; + } + } + + public void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); + } + + internal Efl.Ui.PositionManager.ObjectBatchResult ManagedCb(Efl.Ui.PositionManager.RequestRange range, Eina.RwSlice memory) + { + Efl.Ui.PositionManager.RequestRange.NativeStruct _in_range = range; + var _ret_var = _cb(_cb_data, _in_range, memory); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + + internal static Efl.Ui.PositionManager.ObjectBatchResult.NativeStruct Cb(IntPtr cb_data, Efl.Ui.PositionManager.RequestRange.NativeStruct range, Eina.RwSlice memory) + { + GCHandle handle = GCHandle.FromIntPtr(cb_data); + ObjectBatchCallback cb = (ObjectBatchCallback)handle.Target; + Efl.Ui.PositionManager.RequestRange _in_range = range; + Efl.Ui.PositionManager.ObjectBatchResult _ret_var = default(Efl.Ui.PositionManager.ObjectBatchResult); + try { + _ret_var = cb(_in_range, memory); + } catch (Exception e) { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; + } +} +} + +} + +} + +namespace Efl { + +namespace Ui { + +namespace PositionManager { + +/// The configution for this call +/// The slice to fill the information in, the full slice will be filled if there are enough items +[Efl.Eo.BindingEntity] +public delegate Efl.Ui.PositionManager.SizeBatchResult SizeBatchCallback(Efl.Ui.PositionManager.SizeCallConfig conf, Eina.RwSlice memory); +public delegate Efl.Ui.PositionManager.SizeBatchResult.NativeStruct SizeBatchCallbackInternal(IntPtr data, Efl.Ui.PositionManager.SizeCallConfig.NativeStruct conf, Eina.RwSlice memory); +internal class SizeBatchCallbackWrapper : IDisposable +{ + + private SizeBatchCallbackInternal _cb; + private IntPtr _cb_data; + private EinaFreeCb _cb_free_cb; + + internal SizeBatchCallbackWrapper (SizeBatchCallbackInternal _cb, IntPtr _cb_data, EinaFreeCb _cb_free_cb) + { + this._cb = _cb; + this._cb_data = _cb_data; + this._cb_free_cb = _cb_free_cb; + } + + ~SizeBatchCallbackWrapper() + { + Dispose(false); + } + + protected virtual void Dispose(bool disposing) + { + if (this._cb_free_cb != null) + { + if (disposing) + { + this._cb_free_cb(this._cb_data); + } + else + { + Efl.Eo.Globals.ThreadSafeFreeCbExec(this._cb_free_cb, this._cb_data); + } + this._cb_free_cb = null; + this._cb_data = IntPtr.Zero; + this._cb = null; + } + } + + public void Dispose() + { + Dispose(true); + GC.SuppressFinalize(this); + } + + internal Efl.Ui.PositionManager.SizeBatchResult ManagedCb(Efl.Ui.PositionManager.SizeCallConfig conf, Eina.RwSlice memory) + { + Efl.Ui.PositionManager.SizeCallConfig.NativeStruct _in_conf = conf; + var _ret_var = _cb(_cb_data, _in_conf, memory); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + + internal static Efl.Ui.PositionManager.SizeBatchResult.NativeStruct Cb(IntPtr cb_data, Efl.Ui.PositionManager.SizeCallConfig.NativeStruct conf, Eina.RwSlice memory) + { + GCHandle handle = GCHandle.FromIntPtr(cb_data); + SizeBatchCallback cb = (SizeBatchCallback)handle.Target; + Efl.Ui.PositionManager.SizeCallConfig _in_conf = conf; + Efl.Ui.PositionManager.SizeBatchResult _ret_var = default(Efl.Ui.PositionManager.SizeBatchResult); + try { + _ret_var = cb(_in_conf, memory); + } catch (Exception e) { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + return _ret_var; + } +} +} + +} + +} + +namespace Efl { + +namespace Ui { + +namespace PositionManager { + +/// Interface for abstracting the data access of the position managers. +/// The idea here is that a data-provider, calls on the positon manager object and passes the functions that are defined here. At any pointer later in time, the position manager can call these function callbacks to get sizes or objects. A data-provider should always fill all requested items. If a item is not available null is inserted. If a size is not available, a as-close-as-possible approximation should be inserted. The Size callback is equipped with a parameter for if this is a caching request or not. This flag can be used to differentiate between two usecases. The size can be requested for building up a cache over all items. The size can also be requested for applying it to the object. The data-provider might needs to do heavy loading for getting the right size available, in case of a cache build up the as-close-as-possible aproximation is enough there. If it is real placement, the size should be correct. If a size changes after it was returned due to batching, this change still should be annonced with the function. +/// +/// The depth of the items is used to express a hierachical structure on the items themselves. Any given depth might or might not have a depth_leader. A group is ended when there is either a lower depth, or another depth_leader. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +[Efl.Ui.PositionManager.IDataAccessV1Concrete.NativeMethods] +[Efl.Eo.BindingEntity] +public interface IDataAccessV1 : + Efl.Eo.IWrapper, IDisposable +{ + /// This gives access to items to be managed. The manager reads this information and modifies the retrieved items' positions and sizes. +/// obj_access gives access to the graphical entitites to manage. Some of them might be NULL, meaning they are not yet ready to be displayed. Their size in the size_access array will be correct, though, so other entities can still be positioned correctly. Typically, only entities inside the viewport will be retrieved. +/// +/// size_access gives access to the 2D sizes for the items to manage. All sizes will always be valid, and might change over time (indicated through the method). The whole range might need to be traversed in order to calculate the position of all items in some arrangements. +/// +/// You can access a batch of objects or sizes by calling the here passed function callbacks. Further details can be found at the function definitions. +/// Function callback for canvas objects, even if the start_id is valid, the returned objects may be NULL. +/// Function callback for the size, returned values are always valid, but might be changed later on. +/// valid size for start_id, 0 <= i < size +void SetDataAccess(Efl.Ui.PositionManager.ObjectBatchCallback obj_access, Efl.Ui.PositionManager.SizeBatchCallback size_access, int size); + /// This gives access to items to be managed. The manager reads this information and modifies the retrieved items' positions and sizes. + /// obj_access gives access to the graphical entitites to manage. Some of them might be NULL, meaning they are not yet ready to be displayed. Their size in the size_access array will be correct, though, so other entities can still be positioned correctly. Typically, only entities inside the viewport will be retrieved. + /// + /// size_access gives access to the 2D sizes for the items to manage. All sizes will always be valid, and might change over time (indicated through the method). The whole range might need to be traversed in order to calculate the position of all items in some arrangements. + /// + /// You can access a batch of objects or sizes by calling the here passed function callbacks. Further details can be found at the function definitions. + /// Function callback for canvas objects, even if the start_id is valid, the returned objects may be NULL. + (Efl.Ui.PositionManager.ObjectBatchCallback, Efl.Ui.PositionManager.SizeBatchCallback, int) DataAccess { + set; + } +} +/// Interface for abstracting the data access of the position managers. +/// The idea here is that a data-provider, calls on the positon manager object and passes the functions that are defined here. At any pointer later in time, the position manager can call these function callbacks to get sizes or objects. A data-provider should always fill all requested items. If a item is not available null is inserted. If a size is not available, a as-close-as-possible approximation should be inserted. The Size callback is equipped with a parameter for if this is a caching request or not. This flag can be used to differentiate between two usecases. The size can be requested for building up a cache over all items. The size can also be requested for applying it to the object. The data-provider might needs to do heavy loading for getting the right size available, in case of a cache build up the as-close-as-possible aproximation is enough there. If it is real placement, the size should be correct. If a size changes after it was returned due to batching, this change still should be annonced with the function. +/// +/// The depth of the items is used to express a hierachical structure on the items themselves. Any given depth might or might not have a depth_leader. A group is ended when there is either a lower depth, or another depth_leader. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IDataAccessV1Concrete : + Efl.Eo.EoWrapper + , IDataAccessV1 + +{ + /// Pointer to the native class description. + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IDataAccessV1Concrete)) + { + return GetEflClassStatic(); + } + else + { + return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } + } + } + + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. + /// Tag struct storing the native handle of the object being constructed. + private IDataAccessV1Concrete(ConstructingHandle ch) : base(ch) + { + } + + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr + efl_ui_position_manager_data_access_v1_interface_get(); + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. + private IDataAccessV1Concrete(Efl.Eo.Globals.WrappingHandle wh) : base(wh) + { + } + + /// This gives access to items to be managed. The manager reads this information and modifies the retrieved items' positions and sizes. + /// obj_access gives access to the graphical entitites to manage. Some of them might be NULL, meaning they are not yet ready to be displayed. Their size in the size_access array will be correct, though, so other entities can still be positioned correctly. Typically, only entities inside the viewport will be retrieved. + /// + /// size_access gives access to the 2D sizes for the items to manage. All sizes will always be valid, and might change over time (indicated through the method). The whole range might need to be traversed in order to calculate the position of all items in some arrangements. + /// + /// You can access a batch of objects or sizes by calling the here passed function callbacks. Further details can be found at the function definitions. + /// Function callback for canvas objects, even if the start_id is valid, the returned objects may be NULL. + /// Function callback for the size, returned values are always valid, but might be changed later on. + /// valid size for start_id, 0 <= i < size + public void SetDataAccess(Efl.Ui.PositionManager.ObjectBatchCallback obj_access, Efl.Ui.PositionManager.SizeBatchCallback size_access, int size) { + GCHandle obj_access_handle = GCHandle.Alloc(obj_access); + GCHandle size_access_handle = GCHandle.Alloc(size_access); + Efl.Ui.PositionManager.IDataAccessV1Concrete.NativeMethods.efl_ui_position_manager_data_access_v1_data_access_set_ptr.Value.Delegate(this.NativeHandle,GCHandle.ToIntPtr(obj_access_handle), Efl.Ui.PositionManager.ObjectBatchCallbackWrapper.Cb, Efl.Eo.Globals.free_gchandle, GCHandle.ToIntPtr(size_access_handle), Efl.Ui.PositionManager.SizeBatchCallbackWrapper.Cb, Efl.Eo.Globals.free_gchandle, size); + Eina.Error.RaiseIfUnhandledException(); + } + /// This gives access to items to be managed. The manager reads this information and modifies the retrieved items' positions and sizes. + /// obj_access gives access to the graphical entitites to manage. Some of them might be NULL, meaning they are not yet ready to be displayed. Their size in the size_access array will be correct, though, so other entities can still be positioned correctly. Typically, only entities inside the viewport will be retrieved. + /// + /// size_access gives access to the 2D sizes for the items to manage. All sizes will always be valid, and might change over time (indicated through the method). The whole range might need to be traversed in order to calculate the position of all items in some arrangements. + /// + /// You can access a batch of objects or sizes by calling the here passed function callbacks. Further details can be found at the function definitions. + /// Function callback for canvas objects, even if the start_id is valid, the returned objects may be NULL. + public (Efl.Ui.PositionManager.ObjectBatchCallback, Efl.Ui.PositionManager.SizeBatchCallback, int) DataAccess { + set { SetDataAccess( value.Item1, value.Item2, value.Item3); } + } + private static IntPtr GetEflClassStatic() + { + return Efl.Ui.PositionManager.IDataAccessV1Concrete.efl_ui_position_manager_data_access_v1_interface_get(); + } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods + { + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// Gets the list of Eo operations to override. + /// The list of Eo operations to be overload. + public override System.Collections.Generic.List GetEoOps(System.Type type) + { + var descs = new System.Collections.Generic.List(); + var methods = Efl.Eo.Globals.GetUserMethods(type); + + if (efl_ui_position_manager_data_access_v1_data_access_set_static_delegate == null) + { + efl_ui_position_manager_data_access_v1_data_access_set_static_delegate = new efl_ui_position_manager_data_access_v1_data_access_set_delegate(data_access_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetDataAccess") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_data_access_v1_data_access_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_data_access_v1_data_access_set_static_delegate) }); + } + + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.PositionManager.IDataAccessV1Concrete.efl_ui_position_manager_data_access_v1_interface_get(); + } + + #pragma warning disable CA1707, CS1591, SA1300, SA1600 + + + private delegate void efl_ui_position_manager_data_access_v1_data_access_set_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr obj_access_data, Efl.Ui.PositionManager.ObjectBatchCallbackInternal obj_access, EinaFreeCb obj_access_free_cb, IntPtr size_access_data, Efl.Ui.PositionManager.SizeBatchCallbackInternal size_access, EinaFreeCb size_access_free_cb, int size); + + + public delegate void efl_ui_position_manager_data_access_v1_data_access_set_api_delegate(System.IntPtr obj, IntPtr obj_access_data, Efl.Ui.PositionManager.ObjectBatchCallbackInternal obj_access, EinaFreeCb obj_access_free_cb, IntPtr size_access_data, Efl.Ui.PositionManager.SizeBatchCallbackInternal size_access, EinaFreeCb size_access_free_cb, int size); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_data_access_v1_data_access_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_data_access_v1_data_access_set"); + + private static void data_access_set(System.IntPtr obj, System.IntPtr pd, IntPtr obj_access_data, Efl.Ui.PositionManager.ObjectBatchCallbackInternal obj_access, EinaFreeCb obj_access_free_cb, IntPtr size_access_data, Efl.Ui.PositionManager.SizeBatchCallbackInternal size_access, EinaFreeCb size_access_free_cb, int size) + { + Eina.Log.Debug("function efl_ui_position_manager_data_access_v1_data_access_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Ui.PositionManager.ObjectBatchCallbackWrapper obj_access_wrapper = new Efl.Ui.PositionManager.ObjectBatchCallbackWrapper(obj_access, obj_access_data, obj_access_free_cb); + Efl.Ui.PositionManager.SizeBatchCallbackWrapper size_access_wrapper = new Efl.Ui.PositionManager.SizeBatchCallbackWrapper(size_access, size_access_data, size_access_free_cb); + + try + { + ((IDataAccessV1)ws.Target).SetDataAccess(obj_access_wrapper.ManagedCb, size_access_wrapper.ManagedCb, size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_position_manager_data_access_v1_data_access_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), obj_access_data, obj_access, obj_access_free_cb, size_access_data, size_access, size_access_free_cb, size); + } + } + + private static efl_ui_position_manager_data_access_v1_data_access_set_delegate efl_ui_position_manager_data_access_v1_data_access_set_static_delegate; + + #pragma warning restore CA1707, CS1591, SA1300, SA1600 + +} +} +} + +} + +} + +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Ui_Position_ManagerIDataAccessV1Concrete_ExtensionMethods { + +} +#pragma warning restore CS1591 +#endif +namespace Efl { + +namespace Ui { + +namespace PositionManager { + +/// Representing the range of a request. +[StructLayout(LayoutKind.Sequential)] +[Efl.Eo.BindingEntity] +public struct RequestRange +{ + /// The first item that must be filled into the passed slice. + public uint Start_id; + /// The last item that must be filled into the passed slice. + public uint End_id; + /// Constructor for RequestRange. + /// The first item that must be filled into the passed slice.; + /// The last item that must be filled into the passed slice.; + public RequestRange( + uint Start_id = default(uint), + uint End_id = default(uint) ) + { + this.Start_id = Start_id; + this.End_id = End_id; + } + + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. + public static implicit operator RequestRange(IntPtr ptr) + { + var tmp = (RequestRange.NativeStruct)Marshal.PtrToStructure(ptr, typeof(RequestRange.NativeStruct)); + return tmp; + } + + #pragma warning disable CS1591 + + /// Internal wrapper for struct RequestRange. + [StructLayout(LayoutKind.Sequential)] + public struct NativeStruct + { + + public uint Start_id; + + public uint End_id; + /// Implicit conversion to the internal/marshalling representation. + public static implicit operator RequestRange.NativeStruct(RequestRange _external_struct) + { + var _internal_struct = new RequestRange.NativeStruct(); + _internal_struct.Start_id = _external_struct.Start_id; + _internal_struct.End_id = _external_struct.End_id; + return _internal_struct; + } + + /// Implicit conversion to the managed representation. + public static implicit operator RequestRange(RequestRange.NativeStruct _internal_struct) + { + var _external_struct = new RequestRange(); + _external_struct.Start_id = _internal_struct.Start_id; + _external_struct.End_id = _internal_struct.End_id; + return _external_struct; + } + + } + + #pragma warning restore CS1591 + +} + +} + +} + +} + +namespace Efl { + +namespace Ui { + +namespace PositionManager { + +/// Struct that is getting filled by the object function callback. +[StructLayout(LayoutKind.Sequential)] +[Efl.Eo.BindingEntity] +public struct ObjectBatchEntity +{ + /// The canvas object. + public Efl.Gfx.IEntity Entity; + /// The depth change in this returned entity. Every Element has a depth, if the parent is null the depth is 0. Every step deeper into the hirachy is exactly one depth deeper. If this depth has been different to the previous item, then this element can be seen as the group leader. The following elements with the same depth are in the same group. + public byte Element_depth; + /// true if this is the leader of a group + public bool Depth_leader; + /// Constructor for ObjectBatchEntity. + /// The canvas object.; + /// The depth change in this returned entity. Every Element has a depth, if the parent is null the depth is 0. Every step deeper into the hirachy is exactly one depth deeper. If this depth has been different to the previous item, then this element can be seen as the group leader. The following elements with the same depth are in the same group.; + /// true if this is the leader of a group; + public ObjectBatchEntity( + Efl.Gfx.IEntity Entity = default(Efl.Gfx.IEntity), + byte Element_depth = default(byte), + bool Depth_leader = default(bool) ) + { + this.Entity = Entity; + this.Element_depth = Element_depth; + this.Depth_leader = Depth_leader; + } + + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. + public static implicit operator ObjectBatchEntity(IntPtr ptr) + { + var tmp = (ObjectBatchEntity.NativeStruct)Marshal.PtrToStructure(ptr, typeof(ObjectBatchEntity.NativeStruct)); + return tmp; + } + + #pragma warning disable CS1591 + + /// Internal wrapper for struct ObjectBatchEntity. + [StructLayout(LayoutKind.Sequential)] + public struct NativeStruct + { + /// Internal wrapper for field Entity + public System.IntPtr Entity; + + public byte Element_depth; + /// Internal wrapper for field Depth_leader + public System.Byte Depth_leader; + /// Implicit conversion to the internal/marshalling representation. + public static implicit operator ObjectBatchEntity.NativeStruct(ObjectBatchEntity _external_struct) + { + var _internal_struct = new ObjectBatchEntity.NativeStruct(); + _internal_struct.Entity = _external_struct.Entity?.NativeHandle ?? System.IntPtr.Zero; + _internal_struct.Element_depth = _external_struct.Element_depth; + _internal_struct.Depth_leader = _external_struct.Depth_leader ? (byte)1 : (byte)0; + return _internal_struct; + } + + /// Implicit conversion to the managed representation. + public static implicit operator ObjectBatchEntity(ObjectBatchEntity.NativeStruct _internal_struct) + { + var _external_struct = new ObjectBatchEntity(); + + _external_struct.Entity = (Efl.Gfx.IEntityConcrete) Efl.Eo.Globals.CreateWrapperFor(_internal_struct.Entity); + _external_struct.Element_depth = _internal_struct.Element_depth; + _external_struct.Depth_leader = _internal_struct.Depth_leader != 0; + return _external_struct; + } + + } + + #pragma warning restore CS1591 + +} + +} + +} + +} + +namespace Efl { + +namespace Ui { + +namespace PositionManager { + +/// Struct that is getting filled by the size function callback. +[StructLayout(LayoutKind.Sequential)] +[Efl.Eo.BindingEntity] +public struct SizeBatchEntity +{ + /// The size of the element. + /// A 2D size in pixels. + public Eina.Size2D Size; + /// The depth change in this returned entity. Every Element has a depth, if the parent is null the depth is 0. Every step deeper into the hirachy is exactly one depth deeper. If this depth has been different to the previous item, then this element can be seen as the group leader. The following elements with the same depth are in the same group. + public byte Element_depth; + /// true if this is the leader of a group + public bool Depth_leader; + /// Constructor for SizeBatchEntity. + /// The size of the element.; + /// The depth change in this returned entity. Every Element has a depth, if the parent is null the depth is 0. Every step deeper into the hirachy is exactly one depth deeper. If this depth has been different to the previous item, then this element can be seen as the group leader. The following elements with the same depth are in the same group.; + /// true if this is the leader of a group; + public SizeBatchEntity( + Eina.Size2D Size = default(Eina.Size2D), + byte Element_depth = default(byte), + bool Depth_leader = default(bool) ) + { + this.Size = Size; + this.Element_depth = Element_depth; + this.Depth_leader = Depth_leader; + } + + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. + public static implicit operator SizeBatchEntity(IntPtr ptr) + { + var tmp = (SizeBatchEntity.NativeStruct)Marshal.PtrToStructure(ptr, typeof(SizeBatchEntity.NativeStruct)); + return tmp; + } + + #pragma warning disable CS1591 + + /// Internal wrapper for struct SizeBatchEntity. + [StructLayout(LayoutKind.Sequential)] + public struct NativeStruct + { + + public Eina.Size2D.NativeStruct Size; + + public byte Element_depth; + /// Internal wrapper for field Depth_leader + public System.Byte Depth_leader; + /// Implicit conversion to the internal/marshalling representation. + public static implicit operator SizeBatchEntity.NativeStruct(SizeBatchEntity _external_struct) + { + var _internal_struct = new SizeBatchEntity.NativeStruct(); + _internal_struct.Size = _external_struct.Size; + _internal_struct.Element_depth = _external_struct.Element_depth; + _internal_struct.Depth_leader = _external_struct.Depth_leader ? (byte)1 : (byte)0; + return _internal_struct; + } + + /// Implicit conversion to the managed representation. + public static implicit operator SizeBatchEntity(SizeBatchEntity.NativeStruct _internal_struct) + { + var _external_struct = new SizeBatchEntity(); + _external_struct.Size = _internal_struct.Size; + _external_struct.Element_depth = _internal_struct.Element_depth; + _external_struct.Depth_leader = _internal_struct.Depth_leader != 0; + return _external_struct; + } + + } + + #pragma warning restore CS1591 + +} + +} + +} + +} + +namespace Efl { + +namespace Ui { + +namespace PositionManager { + +/// Struct returned by the size access callback. +[StructLayout(LayoutKind.Sequential)] +[Efl.Eo.BindingEntity] +public struct SizeBatchResult +{ + /// The group size of the group where the first item is part of. + /// A 2D size in pixels. + public Eina.Size2D Parent_size; + /// The depth of the parent + public byte Parent_depth; + /// The number of items that are filled into the slice. + public uint Filled_items; + /// Constructor for SizeBatchResult. + /// The group size of the group where the first item is part of.; + /// The depth of the parent; + /// The number of items that are filled into the slice.; + public SizeBatchResult( + Eina.Size2D Parent_size = default(Eina.Size2D), + byte Parent_depth = default(byte), + uint Filled_items = default(uint) ) + { + this.Parent_size = Parent_size; + this.Parent_depth = Parent_depth; + this.Filled_items = Filled_items; + } + + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. + public static implicit operator SizeBatchResult(IntPtr ptr) + { + var tmp = (SizeBatchResult.NativeStruct)Marshal.PtrToStructure(ptr, typeof(SizeBatchResult.NativeStruct)); + return tmp; + } + + #pragma warning disable CS1591 + + /// Internal wrapper for struct SizeBatchResult. + [StructLayout(LayoutKind.Sequential)] + public struct NativeStruct + { + + public Eina.Size2D.NativeStruct Parent_size; + + public byte Parent_depth; + + public uint Filled_items; + /// Implicit conversion to the internal/marshalling representation. + public static implicit operator SizeBatchResult.NativeStruct(SizeBatchResult _external_struct) + { + var _internal_struct = new SizeBatchResult.NativeStruct(); + _internal_struct.Parent_size = _external_struct.Parent_size; + _internal_struct.Parent_depth = _external_struct.Parent_depth; + _internal_struct.Filled_items = _external_struct.Filled_items; + return _internal_struct; + } + + /// Implicit conversion to the managed representation. + public static implicit operator SizeBatchResult(SizeBatchResult.NativeStruct _internal_struct) + { + var _external_struct = new SizeBatchResult(); + _external_struct.Parent_size = _internal_struct.Parent_size; + _external_struct.Parent_depth = _internal_struct.Parent_depth; + _external_struct.Filled_items = _internal_struct.Filled_items; + return _external_struct; + } + + } + + #pragma warning restore CS1591 + +} + +} + +} + +} + +namespace Efl { + +namespace Ui { + +namespace PositionManager { + +/// Struct that is returned by the function callbacks. +[StructLayout(LayoutKind.Sequential)] +[Efl.Eo.BindingEntity] +public struct SizeCallConfig +{ + /// The range of items to fill into @.memory. The length of memory must be bigger or equal to the requested items + /// Representing the range of a request. + public Efl.Ui.PositionManager.RequestRange Range; + /// Indicate if this request is made for caching or displaying. If its for caching, the data-provider will fill in approximations, instead of doing heavy lifting from some backend. If this is not a caching call, the exact size should be requested and delivered at some later point. + public bool Cache_request; + /// Constructor for SizeCallConfig. + /// The range of items to fill into @.memory. The length of memory must be bigger or equal to the requested items; + /// Indicate if this request is made for caching or displaying. If its for caching, the data-provider will fill in approximations, instead of doing heavy lifting from some backend. If this is not a caching call, the exact size should be requested and delivered at some later point.; + public SizeCallConfig( + Efl.Ui.PositionManager.RequestRange Range = default(Efl.Ui.PositionManager.RequestRange), + bool Cache_request = default(bool) ) + { + this.Range = Range; + this.Cache_request = Cache_request; + } + + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. + public static implicit operator SizeCallConfig(IntPtr ptr) + { + var tmp = (SizeCallConfig.NativeStruct)Marshal.PtrToStructure(ptr, typeof(SizeCallConfig.NativeStruct)); + return tmp; + } + + #pragma warning disable CS1591 + + /// Internal wrapper for struct SizeCallConfig. + [StructLayout(LayoutKind.Sequential)] + public struct NativeStruct + { + + public Efl.Ui.PositionManager.RequestRange.NativeStruct Range; + /// Internal wrapper for field Cache_request + public System.Byte Cache_request; + /// Implicit conversion to the internal/marshalling representation. + public static implicit operator SizeCallConfig.NativeStruct(SizeCallConfig _external_struct) + { + var _internal_struct = new SizeCallConfig.NativeStruct(); + _internal_struct.Range = _external_struct.Range; + _internal_struct.Cache_request = _external_struct.Cache_request ? (byte)1 : (byte)0; + return _internal_struct; + } + + /// Implicit conversion to the managed representation. + public static implicit operator SizeCallConfig(SizeCallConfig.NativeStruct _internal_struct) + { + var _external_struct = new SizeCallConfig(); + _external_struct.Range = _internal_struct.Range; + _external_struct.Cache_request = _internal_struct.Cache_request != 0; + return _external_struct; + } + + } + + #pragma warning restore CS1591 + +} + +} + +} + +} + +namespace Efl { + +namespace Ui { + +namespace PositionManager { + +/// Struct returned by the object access callback +[StructLayout(LayoutKind.Sequential)] +[Efl.Eo.BindingEntity] +public struct ObjectBatchResult +{ + /// The group where the first item is part of + public Efl.Ui.Item Group; + /// The depth of the parent + public byte Parent_depth; + /// The number of items that are filled into the slice + public uint Filled_items; + /// Constructor for ObjectBatchResult. + /// The group where the first item is part of; + /// The depth of the parent; + /// The number of items that are filled into the slice; + public ObjectBatchResult( + Efl.Ui.Item Group = default(Efl.Ui.Item), + byte Parent_depth = default(byte), + uint Filled_items = default(uint) ) + { + this.Group = Group; + this.Parent_depth = Parent_depth; + this.Filled_items = Filled_items; + } + + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. + public static implicit operator ObjectBatchResult(IntPtr ptr) + { + var tmp = (ObjectBatchResult.NativeStruct)Marshal.PtrToStructure(ptr, typeof(ObjectBatchResult.NativeStruct)); + return tmp; + } + + #pragma warning disable CS1591 + + /// Internal wrapper for struct ObjectBatchResult. + [StructLayout(LayoutKind.Sequential)] + public struct NativeStruct + { + /// Internal wrapper for field Group + public System.IntPtr Group; + + public byte Parent_depth; + + public uint Filled_items; + /// Implicit conversion to the internal/marshalling representation. + public static implicit operator ObjectBatchResult.NativeStruct(ObjectBatchResult _external_struct) + { + var _internal_struct = new ObjectBatchResult.NativeStruct(); + _internal_struct.Group = _external_struct.Group?.NativeHandle ?? System.IntPtr.Zero; + _internal_struct.Parent_depth = _external_struct.Parent_depth; + _internal_struct.Filled_items = _external_struct.Filled_items; + return _internal_struct; + } + + /// Implicit conversion to the managed representation. + public static implicit operator ObjectBatchResult(ObjectBatchResult.NativeStruct _internal_struct) + { + var _external_struct = new ObjectBatchResult(); + + _external_struct.Group = (Efl.Ui.Item) Efl.Eo.Globals.CreateWrapperFor(_internal_struct.Group); + _external_struct.Parent_depth = _internal_struct.Parent_depth; + _external_struct.Filled_items = _internal_struct.Filled_items; + return _external_struct; + } + + } + + #pragma warning restore CS1591 + +} + +} + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_position_manager_entity.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_position_manager_entity.eo.cs new file mode 100755 index 000000000..792e09997 --- /dev/null +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_position_manager_entity.eo.cs @@ -0,0 +1,998 @@ +#define EFL_BETA +#pragma warning disable CS1591 +using System; +using System.Runtime.InteropServices; +using System.Collections.Generic; +using System.Linq; +using System.Threading; +using System.ComponentModel; +namespace Efl { + +namespace Ui { + +namespace PositionManager { + +/// This abstracts the basic placement of items in a not defined form under a viewport. +/// The interface gets a defined set of elements that is meant to be displayed. The implementation provides a way to calculate the size that is required to display all items. Every time this absolut size of items is changed, content_size,changed is called. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +[Efl.Ui.PositionManager.IEntityConcrete.NativeMethods] +[Efl.Eo.BindingEntity] +public interface IEntity : + Efl.Ui.ILayoutOrientable , + Efl.Eo.IWrapper, IDisposable +{ + /// This is the position and size of the viewport, where elements are displayed in. Entities outside this viewport will not be shown. +void SetViewport(Eina.Rect viewport); + /// Move the items relative to the viewport. +/// The items that are managed with this position manager might be bigger than the actual viewport. The positioning of the layer where all items are on is described by these values. 0.0,0.0 means that layer is moved that the top left items are shown, 1.0,1.0 means, that the lower right items are shown. +/// X position of the scroller, valid form 0 to 1.0 +/// Y position of the scroller, valid form 0 to 1.0 +void SetScrollPosition(double x, double y); + /// Return the version of Data_Access that is used. This object needs to implement the interface Efl.Ui.Position_Manager.Data_Access_V1 if 1 is returned. 2 if V2 (not available yet) is implemented. +/// The maximum version that is available from the data-provider. +/// The version that should be used here. 0 is an error. +int Version(int max); + /// Return the position and size of item idx +/// This method returns the size and position of the item at idx. Even if the item is outside the viewport, the returned rectangle must be valid. The result can be used for scrolling calculations. +/// The id for the item +/// Position and Size in canvas coordinations +Eina.Rect PositionSingleItem(int idx); + /// The new item subobj has been added at the added_index field. +/// The accessor provided through will contain updated Entities. +void ItemAdded(int added_index, Efl.Gfx.IEntity subobj); + /// The item subobj previously at position removed_index has been removed. The accessor provided through will contain updated Entities. +void ItemRemoved(int removed_index, Efl.Gfx.IEntity subobj); + /// The size of the items from start_id to end_id have been changed. The positioning and sizing of all items will be updated +/// The first item that has a new size +/// The last item that has a new size +void ItemSizeChanged(int start_id, int end_id); + /// translate the current_id, into a new id which is oriented in the direction of current_id. In case that there is no item, -1 is returned +/// The id where the direction is oriented at +/// The direction where the new id is +/// The id of the item in that direction, or -1 if there is no item in that direction +int RelativeItem(uint current_id, Efl.Ui.Focus.Direction direction); + /// Emitted when the aggregate size of all items has changed. This can be used to resize an enclosing Pan object. + /// + event EventHandler ContentSizeChangedEvt; + /// Emitted when the minimum size of all items has changed. The minimum size is the size, that this position_manager needs at *least* to display a single item. + /// + event EventHandler ContentMinSizeChangedEvt; + /// + event EventHandler VisibleRangeChangedEvt; + /// This is the position and size of the viewport, where elements are displayed in. Entities outside this viewport will not be shown. + Eina.Rect Viewport { + set; + } + /// Move the items relative to the viewport. + /// The items that are managed with this position manager might be bigger than the actual viewport. The positioning of the layer where all items are on is described by these values. 0.0,0.0 means that layer is moved that the top left items are shown, 1.0,1.0 means, that the lower right items are shown. + /// X position of the scroller, valid form 0 to 1.0 + (double, double) ScrollPosition { + set; + } +} +/// Event argument wrapper for event . +[Efl.Eo.BindingEntity] +public class IEntityContentSizeChangedEvt_Args : EventArgs { + /// Actual event payload. + /// Emitted when the aggregate size of all items has changed. This can be used to resize an enclosing Pan object. + public Eina.Size2D arg { get; set; } +} +/// Event argument wrapper for event . +[Efl.Eo.BindingEntity] +public class IEntityContentMinSizeChangedEvt_Args : EventArgs { + /// Actual event payload. + /// Emitted when the minimum size of all items has changed. The minimum size is the size, that this position_manager needs at *least* to display a single item. + public Eina.Size2D arg { get; set; } +} +/// Event argument wrapper for event . +[Efl.Eo.BindingEntity] +public class IEntityVisibleRangeChangedEvt_Args : EventArgs { + /// Actual event payload. + /// + public Efl.Ui.PositionManager.RangeUpdate arg { get; set; } +} +/// This abstracts the basic placement of items in a not defined form under a viewport. +/// The interface gets a defined set of elements that is meant to be displayed. The implementation provides a way to calculate the size that is required to display all items. Every time this absolut size of items is changed, content_size,changed is called. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IEntityConcrete : + Efl.Eo.EoWrapper + , IEntity + , Efl.Ui.ILayoutOrientable +{ + /// Pointer to the native class description. + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IEntityConcrete)) + { + return GetEflClassStatic(); + } + else + { + return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } + } + } + + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. + /// Tag struct storing the native handle of the object being constructed. + private IEntityConcrete(ConstructingHandle ch) : base(ch) + { + } + + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr + efl_ui_position_manager_entity_interface_get(); + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. + private IEntityConcrete(Efl.Eo.Globals.WrappingHandle wh) : base(wh) + { + } + + /// Emitted when the aggregate size of all items has changed. This can be used to resize an enclosing Pan object. + /// + public event EventHandler ContentSizeChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.PositionManager.IEntityContentSizeChangedEvt_Args args = new Efl.Ui.PositionManager.IEntityContentSizeChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_CONTENT_SIZE_CHANGED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_CONTENT_SIZE_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ContentSizeChangedEvt. + public void OnContentSizeChangedEvt(Efl.Ui.PositionManager.IEntityContentSizeChangedEvt_Args e) + { + var key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_CONTENT_SIZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Emitted when the minimum size of all items has changed. The minimum size is the size, that this position_manager needs at *least* to display a single item. + /// + public event EventHandler ContentMinSizeChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.PositionManager.IEntityContentMinSizeChangedEvt_Args args = new Efl.Ui.PositionManager.IEntityContentMinSizeChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_CONTENT_MIN_SIZE_CHANGED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_CONTENT_MIN_SIZE_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ContentMinSizeChangedEvt. + public void OnContentMinSizeChangedEvt(Efl.Ui.PositionManager.IEntityContentMinSizeChangedEvt_Args e) + { + var key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_CONTENT_MIN_SIZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// + public event EventHandler VisibleRangeChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.PositionManager.IEntityVisibleRangeChangedEvt_Args args = new Efl.Ui.PositionManager.IEntityVisibleRangeChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_VISIBLE_RANGE_CHANGED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_VISIBLE_RANGE_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event VisibleRangeChangedEvt. + public void OnVisibleRangeChangedEvt(Efl.Ui.PositionManager.IEntityVisibleRangeChangedEvt_Args e) + { + var key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_VISIBLE_RANGE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// This is the position and size of the viewport, where elements are displayed in. Entities outside this viewport will not be shown. + public void SetViewport(Eina.Rect viewport) { + Eina.Rect.NativeStruct _in_viewport = viewport; + Efl.Ui.PositionManager.IEntityConcrete.NativeMethods.efl_ui_position_manager_entity_viewport_set_ptr.Value.Delegate(this.NativeHandle,_in_viewport); + Eina.Error.RaiseIfUnhandledException(); + } + /// Move the items relative to the viewport. + /// The items that are managed with this position manager might be bigger than the actual viewport. The positioning of the layer where all items are on is described by these values. 0.0,0.0 means that layer is moved that the top left items are shown, 1.0,1.0 means, that the lower right items are shown. + /// X position of the scroller, valid form 0 to 1.0 + /// Y position of the scroller, valid form 0 to 1.0 + public void SetScrollPosition(double x, double y) { + Efl.Ui.PositionManager.IEntityConcrete.NativeMethods.efl_ui_position_manager_entity_scroll_position_set_ptr.Value.Delegate(this.NativeHandle,x, y); + Eina.Error.RaiseIfUnhandledException(); + } + /// Return the version of Data_Access that is used. This object needs to implement the interface Efl.Ui.Position_Manager.Data_Access_V1 if 1 is returned. 2 if V2 (not available yet) is implemented. + /// The maximum version that is available from the data-provider. + /// The version that should be used here. 0 is an error. + public int Version(int max) { + var _ret_var = Efl.Ui.PositionManager.IEntityConcrete.NativeMethods.efl_ui_position_manager_entity_version_ptr.Value.Delegate(this.NativeHandle,max); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Return the position and size of item idx + /// This method returns the size and position of the item at idx. Even if the item is outside the viewport, the returned rectangle must be valid. The result can be used for scrolling calculations. + /// The id for the item + /// Position and Size in canvas coordinations + public Eina.Rect PositionSingleItem(int idx) { + var _ret_var = Efl.Ui.PositionManager.IEntityConcrete.NativeMethods.efl_ui_position_manager_entity_position_single_item_ptr.Value.Delegate(this.NativeHandle,idx); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// The new item subobj has been added at the added_index field. + /// The accessor provided through will contain updated Entities. + public void ItemAdded(int added_index, Efl.Gfx.IEntity subobj) { + Efl.Ui.PositionManager.IEntityConcrete.NativeMethods.efl_ui_position_manager_entity_item_added_ptr.Value.Delegate(this.NativeHandle,added_index, subobj); + Eina.Error.RaiseIfUnhandledException(); + } + /// The item subobj previously at position removed_index has been removed. The accessor provided through will contain updated Entities. + public void ItemRemoved(int removed_index, Efl.Gfx.IEntity subobj) { + Efl.Ui.PositionManager.IEntityConcrete.NativeMethods.efl_ui_position_manager_entity_item_removed_ptr.Value.Delegate(this.NativeHandle,removed_index, subobj); + Eina.Error.RaiseIfUnhandledException(); + } + /// The size of the items from start_id to end_id have been changed. The positioning and sizing of all items will be updated + /// The first item that has a new size + /// The last item that has a new size + public void ItemSizeChanged(int start_id, int end_id) { + Efl.Ui.PositionManager.IEntityConcrete.NativeMethods.efl_ui_position_manager_entity_item_size_changed_ptr.Value.Delegate(this.NativeHandle,start_id, end_id); + Eina.Error.RaiseIfUnhandledException(); + } + /// translate the current_id, into a new id which is oriented in the direction of current_id. In case that there is no item, -1 is returned + /// The id where the direction is oriented at + /// The direction where the new id is + /// The id of the item in that direction, or -1 if there is no item in that direction + public int RelativeItem(uint current_id, Efl.Ui.Focus.Direction direction) { + var _ret_var = Efl.Ui.PositionManager.IEntityConcrete.NativeMethods.efl_ui_position_manager_entity_relative_item_ptr.Value.Delegate(this.NativeHandle,current_id, direction); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Control the direction of a given widget. + /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. + /// + /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. + /// Direction of the widget. + public Efl.Ui.LayoutOrientation GetOrientation() { + var _ret_var = Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_get_ptr.Value.Delegate(this.NativeHandle); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Control the direction of a given widget. + /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. + /// + /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. + /// Direction of the widget. + public void SetOrientation(Efl.Ui.LayoutOrientation dir) { + Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_set_ptr.Value.Delegate(this.NativeHandle,dir); + Eina.Error.RaiseIfUnhandledException(); + } + /// This is the position and size of the viewport, where elements are displayed in. Entities outside this viewport will not be shown. + public Eina.Rect Viewport { + set { SetViewport(value); } + } + /// Move the items relative to the viewport. + /// The items that are managed with this position manager might be bigger than the actual viewport. The positioning of the layer where all items are on is described by these values. 0.0,0.0 means that layer is moved that the top left items are shown, 1.0,1.0 means, that the lower right items are shown. + /// X position of the scroller, valid form 0 to 1.0 + public (double, double) ScrollPosition { + set { SetScrollPosition( value.Item1, value.Item2); } + } + /// Control the direction of a given widget. + /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. + /// + /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. + /// Direction of the widget. + public Efl.Ui.LayoutOrientation Orientation { + get { return GetOrientation(); } + set { SetOrientation(value); } + } + private static IntPtr GetEflClassStatic() + { + return Efl.Ui.PositionManager.IEntityConcrete.efl_ui_position_manager_entity_interface_get(); + } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods + { + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// Gets the list of Eo operations to override. + /// The list of Eo operations to be overload. + public override System.Collections.Generic.List GetEoOps(System.Type type) + { + var descs = new System.Collections.Generic.List(); + var methods = Efl.Eo.Globals.GetUserMethods(type); + + if (efl_ui_position_manager_entity_viewport_set_static_delegate == null) + { + efl_ui_position_manager_entity_viewport_set_static_delegate = new efl_ui_position_manager_entity_viewport_set_delegate(viewport_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetViewport") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_entity_viewport_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_entity_viewport_set_static_delegate) }); + } + + if (efl_ui_position_manager_entity_scroll_position_set_static_delegate == null) + { + efl_ui_position_manager_entity_scroll_position_set_static_delegate = new efl_ui_position_manager_entity_scroll_position_set_delegate(scroll_position_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScrollPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_entity_scroll_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_entity_scroll_position_set_static_delegate) }); + } + + if (efl_ui_position_manager_entity_version_static_delegate == null) + { + efl_ui_position_manager_entity_version_static_delegate = new efl_ui_position_manager_entity_version_delegate(version); + } + + if (methods.FirstOrDefault(m => m.Name == "Version") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_entity_version"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_entity_version_static_delegate) }); + } + + if (efl_ui_position_manager_entity_position_single_item_static_delegate == null) + { + efl_ui_position_manager_entity_position_single_item_static_delegate = new efl_ui_position_manager_entity_position_single_item_delegate(position_single_item); + } + + if (methods.FirstOrDefault(m => m.Name == "PositionSingleItem") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_entity_position_single_item"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_entity_position_single_item_static_delegate) }); + } + + if (efl_ui_position_manager_entity_item_added_static_delegate == null) + { + efl_ui_position_manager_entity_item_added_static_delegate = new efl_ui_position_manager_entity_item_added_delegate(item_added); + } + + if (methods.FirstOrDefault(m => m.Name == "ItemAdded") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_entity_item_added"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_entity_item_added_static_delegate) }); + } + + if (efl_ui_position_manager_entity_item_removed_static_delegate == null) + { + efl_ui_position_manager_entity_item_removed_static_delegate = new efl_ui_position_manager_entity_item_removed_delegate(item_removed); + } + + if (methods.FirstOrDefault(m => m.Name == "ItemRemoved") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_entity_item_removed"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_entity_item_removed_static_delegate) }); + } + + if (efl_ui_position_manager_entity_item_size_changed_static_delegate == null) + { + efl_ui_position_manager_entity_item_size_changed_static_delegate = new efl_ui_position_manager_entity_item_size_changed_delegate(item_size_changed); + } + + if (methods.FirstOrDefault(m => m.Name == "ItemSizeChanged") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_entity_item_size_changed"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_entity_item_size_changed_static_delegate) }); + } + + if (efl_ui_position_manager_entity_relative_item_static_delegate == null) + { + efl_ui_position_manager_entity_relative_item_static_delegate = new efl_ui_position_manager_entity_relative_item_delegate(relative_item); + } + + if (methods.FirstOrDefault(m => m.Name == "RelativeItem") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_entity_relative_item"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_entity_relative_item_static_delegate) }); + } + + if (efl_ui_layout_orientation_get_static_delegate == null) + { + efl_ui_layout_orientation_get_static_delegate = new efl_ui_layout_orientation_get_delegate(orientation_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetOrientation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_layout_orientation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_orientation_get_static_delegate) }); + } + + if (efl_ui_layout_orientation_set_static_delegate == null) + { + efl_ui_layout_orientation_set_static_delegate = new efl_ui_layout_orientation_set_delegate(orientation_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetOrientation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_layout_orientation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_orientation_set_static_delegate) }); + } + + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.PositionManager.IEntityConcrete.efl_ui_position_manager_entity_interface_get(); + } + + #pragma warning disable CA1707, CS1591, SA1300, SA1600 + + + private delegate void efl_ui_position_manager_entity_viewport_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); + + + public delegate void efl_ui_position_manager_entity_viewport_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_entity_viewport_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_entity_viewport_set"); + + private static void viewport_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) + { + Eina.Log.Debug("function efl_ui_position_manager_entity_viewport_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Rect _in_viewport = viewport; + + try + { + ((IEntity)ws.Target).SetViewport(_in_viewport); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_position_manager_entity_viewport_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); + } + } + + private static efl_ui_position_manager_entity_viewport_set_delegate efl_ui_position_manager_entity_viewport_set_static_delegate; + + + private delegate void efl_ui_position_manager_entity_scroll_position_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void efl_ui_position_manager_entity_scroll_position_set_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_entity_scroll_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_entity_scroll_position_set"); + + private static void scroll_position_set(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_ui_position_manager_entity_scroll_position_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((IEntity)ws.Target).SetScrollPosition(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_position_manager_entity_scroll_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } + + private static efl_ui_position_manager_entity_scroll_position_set_delegate efl_ui_position_manager_entity_scroll_position_set_static_delegate; + + + private delegate int efl_ui_position_manager_entity_version_delegate(System.IntPtr obj, System.IntPtr pd, int max); + + + public delegate int efl_ui_position_manager_entity_version_api_delegate(System.IntPtr obj, int max); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_entity_version_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_entity_version"); + + private static int version(System.IntPtr obj, System.IntPtr pd, int max) + { + Eina.Log.Debug("function efl_ui_position_manager_entity_version was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((IEntity)ws.Target).Version(max); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_position_manager_entity_version_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), max); + } + } + + private static efl_ui_position_manager_entity_version_delegate efl_ui_position_manager_entity_version_static_delegate; + + + private delegate Eina.Rect.NativeStruct efl_ui_position_manager_entity_position_single_item_delegate(System.IntPtr obj, System.IntPtr pd, int idx); + + + public delegate Eina.Rect.NativeStruct efl_ui_position_manager_entity_position_single_item_api_delegate(System.IntPtr obj, int idx); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_entity_position_single_item_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_entity_position_single_item"); + + private static Eina.Rect.NativeStruct position_single_item(System.IntPtr obj, System.IntPtr pd, int idx) + { + Eina.Log.Debug("function efl_ui_position_manager_entity_position_single_item was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((IEntity)ws.Target).PositionSingleItem(idx); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_position_manager_entity_position_single_item_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx); + } + } + + private static efl_ui_position_manager_entity_position_single_item_delegate efl_ui_position_manager_entity_position_single_item_static_delegate; + + + private delegate void efl_ui_position_manager_entity_item_added_delegate(System.IntPtr obj, System.IntPtr pd, int added_index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + + public delegate void efl_ui_position_manager_entity_item_added_api_delegate(System.IntPtr obj, int added_index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_entity_item_added_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_entity_item_added"); + + private static void item_added(System.IntPtr obj, System.IntPtr pd, int added_index, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_ui_position_manager_entity_item_added was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((IEntity)ws.Target).ItemAdded(added_index, subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_position_manager_entity_item_added_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), added_index, subobj); + } + } + + private static efl_ui_position_manager_entity_item_added_delegate efl_ui_position_manager_entity_item_added_static_delegate; + + + private delegate void efl_ui_position_manager_entity_item_removed_delegate(System.IntPtr obj, System.IntPtr pd, int removed_index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + + public delegate void efl_ui_position_manager_entity_item_removed_api_delegate(System.IntPtr obj, int removed_index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_entity_item_removed_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_entity_item_removed"); + + private static void item_removed(System.IntPtr obj, System.IntPtr pd, int removed_index, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_ui_position_manager_entity_item_removed was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((IEntity)ws.Target).ItemRemoved(removed_index, subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_position_manager_entity_item_removed_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), removed_index, subobj); + } + } + + private static efl_ui_position_manager_entity_item_removed_delegate efl_ui_position_manager_entity_item_removed_static_delegate; + + + private delegate void efl_ui_position_manager_entity_item_size_changed_delegate(System.IntPtr obj, System.IntPtr pd, int start_id, int end_id); + + + public delegate void efl_ui_position_manager_entity_item_size_changed_api_delegate(System.IntPtr obj, int start_id, int end_id); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_entity_item_size_changed_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_entity_item_size_changed"); + + private static void item_size_changed(System.IntPtr obj, System.IntPtr pd, int start_id, int end_id) + { + Eina.Log.Debug("function efl_ui_position_manager_entity_item_size_changed was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((IEntity)ws.Target).ItemSizeChanged(start_id, end_id); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_position_manager_entity_item_size_changed_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start_id, end_id); + } + } + + private static efl_ui_position_manager_entity_item_size_changed_delegate efl_ui_position_manager_entity_item_size_changed_static_delegate; + + + private delegate int efl_ui_position_manager_entity_relative_item_delegate(System.IntPtr obj, System.IntPtr pd, uint current_id, Efl.Ui.Focus.Direction direction); + + + public delegate int efl_ui_position_manager_entity_relative_item_api_delegate(System.IntPtr obj, uint current_id, Efl.Ui.Focus.Direction direction); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_entity_relative_item_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_entity_relative_item"); + + private static int relative_item(System.IntPtr obj, System.IntPtr pd, uint current_id, Efl.Ui.Focus.Direction direction) + { + Eina.Log.Debug("function efl_ui_position_manager_entity_relative_item was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((IEntity)ws.Target).RelativeItem(current_id, direction); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_position_manager_entity_relative_item_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), current_id, direction); + } + } + + private static efl_ui_position_manager_entity_relative_item_delegate efl_ui_position_manager_entity_relative_item_static_delegate; + + + private delegate Efl.Ui.LayoutOrientation efl_ui_layout_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.LayoutOrientation efl_ui_layout_orientation_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_layout_orientation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_layout_orientation_get"); + + private static Efl.Ui.LayoutOrientation orientation_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_layout_orientation_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Ui.LayoutOrientation _ret_var = default(Efl.Ui.LayoutOrientation); + try + { + _ret_var = ((IEntity)ws.Target).GetOrientation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_layout_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_layout_orientation_get_delegate efl_ui_layout_orientation_get_static_delegate; + + + private delegate void efl_ui_layout_orientation_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.LayoutOrientation dir); + + + public delegate void efl_ui_layout_orientation_set_api_delegate(System.IntPtr obj, Efl.Ui.LayoutOrientation dir); + + public static Efl.Eo.FunctionWrapper efl_ui_layout_orientation_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_layout_orientation_set"); + + private static void orientation_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.LayoutOrientation dir) + { + Eina.Log.Debug("function efl_ui_layout_orientation_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((IEntity)ws.Target).SetOrientation(dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_layout_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); + } + } + + private static efl_ui_layout_orientation_set_delegate efl_ui_layout_orientation_set_static_delegate; + + #pragma warning restore CA1707, CS1591, SA1300, SA1600 + +} +} +} + +} + +} + +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Ui_Position_ManagerIEntityConcrete_ExtensionMethods { + public static Efl.BindableProperty Viewport(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.PositionManager.IEntity { + return new Efl.BindableProperty("viewport", fac); + } + + + public static Efl.BindableProperty Orientation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.PositionManager.IEntity { + return new Efl.BindableProperty("orientation", fac); + } + +} +#pragma warning restore CS1591 +#endif +namespace Efl { + +namespace Ui { + +namespace PositionManager { + +/// A struct containing the the updated range of visible items in this position manger. +[StructLayout(LayoutKind.Sequential)] +[Efl.Eo.BindingEntity] +public struct RangeUpdate +{ + /// The first item that is visible + public uint Start_id; + /// The last item that is visible + public uint End_id; + /// Constructor for RangeUpdate. + /// The first item that is visible; + /// The last item that is visible; + public RangeUpdate( + uint Start_id = default(uint), + uint End_id = default(uint) ) + { + this.Start_id = Start_id; + this.End_id = End_id; + } + + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. + public static implicit operator RangeUpdate(IntPtr ptr) + { + var tmp = (RangeUpdate.NativeStruct)Marshal.PtrToStructure(ptr, typeof(RangeUpdate.NativeStruct)); + return tmp; + } + + #pragma warning disable CS1591 + + /// Internal wrapper for struct RangeUpdate. + [StructLayout(LayoutKind.Sequential)] + public struct NativeStruct + { + + public uint Start_id; + + public uint End_id; + /// Implicit conversion to the internal/marshalling representation. + public static implicit operator RangeUpdate.NativeStruct(RangeUpdate _external_struct) + { + var _internal_struct = new RangeUpdate.NativeStruct(); + _internal_struct.Start_id = _external_struct.Start_id; + _internal_struct.End_id = _external_struct.End_id; + return _internal_struct; + } + + /// Implicit conversion to the managed representation. + public static implicit operator RangeUpdate(RangeUpdate.NativeStruct _internal_struct) + { + var _external_struct = new RangeUpdate(); + _external_struct.Start_id = _internal_struct.Start_id; + _external_struct.End_id = _internal_struct.End_id; + return _external_struct; + } + + } + + #pragma warning restore CS1591 + +} + +} + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_position_manager_grid.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_position_manager_grid.eo.cs new file mode 100755 index 000000000..3d414ef11 --- /dev/null +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_position_manager_grid.eo.cs @@ -0,0 +1,934 @@ +#define EFL_BETA +#pragma warning disable CS1591 +using System; +using System.Runtime.InteropServices; +using System.Collections.Generic; +using System.Linq; +using System.Threading; +using System.ComponentModel; +namespace Efl { + +namespace Ui { + +namespace PositionManager { + +/// Implementation of for two-dimensional grids. +/// Every item in the grid has the same size, which is the biggest minimum size of all items. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +[Efl.Ui.PositionManager.Grid.NativeMethods] +[Efl.Eo.BindingEntity] +public class Grid : Efl.Object, Efl.Ui.ILayoutOrientable, Efl.Ui.PositionManager.IDataAccessV1, Efl.Ui.PositionManager.IEntity +{ + /// Pointer to the native class description. + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(Grid)) + { + return GetEflClassStatic(); + } + else + { + return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } + } + } + + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr + efl_ui_position_manager_grid_class_get(); + /// Initializes a new instance of the class. + /// Parent instance. + public Grid(Efl.Object parent= null + ) : base(efl_ui_position_manager_grid_class_get(), parent) + { + FinishInstantiation(); + } + + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. + /// Tag struct storing the native handle of the object being constructed. + protected Grid(ConstructingHandle ch) : base(ch) + { + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. + protected Grid(Efl.Eo.Globals.WrappingHandle wh) : base(wh) + { + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The Efl.Object parent of this instance. + protected Grid(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) + { + } + + /// Emitted when the aggregate size of all items has changed. This can be used to resize an enclosing Pan object. + /// + public event EventHandler ContentSizeChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.PositionManager.IEntityContentSizeChangedEvt_Args args = new Efl.Ui.PositionManager.IEntityContentSizeChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_CONTENT_SIZE_CHANGED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_CONTENT_SIZE_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ContentSizeChangedEvt. + public void OnContentSizeChangedEvt(Efl.Ui.PositionManager.IEntityContentSizeChangedEvt_Args e) + { + var key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_CONTENT_SIZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Emitted when the minimum size of all items has changed. The minimum size is the size, that this position_manager needs at *least* to display a single item. + /// + public event EventHandler ContentMinSizeChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.PositionManager.IEntityContentMinSizeChangedEvt_Args args = new Efl.Ui.PositionManager.IEntityContentMinSizeChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_CONTENT_MIN_SIZE_CHANGED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_CONTENT_MIN_SIZE_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ContentMinSizeChangedEvt. + public void OnContentMinSizeChangedEvt(Efl.Ui.PositionManager.IEntityContentMinSizeChangedEvt_Args e) + { + var key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_CONTENT_MIN_SIZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// + public event EventHandler VisibleRangeChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.PositionManager.IEntityVisibleRangeChangedEvt_Args args = new Efl.Ui.PositionManager.IEntityVisibleRangeChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_VISIBLE_RANGE_CHANGED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_VISIBLE_RANGE_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event VisibleRangeChangedEvt. + public void OnVisibleRangeChangedEvt(Efl.Ui.PositionManager.IEntityVisibleRangeChangedEvt_Args e) + { + var key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_VISIBLE_RANGE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Control the direction of a given widget. + /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. + /// + /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. + /// Direction of the widget. + virtual public Efl.Ui.LayoutOrientation GetOrientation() { + var _ret_var = Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Control the direction of a given widget. + /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. + /// + /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. + /// Direction of the widget. + virtual public void SetOrientation(Efl.Ui.LayoutOrientation dir) { + Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),dir); + Eina.Error.RaiseIfUnhandledException(); + } + /// This gives access to items to be managed. The manager reads this information and modifies the retrieved items' positions and sizes. + /// obj_access gives access to the graphical entitites to manage. Some of them might be NULL, meaning they are not yet ready to be displayed. Their size in the size_access array will be correct, though, so other entities can still be positioned correctly. Typically, only entities inside the viewport will be retrieved. + /// + /// size_access gives access to the 2D sizes for the items to manage. All sizes will always be valid, and might change over time (indicated through the method). The whole range might need to be traversed in order to calculate the position of all items in some arrangements. + /// + /// You can access a batch of objects or sizes by calling the here passed function callbacks. Further details can be found at the function definitions. + /// Function callback for canvas objects, even if the start_id is valid, the returned objects may be NULL. + /// Function callback for the size, returned values are always valid, but might be changed later on. + /// valid size for start_id, 0 <= i < size + virtual public void SetDataAccess(Efl.Ui.PositionManager.ObjectBatchCallback obj_access, Efl.Ui.PositionManager.SizeBatchCallback size_access, int size) { + GCHandle obj_access_handle = GCHandle.Alloc(obj_access); + GCHandle size_access_handle = GCHandle.Alloc(size_access); + Efl.Ui.PositionManager.IDataAccessV1Concrete.NativeMethods.efl_ui_position_manager_data_access_v1_data_access_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),GCHandle.ToIntPtr(obj_access_handle), Efl.Ui.PositionManager.ObjectBatchCallbackWrapper.Cb, Efl.Eo.Globals.free_gchandle, GCHandle.ToIntPtr(size_access_handle), Efl.Ui.PositionManager.SizeBatchCallbackWrapper.Cb, Efl.Eo.Globals.free_gchandle, size); + Eina.Error.RaiseIfUnhandledException(); + } + /// This is the position and size of the viewport, where elements are displayed in. Entities outside this viewport will not be shown. + virtual public void SetViewport(Eina.Rect viewport) { + Eina.Rect.NativeStruct _in_viewport = viewport; + Efl.Ui.PositionManager.IEntityConcrete.NativeMethods.efl_ui_position_manager_entity_viewport_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_viewport); + Eina.Error.RaiseIfUnhandledException(); + } + /// Move the items relative to the viewport. + /// The items that are managed with this position manager might be bigger than the actual viewport. The positioning of the layer where all items are on is described by these values. 0.0,0.0 means that layer is moved that the top left items are shown, 1.0,1.0 means, that the lower right items are shown. + /// X position of the scroller, valid form 0 to 1.0 + /// Y position of the scroller, valid form 0 to 1.0 + virtual public void SetScrollPosition(double x, double y) { + Efl.Ui.PositionManager.IEntityConcrete.NativeMethods.efl_ui_position_manager_entity_scroll_position_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),x, y); + Eina.Error.RaiseIfUnhandledException(); + } + /// Return the version of Data_Access that is used. This object needs to implement the interface Efl.Ui.Position_Manager.Data_Access_V1 if 1 is returned. 2 if V2 (not available yet) is implemented. + /// The maximum version that is available from the data-provider. + /// The version that should be used here. 0 is an error. + virtual public int Version(int max) { + var _ret_var = Efl.Ui.PositionManager.IEntityConcrete.NativeMethods.efl_ui_position_manager_entity_version_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),max); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Return the position and size of item idx + /// This method returns the size and position of the item at idx. Even if the item is outside the viewport, the returned rectangle must be valid. The result can be used for scrolling calculations. + /// The id for the item + /// Position and Size in canvas coordinations + virtual public Eina.Rect PositionSingleItem(int idx) { + var _ret_var = Efl.Ui.PositionManager.IEntityConcrete.NativeMethods.efl_ui_position_manager_entity_position_single_item_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),idx); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// The new item subobj has been added at the added_index field. + /// The accessor provided through will contain updated Entities. + virtual public void ItemAdded(int added_index, Efl.Gfx.IEntity subobj) { + Efl.Ui.PositionManager.IEntityConcrete.NativeMethods.efl_ui_position_manager_entity_item_added_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),added_index, subobj); + Eina.Error.RaiseIfUnhandledException(); + } + /// The item subobj previously at position removed_index has been removed. The accessor provided through will contain updated Entities. + virtual public void ItemRemoved(int removed_index, Efl.Gfx.IEntity subobj) { + Efl.Ui.PositionManager.IEntityConcrete.NativeMethods.efl_ui_position_manager_entity_item_removed_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),removed_index, subobj); + Eina.Error.RaiseIfUnhandledException(); + } + /// The size of the items from start_id to end_id have been changed. The positioning and sizing of all items will be updated + /// The first item that has a new size + /// The last item that has a new size + virtual public void ItemSizeChanged(int start_id, int end_id) { + Efl.Ui.PositionManager.IEntityConcrete.NativeMethods.efl_ui_position_manager_entity_item_size_changed_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),start_id, end_id); + Eina.Error.RaiseIfUnhandledException(); + } + /// translate the current_id, into a new id which is oriented in the direction of current_id. In case that there is no item, -1 is returned + /// The id where the direction is oriented at + /// The direction where the new id is + /// The id of the item in that direction, or -1 if there is no item in that direction + virtual public int RelativeItem(uint current_id, Efl.Ui.Focus.Direction direction) { + var _ret_var = Efl.Ui.PositionManager.IEntityConcrete.NativeMethods.efl_ui_position_manager_entity_relative_item_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),current_id, direction); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Control the direction of a given widget. + /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. + /// + /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. + /// Direction of the widget. + public Efl.Ui.LayoutOrientation Orientation { + get { return GetOrientation(); } + set { SetOrientation(value); } + } + /// This gives access to items to be managed. The manager reads this information and modifies the retrieved items' positions and sizes. + /// obj_access gives access to the graphical entitites to manage. Some of them might be NULL, meaning they are not yet ready to be displayed. Their size in the size_access array will be correct, though, so other entities can still be positioned correctly. Typically, only entities inside the viewport will be retrieved. + /// + /// size_access gives access to the 2D sizes for the items to manage. All sizes will always be valid, and might change over time (indicated through the method). The whole range might need to be traversed in order to calculate the position of all items in some arrangements. + /// + /// You can access a batch of objects or sizes by calling the here passed function callbacks. Further details can be found at the function definitions. + /// Function callback for canvas objects, even if the start_id is valid, the returned objects may be NULL. + public (Efl.Ui.PositionManager.ObjectBatchCallback, Efl.Ui.PositionManager.SizeBatchCallback, int) DataAccess { + set { SetDataAccess( value.Item1, value.Item2, value.Item3); } + } + /// This is the position and size of the viewport, where elements are displayed in. Entities outside this viewport will not be shown. + public Eina.Rect Viewport { + set { SetViewport(value); } + } + /// Move the items relative to the viewport. + /// The items that are managed with this position manager might be bigger than the actual viewport. The positioning of the layer where all items are on is described by these values. 0.0,0.0 means that layer is moved that the top left items are shown, 1.0,1.0 means, that the lower right items are shown. + /// X position of the scroller, valid form 0 to 1.0 + public (double, double) ScrollPosition { + set { SetScrollPosition( value.Item1, value.Item2); } + } + private static IntPtr GetEflClassStatic() + { + return Efl.Ui.PositionManager.Grid.efl_ui_position_manager_grid_class_get(); + } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods + { + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// Gets the list of Eo operations to override. + /// The list of Eo operations to be overload. + public override System.Collections.Generic.List GetEoOps(System.Type type) + { + var descs = new System.Collections.Generic.List(); + var methods = Efl.Eo.Globals.GetUserMethods(type); + + if (efl_ui_layout_orientation_get_static_delegate == null) + { + efl_ui_layout_orientation_get_static_delegate = new efl_ui_layout_orientation_get_delegate(orientation_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetOrientation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_layout_orientation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_orientation_get_static_delegate) }); + } + + if (efl_ui_layout_orientation_set_static_delegate == null) + { + efl_ui_layout_orientation_set_static_delegate = new efl_ui_layout_orientation_set_delegate(orientation_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetOrientation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_layout_orientation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_orientation_set_static_delegate) }); + } + + if (efl_ui_position_manager_data_access_v1_data_access_set_static_delegate == null) + { + efl_ui_position_manager_data_access_v1_data_access_set_static_delegate = new efl_ui_position_manager_data_access_v1_data_access_set_delegate(data_access_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetDataAccess") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_data_access_v1_data_access_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_data_access_v1_data_access_set_static_delegate) }); + } + + if (efl_ui_position_manager_entity_viewport_set_static_delegate == null) + { + efl_ui_position_manager_entity_viewport_set_static_delegate = new efl_ui_position_manager_entity_viewport_set_delegate(viewport_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetViewport") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_entity_viewport_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_entity_viewport_set_static_delegate) }); + } + + if (efl_ui_position_manager_entity_scroll_position_set_static_delegate == null) + { + efl_ui_position_manager_entity_scroll_position_set_static_delegate = new efl_ui_position_manager_entity_scroll_position_set_delegate(scroll_position_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScrollPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_entity_scroll_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_entity_scroll_position_set_static_delegate) }); + } + + if (efl_ui_position_manager_entity_version_static_delegate == null) + { + efl_ui_position_manager_entity_version_static_delegate = new efl_ui_position_manager_entity_version_delegate(version); + } + + if (methods.FirstOrDefault(m => m.Name == "Version") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_entity_version"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_entity_version_static_delegate) }); + } + + if (efl_ui_position_manager_entity_position_single_item_static_delegate == null) + { + efl_ui_position_manager_entity_position_single_item_static_delegate = new efl_ui_position_manager_entity_position_single_item_delegate(position_single_item); + } + + if (methods.FirstOrDefault(m => m.Name == "PositionSingleItem") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_entity_position_single_item"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_entity_position_single_item_static_delegate) }); + } + + if (efl_ui_position_manager_entity_item_added_static_delegate == null) + { + efl_ui_position_manager_entity_item_added_static_delegate = new efl_ui_position_manager_entity_item_added_delegate(item_added); + } + + if (methods.FirstOrDefault(m => m.Name == "ItemAdded") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_entity_item_added"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_entity_item_added_static_delegate) }); + } + + if (efl_ui_position_manager_entity_item_removed_static_delegate == null) + { + efl_ui_position_manager_entity_item_removed_static_delegate = new efl_ui_position_manager_entity_item_removed_delegate(item_removed); + } + + if (methods.FirstOrDefault(m => m.Name == "ItemRemoved") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_entity_item_removed"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_entity_item_removed_static_delegate) }); + } + + if (efl_ui_position_manager_entity_item_size_changed_static_delegate == null) + { + efl_ui_position_manager_entity_item_size_changed_static_delegate = new efl_ui_position_manager_entity_item_size_changed_delegate(item_size_changed); + } + + if (methods.FirstOrDefault(m => m.Name == "ItemSizeChanged") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_entity_item_size_changed"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_entity_item_size_changed_static_delegate) }); + } + + if (efl_ui_position_manager_entity_relative_item_static_delegate == null) + { + efl_ui_position_manager_entity_relative_item_static_delegate = new efl_ui_position_manager_entity_relative_item_delegate(relative_item); + } + + if (methods.FirstOrDefault(m => m.Name == "RelativeItem") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_entity_relative_item"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_entity_relative_item_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.PositionManager.Grid.efl_ui_position_manager_grid_class_get(); + } + + #pragma warning disable CA1707, CS1591, SA1300, SA1600 + + + private delegate Efl.Ui.LayoutOrientation efl_ui_layout_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.LayoutOrientation efl_ui_layout_orientation_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_layout_orientation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_layout_orientation_get"); + + private static Efl.Ui.LayoutOrientation orientation_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_layout_orientation_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Ui.LayoutOrientation _ret_var = default(Efl.Ui.LayoutOrientation); + try + { + _ret_var = ((Grid)ws.Target).GetOrientation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_layout_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_layout_orientation_get_delegate efl_ui_layout_orientation_get_static_delegate; + + + private delegate void efl_ui_layout_orientation_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.LayoutOrientation dir); + + + public delegate void efl_ui_layout_orientation_set_api_delegate(System.IntPtr obj, Efl.Ui.LayoutOrientation dir); + + public static Efl.Eo.FunctionWrapper efl_ui_layout_orientation_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_layout_orientation_set"); + + private static void orientation_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.LayoutOrientation dir) + { + Eina.Log.Debug("function efl_ui_layout_orientation_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Grid)ws.Target).SetOrientation(dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_layout_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); + } + } + + private static efl_ui_layout_orientation_set_delegate efl_ui_layout_orientation_set_static_delegate; + + + private delegate void efl_ui_position_manager_data_access_v1_data_access_set_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr obj_access_data, Efl.Ui.PositionManager.ObjectBatchCallbackInternal obj_access, EinaFreeCb obj_access_free_cb, IntPtr size_access_data, Efl.Ui.PositionManager.SizeBatchCallbackInternal size_access, EinaFreeCb size_access_free_cb, int size); + + + public delegate void efl_ui_position_manager_data_access_v1_data_access_set_api_delegate(System.IntPtr obj, IntPtr obj_access_data, Efl.Ui.PositionManager.ObjectBatchCallbackInternal obj_access, EinaFreeCb obj_access_free_cb, IntPtr size_access_data, Efl.Ui.PositionManager.SizeBatchCallbackInternal size_access, EinaFreeCb size_access_free_cb, int size); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_data_access_v1_data_access_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_data_access_v1_data_access_set"); + + private static void data_access_set(System.IntPtr obj, System.IntPtr pd, IntPtr obj_access_data, Efl.Ui.PositionManager.ObjectBatchCallbackInternal obj_access, EinaFreeCb obj_access_free_cb, IntPtr size_access_data, Efl.Ui.PositionManager.SizeBatchCallbackInternal size_access, EinaFreeCb size_access_free_cb, int size) + { + Eina.Log.Debug("function efl_ui_position_manager_data_access_v1_data_access_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Ui.PositionManager.ObjectBatchCallbackWrapper obj_access_wrapper = new Efl.Ui.PositionManager.ObjectBatchCallbackWrapper(obj_access, obj_access_data, obj_access_free_cb); + Efl.Ui.PositionManager.SizeBatchCallbackWrapper size_access_wrapper = new Efl.Ui.PositionManager.SizeBatchCallbackWrapper(size_access, size_access_data, size_access_free_cb); + + try + { + ((Grid)ws.Target).SetDataAccess(obj_access_wrapper.ManagedCb, size_access_wrapper.ManagedCb, size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_position_manager_data_access_v1_data_access_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), obj_access_data, obj_access, obj_access_free_cb, size_access_data, size_access, size_access_free_cb, size); + } + } + + private static efl_ui_position_manager_data_access_v1_data_access_set_delegate efl_ui_position_manager_data_access_v1_data_access_set_static_delegate; + + + private delegate void efl_ui_position_manager_entity_viewport_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); + + + public delegate void efl_ui_position_manager_entity_viewport_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_entity_viewport_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_entity_viewport_set"); + + private static void viewport_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) + { + Eina.Log.Debug("function efl_ui_position_manager_entity_viewport_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Rect _in_viewport = viewport; + + try + { + ((Grid)ws.Target).SetViewport(_in_viewport); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_position_manager_entity_viewport_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); + } + } + + private static efl_ui_position_manager_entity_viewport_set_delegate efl_ui_position_manager_entity_viewport_set_static_delegate; + + + private delegate void efl_ui_position_manager_entity_scroll_position_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void efl_ui_position_manager_entity_scroll_position_set_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_entity_scroll_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_entity_scroll_position_set"); + + private static void scroll_position_set(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_ui_position_manager_entity_scroll_position_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Grid)ws.Target).SetScrollPosition(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_position_manager_entity_scroll_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } + + private static efl_ui_position_manager_entity_scroll_position_set_delegate efl_ui_position_manager_entity_scroll_position_set_static_delegate; + + + private delegate int efl_ui_position_manager_entity_version_delegate(System.IntPtr obj, System.IntPtr pd, int max); + + + public delegate int efl_ui_position_manager_entity_version_api_delegate(System.IntPtr obj, int max); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_entity_version_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_entity_version"); + + private static int version(System.IntPtr obj, System.IntPtr pd, int max) + { + Eina.Log.Debug("function efl_ui_position_manager_entity_version was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Grid)ws.Target).Version(max); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_position_manager_entity_version_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), max); + } + } + + private static efl_ui_position_manager_entity_version_delegate efl_ui_position_manager_entity_version_static_delegate; + + + private delegate Eina.Rect.NativeStruct efl_ui_position_manager_entity_position_single_item_delegate(System.IntPtr obj, System.IntPtr pd, int idx); + + + public delegate Eina.Rect.NativeStruct efl_ui_position_manager_entity_position_single_item_api_delegate(System.IntPtr obj, int idx); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_entity_position_single_item_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_entity_position_single_item"); + + private static Eina.Rect.NativeStruct position_single_item(System.IntPtr obj, System.IntPtr pd, int idx) + { + Eina.Log.Debug("function efl_ui_position_manager_entity_position_single_item was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((Grid)ws.Target).PositionSingleItem(idx); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_position_manager_entity_position_single_item_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx); + } + } + + private static efl_ui_position_manager_entity_position_single_item_delegate efl_ui_position_manager_entity_position_single_item_static_delegate; + + + private delegate void efl_ui_position_manager_entity_item_added_delegate(System.IntPtr obj, System.IntPtr pd, int added_index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + + public delegate void efl_ui_position_manager_entity_item_added_api_delegate(System.IntPtr obj, int added_index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_entity_item_added_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_entity_item_added"); + + private static void item_added(System.IntPtr obj, System.IntPtr pd, int added_index, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_ui_position_manager_entity_item_added was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Grid)ws.Target).ItemAdded(added_index, subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_position_manager_entity_item_added_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), added_index, subobj); + } + } + + private static efl_ui_position_manager_entity_item_added_delegate efl_ui_position_manager_entity_item_added_static_delegate; + + + private delegate void efl_ui_position_manager_entity_item_removed_delegate(System.IntPtr obj, System.IntPtr pd, int removed_index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + + public delegate void efl_ui_position_manager_entity_item_removed_api_delegate(System.IntPtr obj, int removed_index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_entity_item_removed_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_entity_item_removed"); + + private static void item_removed(System.IntPtr obj, System.IntPtr pd, int removed_index, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_ui_position_manager_entity_item_removed was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Grid)ws.Target).ItemRemoved(removed_index, subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_position_manager_entity_item_removed_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), removed_index, subobj); + } + } + + private static efl_ui_position_manager_entity_item_removed_delegate efl_ui_position_manager_entity_item_removed_static_delegate; + + + private delegate void efl_ui_position_manager_entity_item_size_changed_delegate(System.IntPtr obj, System.IntPtr pd, int start_id, int end_id); + + + public delegate void efl_ui_position_manager_entity_item_size_changed_api_delegate(System.IntPtr obj, int start_id, int end_id); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_entity_item_size_changed_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_entity_item_size_changed"); + + private static void item_size_changed(System.IntPtr obj, System.IntPtr pd, int start_id, int end_id) + { + Eina.Log.Debug("function efl_ui_position_manager_entity_item_size_changed was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Grid)ws.Target).ItemSizeChanged(start_id, end_id); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_position_manager_entity_item_size_changed_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start_id, end_id); + } + } + + private static efl_ui_position_manager_entity_item_size_changed_delegate efl_ui_position_manager_entity_item_size_changed_static_delegate; + + + private delegate int efl_ui_position_manager_entity_relative_item_delegate(System.IntPtr obj, System.IntPtr pd, uint current_id, Efl.Ui.Focus.Direction direction); + + + public delegate int efl_ui_position_manager_entity_relative_item_api_delegate(System.IntPtr obj, uint current_id, Efl.Ui.Focus.Direction direction); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_entity_relative_item_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_entity_relative_item"); + + private static int relative_item(System.IntPtr obj, System.IntPtr pd, uint current_id, Efl.Ui.Focus.Direction direction) + { + Eina.Log.Debug("function efl_ui_position_manager_entity_relative_item was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((Grid)ws.Target).RelativeItem(current_id, direction); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_position_manager_entity_relative_item_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), current_id, direction); + } + } + + private static efl_ui_position_manager_entity_relative_item_delegate efl_ui_position_manager_entity_relative_item_static_delegate; + + #pragma warning restore CA1707, CS1591, SA1300, SA1600 + +} +} +} + +} + +} + +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Ui_Position_ManagerGrid_ExtensionMethods { + public static Efl.BindableProperty Orientation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.PositionManager.Grid { + return new Efl.BindableProperty("orientation", fac); + } + + + public static Efl.BindableProperty Viewport(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.PositionManager.Grid { + return new Efl.BindableProperty("viewport", fac); + } + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_position_manager_list.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_position_manager_list.eo.cs new file mode 100755 index 000000000..004f4a934 --- /dev/null +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_position_manager_list.eo.cs @@ -0,0 +1,934 @@ +#define EFL_BETA +#pragma warning disable CS1591 +using System; +using System.Runtime.InteropServices; +using System.Collections.Generic; +using System.Linq; +using System.Threading; +using System.ComponentModel; +namespace Efl { + +namespace Ui { + +namespace PositionManager { + +/// Implementation of for a list +/// Every item in the list will get at least his minsize applied, changes to the misize are listend to and change the layouting of all items. This supports the vertical and horizontal orientation. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +[Efl.Ui.PositionManager.List.NativeMethods] +[Efl.Eo.BindingEntity] +public class List : Efl.Object, Efl.Ui.ILayoutOrientable, Efl.Ui.PositionManager.IDataAccessV1, Efl.Ui.PositionManager.IEntity +{ + /// Pointer to the native class description. + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(List)) + { + return GetEflClassStatic(); + } + else + { + return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } + } + } + + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr + efl_ui_position_manager_list_class_get(); + /// Initializes a new instance of the class. + /// Parent instance. + public List(Efl.Object parent= null + ) : base(efl_ui_position_manager_list_class_get(), parent) + { + FinishInstantiation(); + } + + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. + /// Tag struct storing the native handle of the object being constructed. + protected List(ConstructingHandle ch) : base(ch) + { + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. + protected List(Efl.Eo.Globals.WrappingHandle wh) : base(wh) + { + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The Efl.Object parent of this instance. + protected List(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) + { + } + + /// Emitted when the aggregate size of all items has changed. This can be used to resize an enclosing Pan object. + /// + public event EventHandler ContentSizeChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.PositionManager.IEntityContentSizeChangedEvt_Args args = new Efl.Ui.PositionManager.IEntityContentSizeChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_CONTENT_SIZE_CHANGED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_CONTENT_SIZE_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ContentSizeChangedEvt. + public void OnContentSizeChangedEvt(Efl.Ui.PositionManager.IEntityContentSizeChangedEvt_Args e) + { + var key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_CONTENT_SIZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Emitted when the minimum size of all items has changed. The minimum size is the size, that this position_manager needs at *least* to display a single item. + /// + public event EventHandler ContentMinSizeChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.PositionManager.IEntityContentMinSizeChangedEvt_Args args = new Efl.Ui.PositionManager.IEntityContentMinSizeChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_CONTENT_MIN_SIZE_CHANGED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_CONTENT_MIN_SIZE_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ContentMinSizeChangedEvt. + public void OnContentMinSizeChangedEvt(Efl.Ui.PositionManager.IEntityContentMinSizeChangedEvt_Args e) + { + var key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_CONTENT_MIN_SIZE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// + public event EventHandler VisibleRangeChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.PositionManager.IEntityVisibleRangeChangedEvt_Args args = new Efl.Ui.PositionManager.IEntityVisibleRangeChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_VISIBLE_RANGE_CHANGED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_VISIBLE_RANGE_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event VisibleRangeChangedEvt. + public void OnVisibleRangeChangedEvt(Efl.Ui.PositionManager.IEntityVisibleRangeChangedEvt_Args e) + { + var key = "_EFL_UI_POSITION_MANAGER_ENTITY_EVENT_VISIBLE_RANGE_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Control the direction of a given widget. + /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. + /// + /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. + /// Direction of the widget. + virtual public Efl.Ui.LayoutOrientation GetOrientation() { + var _ret_var = Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Control the direction of a given widget. + /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. + /// + /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. + /// Direction of the widget. + virtual public void SetOrientation(Efl.Ui.LayoutOrientation dir) { + Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),dir); + Eina.Error.RaiseIfUnhandledException(); + } + /// This gives access to items to be managed. The manager reads this information and modifies the retrieved items' positions and sizes. + /// obj_access gives access to the graphical entitites to manage. Some of them might be NULL, meaning they are not yet ready to be displayed. Their size in the size_access array will be correct, though, so other entities can still be positioned correctly. Typically, only entities inside the viewport will be retrieved. + /// + /// size_access gives access to the 2D sizes for the items to manage. All sizes will always be valid, and might change over time (indicated through the method). The whole range might need to be traversed in order to calculate the position of all items in some arrangements. + /// + /// You can access a batch of objects or sizes by calling the here passed function callbacks. Further details can be found at the function definitions. + /// Function callback for canvas objects, even if the start_id is valid, the returned objects may be NULL. + /// Function callback for the size, returned values are always valid, but might be changed later on. + /// valid size for start_id, 0 <= i < size + virtual public void SetDataAccess(Efl.Ui.PositionManager.ObjectBatchCallback obj_access, Efl.Ui.PositionManager.SizeBatchCallback size_access, int size) { + GCHandle obj_access_handle = GCHandle.Alloc(obj_access); + GCHandle size_access_handle = GCHandle.Alloc(size_access); + Efl.Ui.PositionManager.IDataAccessV1Concrete.NativeMethods.efl_ui_position_manager_data_access_v1_data_access_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),GCHandle.ToIntPtr(obj_access_handle), Efl.Ui.PositionManager.ObjectBatchCallbackWrapper.Cb, Efl.Eo.Globals.free_gchandle, GCHandle.ToIntPtr(size_access_handle), Efl.Ui.PositionManager.SizeBatchCallbackWrapper.Cb, Efl.Eo.Globals.free_gchandle, size); + Eina.Error.RaiseIfUnhandledException(); + } + /// This is the position and size of the viewport, where elements are displayed in. Entities outside this viewport will not be shown. + virtual public void SetViewport(Eina.Rect viewport) { + Eina.Rect.NativeStruct _in_viewport = viewport; + Efl.Ui.PositionManager.IEntityConcrete.NativeMethods.efl_ui_position_manager_entity_viewport_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_viewport); + Eina.Error.RaiseIfUnhandledException(); + } + /// Move the items relative to the viewport. + /// The items that are managed with this position manager might be bigger than the actual viewport. The positioning of the layer where all items are on is described by these values. 0.0,0.0 means that layer is moved that the top left items are shown, 1.0,1.0 means, that the lower right items are shown. + /// X position of the scroller, valid form 0 to 1.0 + /// Y position of the scroller, valid form 0 to 1.0 + virtual public void SetScrollPosition(double x, double y) { + Efl.Ui.PositionManager.IEntityConcrete.NativeMethods.efl_ui_position_manager_entity_scroll_position_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),x, y); + Eina.Error.RaiseIfUnhandledException(); + } + /// Return the version of Data_Access that is used. This object needs to implement the interface Efl.Ui.Position_Manager.Data_Access_V1 if 1 is returned. 2 if V2 (not available yet) is implemented. + /// The maximum version that is available from the data-provider. + /// The version that should be used here. 0 is an error. + virtual public int Version(int max) { + var _ret_var = Efl.Ui.PositionManager.IEntityConcrete.NativeMethods.efl_ui_position_manager_entity_version_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),max); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Return the position and size of item idx + /// This method returns the size and position of the item at idx. Even if the item is outside the viewport, the returned rectangle must be valid. The result can be used for scrolling calculations. + /// The id for the item + /// Position and Size in canvas coordinations + virtual public Eina.Rect PositionSingleItem(int idx) { + var _ret_var = Efl.Ui.PositionManager.IEntityConcrete.NativeMethods.efl_ui_position_manager_entity_position_single_item_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),idx); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// The new item subobj has been added at the added_index field. + /// The accessor provided through will contain updated Entities. + virtual public void ItemAdded(int added_index, Efl.Gfx.IEntity subobj) { + Efl.Ui.PositionManager.IEntityConcrete.NativeMethods.efl_ui_position_manager_entity_item_added_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),added_index, subobj); + Eina.Error.RaiseIfUnhandledException(); + } + /// The item subobj previously at position removed_index has been removed. The accessor provided through will contain updated Entities. + virtual public void ItemRemoved(int removed_index, Efl.Gfx.IEntity subobj) { + Efl.Ui.PositionManager.IEntityConcrete.NativeMethods.efl_ui_position_manager_entity_item_removed_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),removed_index, subobj); + Eina.Error.RaiseIfUnhandledException(); + } + /// The size of the items from start_id to end_id have been changed. The positioning and sizing of all items will be updated + /// The first item that has a new size + /// The last item that has a new size + virtual public void ItemSizeChanged(int start_id, int end_id) { + Efl.Ui.PositionManager.IEntityConcrete.NativeMethods.efl_ui_position_manager_entity_item_size_changed_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),start_id, end_id); + Eina.Error.RaiseIfUnhandledException(); + } + /// translate the current_id, into a new id which is oriented in the direction of current_id. In case that there is no item, -1 is returned + /// The id where the direction is oriented at + /// The direction where the new id is + /// The id of the item in that direction, or -1 if there is no item in that direction + virtual public int RelativeItem(uint current_id, Efl.Ui.Focus.Direction direction) { + var _ret_var = Efl.Ui.PositionManager.IEntityConcrete.NativeMethods.efl_ui_position_manager_entity_relative_item_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),current_id, direction); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Control the direction of a given widget. + /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. + /// + /// Mirroring as defined in can invert the horizontal direction: it is ltr by default, but becomes rtl if the object is mirrored. + /// Direction of the widget. + public Efl.Ui.LayoutOrientation Orientation { + get { return GetOrientation(); } + set { SetOrientation(value); } + } + /// This gives access to items to be managed. The manager reads this information and modifies the retrieved items' positions and sizes. + /// obj_access gives access to the graphical entitites to manage. Some of them might be NULL, meaning they are not yet ready to be displayed. Their size in the size_access array will be correct, though, so other entities can still be positioned correctly. Typically, only entities inside the viewport will be retrieved. + /// + /// size_access gives access to the 2D sizes for the items to manage. All sizes will always be valid, and might change over time (indicated through the method). The whole range might need to be traversed in order to calculate the position of all items in some arrangements. + /// + /// You can access a batch of objects or sizes by calling the here passed function callbacks. Further details can be found at the function definitions. + /// Function callback for canvas objects, even if the start_id is valid, the returned objects may be NULL. + public (Efl.Ui.PositionManager.ObjectBatchCallback, Efl.Ui.PositionManager.SizeBatchCallback, int) DataAccess { + set { SetDataAccess( value.Item1, value.Item2, value.Item3); } + } + /// This is the position and size of the viewport, where elements are displayed in. Entities outside this viewport will not be shown. + public Eina.Rect Viewport { + set { SetViewport(value); } + } + /// Move the items relative to the viewport. + /// The items that are managed with this position manager might be bigger than the actual viewport. The positioning of the layer where all items are on is described by these values. 0.0,0.0 means that layer is moved that the top left items are shown, 1.0,1.0 means, that the lower right items are shown. + /// X position of the scroller, valid form 0 to 1.0 + public (double, double) ScrollPosition { + set { SetScrollPosition( value.Item1, value.Item2); } + } + private static IntPtr GetEflClassStatic() + { + return Efl.Ui.PositionManager.List.efl_ui_position_manager_list_class_get(); + } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods + { + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// Gets the list of Eo operations to override. + /// The list of Eo operations to be overload. + public override System.Collections.Generic.List GetEoOps(System.Type type) + { + var descs = new System.Collections.Generic.List(); + var methods = Efl.Eo.Globals.GetUserMethods(type); + + if (efl_ui_layout_orientation_get_static_delegate == null) + { + efl_ui_layout_orientation_get_static_delegate = new efl_ui_layout_orientation_get_delegate(orientation_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetOrientation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_layout_orientation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_orientation_get_static_delegate) }); + } + + if (efl_ui_layout_orientation_set_static_delegate == null) + { + efl_ui_layout_orientation_set_static_delegate = new efl_ui_layout_orientation_set_delegate(orientation_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetOrientation") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_layout_orientation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_orientation_set_static_delegate) }); + } + + if (efl_ui_position_manager_data_access_v1_data_access_set_static_delegate == null) + { + efl_ui_position_manager_data_access_v1_data_access_set_static_delegate = new efl_ui_position_manager_data_access_v1_data_access_set_delegate(data_access_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetDataAccess") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_data_access_v1_data_access_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_data_access_v1_data_access_set_static_delegate) }); + } + + if (efl_ui_position_manager_entity_viewport_set_static_delegate == null) + { + efl_ui_position_manager_entity_viewport_set_static_delegate = new efl_ui_position_manager_entity_viewport_set_delegate(viewport_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetViewport") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_entity_viewport_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_entity_viewport_set_static_delegate) }); + } + + if (efl_ui_position_manager_entity_scroll_position_set_static_delegate == null) + { + efl_ui_position_manager_entity_scroll_position_set_static_delegate = new efl_ui_position_manager_entity_scroll_position_set_delegate(scroll_position_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScrollPosition") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_entity_scroll_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_entity_scroll_position_set_static_delegate) }); + } + + if (efl_ui_position_manager_entity_version_static_delegate == null) + { + efl_ui_position_manager_entity_version_static_delegate = new efl_ui_position_manager_entity_version_delegate(version); + } + + if (methods.FirstOrDefault(m => m.Name == "Version") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_entity_version"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_entity_version_static_delegate) }); + } + + if (efl_ui_position_manager_entity_position_single_item_static_delegate == null) + { + efl_ui_position_manager_entity_position_single_item_static_delegate = new efl_ui_position_manager_entity_position_single_item_delegate(position_single_item); + } + + if (methods.FirstOrDefault(m => m.Name == "PositionSingleItem") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_entity_position_single_item"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_entity_position_single_item_static_delegate) }); + } + + if (efl_ui_position_manager_entity_item_added_static_delegate == null) + { + efl_ui_position_manager_entity_item_added_static_delegate = new efl_ui_position_manager_entity_item_added_delegate(item_added); + } + + if (methods.FirstOrDefault(m => m.Name == "ItemAdded") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_entity_item_added"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_entity_item_added_static_delegate) }); + } + + if (efl_ui_position_manager_entity_item_removed_static_delegate == null) + { + efl_ui_position_manager_entity_item_removed_static_delegate = new efl_ui_position_manager_entity_item_removed_delegate(item_removed); + } + + if (methods.FirstOrDefault(m => m.Name == "ItemRemoved") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_entity_item_removed"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_entity_item_removed_static_delegate) }); + } + + if (efl_ui_position_manager_entity_item_size_changed_static_delegate == null) + { + efl_ui_position_manager_entity_item_size_changed_static_delegate = new efl_ui_position_manager_entity_item_size_changed_delegate(item_size_changed); + } + + if (methods.FirstOrDefault(m => m.Name == "ItemSizeChanged") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_entity_item_size_changed"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_entity_item_size_changed_static_delegate) }); + } + + if (efl_ui_position_manager_entity_relative_item_static_delegate == null) + { + efl_ui_position_manager_entity_relative_item_static_delegate = new efl_ui_position_manager_entity_relative_item_delegate(relative_item); + } + + if (methods.FirstOrDefault(m => m.Name == "RelativeItem") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_position_manager_entity_relative_item"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_position_manager_entity_relative_item_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.PositionManager.List.efl_ui_position_manager_list_class_get(); + } + + #pragma warning disable CA1707, CS1591, SA1300, SA1600 + + + private delegate Efl.Ui.LayoutOrientation efl_ui_layout_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate Efl.Ui.LayoutOrientation efl_ui_layout_orientation_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_layout_orientation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_layout_orientation_get"); + + private static Efl.Ui.LayoutOrientation orientation_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_layout_orientation_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Ui.LayoutOrientation _ret_var = default(Efl.Ui.LayoutOrientation); + try + { + _ret_var = ((List)ws.Target).GetOrientation(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_layout_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_layout_orientation_get_delegate efl_ui_layout_orientation_get_static_delegate; + + + private delegate void efl_ui_layout_orientation_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.LayoutOrientation dir); + + + public delegate void efl_ui_layout_orientation_set_api_delegate(System.IntPtr obj, Efl.Ui.LayoutOrientation dir); + + public static Efl.Eo.FunctionWrapper efl_ui_layout_orientation_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_layout_orientation_set"); + + private static void orientation_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.LayoutOrientation dir) + { + Eina.Log.Debug("function efl_ui_layout_orientation_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((List)ws.Target).SetOrientation(dir); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_layout_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); + } + } + + private static efl_ui_layout_orientation_set_delegate efl_ui_layout_orientation_set_static_delegate; + + + private delegate void efl_ui_position_manager_data_access_v1_data_access_set_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr obj_access_data, Efl.Ui.PositionManager.ObjectBatchCallbackInternal obj_access, EinaFreeCb obj_access_free_cb, IntPtr size_access_data, Efl.Ui.PositionManager.SizeBatchCallbackInternal size_access, EinaFreeCb size_access_free_cb, int size); + + + public delegate void efl_ui_position_manager_data_access_v1_data_access_set_api_delegate(System.IntPtr obj, IntPtr obj_access_data, Efl.Ui.PositionManager.ObjectBatchCallbackInternal obj_access, EinaFreeCb obj_access_free_cb, IntPtr size_access_data, Efl.Ui.PositionManager.SizeBatchCallbackInternal size_access, EinaFreeCb size_access_free_cb, int size); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_data_access_v1_data_access_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_data_access_v1_data_access_set"); + + private static void data_access_set(System.IntPtr obj, System.IntPtr pd, IntPtr obj_access_data, Efl.Ui.PositionManager.ObjectBatchCallbackInternal obj_access, EinaFreeCb obj_access_free_cb, IntPtr size_access_data, Efl.Ui.PositionManager.SizeBatchCallbackInternal size_access, EinaFreeCb size_access_free_cb, int size) + { + Eina.Log.Debug("function efl_ui_position_manager_data_access_v1_data_access_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Ui.PositionManager.ObjectBatchCallbackWrapper obj_access_wrapper = new Efl.Ui.PositionManager.ObjectBatchCallbackWrapper(obj_access, obj_access_data, obj_access_free_cb); + Efl.Ui.PositionManager.SizeBatchCallbackWrapper size_access_wrapper = new Efl.Ui.PositionManager.SizeBatchCallbackWrapper(size_access, size_access_data, size_access_free_cb); + + try + { + ((List)ws.Target).SetDataAccess(obj_access_wrapper.ManagedCb, size_access_wrapper.ManagedCb, size); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_position_manager_data_access_v1_data_access_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), obj_access_data, obj_access, obj_access_free_cb, size_access_data, size_access, size_access_free_cb, size); + } + } + + private static efl_ui_position_manager_data_access_v1_data_access_set_delegate efl_ui_position_manager_data_access_v1_data_access_set_static_delegate; + + + private delegate void efl_ui_position_manager_entity_viewport_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); + + + public delegate void efl_ui_position_manager_entity_viewport_set_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_entity_viewport_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_entity_viewport_set"); + + private static void viewport_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) + { + Eina.Log.Debug("function efl_ui_position_manager_entity_viewport_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Rect _in_viewport = viewport; + + try + { + ((List)ws.Target).SetViewport(_in_viewport); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_position_manager_entity_viewport_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); + } + } + + private static efl_ui_position_manager_entity_viewport_set_delegate efl_ui_position_manager_entity_viewport_set_static_delegate; + + + private delegate void efl_ui_position_manager_entity_scroll_position_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); + + + public delegate void efl_ui_position_manager_entity_scroll_position_set_api_delegate(System.IntPtr obj, double x, double y); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_entity_scroll_position_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_entity_scroll_position_set"); + + private static void scroll_position_set(System.IntPtr obj, System.IntPtr pd, double x, double y) + { + Eina.Log.Debug("function efl_ui_position_manager_entity_scroll_position_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((List)ws.Target).SetScrollPosition(x, y); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_position_manager_entity_scroll_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); + } + } + + private static efl_ui_position_manager_entity_scroll_position_set_delegate efl_ui_position_manager_entity_scroll_position_set_static_delegate; + + + private delegate int efl_ui_position_manager_entity_version_delegate(System.IntPtr obj, System.IntPtr pd, int max); + + + public delegate int efl_ui_position_manager_entity_version_api_delegate(System.IntPtr obj, int max); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_entity_version_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_entity_version"); + + private static int version(System.IntPtr obj, System.IntPtr pd, int max) + { + Eina.Log.Debug("function efl_ui_position_manager_entity_version was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((List)ws.Target).Version(max); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_position_manager_entity_version_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), max); + } + } + + private static efl_ui_position_manager_entity_version_delegate efl_ui_position_manager_entity_version_static_delegate; + + + private delegate Eina.Rect.NativeStruct efl_ui_position_manager_entity_position_single_item_delegate(System.IntPtr obj, System.IntPtr pd, int idx); + + + public delegate Eina.Rect.NativeStruct efl_ui_position_manager_entity_position_single_item_api_delegate(System.IntPtr obj, int idx); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_entity_position_single_item_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_entity_position_single_item"); + + private static Eina.Rect.NativeStruct position_single_item(System.IntPtr obj, System.IntPtr pd, int idx) + { + Eina.Log.Debug("function efl_ui_position_manager_entity_position_single_item was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Rect _ret_var = default(Eina.Rect); + try + { + _ret_var = ((List)ws.Target).PositionSingleItem(idx); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_position_manager_entity_position_single_item_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), idx); + } + } + + private static efl_ui_position_manager_entity_position_single_item_delegate efl_ui_position_manager_entity_position_single_item_static_delegate; + + + private delegate void efl_ui_position_manager_entity_item_added_delegate(System.IntPtr obj, System.IntPtr pd, int added_index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + + public delegate void efl_ui_position_manager_entity_item_added_api_delegate(System.IntPtr obj, int added_index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_entity_item_added_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_entity_item_added"); + + private static void item_added(System.IntPtr obj, System.IntPtr pd, int added_index, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_ui_position_manager_entity_item_added was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((List)ws.Target).ItemAdded(added_index, subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_position_manager_entity_item_added_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), added_index, subobj); + } + } + + private static efl_ui_position_manager_entity_item_added_delegate efl_ui_position_manager_entity_item_added_static_delegate; + + + private delegate void efl_ui_position_manager_entity_item_removed_delegate(System.IntPtr obj, System.IntPtr pd, int removed_index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + + public delegate void efl_ui_position_manager_entity_item_removed_api_delegate(System.IntPtr obj, int removed_index, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_entity_item_removed_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_entity_item_removed"); + + private static void item_removed(System.IntPtr obj, System.IntPtr pd, int removed_index, Efl.Gfx.IEntity subobj) + { + Eina.Log.Debug("function efl_ui_position_manager_entity_item_removed was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((List)ws.Target).ItemRemoved(removed_index, subobj); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_position_manager_entity_item_removed_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), removed_index, subobj); + } + } + + private static efl_ui_position_manager_entity_item_removed_delegate efl_ui_position_manager_entity_item_removed_static_delegate; + + + private delegate void efl_ui_position_manager_entity_item_size_changed_delegate(System.IntPtr obj, System.IntPtr pd, int start_id, int end_id); + + + public delegate void efl_ui_position_manager_entity_item_size_changed_api_delegate(System.IntPtr obj, int start_id, int end_id); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_entity_item_size_changed_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_entity_item_size_changed"); + + private static void item_size_changed(System.IntPtr obj, System.IntPtr pd, int start_id, int end_id) + { + Eina.Log.Debug("function efl_ui_position_manager_entity_item_size_changed was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((List)ws.Target).ItemSizeChanged(start_id, end_id); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_position_manager_entity_item_size_changed_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), start_id, end_id); + } + } + + private static efl_ui_position_manager_entity_item_size_changed_delegate efl_ui_position_manager_entity_item_size_changed_static_delegate; + + + private delegate int efl_ui_position_manager_entity_relative_item_delegate(System.IntPtr obj, System.IntPtr pd, uint current_id, Efl.Ui.Focus.Direction direction); + + + public delegate int efl_ui_position_manager_entity_relative_item_api_delegate(System.IntPtr obj, uint current_id, Efl.Ui.Focus.Direction direction); + + public static Efl.Eo.FunctionWrapper efl_ui_position_manager_entity_relative_item_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_position_manager_entity_relative_item"); + + private static int relative_item(System.IntPtr obj, System.IntPtr pd, uint current_id, Efl.Ui.Focus.Direction direction) + { + Eina.Log.Debug("function efl_ui_position_manager_entity_relative_item was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + int _ret_var = default(int); + try + { + _ret_var = ((List)ws.Target).RelativeItem(current_id, direction); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_position_manager_entity_relative_item_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), current_id, direction); + } + } + + private static efl_ui_position_manager_entity_relative_item_delegate efl_ui_position_manager_entity_relative_item_static_delegate; + + #pragma warning restore CA1707, CS1591, SA1300, SA1600 + +} +} +} + +} + +} + +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Ui_Position_ManagerList_ExtensionMethods { + public static Efl.BindableProperty Orientation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.PositionManager.List { + return new Efl.BindableProperty("orientation", fac); + } + + + public static Efl.BindableProperty Viewport(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.PositionManager.List { + return new Efl.BindableProperty("viewport", fac); + } + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar.eo.cs old mode 100644 new mode 100755 index cb40f530f..d7a4c61fb --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Elementary progressbar class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Progressbar.NativeMethods] [Efl.Eo.BindingEntity] public class Progressbar : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.ITextMarkup, Efl.Access.IValue, Efl.Ui.IFormat, Efl.Ui.ILayoutOrientable, Efl.Ui.IRangeDisplay { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +48,8 @@ public class Progressbar : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.IText FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Progressbar(ConstructingHandle ch) : base(ch) { @@ -67,7 +70,63 @@ public class Progressbar : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.IText { } - /// Called when progressbar changed + /// Sent after the content is set or unset using the current content object. + /// (Since EFL 1.22) + /// + public event EventHandler ContentChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); + args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ContentChangedEvt. + public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) + { + var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = e.arg.NativeHandle; + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + /// Emitted when the is getting changed. public event EventHandler ChangedEvt { add @@ -92,7 +151,7 @@ public class Progressbar : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.IText } }; - string key = "_EFL_UI_PROGRESSBAR_EVENT_CHANGED"; + string key = "_EFL_UI_RANGE_EVENT_CHANGED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -101,15 +160,15 @@ public class Progressbar : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.IText { lock (eflBindingEventLock) { - string key = "_EFL_UI_PROGRESSBAR_EVENT_CHANGED"; + string key = "_EFL_UI_RANGE_EVENT_CHANGED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ChangedEvt. + /// Method to raise event ChangedEvt. public void OnChangedEvt(EventArgs e) { - var key = "_EFL_UI_PROGRESSBAR_EVENT_CHANGED"; + var key = "_EFL_UI_RANGE_EVENT_CHANGED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -119,9 +178,8 @@ public class Progressbar : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.IText Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Sent after the content is set or unset using the current content object. - /// (Since EFL 1.22) - public event EventHandler ContentChangedEvt + /// Emitted when the has reached the minimum of . + public event EventHandler MinReachedEvt { add { @@ -132,8 +190,7 @@ public class Progressbar : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.IText var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); + EventArgs args = EventArgs.Empty; try { value?.Invoke(obj, args); @@ -146,7 +203,7 @@ public class Progressbar : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.IText } }; - string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + string key = "_EFL_UI_RANGE_EVENT_MIN_REACHED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -155,15 +212,15 @@ public class Progressbar : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.IText { lock (eflBindingEventLock) { - string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + string key = "_EFL_UI_RANGE_EVENT_MIN_REACHED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ContentChangedEvt. - public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) + /// Method to raise event MinReachedEvt. + public void OnMinReachedEvt(EventArgs e) { - var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; + var key = "_EFL_UI_RANGE_EVENT_MIN_REACHED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -171,8 +228,59 @@ public class Progressbar : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.IText return; } - IntPtr info = e.arg.NativeHandle; - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Emitted when the range_value has reached the maximum of . + public event EventHandler MaxReachedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_RANGE_EVENT_MAX_REACHED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_RANGE_EVENT_MAX_REACHED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event MaxReachedEvt. + public void OnMaxReachedEvt(EventArgs e) + { + var key = "_EFL_UI_RANGE_EVENT_MAX_REACHED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Control whether a given progress bar widget is at "pulsing mode" or not. /// By default progress bars display values from low to high boundaries. There are situations however in which the progress of a given task is unknown. In these cases, you can set a progress bar widget to a "pulsing state" to give the user an idea that some computation is being done without showing the precise progress rate. In the default theme, it will animate the bar with content, switching constantly between filling it and back to non-filled in a loop. To start and stop this pulsing animation you need to explicitly call . @@ -405,27 +513,27 @@ public class Progressbar : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.IText Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),dir); Eina.Error.RaiseIfUnhandledException(); } - /// Control the range value (in percentage) on a given range widget - /// Use this call to set range levels. - /// - /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. - /// The range value (must be between $0.0 and 1.0) + /// Control the value (position) of the widget within its valid range. + /// Values outside the limits defined in are ignored and an error is printed. + /// The range value (must be within the bounds of ). virtual public double GetRangeValue() { var _ret_var = Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_value_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Control the range value (in percentage) on a given range widget - /// Use this call to set range levels. - /// - /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. - /// The range value (must be between $0.0 and 1.0) + /// Control the value (position) of the widget within its valid range. + /// Values outside the limits defined in are ignored and an error is printed. + /// The range value (must be within the bounds of ). virtual public void SetRangeValue(double val) { Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_value_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),val); Eina.Error.RaiseIfUnhandledException(); } - /// Get the minimum and maximum values of the given range widget. - /// Note: If only one value is needed, the other pointer can be passed as null. + /// Set the minimum and maximum values for given range widget. + /// If the current value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The resulting value can be obtained with . + /// + /// The default minimum and maximum values may be different for each class. + /// + /// Note: maximum must be greater than minimum, otherwise behavior is undefined. /// The minimum value. /// The maximum value. virtual public void GetRangeLimits(out double min, out double max) { @@ -433,13 +541,11 @@ public class Progressbar : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.IText Eina.Error.RaiseIfUnhandledException(); } /// Set the minimum and maximum values for given range widget. - /// Define the allowed range of values to be selected by the user. - /// - /// If actual value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The actual value can be obtained with + /// If the current value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The resulting value can be obtained with . /// - /// The minimum and maximum values may be different for each class. + /// The default minimum and maximum values may be different for each class. /// - /// Warning: maximum must be greater than minimum, otherwise behavior is undefined. + /// Note: maximum must be greater than minimum, otherwise behavior is undefined. /// The minimum value. /// The maximum value. virtual public void SetRangeLimits(double min, double max) { @@ -480,6 +586,27 @@ public class Progressbar : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.IText get { return GetMarkup(); } set { SetMarkup(value); } } + /// Value and text property + /// Value of widget casted to floating point number. + public (double, System.String) ValueAndText { + get { + double _out_value = default(double); + System.String _out_text = default(System.String); + GetValueAndText(out _out_value,out _out_text); + return (_out_value,_out_text); + } + set { SetValueAndText( value.Item1, value.Item2); } + } + /// Gets a range of all possible values and its description + public (double, double, System.String) Range { + get { + double _out_lower_limit = default(double); + double _out_upper_limit = default(double); + System.String _out_description = default(System.String); + GetRange(out _out_lower_limit,out _out_upper_limit,out _out_description); + return (_out_lower_limit,_out_upper_limit,_out_description); + } + } /// Gets an minimal incrementation value /// Minimal incrementation value public double Increment { @@ -497,6 +624,24 @@ public class Progressbar : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.IText get { return GetFormatValues(); } set { SetFormatValues(value); } } + /// A user-provided, string used to format the numerical value. + /// For example, "%1.2f meters", "%.0%%" or "%d items". + /// + /// This is the simplest formatting mechanism, working pretty much like printf. + /// + /// Different format specifiers (the character after the %) are available, depending on the type used. Use for simple numerical values and for time and date values. For instance, %d means "integer" when the first type is used, but it means "day of the month as a decimal number" in the second. + /// + /// Pass NULL to disable this mechanism. + /// Formatting string containing regular characters and format specifiers. + public (System.String, Efl.Ui.FormatStringType) FormatString { + get { + System.String _out_kw_string = default(System.String); + Efl.Ui.FormatStringType _out_type = default(Efl.Ui.FormatStringType); + GetFormatString(out _out_kw_string,out _out_type); + return (_out_kw_string,_out_type); + } + set { SetFormatString( value.Item1, value.Item2); } + } /// Control the direction of a given widget. /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. /// @@ -506,15 +651,29 @@ public class Progressbar : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.IText get { return GetOrientation(); } set { SetOrientation(value); } } - /// Control the range value (in percentage) on a given range widget - /// Use this call to set range levels. - /// - /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. - /// The range value (must be between $0.0 and 1.0) + /// Control the value (position) of the widget within its valid range. + /// Values outside the limits defined in are ignored and an error is printed. + /// The range value (must be within the bounds of ). public double RangeValue { get { return GetRangeValue(); } set { SetRangeValue(value); } } + /// Set the minimum and maximum values for given range widget. + /// If the current value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The resulting value can be obtained with . + /// + /// The default minimum and maximum values may be different for each class. + /// + /// Note: maximum must be greater than minimum, otherwise behavior is undefined. + /// The minimum value. + public (double, double) RangeLimits { + get { + double _out_min = default(double); + double _out_max = default(double); + GetRangeLimits(out _out_min,out _out_max); + return (_out_min,_out_max); + } + set { SetRangeLimits( value.Item1, value.Item2); } + } private static IntPtr GetEflClassStatic() { return Efl.Ui.Progressbar.efl_ui_progressbar_class_get(); @@ -2014,3 +2173,51 @@ public class Progressbar : Efl.Ui.LayoutBase, Efl.IContent, Efl.IText, Efl.IText } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiProgressbar_ExtensionMethods { + public static Efl.BindableProperty PulseMode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Progressbar { + return new Efl.BindableProperty("pulse_mode", fac); + } + + public static Efl.BindableProperty Pulse(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Progressbar { + return new Efl.BindableProperty("pulse", fac); + } + + public static Efl.BindableProperty ShowProgressLabel(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Progressbar { + return new Efl.BindableProperty("show_progress_label", fac); + } + + public static Efl.BindableProperty Content(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Progressbar { + return new Efl.BindableProperty("content", fac); + } + + + public static Efl.BindableProperty Markup(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Progressbar { + return new Efl.BindableProperty("markup", fac); + } + + + + + public static Efl.BindableProperty FormatFunc(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Progressbar { + return new Efl.BindableProperty("format_func", fac); + } + + public static Efl.BindableProperty> FormatValues(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Progressbar { + return new Efl.BindableProperty>("format_values", fac); + } + + + public static Efl.BindableProperty Orientation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Progressbar { + return new Efl.BindableProperty("orientation", fac); + } + + public static Efl.BindableProperty RangeValue(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Progressbar { + return new Efl.BindableProperty("range_value", fac); + } + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar_legacy_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar_legacy_part.eo.cs old mode 100644 new mode 100755 index ea36c4f54..5858cf588 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar_legacy_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar_legacy_part.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Elementary progressbar internal part class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.ProgressbarLegacyPart.NativeMethods] [Efl.Eo.BindingEntity] public class ProgressbarLegacyPart : Efl.Ui.LayoutPartContent { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class ProgressbarLegacyPart : Efl.Ui.LayoutPartContent FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected ProgressbarLegacyPart(ConstructingHandle ch) : base(ch) { @@ -94,3 +97,9 @@ public class ProgressbarLegacyPart : Efl.Ui.LayoutPartContent } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiProgressbarLegacyPart_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar_part.eo.cs old mode 100644 new mode 100755 index b415e44eb..ef20167a3 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_progressbar_part.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Elementary progressbar internal part class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.ProgressbarPart.NativeMethods] [Efl.Eo.BindingEntity] public class ProgressbarPart : Efl.Ui.LayoutPart, Efl.Ui.IRangeDisplay { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class ProgressbarPart : Efl.Ui.LayoutPart, Efl.Ui.IRangeDisplay FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected ProgressbarPart(ConstructingHandle ch) : base(ch) { @@ -61,27 +64,183 @@ public class ProgressbarPart : Efl.Ui.LayoutPart, Efl.Ui.IRangeDisplay { } - /// Control the range value (in percentage) on a given range widget - /// Use this call to set range levels. - /// - /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. - /// The range value (must be between $0.0 and 1.0) + /// Emitted when the is getting changed. + public event EventHandler ChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_RANGE_EVENT_CHANGED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_RANGE_EVENT_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ChangedEvt. + public void OnChangedEvt(EventArgs e) + { + var key = "_EFL_UI_RANGE_EVENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Emitted when the has reached the minimum of . + public event EventHandler MinReachedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_RANGE_EVENT_MIN_REACHED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_RANGE_EVENT_MIN_REACHED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event MinReachedEvt. + public void OnMinReachedEvt(EventArgs e) + { + var key = "_EFL_UI_RANGE_EVENT_MIN_REACHED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Emitted when the range_value has reached the maximum of . + public event EventHandler MaxReachedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_RANGE_EVENT_MAX_REACHED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_RANGE_EVENT_MAX_REACHED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event MaxReachedEvt. + public void OnMaxReachedEvt(EventArgs e) + { + var key = "_EFL_UI_RANGE_EVENT_MAX_REACHED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Control the value (position) of the widget within its valid range. + /// Values outside the limits defined in are ignored and an error is printed. + /// The range value (must be within the bounds of ). virtual public double GetRangeValue() { var _ret_var = Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_value_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Control the range value (in percentage) on a given range widget - /// Use this call to set range levels. - /// - /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. - /// The range value (must be between $0.0 and 1.0) + /// Control the value (position) of the widget within its valid range. + /// Values outside the limits defined in are ignored and an error is printed. + /// The range value (must be within the bounds of ). virtual public void SetRangeValue(double val) { Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_value_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),val); Eina.Error.RaiseIfUnhandledException(); } - /// Get the minimum and maximum values of the given range widget. - /// Note: If only one value is needed, the other pointer can be passed as null. + /// Set the minimum and maximum values for given range widget. + /// If the current value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The resulting value can be obtained with . + /// + /// The default minimum and maximum values may be different for each class. + /// + /// Note: maximum must be greater than minimum, otherwise behavior is undefined. /// The minimum value. /// The maximum value. virtual public void GetRangeLimits(out double min, out double max) { @@ -89,28 +248,40 @@ public class ProgressbarPart : Efl.Ui.LayoutPart, Efl.Ui.IRangeDisplay Eina.Error.RaiseIfUnhandledException(); } /// Set the minimum and maximum values for given range widget. - /// Define the allowed range of values to be selected by the user. + /// If the current value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The resulting value can be obtained with . /// - /// If actual value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The actual value can be obtained with + /// The default minimum and maximum values may be different for each class. /// - /// The minimum and maximum values may be different for each class. - /// - /// Warning: maximum must be greater than minimum, otherwise behavior is undefined. + /// Note: maximum must be greater than minimum, otherwise behavior is undefined. /// The minimum value. /// The maximum value. virtual public void SetRangeLimits(double min, double max) { Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_limits_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),min, max); Eina.Error.RaiseIfUnhandledException(); } - /// Control the range value (in percentage) on a given range widget - /// Use this call to set range levels. - /// - /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. - /// The range value (must be between $0.0 and 1.0) + /// Control the value (position) of the widget within its valid range. + /// Values outside the limits defined in are ignored and an error is printed. + /// The range value (must be within the bounds of ). public double RangeValue { get { return GetRangeValue(); } set { SetRangeValue(value); } } + /// Set the minimum and maximum values for given range widget. + /// If the current value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The resulting value can be obtained with . + /// + /// The default minimum and maximum values may be different for each class. + /// + /// Note: maximum must be greater than minimum, otherwise behavior is undefined. + /// The minimum value. + public (double, double) RangeLimits { + get { + double _out_min = default(double); + double _out_max = default(double); + GetRangeLimits(out _out_min,out _out_max); + return (_out_min,_out_max); + } + set { SetRangeLimits( value.Item1, value.Item2); } + } private static IntPtr GetEflClassStatic() { return Efl.Ui.ProgressbarPart.efl_ui_progressbar_part_class_get(); @@ -328,3 +499,17 @@ public class ProgressbarPart : Efl.Ui.LayoutPart, Efl.Ui.IRangeDisplay } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiProgressbarPart_ExtensionMethods { + public static Efl.BindableProperty RangeValue(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ProgressbarPart { + return new Efl.BindableProperty("range_value", fac); + } +public static Efl.BindableProperty RangeValue(this Efl.BindablePart part, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ProgressbarPart { + return new Efl.BindableProperty(part.PartName, "range_value", part.Binder); + } + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_property_bind.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_property_bind.eo.cs old mode 100644 new mode 100755 index 3d41c1115..16033639f --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_property_bind.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_property_bind.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Ui { /// Efl UI Property_Bind interface. view object can have to manage the data, the interface can help loading and tracking child data from the model property. see see +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.IPropertyBindConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IPropertyBind : @@ -21,29 +23,34 @@ public interface IPropertyBind : /// 0 when it succeed, an error code otherwise. Eina.Error PropertyBind(System.String key, System.String property); /// Event dispatched when a property on the object has changed due to an user interaction on the object that a model could be interested in. + /// event EventHandler PropertiesChangedEvt; /// Event dispatched when a property on the object is bound to a model. This is useful to not overgenerate event. + /// event EventHandler PropertyBoundEvt; } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IPropertyBindPropertiesChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Event dispatched when a property on the object has changed due to an user interaction on the object that a model could be interested in. public Efl.Ui.PropertyEvent arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IPropertyBindPropertyBoundEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Event dispatched when a property on the object is bound to a model. This is useful to not overgenerate event. public System.String arg { get; set; } } /// Efl UI Property_Bind interface. view object can have to manage the data, the interface can help loading and tracking child data from the model property. see see -sealed public class IPropertyBindConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IPropertyBindConcrete : Efl.Eo.EoWrapper , IPropertyBind { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -59,7 +66,8 @@ sealed public class IPropertyBindConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IPropertyBindConcrete(ConstructingHandle ch) : base(ch) { @@ -75,6 +83,7 @@ sealed public class IPropertyBindConcrete : } /// Event dispatched when a property on the object has changed due to an user interaction on the object that a model could be interested in. + /// public event EventHandler PropertiesChangedEvt { add @@ -114,7 +123,7 @@ sealed public class IPropertyBindConcrete : } } } - ///Method to raise event PropertiesChangedEvt. + /// Method to raise event PropertiesChangedEvt. public void OnPropertiesChangedEvt(Efl.Ui.IPropertyBindPropertiesChangedEvt_Args e) { var key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTIES_CHANGED"; @@ -137,6 +146,7 @@ sealed public class IPropertyBindConcrete : } } /// Event dispatched when a property on the object is bound to a model. This is useful to not overgenerate event. + /// public event EventHandler PropertyBoundEvt { add @@ -176,7 +186,7 @@ sealed public class IPropertyBindConcrete : } } } - ///Method to raise event PropertyBoundEvt. + /// Method to raise event PropertyBoundEvt. public void OnPropertyBoundEvt(Efl.Ui.IPropertyBindPropertyBoundEvt_Args e) { var key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTY_BOUND"; @@ -287,6 +297,12 @@ sealed public class IPropertyBindConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiIPropertyBindConcrete_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Ui { @@ -298,15 +314,16 @@ public struct PropertyEvent { /// List of changed properties public Eina.Array Changed_properties; - ///Constructor for PropertyEvent. + /// Constructor for PropertyEvent. + /// List of changed properties; public PropertyEvent( Eina.Array Changed_properties = default(Eina.Array) ) { this.Changed_properties = Changed_properties; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator PropertyEvent(IntPtr ptr) { var tmp = (PropertyEvent.NativeStruct)Marshal.PtrToStructure(ptr, typeof(PropertyEvent.NativeStruct)); @@ -315,13 +332,13 @@ public struct PropertyEvent #pragma warning disable CS1591 - ///Internal wrapper for struct PropertyEvent. + /// Internal wrapper for struct PropertyEvent. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { public System.IntPtr Changed_properties; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator PropertyEvent.NativeStruct(PropertyEvent _external_struct) { var _internal_struct = new PropertyEvent.NativeStruct(); @@ -329,7 +346,7 @@ public struct PropertyEvent return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator PropertyEvent(PropertyEvent.NativeStruct _internal_struct) { var _external_struct = new PropertyEvent(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_property_bind_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_property_bind_part.eo.cs new file mode 100755 index 000000000..6525a8979 --- /dev/null +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_property_bind_part.eo.cs @@ -0,0 +1,288 @@ +#define EFL_BETA +#pragma warning disable CS1591 +using System; +using System.Runtime.InteropServices; +using System.Collections.Generic; +using System.Linq; +using System.Threading; +using System.ComponentModel; +namespace Efl { + +namespace Ui { + +/// Every part returned by an will enable the to remember what part to call on when an item is created enabling to propagate binding model property to item object property. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +[Efl.Ui.PropertyBindPart.NativeMethods] +[Efl.Eo.BindingEntity] +public class PropertyBindPart : Efl.Object, Efl.Ui.IPropertyBind +{ + /// Pointer to the native class description. + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(PropertyBindPart)) + { + return GetEflClassStatic(); + } + else + { + return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } + } + } + + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr + efl_ui_property_bind_part_class_get(); + /// Initializes a new instance of the class. + /// Parent instance. + public PropertyBindPart(Efl.Object parent= null + ) : base(efl_ui_property_bind_part_class_get(), parent) + { + FinishInstantiation(); + } + + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. + /// Tag struct storing the native handle of the object being constructed. + protected PropertyBindPart(ConstructingHandle ch) : base(ch) + { + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. + protected PropertyBindPart(Efl.Eo.Globals.WrappingHandle wh) : base(wh) + { + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The Efl.Object parent of this instance. + protected PropertyBindPart(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) + { + } + + /// Event dispatched when a property on the object has changed due to an user interaction on the object that a model could be interested in. + /// + public event EventHandler PropertiesChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.IPropertyBindPropertiesChangedEvt_Args args = new Efl.Ui.IPropertyBindPropertiesChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTIES_CHANGED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTIES_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event PropertiesChangedEvt. + public void OnPropertiesChangedEvt(Efl.Ui.IPropertyBindPropertiesChangedEvt_Args e) + { + var key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTIES_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Event dispatched when a property on the object is bound to a model. This is useful to not overgenerate event. + /// + public event EventHandler PropertyBoundEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.IPropertyBindPropertyBoundEvt_Args args = new Efl.Ui.IPropertyBindPropertyBoundEvt_Args(); + args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTY_BOUND"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTY_BOUND"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event PropertyBoundEvt. + public void OnPropertyBoundEvt(Efl.Ui.IPropertyBindPropertyBoundEvt_Args e) + { + var key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTY_BOUND"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Eina.StringConversion.ManagedStringToNativeUtf8Alloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Eina.MemoryNative.Free(info); + } + } + /// bind property data with the given key string. when the data is ready or changed, bind the data to the key action and process promised work. + /// key string for bind model property data + /// Model property name + /// 0 when it succeed, an error code otherwise. + virtual public Eina.Error PropertyBind(System.String key, System.String property) { + var _ret_var = Efl.Ui.IPropertyBindConcrete.NativeMethods.efl_ui_property_bind_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),key, property); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + private static IntPtr GetEflClassStatic() + { + return Efl.Ui.PropertyBindPart.efl_ui_property_bind_part_class_get(); + } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Object.NativeMethods + { + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// Gets the list of Eo operations to override. + /// The list of Eo operations to be overload. + public override System.Collections.Generic.List GetEoOps(System.Type type) + { + var descs = new System.Collections.Generic.List(); + var methods = Efl.Eo.Globals.GetUserMethods(type); + + if (efl_ui_property_bind_static_delegate == null) + { + efl_ui_property_bind_static_delegate = new efl_ui_property_bind_delegate(property_bind); + } + + if (methods.FirstOrDefault(m => m.Name == "PropertyBind") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_property_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_property_bind_static_delegate) }); + } + + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.PropertyBindPart.efl_ui_property_bind_part_class_get(); + } + + #pragma warning disable CA1707, CS1591, SA1300, SA1600 + + + private delegate Eina.Error efl_ui_property_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + + public delegate Eina.Error efl_ui_property_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + public static Efl.Eo.FunctionWrapper efl_ui_property_bind_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_property_bind"); + + private static Eina.Error property_bind(System.IntPtr obj, System.IntPtr pd, System.String key, System.String property) + { + Eina.Log.Debug("function efl_ui_property_bind was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((PropertyBindPart)ws.Target).PropertyBind(key, property); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_property_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, property); + } + } + + private static efl_ui_property_bind_delegate efl_ui_property_bind_static_delegate; + + #pragma warning restore CA1707, CS1591, SA1300, SA1600 + +} +} +} + +} + +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiPropertyBindPart_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_radio.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_radio.eo.cs old mode 100644 new mode 100755 index 5f56afbe7..29bb0a449 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_radio.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_radio.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -15,11 +16,12 @@ namespace Ui { /// They are a common way to allow a user to select one option among a list. /// /// To handle button grouping, you can either use an object or use more convenient widgets like . +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Radio.NativeMethods] [Efl.Eo.BindingEntity] public class Radio : Efl.Ui.Check { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -51,7 +53,8 @@ public class Radio : Efl.Ui.Check FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Radio(ConstructingHandle ch) : base(ch) { @@ -227,3 +230,13 @@ public class Radio : Efl.Ui.Check } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiRadio_ExtensionMethods { + public static Efl.BindableProperty StateValue(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Radio { + return new Efl.BindableProperty("state_value", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_radio_box.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_radio_box.eo.cs old mode 100644 new mode 100755 index fc3ab9383..4015a251a --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_radio_box.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_radio_box.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Ui { /// A standard container which automatically handles grouping of any widget added to it. /// All widgets are added to the same internal group which you only indirectly access through this object. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.RadioBox.NativeMethods] [Efl.Eo.BindingEntity] public class RadioBox : Efl.Ui.Box, Efl.Ui.IRadioGroup { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -47,7 +49,8 @@ public class RadioBox : Efl.Ui.Box, Efl.Ui.IRadioGroup FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected RadioBox(ConstructingHandle ch) : base(ch) { @@ -69,6 +72,7 @@ public class RadioBox : Efl.Ui.Box, Efl.Ui.IRadioGroup } /// Emitted each time the selected_value changes. The event information contains the of the newly selected button or -1 if no button is now selected. + /// public event EventHandler ValueChangedEvt { add @@ -108,7 +112,7 @@ public class RadioBox : Efl.Ui.Box, Efl.Ui.IRadioGroup } } } - ///Method to raise event ValueChangedEvt. + /// Method to raise event ValueChangedEvt. public void OnValueChangedEvt(Efl.Ui.IRadioGroupValueChangedEvt_Args e) { var key = "_EFL_UI_RADIO_GROUP_EVENT_VALUE_CHANGED"; @@ -499,3 +503,17 @@ public class RadioBox : Efl.Ui.Box, Efl.Ui.IRadioGroup } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiRadioBox_ExtensionMethods { + public static Efl.BindableProperty SelectedObject(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.RadioBox { + return new Efl.BindableProperty("selected_object", fac); + } + + public static Efl.BindableProperty SelectedValue(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.RadioBox { + return new Efl.BindableProperty("selected_value", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_radio_group.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_radio_group.eo.cs old mode 100644 new mode 100755 index fbe36b35e..0d62745d6 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_radio_group.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_radio_group.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,6 +12,7 @@ namespace Ui { /// Interface for manually handling a group of buttons. /// See the documentation of for an explanation of radio button grouping. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.IRadioGroupConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IRadioGroup : @@ -45,36 +47,39 @@ void Register(Efl.Ui.Radio radio); /// The radio button to remove from the group. void Unregister(Efl.Ui.Radio radio); /// Emitted each time the selected_value changes. The event information contains the of the newly selected button or -1 if no button is now selected. + /// event EventHandler ValueChangedEvt; /// Currently selected button in a radio button group, or NULL if no button is selected. /// See also . /// The currently selected radio button in the group, or NULL. Efl.Ui.Radio SelectedObject { - get ; - set ; + get; + set; } /// The value associated with the currently selected button in the group. Give each radio button in the group a different value using . /// A value of -1 means that no button is selected. Only values associated with the buttons in the group (and -1) can be used. /// The value of the currently selected radio button, or -1. int SelectedValue { - get ; - set ; + get; + set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IRadioGroupValueChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Emitted each time the selected_value changes. The event information contains the of the newly selected button or -1 if no button is now selected. public int arg { get; set; } } /// Interface for manually handling a group of buttons. /// See the documentation of for an explanation of radio button grouping. -sealed public class IRadioGroupConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IRadioGroupConcrete : Efl.Eo.EoWrapper , IRadioGroup { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -90,7 +95,8 @@ sealed public class IRadioGroupConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IRadioGroupConcrete(ConstructingHandle ch) : base(ch) { @@ -106,6 +112,7 @@ sealed public class IRadioGroupConcrete : } /// Emitted each time the selected_value changes. The event information contains the of the newly selected button or -1 if no button is now selected. + /// public event EventHandler ValueChangedEvt { add @@ -145,7 +152,7 @@ sealed public class IRadioGroupConcrete : } } } - ///Method to raise event ValueChangedEvt. + /// Method to raise event ValueChangedEvt. public void OnValueChangedEvt(Efl.Ui.IRadioGroupValueChangedEvt_Args e) { var key = "_EFL_UI_RADIO_GROUP_EVENT_VALUE_CHANGED"; @@ -535,3 +542,17 @@ sealed public class IRadioGroupConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiIRadioGroupConcrete_ExtensionMethods { + public static Efl.BindableProperty SelectedObject(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IRadioGroup { + return new Efl.BindableProperty("selected_object", fac); + } + + public static Efl.BindableProperty SelectedValue(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IRadioGroup { + return new Efl.BindableProperty("selected_value", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_radio_group_impl.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_radio_group_impl.eo.cs old mode 100644 new mode 100755 index 225533a44..01179e428 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_radio_group_impl.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_radio_group_impl.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Object with the default implementation for . +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.RadioGroupImpl.NativeMethods] [Efl.Eo.BindingEntity] public class RadioGroupImpl : Efl.Object, Efl.Ui.IRadioGroup { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class RadioGroupImpl : Efl.Object, Efl.Ui.IRadioGroup FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected RadioGroupImpl(ConstructingHandle ch) : base(ch) { @@ -62,6 +65,7 @@ public class RadioGroupImpl : Efl.Object, Efl.Ui.IRadioGroup } /// Emitted each time the selected_value changes. The event information contains the of the newly selected button or -1 if no button is now selected. + /// public event EventHandler ValueChangedEvt { add @@ -101,7 +105,7 @@ public class RadioGroupImpl : Efl.Object, Efl.Ui.IRadioGroup } } } - ///Method to raise event ValueChangedEvt. + /// Method to raise event ValueChangedEvt. public void OnValueChangedEvt(Efl.Ui.IRadioGroupValueChangedEvt_Args e) { var key = "_EFL_UI_RADIO_GROUP_EVENT_VALUE_CHANGED"; @@ -492,3 +496,17 @@ public class RadioGroupImpl : Efl.Object, Efl.Ui.IRadioGroup } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiRadioGroupImpl_ExtensionMethods { + public static Efl.BindableProperty SelectedObject(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.RadioGroupImpl { + return new Efl.BindableProperty("selected_object", fac); + } + + public static Efl.BindableProperty SelectedValue(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.RadioGroupImpl { + return new Efl.BindableProperty("selected_value", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_radio_legacy_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_radio_legacy_part.eo.cs old mode 100644 new mode 100755 index 4001ef107..b771413a2 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_radio_legacy_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_radio_legacy_part.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Elementary radio internal part class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.RadioLegacyPart.NativeMethods] [Efl.Eo.BindingEntity] public class RadioLegacyPart : Efl.Ui.LayoutPartContent { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class RadioLegacyPart : Efl.Ui.LayoutPartContent FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected RadioLegacyPart(ConstructingHandle ch) : base(ch) { @@ -94,3 +97,9 @@ public class RadioLegacyPart : Efl.Ui.LayoutPartContent } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiRadioLegacyPart_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_range_display.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_range_display.eo.cs old mode 100644 new mode 100755 index 50aa94742..a27cb351f --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_range_display.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_range_display.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,57 +10,74 @@ namespace Efl { namespace Ui { -/// Interface that contains properties regarding the displaying of a range. +/// Interface that contains properties regarding the displaying of a value within a range. +/// A value range contains a value restricted between specified minimum and maximum limits at all times. This can be used for progressbars, sliders or spinners, for example. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.IRangeDisplayConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IRangeDisplay : Efl.Eo.IWrapper, IDisposable { - /// Control the range value (in percentage) on a given range widget -/// Use this call to set range levels. -/// -/// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. -/// The range value (must be between $0.0 and 1.0) + /// Control the value (position) of the widget within its valid range. +/// Values outside the limits defined in are ignored and an error is printed. +/// The range value (must be within the bounds of ). double GetRangeValue(); - /// Control the range value (in percentage) on a given range widget -/// Use this call to set range levels. -/// -/// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. -/// The range value (must be between $0.0 and 1.0) + /// Control the value (position) of the widget within its valid range. +/// Values outside the limits defined in are ignored and an error is printed. +/// The range value (must be within the bounds of ). void SetRangeValue(double val); - /// Get the minimum and maximum values of the given range widget. -/// Note: If only one value is needed, the other pointer can be passed as null. + /// Set the minimum and maximum values for given range widget. +/// If the current value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The resulting value can be obtained with . +/// +/// The default minimum and maximum values may be different for each class. +/// +/// Note: maximum must be greater than minimum, otherwise behavior is undefined. /// The minimum value. /// The maximum value. void GetRangeLimits(out double min, out double max); /// Set the minimum and maximum values for given range widget. -/// Define the allowed range of values to be selected by the user. +/// If the current value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The resulting value can be obtained with . /// -/// If actual value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The actual value can be obtained with +/// The default minimum and maximum values may be different for each class. /// -/// The minimum and maximum values may be different for each class. -/// -/// Warning: maximum must be greater than minimum, otherwise behavior is undefined. +/// Note: maximum must be greater than minimum, otherwise behavior is undefined. /// The minimum value. /// The maximum value. void SetRangeLimits(double min, double max); - /// Control the range value (in percentage) on a given range widget - /// Use this call to set range levels. - /// - /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. - /// The range value (must be between $0.0 and 1.0) + /// Emitted when the is getting changed. + event EventHandler ChangedEvt; + /// Emitted when the has reached the minimum of . + event EventHandler MinReachedEvt; + /// Emitted when the range_value has reached the maximum of . + event EventHandler MaxReachedEvt; + /// Control the value (position) of the widget within its valid range. + /// Values outside the limits defined in are ignored and an error is printed. + /// The range value (must be within the bounds of ). double RangeValue { - get ; - set ; + get; + set; + } + /// Set the minimum and maximum values for given range widget. + /// If the current value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The resulting value can be obtained with . + /// + /// The default minimum and maximum values may be different for each class. + /// + /// Note: maximum must be greater than minimum, otherwise behavior is undefined. + /// The minimum value. + (double, double) RangeLimits { + get; + set; } } -/// Interface that contains properties regarding the displaying of a range. -sealed public class IRangeDisplayConcrete : +/// Interface that contains properties regarding the displaying of a value within a range. +/// A value range contains a value restricted between specified minimum and maximum limits at all times. This can be used for progressbars, sliders or spinners, for example. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IRangeDisplayConcrete : Efl.Eo.EoWrapper , IRangeDisplay { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -75,7 +93,8 @@ sealed public class IRangeDisplayConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IRangeDisplayConcrete(ConstructingHandle ch) : base(ch) { @@ -90,27 +109,183 @@ sealed public class IRangeDisplayConcrete : { } - /// Control the range value (in percentage) on a given range widget - /// Use this call to set range levels. - /// - /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. - /// The range value (must be between $0.0 and 1.0) + /// Emitted when the is getting changed. + public event EventHandler ChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_RANGE_EVENT_CHANGED"; + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_RANGE_EVENT_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Efl, key, value); + } + } + } + /// Method to raise event ChangedEvt. + public void OnChangedEvt(EventArgs e) + { + var key = "_EFL_UI_RANGE_EVENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Emitted when the has reached the minimum of . + public event EventHandler MinReachedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_RANGE_EVENT_MIN_REACHED"; + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_RANGE_EVENT_MIN_REACHED"; + RemoveNativeEventHandler(efl.Libs.Efl, key, value); + } + } + } + /// Method to raise event MinReachedEvt. + public void OnMinReachedEvt(EventArgs e) + { + var key = "_EFL_UI_RANGE_EVENT_MIN_REACHED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Emitted when the range_value has reached the maximum of . + public event EventHandler MaxReachedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_RANGE_EVENT_MAX_REACHED"; + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_RANGE_EVENT_MAX_REACHED"; + RemoveNativeEventHandler(efl.Libs.Efl, key, value); + } + } + } + /// Method to raise event MaxReachedEvt. + public void OnMaxReachedEvt(EventArgs e) + { + var key = "_EFL_UI_RANGE_EVENT_MAX_REACHED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Control the value (position) of the widget within its valid range. + /// Values outside the limits defined in are ignored and an error is printed. + /// The range value (must be within the bounds of ). public double GetRangeValue() { var _ret_var = Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_value_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Control the range value (in percentage) on a given range widget - /// Use this call to set range levels. - /// - /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. - /// The range value (must be between $0.0 and 1.0) + /// Control the value (position) of the widget within its valid range. + /// Values outside the limits defined in are ignored and an error is printed. + /// The range value (must be within the bounds of ). public void SetRangeValue(double val) { Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_value_set_ptr.Value.Delegate(this.NativeHandle,val); Eina.Error.RaiseIfUnhandledException(); } - /// Get the minimum and maximum values of the given range widget. - /// Note: If only one value is needed, the other pointer can be passed as null. + /// Set the minimum and maximum values for given range widget. + /// If the current value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The resulting value can be obtained with . + /// + /// The default minimum and maximum values may be different for each class. + /// + /// Note: maximum must be greater than minimum, otherwise behavior is undefined. /// The minimum value. /// The maximum value. public void GetRangeLimits(out double min, out double max) { @@ -118,28 +293,40 @@ sealed public class IRangeDisplayConcrete : Eina.Error.RaiseIfUnhandledException(); } /// Set the minimum and maximum values for given range widget. - /// Define the allowed range of values to be selected by the user. - /// - /// If actual value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The actual value can be obtained with + /// If the current value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The resulting value can be obtained with . /// - /// The minimum and maximum values may be different for each class. + /// The default minimum and maximum values may be different for each class. /// - /// Warning: maximum must be greater than minimum, otherwise behavior is undefined. + /// Note: maximum must be greater than minimum, otherwise behavior is undefined. /// The minimum value. /// The maximum value. public void SetRangeLimits(double min, double max) { Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_limits_set_ptr.Value.Delegate(this.NativeHandle,min, max); Eina.Error.RaiseIfUnhandledException(); } - /// Control the range value (in percentage) on a given range widget - /// Use this call to set range levels. - /// - /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. - /// The range value (must be between $0.0 and 1.0) + /// Control the value (position) of the widget within its valid range. + /// Values outside the limits defined in are ignored and an error is printed. + /// The range value (must be within the bounds of ). public double RangeValue { get { return GetRangeValue(); } set { SetRangeValue(value); } } + /// Set the minimum and maximum values for given range widget. + /// If the current value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The resulting value can be obtained with . + /// + /// The default minimum and maximum values may be different for each class. + /// + /// Note: maximum must be greater than minimum, otherwise behavior is undefined. + /// The minimum value. + public (double, double) RangeLimits { + get { + double _out_min = default(double); + double _out_max = default(double); + GetRangeLimits(out _out_min,out _out_max); + return (_out_min,_out_max); + } + set { SetRangeLimits( value.Item1, value.Item2); } + } private static IntPtr GetEflClassStatic() { return Efl.Ui.IRangeDisplayConcrete.efl_ui_range_display_interface_get(); @@ -356,3 +543,14 @@ sealed public class IRangeDisplayConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiIRangeDisplayConcrete_ExtensionMethods { + public static Efl.BindableProperty RangeValue(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IRangeDisplay { + return new Efl.BindableProperty("range_value", fac); + } + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_range_interactive.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_range_interactive.eo.cs old mode 100644 new mode 100755 index 989076a4e..1a109dd60 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_range_interactive.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_range_interactive.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,6 +12,7 @@ namespace Ui { /// Interface that extends the normal displaying properties with usage properties. /// The properties defined here are used to manipulate the way a user interacts with a displayed range. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.IRangeInteractiveConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IRangeInteractive : @@ -33,7 +35,9 @@ double GetRangeStep(); /// Warning: The step value should be bigger than 0. /// The step value. void SetRangeStep(double step); - /// Control the step used to increment or decrement values for given widget. + /// Called when the widget's value has changed and has remained unchanged for 0.2s. This allows filtering out unwanted "noise" from the widget if you are only interested in its final position. Use this event instead of if you are going to perform a costly operation on its handler. + event EventHandler SteadyEvt; + /// Control the step used to increment or decrement values for given widget. /// This value will be incremented or decremented to the displayed value. /// /// By default step value is equal to 1. @@ -41,18 +45,19 @@ void SetRangeStep(double step); /// Warning: The step value should be bigger than 0. /// The step value. double RangeStep { - get ; - set ; + get; + set; } } /// Interface that extends the normal displaying properties with usage properties. /// The properties defined here are used to manipulate the way a user interacts with a displayed range. -sealed public class IRangeInteractiveConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IRangeInteractiveConcrete : Efl.Eo.EoWrapper , IRangeInteractive , Efl.Ui.IRangeDisplay { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -68,7 +73,8 @@ sealed public class IRangeInteractiveConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IRangeInteractiveConcrete(ConstructingHandle ch) : base(ch) { @@ -83,6 +89,214 @@ sealed public class IRangeInteractiveConcrete : { } + /// Called when the widget's value has changed and has remained unchanged for 0.2s. This allows filtering out unwanted "noise" from the widget if you are only interested in its final position. Use this event instead of if you are going to perform a costly operation on its handler. + public event EventHandler SteadyEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_RANGE_EVENT_STEADY"; + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_RANGE_EVENT_STEADY"; + RemoveNativeEventHandler(efl.Libs.Efl, key, value); + } + } + } + /// Method to raise event SteadyEvt. + public void OnSteadyEvt(EventArgs e) + { + var key = "_EFL_UI_RANGE_EVENT_STEADY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Emitted when the is getting changed. + public event EventHandler ChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_RANGE_EVENT_CHANGED"; + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_RANGE_EVENT_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Efl, key, value); + } + } + } + /// Method to raise event ChangedEvt. + public void OnChangedEvt(EventArgs e) + { + var key = "_EFL_UI_RANGE_EVENT_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Emitted when the has reached the minimum of . + public event EventHandler MinReachedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_RANGE_EVENT_MIN_REACHED"; + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_RANGE_EVENT_MIN_REACHED"; + RemoveNativeEventHandler(efl.Libs.Efl, key, value); + } + } + } + /// Method to raise event MinReachedEvt. + public void OnMinReachedEvt(EventArgs e) + { + var key = "_EFL_UI_RANGE_EVENT_MIN_REACHED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Emitted when the range_value has reached the maximum of . + public event EventHandler MaxReachedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_RANGE_EVENT_MAX_REACHED"; + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_RANGE_EVENT_MAX_REACHED"; + RemoveNativeEventHandler(efl.Libs.Efl, key, value); + } + } + } + /// Method to raise event MaxReachedEvt. + public void OnMaxReachedEvt(EventArgs e) + { + var key = "_EFL_UI_RANGE_EVENT_MAX_REACHED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } /// Control the step used to increment or decrement values for given widget. /// This value will be incremented or decremented to the displayed value. /// @@ -106,27 +320,27 @@ sealed public class IRangeInteractiveConcrete : Efl.Ui.IRangeInteractiveConcrete.NativeMethods.efl_ui_range_step_set_ptr.Value.Delegate(this.NativeHandle,step); Eina.Error.RaiseIfUnhandledException(); } - /// Control the range value (in percentage) on a given range widget - /// Use this call to set range levels. - /// - /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. - /// The range value (must be between $0.0 and 1.0) + /// Control the value (position) of the widget within its valid range. + /// Values outside the limits defined in are ignored and an error is printed. + /// The range value (must be within the bounds of ). public double GetRangeValue() { var _ret_var = Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_value_get_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Control the range value (in percentage) on a given range widget - /// Use this call to set range levels. - /// - /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. - /// The range value (must be between $0.0 and 1.0) + /// Control the value (position) of the widget within its valid range. + /// Values outside the limits defined in are ignored and an error is printed. + /// The range value (must be within the bounds of ). public void SetRangeValue(double val) { Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_value_set_ptr.Value.Delegate(this.NativeHandle,val); Eina.Error.RaiseIfUnhandledException(); } - /// Get the minimum and maximum values of the given range widget. - /// Note: If only one value is needed, the other pointer can be passed as null. + /// Set the minimum and maximum values for given range widget. + /// If the current value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The resulting value can be obtained with . + /// + /// The default minimum and maximum values may be different for each class. + /// + /// Note: maximum must be greater than minimum, otherwise behavior is undefined. /// The minimum value. /// The maximum value. public void GetRangeLimits(out double min, out double max) { @@ -134,13 +348,11 @@ sealed public class IRangeInteractiveConcrete : Eina.Error.RaiseIfUnhandledException(); } /// Set the minimum and maximum values for given range widget. - /// Define the allowed range of values to be selected by the user. - /// - /// If actual value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The actual value can be obtained with + /// If the current value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The resulting value can be obtained with . /// - /// The minimum and maximum values may be different for each class. + /// The default minimum and maximum values may be different for each class. /// - /// Warning: maximum must be greater than minimum, otherwise behavior is undefined. + /// Note: maximum must be greater than minimum, otherwise behavior is undefined. /// The minimum value. /// The maximum value. public void SetRangeLimits(double min, double max) { @@ -158,15 +370,29 @@ sealed public class IRangeInteractiveConcrete : get { return GetRangeStep(); } set { SetRangeStep(value); } } - /// Control the range value (in percentage) on a given range widget - /// Use this call to set range levels. - /// - /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. - /// The range value (must be between $0.0 and 1.0) + /// Control the value (position) of the widget within its valid range. + /// Values outside the limits defined in are ignored and an error is printed. + /// The range value (must be within the bounds of ). public double RangeValue { get { return GetRangeValue(); } set { SetRangeValue(value); } } + /// Set the minimum and maximum values for given range widget. + /// If the current value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The resulting value can be obtained with . + /// + /// The default minimum and maximum values may be different for each class. + /// + /// Note: maximum must be greater than minimum, otherwise behavior is undefined. + /// The minimum value. + public (double, double) RangeLimits { + get { + double _out_min = default(double); + double _out_max = default(double); + GetRangeLimits(out _out_min,out _out_max); + return (_out_min,_out_max); + } + set { SetRangeLimits( value.Item1, value.Item2); } + } private static IntPtr GetEflClassStatic() { return Efl.Ui.IRangeInteractiveConcrete.efl_ui_range_interactive_interface_get(); @@ -474,3 +700,18 @@ sealed public class IRangeInteractiveConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiIRangeInteractiveConcrete_ExtensionMethods { + public static Efl.BindableProperty RangeStep(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IRangeInteractive { + return new Efl.BindableProperty("range_step", fac); + } + + public static Efl.BindableProperty RangeValue(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IRangeInteractive { + return new Efl.BindableProperty("range_value", fac); + } + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_relative_layout.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_relative_layout.eo.cs old mode 100644 new mode 100755 index f7ffaeada..396e63760 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_relative_layout.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_relative_layout.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Ui { /// The relative layout class. /// A relative layout calculates the size and position of all the children based on their relationship to each other. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.RelativeLayout.NativeMethods] [Efl.Eo.BindingEntity] public class RelativeLayout : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLayout { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -47,7 +49,8 @@ public class RelativeLayout : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPac FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected RelativeLayout(ConstructingHandle ch) : base(ch) { @@ -70,6 +73,7 @@ public class RelativeLayout : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPac /// Sent after a new sub-object was added. /// (Since EFL 1.22) + /// public event EventHandler ContentAddedEvt { add @@ -109,7 +113,7 @@ public class RelativeLayout : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPac } } } - ///Method to raise event ContentAddedEvt. + /// Method to raise event ContentAddedEvt. public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; @@ -125,6 +129,7 @@ public class RelativeLayout : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPac } /// Sent after a sub-object was removed, before unref. /// (Since EFL 1.22) + /// public event EventHandler ContentRemovedEvt { add @@ -164,7 +169,7 @@ public class RelativeLayout : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPac } } } - ///Method to raise event ContentRemovedEvt. + /// Method to raise event ContentRemovedEvt. public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; @@ -217,7 +222,7 @@ public class RelativeLayout : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPac } } } - ///Method to raise event LayoutUpdatedEvt. + /// Method to raise event LayoutUpdatedEvt. public void OnLayoutUpdatedEvt(EventArgs e) { var key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; @@ -1120,3 +1125,13 @@ public class RelativeLayout : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPac } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiRelativeLayout_ExtensionMethods { + + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_scroll_alert_popup.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_scroll_alert_popup.eo.cs deleted file mode 100644 index 846c85cc2..000000000 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_scroll_alert_popup.eo.cs +++ /dev/null @@ -1,220 +0,0 @@ -#pragma warning disable CS1591 -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.ComponentModel; -namespace Efl { - -namespace Ui { - -/// EFL UI Scroll Alert Popup class -[Efl.Ui.ScrollAlertPopup.NativeMethods] -[Efl.Eo.BindingEntity] -public class ScrollAlertPopup : Efl.Ui.AlertPopup -{ - ///Pointer to the native class description. - public override System.IntPtr NativeClass - { - get - { - if (((object)this).GetType() == typeof(ScrollAlertPopup)) - { - return GetEflClassStatic(); - } - else - { - return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; - } - } - } - - [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - efl_ui_scroll_alert_popup_class_get(); - /// Initializes a new instance of the class. - /// Parent instance. - /// The widget style to use. See - public ScrollAlertPopup(Efl.Object parent - , System.String style = null) : base(efl_ui_scroll_alert_popup_class_get(), parent) - { - if (Efl.Eo.Globals.ParamHelperCheck(style)) - { - SetStyle(Efl.Eo.Globals.GetParamHelper(style)); - } - - FinishInstantiation(); - } - - /// Constructor to be used when objects are expected to be constructed from native code. - /// Tag struct storing the native handle of the object being constructed. - protected ScrollAlertPopup(ConstructingHandle ch) : base(ch) - { - } - - /// Initializes a new instance of the class. - /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. - /// The native pointer to be wrapped. - protected ScrollAlertPopup(Efl.Eo.Globals.WrappingHandle wh) : base(wh) - { - } - - /// Initializes a new instance of the class. - /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - /// The pointer to the base native Eo class. - /// The Efl.Object parent of this instance. - protected ScrollAlertPopup(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) - { - } - - /// Get the expandable max size of popup. - /// If the given max_size is -1, then popup appears with its size. However, if the given max_size is bigger than 0 the popup size is up to the given max_size. If popup content's min size is bigger than the given max_size the scroller appears in the popup content area. - /// A 2D max size in pixel units. - virtual public Eina.Size2D GetExpandable() { - var _ret_var = Efl.Ui.ScrollAlertPopup.NativeMethods.efl_ui_scroll_alert_popup_expandable_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Set the expandable max size of popup. - /// If the given max_size is -1, then a popup appears with its size. However, if the given max_size is bigger than 0 the popup size is up to the given max_size. If popup content's min size is bigger than the given max_size the scroller appears in the popup content area. - /// A 2D max size in pixel units. - virtual public void SetExpandable(Eina.Size2D max_size) { - Eina.Size2D.NativeStruct _in_max_size = max_size; - Efl.Ui.ScrollAlertPopup.NativeMethods.efl_ui_scroll_alert_popup_expandable_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_max_size); - Eina.Error.RaiseIfUnhandledException(); - } - /// Get the expandable max size of popup. - /// If the given max_size is -1, then popup appears with its size. However, if the given max_size is bigger than 0 the popup size is up to the given max_size. If popup content's min size is bigger than the given max_size the scroller appears in the popup content area. - /// A 2D max size in pixel units. - public Eina.Size2D Expandable { - get { return GetExpandable(); } - set { SetExpandable(value); } - } - private static IntPtr GetEflClassStatic() - { - return Efl.Ui.ScrollAlertPopup.efl_ui_scroll_alert_popup_class_get(); - } - /// Wrapper for native methods and virtual method delegates. - /// For internal use by generated code only. - public new class NativeMethods : Efl.Ui.AlertPopup.NativeMethods - { - private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); - /// Gets the list of Eo operations to override. - /// The list of Eo operations to be overload. - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - - if (efl_ui_scroll_alert_popup_expandable_get_static_delegate == null) - { - efl_ui_scroll_alert_popup_expandable_get_static_delegate = new efl_ui_scroll_alert_popup_expandable_get_delegate(expandable_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetExpandable") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scroll_alert_popup_expandable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scroll_alert_popup_expandable_get_static_delegate) }); - } - - if (efl_ui_scroll_alert_popup_expandable_set_static_delegate == null) - { - efl_ui_scroll_alert_popup_expandable_set_static_delegate = new efl_ui_scroll_alert_popup_expandable_set_delegate(expandable_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetExpandable") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_scroll_alert_popup_expandable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_scroll_alert_popup_expandable_set_static_delegate) }); - } - - descs.AddRange(base.GetEoOps(type)); - return descs; - } - /// Returns the Eo class for the native methods of this class. - /// The native class pointer. - public override IntPtr GetEflClass() - { - return Efl.Ui.ScrollAlertPopup.efl_ui_scroll_alert_popup_class_get(); - } - - #pragma warning disable CA1707, CS1591, SA1300, SA1600 - - - private delegate Eina.Size2D.NativeStruct efl_ui_scroll_alert_popup_expandable_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate Eina.Size2D.NativeStruct efl_ui_scroll_alert_popup_expandable_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_scroll_alert_popup_expandable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scroll_alert_popup_expandable_get"); - - private static Eina.Size2D.NativeStruct expandable_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_scroll_alert_popup_expandable_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Eina.Size2D _ret_var = default(Eina.Size2D); - try - { - _ret_var = ((ScrollAlertPopup)ws.Target).GetExpandable(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_scroll_alert_popup_expandable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_scroll_alert_popup_expandable_get_delegate efl_ui_scroll_alert_popup_expandable_get_static_delegate; - - - private delegate void efl_ui_scroll_alert_popup_expandable_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct max_size); - - - public delegate void efl_ui_scroll_alert_popup_expandable_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct max_size); - - public static Efl.Eo.FunctionWrapper efl_ui_scroll_alert_popup_expandable_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_scroll_alert_popup_expandable_set"); - - private static void expandable_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct max_size) - { - Eina.Log.Debug("function efl_ui_scroll_alert_popup_expandable_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Eina.Size2D _in_max_size = max_size; - - try - { - ((ScrollAlertPopup)ws.Target).SetExpandable(_in_max_size); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_scroll_alert_popup_expandable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), max_size); - } - } - - private static efl_ui_scroll_alert_popup_expandable_set_delegate efl_ui_scroll_alert_popup_expandable_set_static_delegate; - - #pragma warning restore CA1707, CS1591, SA1300, SA1600 - -} -} -} - -} - diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_scroll_alert_popup_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_scroll_alert_popup_part.eo.cs deleted file mode 100644 index a2f4b3ca7..000000000 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_scroll_alert_popup_part.eo.cs +++ /dev/null @@ -1,437 +0,0 @@ -#pragma warning disable CS1591 -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.ComponentModel; -namespace Efl { - -namespace Ui { - -/// Efl UI Scroll Alert Popup internal part class -[Efl.Ui.ScrollAlertPopupPart.NativeMethods] -[Efl.Eo.BindingEntity] -public class ScrollAlertPopupPart : Efl.Ui.LayoutPart, Efl.IContent, Efl.IText -{ - ///Pointer to the native class description. - public override System.IntPtr NativeClass - { - get - { - if (((object)this).GetType() == typeof(ScrollAlertPopupPart)) - { - return GetEflClassStatic(); - } - else - { - return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; - } - } - } - - [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - efl_ui_scroll_alert_popup_part_class_get(); - /// Initializes a new instance of the class. - /// Parent instance. - public ScrollAlertPopupPart(Efl.Object parent= null - ) : base(efl_ui_scroll_alert_popup_part_class_get(), parent) - { - FinishInstantiation(); - } - - /// Constructor to be used when objects are expected to be constructed from native code. - /// Tag struct storing the native handle of the object being constructed. - protected ScrollAlertPopupPart(ConstructingHandle ch) : base(ch) - { - } - - /// Initializes a new instance of the class. - /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. - /// The native pointer to be wrapped. - protected ScrollAlertPopupPart(Efl.Eo.Globals.WrappingHandle wh) : base(wh) - { - } - - /// Initializes a new instance of the class. - /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - /// The pointer to the base native Eo class. - /// The Efl.Object parent of this instance. - protected ScrollAlertPopupPart(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) - { - } - - /// Sent after the content is set or unset using the current content object. - /// (Since EFL 1.22) - public event EventHandler ContentChangedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete); - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ContentChangedEvt. - public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) - { - var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = e.arg.NativeHandle; - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - /// Sub-object currently set as this object's single content. - /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). - /// (Since EFL 1.22) - /// The sub-object. - virtual public Efl.Gfx.IEntity GetContent() { - var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Sub-object currently set as this object's single content. - /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). - /// (Since EFL 1.22) - /// The sub-object. - /// true if content was successfully swallowed. - virtual public bool SetContent(Efl.Gfx.IEntity content) { - var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),content); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Remove the sub-object currently set as content of this object and return it. This object becomes empty. - /// (Since EFL 1.22) - /// Unswallowed object - virtual public Efl.Gfx.IEntity UnsetContent() { - var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Retrieves the text string currently being displayed by the given text object. - /// Do not free() the return value. - /// - /// See also . - /// (Since EFL 1.22) - /// Text string to display on it. - virtual public System.String GetText() { - var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Sets the text string to be displayed by the given text object. - /// See also . - /// (Since EFL 1.22) - /// Text string to display on it. - virtual public void SetText(System.String text) { - Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),text); - Eina.Error.RaiseIfUnhandledException(); - } - /// Sub-object currently set as this object's single content. - /// If it is set multiple times, previous sub-objects are removed first. Therefore, if an invalid content is set the object will become empty (it will have no sub-object). - /// (Since EFL 1.22) - /// The sub-object. - public Efl.Gfx.IEntity Content { - get { return GetContent(); } - set { SetContent(value); } - } - private static IntPtr GetEflClassStatic() - { - return Efl.Ui.ScrollAlertPopupPart.efl_ui_scroll_alert_popup_part_class_get(); - } - /// Wrapper for native methods and virtual method delegates. - /// For internal use by generated code only. - public new class NativeMethods : Efl.Ui.LayoutPart.NativeMethods - { - private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); - /// Gets the list of Eo operations to override. - /// The list of Eo operations to be overload. - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - - if (efl_content_get_static_delegate == null) - { - efl_content_get_static_delegate = new efl_content_get_delegate(content_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetContent") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate) }); - } - - if (efl_content_set_static_delegate == null) - { - efl_content_set_static_delegate = new efl_content_set_delegate(content_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetContent") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate) }); - } - - if (efl_content_unset_static_delegate == null) - { - efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset); - } - - if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate) }); - } - - if (efl_text_get_static_delegate == null) - { - efl_text_get_static_delegate = new efl_text_get_delegate(text_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetText") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); - } - - if (efl_text_set_static_delegate == null) - { - efl_text_set_static_delegate = new efl_text_set_delegate(text_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetText") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); - } - - descs.AddRange(base.GetEoOps(type)); - return descs; - } - /// Returns the Eo class for the native methods of this class. - /// The native class pointer. - public override IntPtr GetEflClass() - { - return Efl.Ui.ScrollAlertPopupPart.efl_ui_scroll_alert_popup_part_class_get(); - } - - #pragma warning disable CA1707, CS1591, SA1300, SA1600 - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_get"); - - private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try - { - _ret_var = ((ScrollAlertPopupPart)ws.Target).GetContent(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_content_get_delegate efl_content_get_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity content); - - public static Efl.Eo.FunctionWrapper efl_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_set"); - - private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content) - { - Eina.Log.Debug("function efl_content_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((ScrollAlertPopupPart)ws.Target).SetContent(content); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); - } - } - - private static efl_content_set_delegate efl_content_set_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_content_unset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_content_unset"); - - private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_content_unset was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); - try - { - _ret_var = ((ScrollAlertPopupPart)ws.Target).UnsetContent(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_content_unset_delegate efl_content_unset_static_delegate; - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); - - private static System.String text_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - System.String _ret_var = default(System.String); - try - { - _ret_var = ((ScrollAlertPopupPart)ws.Target).GetText(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_text_get_delegate efl_text_get_static_delegate; - - - private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - - - public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - - public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); - - private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((ScrollAlertPopupPart)ws.Target).SetText(text); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); - } - } - - private static efl_text_set_delegate efl_text_set_static_delegate; - - #pragma warning restore CA1707, CS1591, SA1300, SA1600 - -} -} -} - -} - diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_scroll_manager.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_scroll_manager.eo.cs old mode 100644 new mode 100755 index b107aa203..afb207eda --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_scroll_manager.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_scroll_manager.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -12,11 +13,12 @@ namespace Ui { namespace Scroll { /// Efl ui scroll manager class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Scroll.Manager.NativeMethods] [Efl.Eo.BindingEntity] public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScrollableInteractive, Efl.Ui.IScrollbar { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -42,7 +44,8 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Manager(ConstructingHandle ch) : base(ch) { @@ -102,7 +105,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr } } } - ///Method to raise event ScrollStartEvt. + /// Method to raise event ScrollStartEvt. public void OnScrollStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_START"; @@ -154,7 +157,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr } } } - ///Method to raise event ScrollEvt. + /// Method to raise event ScrollEvt. public void OnScrollEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL"; @@ -206,7 +209,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr } } } - ///Method to raise event ScrollStopEvt. + /// Method to raise event ScrollStopEvt. public void OnScrollStopEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_STOP"; @@ -258,7 +261,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr } } } - ///Method to raise event ScrollUpEvt. + /// Method to raise event ScrollUpEvt. public void OnScrollUpEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_UP"; @@ -310,7 +313,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr } } } - ///Method to raise event ScrollDownEvt. + /// Method to raise event ScrollDownEvt. public void OnScrollDownEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_DOWN"; @@ -362,7 +365,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr } } } - ///Method to raise event ScrollLeftEvt. + /// Method to raise event ScrollLeftEvt. public void OnScrollLeftEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_LEFT"; @@ -414,7 +417,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr } } } - ///Method to raise event ScrollRightEvt. + /// Method to raise event ScrollRightEvt. public void OnScrollRightEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_RIGHT"; @@ -466,7 +469,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr } } } - ///Method to raise event EdgeUpEvt. + /// Method to raise event EdgeUpEvt. public void OnEdgeUpEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_UP"; @@ -518,7 +521,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr } } } - ///Method to raise event EdgeDownEvt. + /// Method to raise event EdgeDownEvt. public void OnEdgeDownEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_DOWN"; @@ -570,7 +573,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr } } } - ///Method to raise event EdgeLeftEvt. + /// Method to raise event EdgeLeftEvt. public void OnEdgeLeftEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_LEFT"; @@ -622,7 +625,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr } } } - ///Method to raise event EdgeRightEvt. + /// Method to raise event EdgeRightEvt. public void OnEdgeRightEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_RIGHT"; @@ -674,7 +677,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr } } } - ///Method to raise event ScrollAnimStartEvt. + /// Method to raise event ScrollAnimStartEvt. public void OnScrollAnimStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; @@ -726,7 +729,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr } } } - ///Method to raise event ScrollAnimStopEvt. + /// Method to raise event ScrollAnimStopEvt. public void OnScrollAnimStopEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; @@ -778,7 +781,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr } } } - ///Method to raise event ScrollDragStartEvt. + /// Method to raise event ScrollDragStartEvt. public void OnScrollDragStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; @@ -830,7 +833,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr } } } - ///Method to raise event ScrollDragStopEvt. + /// Method to raise event ScrollDragStopEvt. public void OnScrollDragStopEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; @@ -844,6 +847,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when bar is pressed. + /// public event EventHandler BarPressEvt { add @@ -856,7 +860,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr if (obj != null) { Efl.Ui.IScrollbarBarPressEvt_Args args = new Efl.Ui.IScrollbarBarPressEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); @@ -883,7 +887,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr } } } - ///Method to raise event BarPressEvt. + /// Method to raise event BarPressEvt. public void OnBarPressEvt(Efl.Ui.IScrollbarBarPressEvt_Args e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; @@ -905,6 +909,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr } } /// Called when bar is unpressed. + /// public event EventHandler BarUnpressEvt { add @@ -917,7 +922,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr if (obj != null) { Efl.Ui.IScrollbarBarUnpressEvt_Args args = new Efl.Ui.IScrollbarBarUnpressEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); @@ -944,7 +949,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr } } } - ///Method to raise event BarUnpressEvt. + /// Method to raise event BarUnpressEvt. public void OnBarUnpressEvt(Efl.Ui.IScrollbarBarUnpressEvt_Args e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; @@ -966,6 +971,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr } } /// Called when bar is dragged. + /// public event EventHandler BarDragEvt { add @@ -978,7 +984,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr if (obj != null) { Efl.Ui.IScrollbarBarDragEvt_Args args = new Efl.Ui.IScrollbarBarDragEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); @@ -1005,7 +1011,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr } } } - ///Method to raise event BarDragEvt. + /// Method to raise event BarDragEvt. public void OnBarDragEvt(Efl.Ui.IScrollbarBarDragEvt_Args e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; @@ -1065,7 +1071,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr } } } - ///Method to raise event BarSizeChangedEvt. + /// Method to raise event BarSizeChangedEvt. public void OnBarSizeChangedEvt(EventArgs e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; @@ -1117,7 +1123,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr } } } - ///Method to raise event BarPosChangedEvt. + /// Method to raise event BarPosChangedEvt. public void OnBarPosChangedEvt(EventArgs e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; @@ -1131,6 +1137,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Callend when bar is shown. + /// public event EventHandler BarShowEvt { add @@ -1143,7 +1150,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr if (obj != null) { Efl.Ui.IScrollbarBarShowEvt_Args args = new Efl.Ui.IScrollbarBarShowEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); @@ -1170,7 +1177,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr } } } - ///Method to raise event BarShowEvt. + /// Method to raise event BarShowEvt. public void OnBarShowEvt(Efl.Ui.IScrollbarBarShowEvt_Args e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; @@ -1192,6 +1199,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr } } /// Called when bar is hidden. + /// public event EventHandler BarHideEvt { add @@ -1204,7 +1212,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr if (obj != null) { Efl.Ui.IScrollbarBarHideEvt_Args args = new Efl.Ui.IScrollbarBarHideEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); @@ -1231,7 +1239,7 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr } } } - ///Method to raise event BarHideEvt. + /// Method to raise event BarHideEvt. public void OnBarHideEvt(Efl.Ui.IScrollbarBarHideEvt_Args e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; @@ -1551,6 +1559,18 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr public Eina.Rect ViewportGeometry { get { return GetViewportGeometry(); } } + /// Bouncing behavior + /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. + /// Horizontal bounce policy. + public (bool, bool) BounceEnabled { + get { + bool _out_horiz = default(bool); + bool _out_vert = default(bool); + GetBounceEnabled(out _out_horiz,out _out_vert); + return (_out_horiz,_out_vert); + } + set { SetBounceEnabled( value.Item1, value.Item2); } + } /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . /// true if freeze, false otherwise public bool ScrollFreeze { @@ -1563,6 +1583,17 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr get { return GetScrollHold(); } set { SetScrollHold(value); } } + /// Controls an infinite loop for a scroller. + /// The scrolling horizontal loop + public (bool, bool) Looping { + get { + bool _out_loop_h = default(bool); + bool _out_loop_v = default(bool); + GetLooping(out _out_loop_h,out _out_loop_v); + return (_out_loop_h,_out_loop_v); + } + set { SetLooping( value.Item1, value.Item2); } + } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block @@ -1570,6 +1601,30 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr get { return GetMovementBlock(); } set { SetMovementBlock(value); } } + /// Control scrolling gravity on the scrollable + /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. + /// + /// The scroller will adjust the view to glue itself as follows. + /// + /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content + /// + /// Default values for x and y are 0.0 + /// Horizontal scrolling gravity + public (double, double) Gravity { + get { + double _out_x = default(double); + double _out_y = default(double); + GetGravity(out _out_x,out _out_y); + return (_out_x,_out_y); + } + set { SetGravity( value.Item1, value.Item2); } + } + /// Prevent the scrollable from being smaller than the minimum size of the content. + /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. + /// Whether to limit the minimum horizontal size + public (bool, bool) MatchContent { + set { SetMatchContent( value.Item1, value.Item2); } + } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels @@ -1577,6 +1632,37 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr get { return GetStepSize(); } set { SetStepSize(value); } } + /// Scrollbar visibility policy + /// Horizontal scrollbar. + public (Efl.Ui.ScrollbarMode, Efl.Ui.ScrollbarMode) BarMode { + get { + Efl.Ui.ScrollbarMode _out_hbar = default(Efl.Ui.ScrollbarMode); + Efl.Ui.ScrollbarMode _out_vbar = default(Efl.Ui.ScrollbarMode); + GetBarMode(out _out_hbar,out _out_vbar); + return (_out_hbar,_out_vbar); + } + set { SetBarMode( value.Item1, value.Item2); } + } + /// Scrollbar size. It is calculated based on viewport size-content sizes. + public (double, double) BarSize { + get { + double _out_width = default(double); + double _out_height = default(double); + GetBarSize(out _out_width,out _out_height); + return (_out_width,_out_height); + } + } + /// Scrollbar position. It is calculated based on current position-maximum positions. + /// Value between 0.0 and 1.0. + public (double, double) BarPosition { + get { + double _out_posx = default(double); + double _out_posy = default(double); + GetBarPosition(out _out_posx,out _out_posy); + return (_out_posx,_out_posy); + } + set { SetBarPosition( value.Item1, value.Item2); } + } private static IntPtr GetEflClassStatic() { return Efl.Ui.Scroll.Manager.efl_ui_scroll_manager_class_get(); @@ -3113,3 +3199,54 @@ public class Manager : Efl.Object, Efl.Ui.II18n, Efl.Ui.IScrollable, Efl.Ui.IScr } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Ui_ScrollManager_ExtensionMethods { + public static Efl.BindableProperty Pan(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Scroll.Manager { + return new Efl.BindableProperty("pan", fac); + } + + public static Efl.BindableProperty Mirrored(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Scroll.Manager { + return new Efl.BindableProperty("mirrored", fac); + } + + public static Efl.BindableProperty MirroredAutomatic(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Scroll.Manager { + return new Efl.BindableProperty("mirrored_automatic", fac); + } + + public static Efl.BindableProperty Language(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Scroll.Manager { + return new Efl.BindableProperty("language", fac); + } + + public static Efl.BindableProperty ContentPos(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Scroll.Manager { + return new Efl.BindableProperty("content_pos", fac); + } + + + + + public static Efl.BindableProperty ScrollFreeze(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Scroll.Manager { + return new Efl.BindableProperty("scroll_freeze", fac); + } + + public static Efl.BindableProperty ScrollHold(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Scroll.Manager { + return new Efl.BindableProperty("scroll_hold", fac); + } + + + public static Efl.BindableProperty MovementBlock(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Scroll.Manager { + return new Efl.BindableProperty("movement_block", fac); + } + + + + public static Efl.BindableProperty StepSize(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Scroll.Manager { + return new Efl.BindableProperty("step_size", fac); + } + + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_scrollable.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_scrollable.eo.cs old mode 100644 new mode 100755 index b3a96048b..e04162821 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_scrollable.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_scrollable.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Ui { /// Efl UI scrollable interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.IScrollableConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IScrollable : @@ -47,12 +49,13 @@ public interface IScrollable : event EventHandler ScrollDragStopEvt; } /// Efl UI scrollable interface -sealed public class IScrollableConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IScrollableConcrete : Efl.Eo.EoWrapper , IScrollable { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -68,7 +71,8 @@ sealed public class IScrollableConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IScrollableConcrete(ConstructingHandle ch) : base(ch) { @@ -122,7 +126,7 @@ sealed public class IScrollableConcrete : } } } - ///Method to raise event ScrollStartEvt. + /// Method to raise event ScrollStartEvt. public void OnScrollStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_START"; @@ -174,7 +178,7 @@ sealed public class IScrollableConcrete : } } } - ///Method to raise event ScrollEvt. + /// Method to raise event ScrollEvt. public void OnScrollEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL"; @@ -226,7 +230,7 @@ sealed public class IScrollableConcrete : } } } - ///Method to raise event ScrollStopEvt. + /// Method to raise event ScrollStopEvt. public void OnScrollStopEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_STOP"; @@ -278,7 +282,7 @@ sealed public class IScrollableConcrete : } } } - ///Method to raise event ScrollUpEvt. + /// Method to raise event ScrollUpEvt. public void OnScrollUpEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_UP"; @@ -330,7 +334,7 @@ sealed public class IScrollableConcrete : } } } - ///Method to raise event ScrollDownEvt. + /// Method to raise event ScrollDownEvt. public void OnScrollDownEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_DOWN"; @@ -382,7 +386,7 @@ sealed public class IScrollableConcrete : } } } - ///Method to raise event ScrollLeftEvt. + /// Method to raise event ScrollLeftEvt. public void OnScrollLeftEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_LEFT"; @@ -434,7 +438,7 @@ sealed public class IScrollableConcrete : } } } - ///Method to raise event ScrollRightEvt. + /// Method to raise event ScrollRightEvt. public void OnScrollRightEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_RIGHT"; @@ -486,7 +490,7 @@ sealed public class IScrollableConcrete : } } } - ///Method to raise event EdgeUpEvt. + /// Method to raise event EdgeUpEvt. public void OnEdgeUpEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_UP"; @@ -538,7 +542,7 @@ sealed public class IScrollableConcrete : } } } - ///Method to raise event EdgeDownEvt. + /// Method to raise event EdgeDownEvt. public void OnEdgeDownEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_DOWN"; @@ -590,7 +594,7 @@ sealed public class IScrollableConcrete : } } } - ///Method to raise event EdgeLeftEvt. + /// Method to raise event EdgeLeftEvt. public void OnEdgeLeftEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_LEFT"; @@ -642,7 +646,7 @@ sealed public class IScrollableConcrete : } } } - ///Method to raise event EdgeRightEvt. + /// Method to raise event EdgeRightEvt. public void OnEdgeRightEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_RIGHT"; @@ -694,7 +698,7 @@ sealed public class IScrollableConcrete : } } } - ///Method to raise event ScrollAnimStartEvt. + /// Method to raise event ScrollAnimStartEvt. public void OnScrollAnimStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; @@ -746,7 +750,7 @@ sealed public class IScrollableConcrete : } } } - ///Method to raise event ScrollAnimStopEvt. + /// Method to raise event ScrollAnimStopEvt. public void OnScrollAnimStopEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; @@ -798,7 +802,7 @@ sealed public class IScrollableConcrete : } } } - ///Method to raise event ScrollDragStartEvt. + /// Method to raise event ScrollDragStartEvt. public void OnScrollDragStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; @@ -850,7 +854,7 @@ sealed public class IScrollableConcrete : } } } - ///Method to raise event ScrollDragStopEvt. + /// Method to raise event ScrollDragStopEvt. public void OnScrollDragStopEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; @@ -895,6 +899,12 @@ sealed public class IScrollableConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiIScrollableConcrete_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Ui { diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_scrollable_interactive.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_scrollable_interactive.eo.cs old mode 100644 new mode 100755 index 6bf697dd3..1d44bd724 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_scrollable_interactive.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_scrollable_interactive.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,6 +10,7 @@ namespace Efl { namespace Ui { +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.IScrollableInteractiveConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IScrollableInteractive : @@ -108,52 +110,85 @@ void Scroll(Eina.Rect rect, bool animation); /// The content position /// The position is virtual value, (0, 0) starting at the top-left. Eina.Position2D ContentPos { - get ; - set ; + get; + set; } /// The content size /// The content size in pixels. Eina.Size2D ContentSize { - get ; + get; } /// The viewport geometry /// It is absolute geometry. Eina.Rect ViewportGeometry { - get ; + get; + } + /// Bouncing behavior + /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. + /// Horizontal bounce policy. + (bool, bool) BounceEnabled { + get; + set; } /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . /// true if freeze, false otherwise bool ScrollFreeze { - get ; - set ; + get; + set; } /// Hold property When hold turns on, it only scrolls by holding action. /// true if hold, false otherwise bool ScrollHold { - get ; - set ; + get; + set; + } + /// Controls an infinite loop for a scroller. + /// The scrolling horizontal loop + (bool, bool) Looping { + get; + set; } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block Efl.Ui.ScrollBlock MovementBlock { - get ; - set ; + get; + set; + } + /// Control scrolling gravity on the scrollable + /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. + /// + /// The scroller will adjust the view to glue itself as follows. + /// + /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content + /// + /// Default values for x and y are 0.0 + /// Horizontal scrolling gravity + (double, double) Gravity { + get; + set; + } + /// Prevent the scrollable from being smaller than the minimum size of the content. + /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. + /// Whether to limit the minimum horizontal size + (bool, bool) MatchContent { + set; } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels Eina.Position2D StepSize { - get ; - set ; + get; + set; } } -sealed public class IScrollableInteractiveConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IScrollableInteractiveConcrete : Efl.Eo.EoWrapper , IScrollableInteractive , Efl.Ui.IScrollable { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -169,7 +204,8 @@ sealed public class IScrollableInteractiveConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IScrollableInteractiveConcrete(ConstructingHandle ch) : base(ch) { @@ -223,7 +259,7 @@ sealed public class IScrollableInteractiveConcrete : } } } - ///Method to raise event ScrollStartEvt. + /// Method to raise event ScrollStartEvt. public void OnScrollStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_START"; @@ -275,7 +311,7 @@ sealed public class IScrollableInteractiveConcrete : } } } - ///Method to raise event ScrollEvt. + /// Method to raise event ScrollEvt. public void OnScrollEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL"; @@ -327,7 +363,7 @@ sealed public class IScrollableInteractiveConcrete : } } } - ///Method to raise event ScrollStopEvt. + /// Method to raise event ScrollStopEvt. public void OnScrollStopEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_STOP"; @@ -379,7 +415,7 @@ sealed public class IScrollableInteractiveConcrete : } } } - ///Method to raise event ScrollUpEvt. + /// Method to raise event ScrollUpEvt. public void OnScrollUpEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_UP"; @@ -431,7 +467,7 @@ sealed public class IScrollableInteractiveConcrete : } } } - ///Method to raise event ScrollDownEvt. + /// Method to raise event ScrollDownEvt. public void OnScrollDownEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_DOWN"; @@ -483,7 +519,7 @@ sealed public class IScrollableInteractiveConcrete : } } } - ///Method to raise event ScrollLeftEvt. + /// Method to raise event ScrollLeftEvt. public void OnScrollLeftEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_LEFT"; @@ -535,7 +571,7 @@ sealed public class IScrollableInteractiveConcrete : } } } - ///Method to raise event ScrollRightEvt. + /// Method to raise event ScrollRightEvt. public void OnScrollRightEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_RIGHT"; @@ -587,7 +623,7 @@ sealed public class IScrollableInteractiveConcrete : } } } - ///Method to raise event EdgeUpEvt. + /// Method to raise event EdgeUpEvt. public void OnEdgeUpEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_UP"; @@ -639,7 +675,7 @@ sealed public class IScrollableInteractiveConcrete : } } } - ///Method to raise event EdgeDownEvt. + /// Method to raise event EdgeDownEvt. public void OnEdgeDownEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_DOWN"; @@ -691,7 +727,7 @@ sealed public class IScrollableInteractiveConcrete : } } } - ///Method to raise event EdgeLeftEvt. + /// Method to raise event EdgeLeftEvt. public void OnEdgeLeftEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_LEFT"; @@ -743,7 +779,7 @@ sealed public class IScrollableInteractiveConcrete : } } } - ///Method to raise event EdgeRightEvt. + /// Method to raise event EdgeRightEvt. public void OnEdgeRightEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_RIGHT"; @@ -795,7 +831,7 @@ sealed public class IScrollableInteractiveConcrete : } } } - ///Method to raise event ScrollAnimStartEvt. + /// Method to raise event ScrollAnimStartEvt. public void OnScrollAnimStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; @@ -847,7 +883,7 @@ sealed public class IScrollableInteractiveConcrete : } } } - ///Method to raise event ScrollAnimStopEvt. + /// Method to raise event ScrollAnimStopEvt. public void OnScrollAnimStopEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; @@ -899,7 +935,7 @@ sealed public class IScrollableInteractiveConcrete : } } } - ///Method to raise event ScrollDragStartEvt. + /// Method to raise event ScrollDragStartEvt. public void OnScrollDragStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; @@ -951,7 +987,7 @@ sealed public class IScrollableInteractiveConcrete : } } } - ///Method to raise event ScrollDragStopEvt. + /// Method to raise event ScrollDragStopEvt. public void OnScrollDragStopEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; @@ -1140,6 +1176,18 @@ sealed public class IScrollableInteractiveConcrete : public Eina.Rect ViewportGeometry { get { return GetViewportGeometry(); } } + /// Bouncing behavior + /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. + /// Horizontal bounce policy. + public (bool, bool) BounceEnabled { + get { + bool _out_horiz = default(bool); + bool _out_vert = default(bool); + GetBounceEnabled(out _out_horiz,out _out_vert); + return (_out_horiz,_out_vert); + } + set { SetBounceEnabled( value.Item1, value.Item2); } + } /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . /// true if freeze, false otherwise public bool ScrollFreeze { @@ -1152,6 +1200,17 @@ sealed public class IScrollableInteractiveConcrete : get { return GetScrollHold(); } set { SetScrollHold(value); } } + /// Controls an infinite loop for a scroller. + /// The scrolling horizontal loop + public (bool, bool) Looping { + get { + bool _out_loop_h = default(bool); + bool _out_loop_v = default(bool); + GetLooping(out _out_loop_h,out _out_loop_v); + return (_out_loop_h,_out_loop_v); + } + set { SetLooping( value.Item1, value.Item2); } + } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block @@ -1159,6 +1218,30 @@ sealed public class IScrollableInteractiveConcrete : get { return GetMovementBlock(); } set { SetMovementBlock(value); } } + /// Control scrolling gravity on the scrollable + /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. + /// + /// The scroller will adjust the view to glue itself as follows. + /// + /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content + /// + /// Default values for x and y are 0.0 + /// Horizontal scrolling gravity + public (double, double) Gravity { + get { + double _out_x = default(double); + double _out_y = default(double); + GetGravity(out _out_x,out _out_y); + return (_out_x,_out_y); + } + set { SetGravity( value.Item1, value.Item2); } + } + /// Prevent the scrollable from being smaller than the minimum size of the content. + /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. + /// Whether to limit the minimum horizontal size + public (bool, bool) MatchContent { + set { SetMatchContent( value.Item1, value.Item2); } + } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels @@ -2111,3 +2194,35 @@ sealed public class IScrollableInteractiveConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiIScrollableInteractiveConcrete_ExtensionMethods { + public static Efl.BindableProperty ContentPos(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IScrollableInteractive { + return new Efl.BindableProperty("content_pos", fac); + } + + + + + public static Efl.BindableProperty ScrollFreeze(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IScrollableInteractive { + return new Efl.BindableProperty("scroll_freeze", fac); + } + + public static Efl.BindableProperty ScrollHold(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IScrollableInteractive { + return new Efl.BindableProperty("scroll_hold", fac); + } + + + public static Efl.BindableProperty MovementBlock(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IScrollableInteractive { + return new Efl.BindableProperty("movement_block", fac); + } + + + + public static Efl.BindableProperty StepSize(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IScrollableInteractive { + return new Efl.BindableProperty("step_size", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_scrollbar.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_scrollbar.eo.cs old mode 100644 new mode 100755 index b5420c323..1e566b43e --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_scrollbar.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_scrollbar.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Ui { /// Interface used by widgets which can display scrollbars, enabling them to contain more content than actually fits inside them. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.IScrollbarConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IScrollbar : @@ -39,57 +41,84 @@ void SetBarPosition(double posx, double posy); /// The object will call this function whenever the bar needs to be shown or hidden. void UpdateBarVisibility(); /// Called when bar is pressed. + /// event EventHandler BarPressEvt; /// Called when bar is unpressed. + /// event EventHandler BarUnpressEvt; /// Called when bar is dragged. + /// event EventHandler BarDragEvt; /// Called when bar size is changed. event EventHandler BarSizeChangedEvt; /// Called when bar position is changed. event EventHandler BarPosChangedEvt; /// Callend when bar is shown. + /// event EventHandler BarShowEvt; /// Called when bar is hidden. + /// event EventHandler BarHideEvt; + /// Scrollbar visibility policy + /// Horizontal scrollbar. + (Efl.Ui.ScrollbarMode, Efl.Ui.ScrollbarMode) BarMode { + get; + set; + } + /// Scrollbar size. It is calculated based on viewport size-content sizes. + (double, double) BarSize { + get; + } + /// Scrollbar position. It is calculated based on current position-maximum positions. + /// Value between 0.0 and 1.0. + (double, double) BarPosition { + get; + set; + } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IScrollbarBarPressEvt_Args : EventArgs { - ///Actual event payload. - public Efl.Ui.ScrollbarDirection arg { get; set; } + /// Actual event payload. + /// Called when bar is pressed. + public Efl.Ui.LayoutOrientation arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IScrollbarBarUnpressEvt_Args : EventArgs { - ///Actual event payload. - public Efl.Ui.ScrollbarDirection arg { get; set; } + /// Actual event payload. + /// Called when bar is unpressed. + public Efl.Ui.LayoutOrientation arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IScrollbarBarDragEvt_Args : EventArgs { - ///Actual event payload. - public Efl.Ui.ScrollbarDirection arg { get; set; } + /// Actual event payload. + /// Called when bar is dragged. + public Efl.Ui.LayoutOrientation arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IScrollbarBarShowEvt_Args : EventArgs { - ///Actual event payload. - public Efl.Ui.ScrollbarDirection arg { get; set; } + /// Actual event payload. + /// Callend when bar is shown. + public Efl.Ui.LayoutOrientation arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class IScrollbarBarHideEvt_Args : EventArgs { - ///Actual event payload. - public Efl.Ui.ScrollbarDirection arg { get; set; } + /// Actual event payload. + /// Called when bar is hidden. + public Efl.Ui.LayoutOrientation arg { get; set; } } /// Interface used by widgets which can display scrollbars, enabling them to contain more content than actually fits inside them. -sealed public class IScrollbarConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IScrollbarConcrete : Efl.Eo.EoWrapper , IScrollbar { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -105,7 +134,8 @@ sealed public class IScrollbarConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IScrollbarConcrete(ConstructingHandle ch) : base(ch) { @@ -121,6 +151,7 @@ sealed public class IScrollbarConcrete : } /// Called when bar is pressed. + /// public event EventHandler BarPressEvt { add @@ -133,7 +164,7 @@ sealed public class IScrollbarConcrete : if (obj != null) { Efl.Ui.IScrollbarBarPressEvt_Args args = new Efl.Ui.IScrollbarBarPressEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); @@ -160,7 +191,7 @@ sealed public class IScrollbarConcrete : } } } - ///Method to raise event BarPressEvt. + /// Method to raise event BarPressEvt. public void OnBarPressEvt(Efl.Ui.IScrollbarBarPressEvt_Args e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; @@ -182,6 +213,7 @@ sealed public class IScrollbarConcrete : } } /// Called when bar is unpressed. + /// public event EventHandler BarUnpressEvt { add @@ -194,7 +226,7 @@ sealed public class IScrollbarConcrete : if (obj != null) { Efl.Ui.IScrollbarBarUnpressEvt_Args args = new Efl.Ui.IScrollbarBarUnpressEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); @@ -221,7 +253,7 @@ sealed public class IScrollbarConcrete : } } } - ///Method to raise event BarUnpressEvt. + /// Method to raise event BarUnpressEvt. public void OnBarUnpressEvt(Efl.Ui.IScrollbarBarUnpressEvt_Args e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; @@ -243,6 +275,7 @@ sealed public class IScrollbarConcrete : } } /// Called when bar is dragged. + /// public event EventHandler BarDragEvt { add @@ -255,7 +288,7 @@ sealed public class IScrollbarConcrete : if (obj != null) { Efl.Ui.IScrollbarBarDragEvt_Args args = new Efl.Ui.IScrollbarBarDragEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); @@ -282,7 +315,7 @@ sealed public class IScrollbarConcrete : } } } - ///Method to raise event BarDragEvt. + /// Method to raise event BarDragEvt. public void OnBarDragEvt(Efl.Ui.IScrollbarBarDragEvt_Args e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; @@ -342,7 +375,7 @@ sealed public class IScrollbarConcrete : } } } - ///Method to raise event BarSizeChangedEvt. + /// Method to raise event BarSizeChangedEvt. public void OnBarSizeChangedEvt(EventArgs e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; @@ -394,7 +427,7 @@ sealed public class IScrollbarConcrete : } } } - ///Method to raise event BarPosChangedEvt. + /// Method to raise event BarPosChangedEvt. public void OnBarPosChangedEvt(EventArgs e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; @@ -408,6 +441,7 @@ sealed public class IScrollbarConcrete : Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Callend when bar is shown. + /// public event EventHandler BarShowEvt { add @@ -420,7 +454,7 @@ sealed public class IScrollbarConcrete : if (obj != null) { Efl.Ui.IScrollbarBarShowEvt_Args args = new Efl.Ui.IScrollbarBarShowEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); @@ -447,7 +481,7 @@ sealed public class IScrollbarConcrete : } } } - ///Method to raise event BarShowEvt. + /// Method to raise event BarShowEvt. public void OnBarShowEvt(Efl.Ui.IScrollbarBarShowEvt_Args e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; @@ -469,6 +503,7 @@ sealed public class IScrollbarConcrete : } } /// Called when bar is hidden. + /// public event EventHandler BarHideEvt { add @@ -481,7 +516,7 @@ sealed public class IScrollbarConcrete : if (obj != null) { Efl.Ui.IScrollbarBarHideEvt_Args args = new Efl.Ui.IScrollbarBarHideEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); @@ -508,7 +543,7 @@ sealed public class IScrollbarConcrete : } } } - ///Method to raise event BarHideEvt. + /// Method to raise event BarHideEvt. public void OnBarHideEvt(Efl.Ui.IScrollbarBarHideEvt_Args e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; @@ -570,6 +605,37 @@ sealed public class IScrollbarConcrete : Efl.Ui.IScrollbarConcrete.NativeMethods.efl_ui_scrollbar_bar_visibility_update_ptr.Value.Delegate(this.NativeHandle); Eina.Error.RaiseIfUnhandledException(); } + /// Scrollbar visibility policy + /// Horizontal scrollbar. + public (Efl.Ui.ScrollbarMode, Efl.Ui.ScrollbarMode) BarMode { + get { + Efl.Ui.ScrollbarMode _out_hbar = default(Efl.Ui.ScrollbarMode); + Efl.Ui.ScrollbarMode _out_vbar = default(Efl.Ui.ScrollbarMode); + GetBarMode(out _out_hbar,out _out_vbar); + return (_out_hbar,_out_vbar); + } + set { SetBarMode( value.Item1, value.Item2); } + } + /// Scrollbar size. It is calculated based on viewport size-content sizes. + public (double, double) BarSize { + get { + double _out_width = default(double); + double _out_height = default(double); + GetBarSize(out _out_width,out _out_height); + return (_out_width,_out_height); + } + } + /// Scrollbar position. It is calculated based on current position-maximum positions. + /// Value between 0.0 and 1.0. + public (double, double) BarPosition { + get { + double _out_posx = default(double); + double _out_posy = default(double); + GetBarPosition(out _out_posx,out _out_posy); + return (_out_posx,_out_posy); + } + set { SetBarPosition( value.Item1, value.Item2); } + } private static IntPtr GetEflClassStatic() { return Efl.Ui.IScrollbarConcrete.efl_ui_scrollbar_interface_get(); @@ -875,6 +941,15 @@ sealed public class IScrollbarConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiIScrollbarConcrete_ExtensionMethods { + + + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Ui { @@ -897,23 +972,3 @@ Last = 3, } -namespace Efl { - -namespace Ui { - -/// What kind of scrollbar is this. -[Efl.Eo.BindingEntity] -public enum ScrollbarDirection -{ -/// Goes along the X axis. -Horizontal = 0, -/// Goes along the Y axis. -Vertical = 1, -/// For internal use only -Last = 2, -} - -} - -} - diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_scroller.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_scroller.eo.cs old mode 100644 new mode 100755 index 4ed14ddfd..ae98d7071 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_scroller.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_scroller.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Efl ui scroller class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Scroller.NativeMethods] [Efl.Eo.BindingEntity] public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl.Ui.IScrollableInteractive, Efl.Ui.IScrollbar, Efl.Ui.IWidgetFocusManager, Efl.Ui.Focus.IManager, Efl.Ui.Focus.IManagerSub { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +48,8 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Scroller(ConstructingHandle ch) : base(ch) { @@ -69,6 +72,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) + /// public event EventHandler ContentChangedEvt { add @@ -108,7 +112,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event ContentChangedEvt. + /// Method to raise event ContentChangedEvt. public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; @@ -161,7 +165,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event ScrollStartEvt. + /// Method to raise event ScrollStartEvt. public void OnScrollStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_START"; @@ -213,7 +217,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event ScrollEvt. + /// Method to raise event ScrollEvt. public void OnScrollEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL"; @@ -265,7 +269,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event ScrollStopEvt. + /// Method to raise event ScrollStopEvt. public void OnScrollStopEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_STOP"; @@ -317,7 +321,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event ScrollUpEvt. + /// Method to raise event ScrollUpEvt. public void OnScrollUpEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_UP"; @@ -369,7 +373,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event ScrollDownEvt. + /// Method to raise event ScrollDownEvt. public void OnScrollDownEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_DOWN"; @@ -421,7 +425,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event ScrollLeftEvt. + /// Method to raise event ScrollLeftEvt. public void OnScrollLeftEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_LEFT"; @@ -473,7 +477,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event ScrollRightEvt. + /// Method to raise event ScrollRightEvt. public void OnScrollRightEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_RIGHT"; @@ -525,7 +529,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event EdgeUpEvt. + /// Method to raise event EdgeUpEvt. public void OnEdgeUpEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_UP"; @@ -577,7 +581,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event EdgeDownEvt. + /// Method to raise event EdgeDownEvt. public void OnEdgeDownEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_DOWN"; @@ -629,7 +633,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event EdgeLeftEvt. + /// Method to raise event EdgeLeftEvt. public void OnEdgeLeftEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_LEFT"; @@ -681,7 +685,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event EdgeRightEvt. + /// Method to raise event EdgeRightEvt. public void OnEdgeRightEvt(EventArgs e) { var key = "_EFL_UI_EVENT_EDGE_RIGHT"; @@ -733,7 +737,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event ScrollAnimStartEvt. + /// Method to raise event ScrollAnimStartEvt. public void OnScrollAnimStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; @@ -785,7 +789,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event ScrollAnimStopEvt. + /// Method to raise event ScrollAnimStopEvt. public void OnScrollAnimStopEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; @@ -837,7 +841,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event ScrollDragStartEvt. + /// Method to raise event ScrollDragStartEvt. public void OnScrollDragStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; @@ -889,7 +893,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event ScrollDragStopEvt. + /// Method to raise event ScrollDragStopEvt. public void OnScrollDragStopEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; @@ -903,6 +907,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when bar is pressed. + /// public event EventHandler BarPressEvt { add @@ -915,7 +920,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl if (obj != null) { Efl.Ui.IScrollbarBarPressEvt_Args args = new Efl.Ui.IScrollbarBarPressEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); @@ -942,7 +947,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event BarPressEvt. + /// Method to raise event BarPressEvt. public void OnBarPressEvt(Efl.Ui.IScrollbarBarPressEvt_Args e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_PRESS"; @@ -964,6 +969,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } /// Called when bar is unpressed. + /// public event EventHandler BarUnpressEvt { add @@ -976,7 +982,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl if (obj != null) { Efl.Ui.IScrollbarBarUnpressEvt_Args args = new Efl.Ui.IScrollbarBarUnpressEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); @@ -1003,7 +1009,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event BarUnpressEvt. + /// Method to raise event BarUnpressEvt. public void OnBarUnpressEvt(Efl.Ui.IScrollbarBarUnpressEvt_Args e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_UNPRESS"; @@ -1025,6 +1031,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } /// Called when bar is dragged. + /// public event EventHandler BarDragEvt { add @@ -1037,7 +1044,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl if (obj != null) { Efl.Ui.IScrollbarBarDragEvt_Args args = new Efl.Ui.IScrollbarBarDragEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); @@ -1064,7 +1071,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event BarDragEvt. + /// Method to raise event BarDragEvt. public void OnBarDragEvt(Efl.Ui.IScrollbarBarDragEvt_Args e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_DRAG"; @@ -1124,7 +1131,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event BarSizeChangedEvt. + /// Method to raise event BarSizeChangedEvt. public void OnBarSizeChangedEvt(EventArgs e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SIZE_CHANGED"; @@ -1176,7 +1183,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event BarPosChangedEvt. + /// Method to raise event BarPosChangedEvt. public void OnBarPosChangedEvt(EventArgs e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_POS_CHANGED"; @@ -1190,6 +1197,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Callend when bar is shown. + /// public event EventHandler BarShowEvt { add @@ -1202,7 +1210,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl if (obj != null) { Efl.Ui.IScrollbarBarShowEvt_Args args = new Efl.Ui.IScrollbarBarShowEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); @@ -1229,7 +1237,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event BarShowEvt. + /// Method to raise event BarShowEvt. public void OnBarShowEvt(Efl.Ui.IScrollbarBarShowEvt_Args e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_SHOW"; @@ -1251,6 +1259,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } /// Called when bar is hidden. + /// public event EventHandler BarHideEvt { add @@ -1263,7 +1272,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl if (obj != null) { Efl.Ui.IScrollbarBarHideEvt_Args args = new Efl.Ui.IScrollbarBarHideEvt_Args(); - args.arg = (Efl.Ui.ScrollbarDirection)evt.Info; + args.arg = (Efl.Ui.LayoutOrientation)evt.Info; try { value?.Invoke(obj, args); @@ -1290,7 +1299,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event BarHideEvt. + /// Method to raise event BarHideEvt. public void OnBarHideEvt(Efl.Ui.IScrollbarBarHideEvt_Args e) { var key = "_EFL_UI_SCROLLBAR_EVENT_BAR_HIDE"; @@ -1313,6 +1322,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } /// Redirect object has changed, the old manager is passed as an event argument. /// (Since EFL 1.22) + /// public event EventHandler RedirectChangedEvt { add @@ -1352,7 +1362,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event RedirectChangedEvt. + /// Method to raise event RedirectChangedEvt. public void OnRedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; @@ -1406,7 +1416,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event FlushPreEvt. + /// Method to raise event FlushPreEvt. public void OnFlushPreEvt(EventArgs e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; @@ -1459,7 +1469,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event CoordsDirtyEvt. + /// Method to raise event CoordsDirtyEvt. public void OnCoordsDirtyEvt(EventArgs e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; @@ -1474,6 +1484,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } /// The manager_focus property has changed. The previously focused object is passed as an event argument. /// (Since EFL 1.22) + /// public event EventHandler ManagerFocusChangedEvt { add @@ -1513,7 +1524,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event ManagerFocusChangedEvt. + /// Method to raise event ManagerFocusChangedEvt. public void OnManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; @@ -1529,6 +1540,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } /// Called when this focus manager is frozen or thawed, even_info being true indicates that it is now frozen, false indicates that it is thawed. /// (Since EFL 1.22) + /// public event EventHandler DirtyLogicFreezeChangedEvt { add @@ -1568,7 +1580,7 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } } } - ///Method to raise event DirtyLogicFreezeChangedEvt. + /// Method to raise event DirtyLogicFreezeChangedEvt. public void OnDirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; @@ -1933,7 +1945,9 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } /// This will fetch the data from a registered node. /// Be aware this function will trigger a computation of all dirty nodes. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The child object to inspect. /// The list of relations starting from child. virtual public Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child) { @@ -2013,6 +2027,18 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl public Eina.Rect ViewportGeometry { get { return GetViewportGeometry(); } } + /// Bouncing behavior + /// When scrolling, the scroller may "bounce" when reaching the edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axes. This API will determine if it's enabled for the given axis with the boolean parameters for each one. + /// Horizontal bounce policy. + public (bool, bool) BounceEnabled { + get { + bool _out_horiz = default(bool); + bool _out_vert = default(bool); + GetBounceEnabled(out _out_horiz,out _out_vert); + return (_out_horiz,_out_vert); + } + set { SetBounceEnabled( value.Item1, value.Item2); } + } /// Freeze property This function will freeze scrolling movement (by input of a user). Unlike efl_ui_scrollable_movement_block_set, this function freezes bidirectionally. If you want to freeze in only one direction, See . /// true if freeze, false otherwise public bool ScrollFreeze { @@ -2025,6 +2051,17 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl get { return GetScrollHold(); } set { SetScrollHold(value); } } + /// Controls an infinite loop for a scroller. + /// The scrolling horizontal loop + public (bool, bool) Looping { + get { + bool _out_loop_h = default(bool); + bool _out_loop_v = default(bool); + GetLooping(out _out_loop_h,out _out_loop_v); + return (_out_loop_h,_out_loop_v); + } + set { SetLooping( value.Item1, value.Item2); } + } /// Blocking of scrolling (per axis) /// This function will block scrolling movement (by input of a user) in a given direction. You can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. /// Which axis (or axes) to block @@ -2032,6 +2069,30 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl get { return GetMovementBlock(); } set { SetMovementBlock(value); } } + /// Control scrolling gravity on the scrollable + /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. + /// + /// The scroller will adjust the view to glue itself as follows. + /// + /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content + /// + /// Default values for x and y are 0.0 + /// Horizontal scrolling gravity + public (double, double) Gravity { + get { + double _out_x = default(double); + double _out_y = default(double); + GetGravity(out _out_x,out _out_y); + return (_out_x,_out_y); + } + set { SetGravity( value.Item1, value.Item2); } + } + /// Prevent the scrollable from being smaller than the minimum size of the content. + /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. + /// Whether to limit the minimum horizontal size + public (bool, bool) MatchContent { + set { SetMatchContent( value.Item1, value.Item2); } + } /// Control the step size /// Use this call to set step size. This value is used when scroller scroll by arrow key event. /// The step size in pixels @@ -2039,6 +2100,37 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl get { return GetStepSize(); } set { SetStepSize(value); } } + /// Scrollbar visibility policy + /// Horizontal scrollbar. + public (Efl.Ui.ScrollbarMode, Efl.Ui.ScrollbarMode) BarMode { + get { + Efl.Ui.ScrollbarMode _out_hbar = default(Efl.Ui.ScrollbarMode); + Efl.Ui.ScrollbarMode _out_vbar = default(Efl.Ui.ScrollbarMode); + GetBarMode(out _out_hbar,out _out_vbar); + return (_out_hbar,_out_vbar); + } + set { SetBarMode( value.Item1, value.Item2); } + } + /// Scrollbar size. It is calculated based on viewport size-content sizes. + public (double, double) BarSize { + get { + double _out_width = default(double); + double _out_height = default(double); + GetBarSize(out _out_width,out _out_height); + return (_out_width,_out_height); + } + } + /// Scrollbar position. It is calculated based on current position-maximum positions. + /// Value between 0.0 and 1.0. + public (double, double) BarPosition { + get { + double _out_posx = default(double); + double _out_posy = default(double); + GetBarPosition(out _out_posx,out _out_posy); + return (_out_posx,_out_posy); + } + set { SetBarPosition( value.Item1, value.Item2); } + } /// The element which is currently focused by this manager /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. /// (Since EFL 1.22) @@ -4292,3 +4384,56 @@ public class Scroller : Efl.Ui.LayoutBase, Efl.IContent, Efl.Ui.IScrollable, Efl } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiScroller_ExtensionMethods { + public static Efl.BindableProperty Content(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Scroller { + return new Efl.BindableProperty("content", fac); + } + + public static Efl.BindableProperty ContentPos(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Scroller { + return new Efl.BindableProperty("content_pos", fac); + } + + + + + public static Efl.BindableProperty ScrollFreeze(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Scroller { + return new Efl.BindableProperty("scroll_freeze", fac); + } + + public static Efl.BindableProperty ScrollHold(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Scroller { + return new Efl.BindableProperty("scroll_hold", fac); + } + + + public static Efl.BindableProperty MovementBlock(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Scroller { + return new Efl.BindableProperty("movement_block", fac); + } + + + + public static Efl.BindableProperty StepSize(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Scroller { + return new Efl.BindableProperty("step_size", fac); + } + + + + + public static Efl.BindableProperty ManagerFocus(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Scroller { + return new Efl.BindableProperty("manager_focus", fac); + } + + public static Efl.BindableProperty Redirect(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Scroller { + return new Efl.BindableProperty("redirect", fac); + } + + + + public static Efl.BindableProperty Root(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Scroller { + return new Efl.BindableProperty("root", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_selectable.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_selectable.eo.cs old mode 100644 new mode 100755 index 1bfc4d1b7..0e8c8ed99 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_selectable.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_selectable.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,48 +10,49 @@ namespace Efl { namespace Ui { -/// Efl UI selectable interface +/// Selectable interface for ui objects +/// A object implementing this can be selected. When the selected property of this object changes, the selected,changed event is emitted. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.ISelectableConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface ISelectable : Efl.Eo.IWrapper, IDisposable { - /// Called when selected - event EventHandler ItemSelectedEvt; - /// Called when no longer selected - event EventHandler ItemUnselectedEvt; - /// Called when selection is pasted - event EventHandler SelectionPasteEvt; - /// Called when selection is copied - event EventHandler SelectionCopyEvt; - /// Called when selection is cut - event EventHandler SelectionCutEvt; - /// Called at selection start - event EventHandler SelectionStartEvt; - /// Called when selection is changed - event EventHandler SelectionChangedEvt; - /// Called when selection is cleared - event EventHandler SelectionClearedEvt; -} -///Event argument wrapper for event . -[Efl.Eo.BindingEntity] -public class ISelectableItemSelectedEvt_Args : EventArgs { - ///Actual event payload. - public Efl.Object arg { get; set; } + /// The selected state of this object +/// A change to this property emits the changed event. +/// The selected state of this object +bool GetSelected(); + /// The selected state of this object +/// A change to this property emits the changed event. +/// The selected state of this object +void SetSelected(bool selected); + /// Called when the selected state has changed + /// + event EventHandler SelectedChangedEvt; + /// The selected state of this object + /// A change to this property emits the changed event. + /// The selected state of this object + bool Selected { + get; + set; + } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] -public class ISelectableItemUnselectedEvt_Args : EventArgs { - ///Actual event payload. - public Efl.Object arg { get; set; } +public class ISelectableSelectedChangedEvt_Args : EventArgs { + /// Actual event payload. + /// Called when the selected state has changed + public bool arg { get; set; } } -/// Efl UI selectable interface -sealed public class ISelectableConcrete : +/// Selectable interface for ui objects +/// A object implementing this can be selected. When the selected property of this object changes, the selected,changed event is emitted. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class ISelectableConcrete : Efl.Eo.EoWrapper , ISelectable { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -66,13 +68,14 @@ sealed public class ISelectableConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ISelectableConcrete(ConstructingHandle ch) : base(ch) { } - [System.Runtime.InteropServices.DllImport("libefl.so.1")] internal static extern System.IntPtr + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_selectable_interface_get(); /// Initializes a new instance of the class. /// Internal usage: This is used when interacting with C code and should not be used directly. @@ -81,8 +84,9 @@ sealed public class ISelectableConcrete : { } - /// Called when selected - public event EventHandler ItemSelectedEvt + /// Called when the selected state has changed + /// + public event EventHandler SelectedChangedEvt { add { @@ -93,8 +97,8 @@ sealed public class ISelectableConcrete : var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.ISelectableItemSelectedEvt_Args args = new Efl.Ui.ISelectableItemSelectedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); + Efl.Ui.ISelectableSelectedChangedEvt_Args args = new Efl.Ui.ISelectableSelectedChangedEvt_Args(); + args.arg = Marshal.ReadByte(evt.Info) != 0; try { value?.Invoke(obj, args); @@ -107,8 +111,8 @@ sealed public class ISelectableConcrete : } }; - string key = "_EFL_UI_EVENT_ITEM_SELECTED"; - AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); + string key = "_EFL_UI_EVENT_SELECTED_CHANGED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -116,414 +120,171 @@ sealed public class ISelectableConcrete : { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_ITEM_SELECTED"; - RemoveNativeEventHandler(efl.Libs.Efl, key, value); + string key = "_EFL_UI_EVENT_SELECTED_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ItemSelectedEvt. - public void OnItemSelectedEvt(Efl.Ui.ISelectableItemSelectedEvt_Args e) + /// Method to raise event SelectedChangedEvt. + public void OnSelectedChangedEvt(Efl.Ui.ISelectableSelectedChangedEvt_Args e) { - var key = "_EFL_UI_EVENT_ITEM_SELECTED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + var key = "_EFL_UI_EVENT_SELECTED_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { Eina.Log.Error($"Failed to get native event {key}"); return; } - IntPtr info = e.arg.NativeHandle; - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - /// Called when no longer selected - public event EventHandler ItemUnselectedEvt - { - add + IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); + try { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.ISelectableItemUnselectedEvt_Args args = new Efl.Ui.ISelectableItemUnselectedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); - } + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } - - remove + finally { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - RemoveNativeEventHandler(efl.Libs.Efl, key, value); - } + Marshal.FreeHGlobal(info); } } - ///Method to raise event ItemUnselectedEvt. - public void OnItemUnselectedEvt(Efl.Ui.ISelectableItemUnselectedEvt_Args e) + /// The selected state of this object + /// A change to this property emits the changed event. + /// The selected state of this object + public bool GetSelected() { + var _ret_var = Efl.Ui.ISelectableConcrete.NativeMethods.efl_ui_selectable_selected_get_ptr.Value.Delegate(this.NativeHandle); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// The selected state of this object + /// A change to this property emits the changed event. + /// The selected state of this object + public void SetSelected(bool selected) { + Efl.Ui.ISelectableConcrete.NativeMethods.efl_ui_selectable_selected_set_ptr.Value.Delegate(this.NativeHandle,selected); + Eina.Error.RaiseIfUnhandledException(); + } + /// The selected state of this object + /// A change to this property emits the changed event. + /// The selected state of this object + public bool Selected { + get { return GetSelected(); } + set { SetSelected(value); } + } + private static IntPtr GetEflClassStatic() { - var key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = e.arg.NativeHandle; - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + return Efl.Ui.ISelectableConcrete.efl_ui_selectable_interface_get(); } - /// Called when selection is pasted - public event EventHandler SelectionPasteEvt + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods { - add + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// Gets the list of Eo operations to override. + /// The list of Eo operations to be overload. + public override System.Collections.Generic.List GetEoOps(System.Type type) { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; + var descs = new System.Collections.Generic.List(); + var methods = Efl.Eo.Globals.GetUserMethods(type); - string key = "_EFL_UI_EVENT_SELECTION_PASTE"; - AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); + if (efl_ui_selectable_selected_get_static_delegate == null) + { + efl_ui_selectable_selected_get_static_delegate = new efl_ui_selectable_selected_get_delegate(selected_get); } - } - remove - { - lock (eflBindingEventLock) + if (methods.FirstOrDefault(m => m.Name == "GetSelected") != null) { - string key = "_EFL_UI_EVENT_SELECTION_PASTE"; - RemoveNativeEventHandler(efl.Libs.Efl, key, value); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_selectable_selected_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selectable_selected_get_static_delegate) }); } - } - } - ///Method to raise event SelectionPasteEvt. - public void OnSelectionPasteEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SELECTION_PASTE"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when selection is copied - public event EventHandler SelectionCopyEvt - { - add - { - lock (eflBindingEventLock) + if (efl_ui_selectable_selected_set_static_delegate == null) { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SELECTION_COPY"; - AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); + efl_ui_selectable_selected_set_static_delegate = new efl_ui_selectable_selected_set_delegate(selected_set); } - } - remove - { - lock (eflBindingEventLock) + if (methods.FirstOrDefault(m => m.Name == "SetSelected") != null) { - string key = "_EFL_UI_EVENT_SELECTION_COPY"; - RemoveNativeEventHandler(efl.Libs.Efl, key, value); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_selectable_selected_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_selectable_selected_set_static_delegate) }); } + + return descs; } - } - ///Method to raise event SelectionCopyEvt. - public void OnSelectionCopyEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SELECTION_COPY"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() { - Eina.Log.Error($"Failed to get native event {key}"); - return; + return Efl.Ui.ISelectableConcrete.efl_ui_selectable_interface_get(); } - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when selection is cut - public event EventHandler SelectionCutEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; + #pragma warning disable CA1707, CS1591, SA1300, SA1600 - string key = "_EFL_UI_EVENT_SELECTION_CUT"; - AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); - } - } + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_selectable_selected_get_delegate(System.IntPtr obj, System.IntPtr pd); - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SELECTION_CUT"; - RemoveNativeEventHandler(efl.Libs.Efl, key, value); - } - } - } - ///Method to raise event SelectionCutEvt. - public void OnSelectionCutEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SELECTION_CUT"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_selectable_selected_get_api_delegate(System.IntPtr obj); - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called at selection start - public event EventHandler SelectionStartEvt - { - add + public static Efl.Eo.FunctionWrapper efl_ui_selectable_selected_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_selectable_selected_get"); + + private static bool selected_get(System.IntPtr obj, System.IntPtr pd) { - lock (eflBindingEventLock) + Eina.Log.Debug("function efl_ui_selectable_selected_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + bool _ret_var = default(bool); + try { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; + _ret_var = ((ISelectable)ws.Target).GetSelected(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - string key = "_EFL_UI_EVENT_SELECTION_START"; - AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); - } - } + return _ret_var; - remove - { - lock (eflBindingEventLock) + } + else { - string key = "_EFL_UI_EVENT_SELECTION_START"; - RemoveNativeEventHandler(efl.Libs.Efl, key, value); + return efl_ui_selectable_selected_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - } - ///Method to raise event SelectionStartEvt. - public void OnSelectionStartEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SELECTION_START"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when selection is changed - public event EventHandler SelectionChangedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; + private static efl_ui_selectable_selected_get_delegate efl_ui_selectable_selected_get_static_delegate; - string key = "_EFL_UI_EVENT_SELECTION_CHANGED"; - AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); - } - } + + private delegate void efl_ui_selectable_selected_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool selected); - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SELECTION_CHANGED"; - RemoveNativeEventHandler(efl.Libs.Efl, key, value); - } - } - } - ///Method to raise event SelectionChangedEvt. - public void OnSelectionChangedEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SELECTION_CHANGED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } + + public delegate void efl_ui_selectable_selected_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool selected); - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when selection is cleared - public event EventHandler SelectionClearedEvt - { - add + public static Efl.Eo.FunctionWrapper efl_ui_selectable_selected_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_selectable_selected_set"); + + private static void selected_set(System.IntPtr obj, System.IntPtr pd, bool selected) { - lock (eflBindingEventLock) + Eina.Log.Debug("function efl_ui_selectable_selected_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + + try { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; + ((ISelectable)ws.Target).SetSelected(selected); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } - string key = "_EFL_UI_EVENT_SELECTION_CLEARED"; - AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); + } - } - - remove - { - lock (eflBindingEventLock) + else { - string key = "_EFL_UI_EVENT_SELECTION_CLEARED"; - RemoveNativeEventHandler(efl.Libs.Efl, key, value); + efl_ui_selectable_selected_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), selected); } } - } - ///Method to raise event SelectionClearedEvt. - public void OnSelectionClearedEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SELECTION_CLEARED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - private static IntPtr GetEflClassStatic() - { - return Efl.Ui.ISelectableConcrete.efl_ui_selectable_interface_get(); - } - /// Wrapper for native methods and virtual method delegates. - /// For internal use by generated code only. - public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods - { - /// Gets the list of Eo operations to override. - /// The list of Eo operations to be overload. - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - return descs; - } - /// Returns the Eo class for the native methods of this class. - /// The native class pointer. - public override IntPtr GetEflClass() - { - return Efl.Ui.ISelectableConcrete.efl_ui_selectable_interface_get(); - } - #pragma warning disable CA1707, CS1591, SA1300, SA1600 + private static efl_ui_selectable_selected_set_delegate efl_ui_selectable_selected_set_static_delegate; #pragma warning restore CA1707, CS1591, SA1300, SA1600 @@ -533,3 +294,13 @@ sealed public class ISelectableConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiISelectableConcrete_ExtensionMethods { + public static Efl.BindableProperty Selected(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ISelectable { + return new Efl.BindableProperty("selected", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_selection.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_selection.eo.cs old mode 100644 new mode 100755 index 7e303ceed..49d1eb846 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_selection.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_selection.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Ui { /// Efl Ui Selection class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.ISelectionConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface ISelection : @@ -47,21 +49,24 @@ bool HasOwner(Efl.Ui.SelectionType type, uint seat); System.Threading.Tasks.Task SetSelectionAsync(Efl.Ui.SelectionType type,Efl.Ui.SelectionFormat format,Eina.Slice data,uint seat, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)); /// Called when display server's selection has changed + /// event EventHandler WmSelectionChangedEvt; } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ISelectionWmSelectionChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when display server's selection has changed public Efl.Ui.SelectionChanged arg { get; set; } } /// Efl Ui Selection class -sealed public class ISelectionConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class ISelectionConcrete : Efl.Eo.EoWrapper , ISelection { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -77,7 +82,8 @@ sealed public class ISelectionConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ISelectionConcrete(ConstructingHandle ch) : base(ch) { @@ -93,6 +99,7 @@ sealed public class ISelectionConcrete : } /// Called when display server's selection has changed + /// public event EventHandler WmSelectionChangedEvt { add @@ -132,7 +139,7 @@ sealed public class ISelectionConcrete : } } } - ///Method to raise event WmSelectionChangedEvt. + /// Method to raise event WmSelectionChangedEvt. public void OnWmSelectionChangedEvt(Efl.Ui.ISelectionWmSelectionChangedEvt_Args e) { var key = "_EFL_UI_SELECTION_EVENT_WM_SELECTION_CHANGED"; @@ -422,3 +429,9 @@ sealed public class ISelectionConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiISelectionConcrete_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_selection_types.eot.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_selection_types.eot.cs old mode 100644 new mode 100755 index 04b236909..040656769 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_selection_types.eot.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_selection_types.eot.cs @@ -116,7 +116,7 @@ public enum SelectionFormat { /// For matching every possible atom Targets = -1, -/// Content is from outside of Elementary +/// Content is from outside of EFL None = 0, /// Plain unformatted text: Used for things that don't want rich markup Text = 1, @@ -174,16 +174,25 @@ namespace Ui { public struct SelectionData { /// Coordinates of the drop (DND operations only) + /// A 2D location in pixels. public Eina.Position2D Pos; /// Format of the selection + /// Selection format public Efl.Ui.SelectionFormat Format; /// Selection data + /// A linear, read-only, memory segment public Eina.Slice Content; /// Action to perform with the data + /// Defines the kind of action associated with the drop data public Efl.Ui.SelectionAction Action; /// Item under the drag position. It is only available for container public Efl.Object Item; - ///Constructor for SelectionData. + /// Constructor for SelectionData. + /// Coordinates of the drop (DND operations only); + /// Format of the selection; + /// Selection data; + /// Action to perform with the data; + /// Item under the drag position. It is only available for container; public SelectionData( Eina.Position2D Pos = default(Eina.Position2D), Efl.Ui.SelectionFormat Format = default(Efl.Ui.SelectionFormat), @@ -198,8 +207,8 @@ public struct SelectionData this.Item = Item; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator SelectionData(IntPtr ptr) { var tmp = (SelectionData.NativeStruct)Marshal.PtrToStructure(ptr, typeof(SelectionData.NativeStruct)); @@ -208,7 +217,7 @@ public struct SelectionData #pragma warning disable CS1591 - ///Internal wrapper for struct SelectionData. + /// Internal wrapper for struct SelectionData. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -220,9 +229,9 @@ public struct SelectionData public Eina.Slice Content; public Efl.Ui.SelectionAction Action; - ///Internal wrapper for field Item + /// Internal wrapper for field Item public System.IntPtr Item; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator SelectionData.NativeStruct(SelectionData _external_struct) { var _internal_struct = new SelectionData.NativeStruct(); @@ -236,7 +245,7 @@ public struct SelectionData return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator SelectionData(SelectionData.NativeStruct _internal_struct) { var _external_struct = new SelectionData(); @@ -271,6 +280,7 @@ namespace Ui { public struct SelectionChanged { /// Selection type + /// Selection type public Efl.Ui.SelectionType Type; /// The seat on which the selection changed, or NULL for "default" public int Seat; @@ -278,7 +288,11 @@ public struct SelectionChanged public System.IntPtr Display; /// EINA_TRUE if the selection has an owner public bool Exist; - ///Constructor for SelectionChanged. + /// Constructor for SelectionChanged. + /// Selection type; + /// The seat on which the selection changed, or NULL for "default"; + /// The display connection object, NULL under X11; + /// EINA_TRUE if the selection has an owner; public SelectionChanged( Efl.Ui.SelectionType Type = default(Efl.Ui.SelectionType), int Seat = default(int), @@ -291,8 +305,8 @@ public struct SelectionChanged this.Exist = Exist; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator SelectionChanged(IntPtr ptr) { var tmp = (SelectionChanged.NativeStruct)Marshal.PtrToStructure(ptr, typeof(SelectionChanged.NativeStruct)); @@ -301,7 +315,7 @@ public struct SelectionChanged #pragma warning disable CS1591 - ///Internal wrapper for struct SelectionChanged. + /// Internal wrapper for struct SelectionChanged. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -311,9 +325,9 @@ public struct SelectionChanged public int Seat; public System.IntPtr Display; - ///Internal wrapper for field Exist + /// Internal wrapper for field Exist public System.Byte Exist; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator SelectionChanged.NativeStruct(SelectionChanged _external_struct) { var _internal_struct = new SelectionChanged.NativeStruct(); @@ -324,7 +338,7 @@ public struct SelectionChanged return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator SelectionChanged(SelectionChanged.NativeStruct _internal_struct) { var _external_struct = new SelectionChanged(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_single_selectable.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_single_selectable.eo.cs new file mode 100755 index 000000000..faf4a05e8 --- /dev/null +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_single_selectable.eo.cs @@ -0,0 +1,361 @@ +#define EFL_BETA +#pragma warning disable CS1591 +using System; +using System.Runtime.InteropServices; +using System.Collections.Generic; +using System.Linq; +using System.Threading; +using System.ComponentModel; +namespace Efl { + +namespace Ui { + +/// Interface for getting access to a single selected item in the implementor. +/// The implementor is free to allow a specific number of selectables beeing selected or not. This interface just covers always the latest selected selectable. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +[Efl.Ui.ISingleSelectableConcrete.NativeMethods] +[Efl.Eo.BindingEntity] +public interface ISingleSelectable : + Efl.Eo.IWrapper, IDisposable +{ + /// The selectable that was selected most recently. +/// The latest selected item. +Efl.Ui.ISelectable GetLastSelected(); + /// A object that will be selected in case nothing is selected +/// A object set to this property will be selected instead of no item beeing selected. Which means, there will be always at least one element selected. If this property is NULL, the state of "no item is selected" can be reached. +/// +/// Setting this property as a result of selection events results in undefined behavior. +Efl.Ui.ISelectable GetFallbackSelection(); + /// A object that will be selected in case nothing is selected +/// A object set to this property will be selected instead of no item beeing selected. Which means, there will be always at least one element selected. If this property is NULL, the state of "no item is selected" can be reached. +/// +/// Setting this property as a result of selection events results in undefined behavior. +void SetFallbackSelection(Efl.Ui.ISelectable fallback); + /// Called when there is a change in the selection state, this event will collect all the item selection change events that are happening within one loop iteration. This means, you will only get this event once, even if a lot of items have changed. If you are interested in detailed changes, subscribe to the selection,changed event of Efl.Ui.Selectable. + event EventHandler SelectionChangedEvt; + /// The selectable that was selected most recently. + /// The latest selected item. + Efl.Ui.ISelectable LastSelected { + get; + } + /// A object that will be selected in case nothing is selected + /// A object set to this property will be selected instead of no item beeing selected. Which means, there will be always at least one element selected. If this property is NULL, the state of "no item is selected" can be reached. + /// + /// Setting this property as a result of selection events results in undefined behavior. + Efl.Ui.ISelectable FallbackSelection { + get; + set; + } +} +/// Interface for getting access to a single selected item in the implementor. +/// The implementor is free to allow a specific number of selectables beeing selected or not. This interface just covers always the latest selected selectable. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class ISingleSelectableConcrete : + Efl.Eo.EoWrapper + , ISingleSelectable + +{ + /// Pointer to the native class description. + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ISingleSelectableConcrete)) + { + return GetEflClassStatic(); + } + else + { + return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } + } + } + + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. + /// Tag struct storing the native handle of the object being constructed. + private ISingleSelectableConcrete(ConstructingHandle ch) : base(ch) + { + } + + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr + efl_ui_single_selectable_interface_get(); + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. + private ISingleSelectableConcrete(Efl.Eo.Globals.WrappingHandle wh) : base(wh) + { + } + + /// Called when there is a change in the selection state, this event will collect all the item selection change events that are happening within one loop iteration. This means, you will only get this event once, even if a lot of items have changed. If you are interested in detailed changes, subscribe to the selection,changed event of Efl.Ui.Selectable. + public event EventHandler SelectionChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_SINGLE_SELECTABLE_EVENT_SELECTION_CHANGED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_SINGLE_SELECTABLE_EVENT_SELECTION_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event SelectionChangedEvt. + public void OnSelectionChangedEvt(EventArgs e) + { + var key = "_EFL_UI_SINGLE_SELECTABLE_EVENT_SELECTION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// The selectable that was selected most recently. + /// The latest selected item. + public Efl.Ui.ISelectable GetLastSelected() { + var _ret_var = Efl.Ui.ISingleSelectableConcrete.NativeMethods.efl_ui_single_selectable_last_selected_get_ptr.Value.Delegate(this.NativeHandle); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// A object that will be selected in case nothing is selected + /// A object set to this property will be selected instead of no item beeing selected. Which means, there will be always at least one element selected. If this property is NULL, the state of "no item is selected" can be reached. + /// + /// Setting this property as a result of selection events results in undefined behavior. + public Efl.Ui.ISelectable GetFallbackSelection() { + var _ret_var = Efl.Ui.ISingleSelectableConcrete.NativeMethods.efl_ui_single_selectable_fallback_selection_get_ptr.Value.Delegate(this.NativeHandle); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// A object that will be selected in case nothing is selected + /// A object set to this property will be selected instead of no item beeing selected. Which means, there will be always at least one element selected. If this property is NULL, the state of "no item is selected" can be reached. + /// + /// Setting this property as a result of selection events results in undefined behavior. + public void SetFallbackSelection(Efl.Ui.ISelectable fallback) { + Efl.Ui.ISingleSelectableConcrete.NativeMethods.efl_ui_single_selectable_fallback_selection_set_ptr.Value.Delegate(this.NativeHandle,fallback); + Eina.Error.RaiseIfUnhandledException(); + } + /// The selectable that was selected most recently. + /// The latest selected item. + public Efl.Ui.ISelectable LastSelected { + get { return GetLastSelected(); } + } + /// A object that will be selected in case nothing is selected + /// A object set to this property will be selected instead of no item beeing selected. Which means, there will be always at least one element selected. If this property is NULL, the state of "no item is selected" can be reached. + /// + /// Setting this property as a result of selection events results in undefined behavior. + public Efl.Ui.ISelectable FallbackSelection { + get { return GetFallbackSelection(); } + set { SetFallbackSelection(value); } + } + private static IntPtr GetEflClassStatic() + { + return Efl.Ui.ISingleSelectableConcrete.efl_ui_single_selectable_interface_get(); + } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods + { + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// Gets the list of Eo operations to override. + /// The list of Eo operations to be overload. + public override System.Collections.Generic.List GetEoOps(System.Type type) + { + var descs = new System.Collections.Generic.List(); + var methods = Efl.Eo.Globals.GetUserMethods(type); + + if (efl_ui_single_selectable_last_selected_get_static_delegate == null) + { + efl_ui_single_selectable_last_selected_get_static_delegate = new efl_ui_single_selectable_last_selected_get_delegate(last_selected_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetLastSelected") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_single_selectable_last_selected_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_single_selectable_last_selected_get_static_delegate) }); + } + + if (efl_ui_single_selectable_fallback_selection_get_static_delegate == null) + { + efl_ui_single_selectable_fallback_selection_get_static_delegate = new efl_ui_single_selectable_fallback_selection_get_delegate(fallback_selection_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetFallbackSelection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_single_selectable_fallback_selection_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_single_selectable_fallback_selection_get_static_delegate) }); + } + + if (efl_ui_single_selectable_fallback_selection_set_static_delegate == null) + { + efl_ui_single_selectable_fallback_selection_set_static_delegate = new efl_ui_single_selectable_fallback_selection_set_delegate(fallback_selection_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetFallbackSelection") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_single_selectable_fallback_selection_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_single_selectable_fallback_selection_set_static_delegate) }); + } + + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.ISingleSelectableConcrete.efl_ui_single_selectable_interface_get(); + } + + #pragma warning disable CA1707, CS1591, SA1300, SA1600 + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.ISelectable efl_ui_single_selectable_last_selected_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.ISelectable efl_ui_single_selectable_last_selected_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_single_selectable_last_selected_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_single_selectable_last_selected_get"); + + private static Efl.Ui.ISelectable last_selected_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_single_selectable_last_selected_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Ui.ISelectable _ret_var = default(Efl.Ui.ISelectable); + try + { + _ret_var = ((ISingleSelectable)ws.Target).GetLastSelected(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_single_selectable_last_selected_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_single_selectable_last_selected_get_delegate efl_ui_single_selectable_last_selected_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Ui.ISelectable efl_ui_single_selectable_fallback_selection_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Ui.ISelectable efl_ui_single_selectable_fallback_selection_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_single_selectable_fallback_selection_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_single_selectable_fallback_selection_get"); + + private static Efl.Ui.ISelectable fallback_selection_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_single_selectable_fallback_selection_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Ui.ISelectable _ret_var = default(Efl.Ui.ISelectable); + try + { + _ret_var = ((ISingleSelectable)ws.Target).GetFallbackSelection(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_single_selectable_fallback_selection_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_single_selectable_fallback_selection_get_delegate efl_ui_single_selectable_fallback_selection_get_static_delegate; + + + private delegate void efl_ui_single_selectable_fallback_selection_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ISelectable fallback); + + + public delegate void efl_ui_single_selectable_fallback_selection_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.ISelectable fallback); + + public static Efl.Eo.FunctionWrapper efl_ui_single_selectable_fallback_selection_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_single_selectable_fallback_selection_set"); + + private static void fallback_selection_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ISelectable fallback) + { + Eina.Log.Debug("function efl_ui_single_selectable_fallback_selection_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((ISingleSelectable)ws.Target).SetFallbackSelection(fallback); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_single_selectable_fallback_selection_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fallback); + } + } + + private static efl_ui_single_selectable_fallback_selection_set_delegate efl_ui_single_selectable_fallback_selection_set_static_delegate; + + #pragma warning restore CA1707, CS1591, SA1300, SA1600 + +} +} +} + +} + +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiISingleSelectableConcrete_ExtensionMethods { + + public static Efl.BindableProperty FallbackSelection(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ISingleSelectable { + return new Efl.BindableProperty("fallback_selection", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_slider.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_slider.eo.cs old mode 100644 new mode 100755 index 867e6918f..9d75f9776 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_slider.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_slider.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Elementary slider class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Slider.NativeMethods] [Efl.Eo.BindingEntity] public class Slider : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.ILayoutOrientable, Efl.Ui.IRangeDisplay, Efl.Ui.IRangeInteractive { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +48,8 @@ public class Slider : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.ILayoutOrient FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Slider(ConstructingHandle ch) : base(ch) { @@ -67,7 +70,111 @@ public class Slider : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.ILayoutOrient { } - /// Called when the slider position has changed. + /// Called when a slider drag operation has started. This means a press event has been received on the slider thumb but not the unpress. + public event EventHandler SliderDragStartEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_SLIDER_EVENT_SLIDER_DRAG_START"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_SLIDER_EVENT_SLIDER_DRAG_START"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event SliderDragStartEvt. + public void OnSliderDragStartEvt(EventArgs e) + { + var key = "_EFL_UI_SLIDER_EVENT_SLIDER_DRAG_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Called when a slider drag operation has finished. This means an unpress event has been received on the slider thumb. + public event EventHandler SliderDragStopEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_SLIDER_EVENT_SLIDER_DRAG_STOP"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_SLIDER_EVENT_SLIDER_DRAG_STOP"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event SliderDragStopEvt. + public void OnSliderDragStopEvt(EventArgs e) + { + var key = "_EFL_UI_SLIDER_EVENT_SLIDER_DRAG_STOP"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Emitted when the is getting changed. public event EventHandler ChangedEvt { add @@ -92,7 +199,7 @@ public class Slider : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.ILayoutOrient } }; - string key = "_EFL_UI_SLIDER_EVENT_CHANGED"; + string key = "_EFL_UI_RANGE_EVENT_CHANGED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -101,15 +208,15 @@ public class Slider : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.ILayoutOrient { lock (eflBindingEventLock) { - string key = "_EFL_UI_SLIDER_EVENT_CHANGED"; + string key = "_EFL_UI_RANGE_EVENT_CHANGED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ChangedEvt. + /// Method to raise event ChangedEvt. public void OnChangedEvt(EventArgs e) { - var key = "_EFL_UI_SLIDER_EVENT_CHANGED"; + var key = "_EFL_UI_RANGE_EVENT_CHANGED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -119,8 +226,8 @@ public class Slider : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.ILayoutOrient Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Called when the slider position has changed and has remained unchanged for 0.2s. This allows filtering out unwanted "noise" from the slider signal if you are only interested in the final position of the slider. Use this signal instead of if you are going to perform a costly operation on its handler. - public event EventHandler SteadyEvt + /// Emitted when the has reached the minimum of . + public event EventHandler MinReachedEvt { add { @@ -144,7 +251,7 @@ public class Slider : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.ILayoutOrient } }; - string key = "_EFL_UI_SLIDER_EVENT_STEADY"; + string key = "_EFL_UI_RANGE_EVENT_MIN_REACHED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -153,15 +260,15 @@ public class Slider : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.ILayoutOrient { lock (eflBindingEventLock) { - string key = "_EFL_UI_SLIDER_EVENT_STEADY"; + string key = "_EFL_UI_RANGE_EVENT_MIN_REACHED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event SteadyEvt. - public void OnSteadyEvt(EventArgs e) + /// Method to raise event MinReachedEvt. + public void OnMinReachedEvt(EventArgs e) { - var key = "_EFL_UI_SLIDER_EVENT_STEADY"; + var key = "_EFL_UI_RANGE_EVENT_MIN_REACHED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -171,8 +278,8 @@ public class Slider : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.ILayoutOrient Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Called when a slider drag operation has started. This means a press event has been received on the slider thumb but not the unpress. - public event EventHandler SliderDragStartEvt + /// Emitted when the range_value has reached the maximum of . + public event EventHandler MaxReachedEvt { add { @@ -196,7 +303,7 @@ public class Slider : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.ILayoutOrient } }; - string key = "_EFL_UI_SLIDER_EVENT_SLIDER_DRAG_START"; + string key = "_EFL_UI_RANGE_EVENT_MAX_REACHED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -205,15 +312,15 @@ public class Slider : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.ILayoutOrient { lock (eflBindingEventLock) { - string key = "_EFL_UI_SLIDER_EVENT_SLIDER_DRAG_START"; + string key = "_EFL_UI_RANGE_EVENT_MAX_REACHED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event SliderDragStartEvt. - public void OnSliderDragStartEvt(EventArgs e) + /// Method to raise event MaxReachedEvt. + public void OnMaxReachedEvt(EventArgs e) { - var key = "_EFL_UI_SLIDER_EVENT_SLIDER_DRAG_START"; + var key = "_EFL_UI_RANGE_EVENT_MAX_REACHED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -223,8 +330,8 @@ public class Slider : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.ILayoutOrient Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Called when a slider drag operation has finished. This means an unpress event has been received on the slider thumb. - public event EventHandler SliderDragStopEvt + /// Called when the widget's value has changed and has remained unchanged for 0.2s. This allows filtering out unwanted "noise" from the widget if you are only interested in its final position. Use this event instead of if you are going to perform a costly operation on its handler. + public event EventHandler SteadyEvt { add { @@ -248,7 +355,7 @@ public class Slider : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.ILayoutOrient } }; - string key = "_EFL_UI_SLIDER_EVENT_SLIDER_DRAG_STOP"; + string key = "_EFL_UI_RANGE_EVENT_STEADY"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -257,15 +364,15 @@ public class Slider : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.ILayoutOrient { lock (eflBindingEventLock) { - string key = "_EFL_UI_SLIDER_EVENT_SLIDER_DRAG_STOP"; + string key = "_EFL_UI_RANGE_EVENT_STEADY"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event SliderDragStopEvt. - public void OnSliderDragStopEvt(EventArgs e) + /// Method to raise event SteadyEvt. + public void OnSteadyEvt(EventArgs e) { - var key = "_EFL_UI_SLIDER_EVENT_SLIDER_DRAG_STOP"; + var key = "_EFL_UI_RANGE_EVENT_STEADY"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -325,27 +432,27 @@ public class Slider : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.ILayoutOrient Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),dir); Eina.Error.RaiseIfUnhandledException(); } - /// Control the range value (in percentage) on a given range widget - /// Use this call to set range levels. - /// - /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. - /// The range value (must be between $0.0 and 1.0) + /// Control the value (position) of the widget within its valid range. + /// Values outside the limits defined in are ignored and an error is printed. + /// The range value (must be within the bounds of ). virtual public double GetRangeValue() { var _ret_var = Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_value_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Control the range value (in percentage) on a given range widget - /// Use this call to set range levels. - /// - /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. - /// The range value (must be between $0.0 and 1.0) + /// Control the value (position) of the widget within its valid range. + /// Values outside the limits defined in are ignored and an error is printed. + /// The range value (must be within the bounds of ). virtual public void SetRangeValue(double val) { Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_value_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),val); Eina.Error.RaiseIfUnhandledException(); } - /// Get the minimum and maximum values of the given range widget. - /// Note: If only one value is needed, the other pointer can be passed as null. + /// Set the minimum and maximum values for given range widget. + /// If the current value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The resulting value can be obtained with . + /// + /// The default minimum and maximum values may be different for each class. + /// + /// Note: maximum must be greater than minimum, otherwise behavior is undefined. /// The minimum value. /// The maximum value. virtual public void GetRangeLimits(out double min, out double max) { @@ -353,13 +460,11 @@ public class Slider : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.ILayoutOrient Eina.Error.RaiseIfUnhandledException(); } /// Set the minimum and maximum values for given range widget. - /// Define the allowed range of values to be selected by the user. - /// - /// If actual value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The actual value can be obtained with + /// If the current value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The resulting value can be obtained with . /// - /// The minimum and maximum values may be different for each class. + /// The default minimum and maximum values may be different for each class. /// - /// Warning: maximum must be greater than minimum, otherwise behavior is undefined. + /// Note: maximum must be greater than minimum, otherwise behavior is undefined. /// The minimum value. /// The maximum value. virtual public void SetRangeLimits(double min, double max) { @@ -389,6 +494,27 @@ public class Slider : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.ILayoutOrient Efl.Ui.IRangeInteractiveConcrete.NativeMethods.efl_ui_range_step_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),step); Eina.Error.RaiseIfUnhandledException(); } + /// Value and text property + /// Value of widget casted to floating point number. + public (double, System.String) ValueAndText { + get { + double _out_value = default(double); + System.String _out_text = default(System.String); + GetValueAndText(out _out_value,out _out_text); + return (_out_value,_out_text); + } + set { SetValueAndText( value.Item1, value.Item2); } + } + /// Gets a range of all possible values and its description + public (double, double, System.String) Range { + get { + double _out_lower_limit = default(double); + double _out_upper_limit = default(double); + System.String _out_description = default(System.String); + GetRange(out _out_lower_limit,out _out_upper_limit,out _out_description); + return (_out_lower_limit,_out_upper_limit,_out_description); + } + } /// Gets an minimal incrementation value /// Minimal incrementation value public double Increment { @@ -403,15 +529,29 @@ public class Slider : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.ILayoutOrient get { return GetOrientation(); } set { SetOrientation(value); } } - /// Control the range value (in percentage) on a given range widget - /// Use this call to set range levels. - /// - /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. - /// The range value (must be between $0.0 and 1.0) + /// Control the value (position) of the widget within its valid range. + /// Values outside the limits defined in are ignored and an error is printed. + /// The range value (must be within the bounds of ). public double RangeValue { get { return GetRangeValue(); } set { SetRangeValue(value); } } + /// Set the minimum and maximum values for given range widget. + /// If the current value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The resulting value can be obtained with . + /// + /// The default minimum and maximum values may be different for each class. + /// + /// Note: maximum must be greater than minimum, otherwise behavior is undefined. + /// The minimum value. + public (double, double) RangeLimits { + get { + double _out_min = default(double); + double _out_max = default(double); + GetRangeLimits(out _out_min,out _out_max); + return (_out_min,_out_max); + } + set { SetRangeLimits( value.Item1, value.Item2); } + } /// Control the step used to increment or decrement values for given widget. /// This value will be incremented or decremented to the displayed value. /// @@ -1008,3 +1148,25 @@ public class Slider : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.ILayoutOrient } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiSlider_ExtensionMethods { + + + + public static Efl.BindableProperty Orientation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Slider { + return new Efl.BindableProperty("orientation", fac); + } + + public static Efl.BindableProperty RangeValue(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Slider { + return new Efl.BindableProperty("range_value", fac); + } + + + public static Efl.BindableProperty RangeStep(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Slider { + return new Efl.BindableProperty("range_step", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_slider_interval.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_slider_interval.eo.cs deleted file mode 100644 index e9daf3f28..000000000 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_slider_interval.eo.cs +++ /dev/null @@ -1,210 +0,0 @@ -#pragma warning disable CS1591 -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.ComponentModel; -namespace Efl { - -namespace Ui { - -/// An interval slider. -/// This is a slider with two indicators. -[Efl.Ui.SliderInterval.NativeMethods] -[Efl.Eo.BindingEntity] -public class SliderInterval : Efl.Ui.Slider -{ - ///Pointer to the native class description. - public override System.IntPtr NativeClass - { - get - { - if (((object)this).GetType() == typeof(SliderInterval)) - { - return GetEflClassStatic(); - } - else - { - return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; - } - } - } - - [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - efl_ui_slider_interval_class_get(); - /// Initializes a new instance of the class. - /// Parent instance. - /// The widget style to use. See - public SliderInterval(Efl.Object parent - , System.String style = null) : base(efl_ui_slider_interval_class_get(), parent) - { - if (Efl.Eo.Globals.ParamHelperCheck(style)) - { - SetStyle(Efl.Eo.Globals.GetParamHelper(style)); - } - - FinishInstantiation(); - } - - /// Constructor to be used when objects are expected to be constructed from native code. - /// Tag struct storing the native handle of the object being constructed. - protected SliderInterval(ConstructingHandle ch) : base(ch) - { - } - - /// Initializes a new instance of the class. - /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. - /// The native pointer to be wrapped. - protected SliderInterval(Efl.Eo.Globals.WrappingHandle wh) : base(wh) - { - } - - /// Initializes a new instance of the class. - /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - /// The pointer to the base native Eo class. - /// The Efl.Object parent of this instance. - protected SliderInterval(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) - { - } - - /// Sets up position of two indicators at start and end position. - /// interval minimum value - /// interval maximum value - virtual public void GetIntervalValue(out double from, out double to) { - Efl.Ui.SliderInterval.NativeMethods.efl_ui_slider_interval_value_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out from, out to); - Eina.Error.RaiseIfUnhandledException(); - } - /// Sets up position of two indicators at start and end position. - /// interval minimum value - /// interval maximum value - virtual public void SetIntervalValue(double from, double to) { - Efl.Ui.SliderInterval.NativeMethods.efl_ui_slider_interval_value_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),from, to); - Eina.Error.RaiseIfUnhandledException(); - } - private static IntPtr GetEflClassStatic() - { - return Efl.Ui.SliderInterval.efl_ui_slider_interval_class_get(); - } - /// Wrapper for native methods and virtual method delegates. - /// For internal use by generated code only. - public new class NativeMethods : Efl.Ui.Slider.NativeMethods - { - private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); - /// Gets the list of Eo operations to override. - /// The list of Eo operations to be overload. - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - - if (efl_ui_slider_interval_value_get_static_delegate == null) - { - efl_ui_slider_interval_value_get_static_delegate = new efl_ui_slider_interval_value_get_delegate(interval_value_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetIntervalValue") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_slider_interval_value_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_slider_interval_value_get_static_delegate) }); - } - - if (efl_ui_slider_interval_value_set_static_delegate == null) - { - efl_ui_slider_interval_value_set_static_delegate = new efl_ui_slider_interval_value_set_delegate(interval_value_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetIntervalValue") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_slider_interval_value_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_slider_interval_value_set_static_delegate) }); - } - - descs.AddRange(base.GetEoOps(type)); - return descs; - } - /// Returns the Eo class for the native methods of this class. - /// The native class pointer. - public override IntPtr GetEflClass() - { - return Efl.Ui.SliderInterval.efl_ui_slider_interval_class_get(); - } - - #pragma warning disable CA1707, CS1591, SA1300, SA1600 - - - private delegate void efl_ui_slider_interval_value_get_delegate(System.IntPtr obj, System.IntPtr pd, out double from, out double to); - - - public delegate void efl_ui_slider_interval_value_get_api_delegate(System.IntPtr obj, out double from, out double to); - - public static Efl.Eo.FunctionWrapper efl_ui_slider_interval_value_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_slider_interval_value_get"); - - private static void interval_value_get(System.IntPtr obj, System.IntPtr pd, out double from, out double to) - { - Eina.Log.Debug("function efl_ui_slider_interval_value_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - from = default(double); to = default(double); - try - { - ((SliderInterval)ws.Target).GetIntervalValue(out from, out to); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_slider_interval_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out from, out to); - } - } - - private static efl_ui_slider_interval_value_get_delegate efl_ui_slider_interval_value_get_static_delegate; - - - private delegate void efl_ui_slider_interval_value_set_delegate(System.IntPtr obj, System.IntPtr pd, double from, double to); - - - public delegate void efl_ui_slider_interval_value_set_api_delegate(System.IntPtr obj, double from, double to); - - public static Efl.Eo.FunctionWrapper efl_ui_slider_interval_value_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_slider_interval_value_set"); - - private static void interval_value_set(System.IntPtr obj, System.IntPtr pd, double from, double to) - { - Eina.Log.Debug("function efl_ui_slider_interval_value_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((SliderInterval)ws.Target).SetIntervalValue(from, to); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_slider_interval_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), from, to); - } - } - - private static efl_ui_slider_interval_value_set_delegate efl_ui_slider_interval_value_set_static_delegate; - - #pragma warning restore CA1707, CS1591, SA1300, SA1600 - -} -} -} - -} - diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_spin.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_spin.eo.cs old mode 100644 new mode 100755 index 7c40fe051..beb496c15 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_spin.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_spin.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Ui { /// A Spin. /// This is a widget which allows the user to increase or decrease a numeric value using arrow buttons. It's a basic type of widget for choosing and displaying values. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Spin.NativeMethods] [Efl.Eo.BindingEntity] -public class Spin : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.IFormat, Efl.Ui.IRangeDisplay, Efl.Ui.IRangeInteractive +public class Spin : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.IFormat, Efl.Ui.IRangeDisplay { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -47,7 +49,8 @@ public class Spin : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.IFormat, Efl.Ui FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Spin(ConstructingHandle ch) : base(ch) { @@ -68,7 +71,7 @@ public class Spin : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.IFormat, Efl.Ui { } - /// Called when spin changed + /// Emitted when the is getting changed. public event EventHandler ChangedEvt { add @@ -93,7 +96,7 @@ public class Spin : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.IFormat, Efl.Ui } }; - string key = "_EFL_UI_SPIN_EVENT_CHANGED"; + string key = "_EFL_UI_RANGE_EVENT_CHANGED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -102,15 +105,15 @@ public class Spin : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.IFormat, Efl.Ui { lock (eflBindingEventLock) { - string key = "_EFL_UI_SPIN_EVENT_CHANGED"; + string key = "_EFL_UI_RANGE_EVENT_CHANGED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ChangedEvt. + /// Method to raise event ChangedEvt. public void OnChangedEvt(EventArgs e) { - var key = "_EFL_UI_SPIN_EVENT_CHANGED"; + var key = "_EFL_UI_RANGE_EVENT_CHANGED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -120,7 +123,7 @@ public class Spin : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.IFormat, Efl.Ui Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Called when spin value reached min + /// Emitted when the has reached the minimum of . public event EventHandler MinReachedEvt { add @@ -145,7 +148,7 @@ public class Spin : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.IFormat, Efl.Ui } }; - string key = "_EFL_UI_SPIN_EVENT_MIN_REACHED"; + string key = "_EFL_UI_RANGE_EVENT_MIN_REACHED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -154,15 +157,15 @@ public class Spin : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.IFormat, Efl.Ui { lock (eflBindingEventLock) { - string key = "_EFL_UI_SPIN_EVENT_MIN_REACHED"; + string key = "_EFL_UI_RANGE_EVENT_MIN_REACHED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event MinReachedEvt. + /// Method to raise event MinReachedEvt. public void OnMinReachedEvt(EventArgs e) { - var key = "_EFL_UI_SPIN_EVENT_MIN_REACHED"; + var key = "_EFL_UI_RANGE_EVENT_MIN_REACHED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -172,7 +175,7 @@ public class Spin : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.IFormat, Efl.Ui Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Called when spin value reached max + /// Emitted when the range_value has reached the maximum of . public event EventHandler MaxReachedEvt { add @@ -197,7 +200,7 @@ public class Spin : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.IFormat, Efl.Ui } }; - string key = "_EFL_UI_SPIN_EVENT_MAX_REACHED"; + string key = "_EFL_UI_RANGE_EVENT_MAX_REACHED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -206,15 +209,15 @@ public class Spin : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.IFormat, Efl.Ui { lock (eflBindingEventLock) { - string key = "_EFL_UI_SPIN_EVENT_MAX_REACHED"; + string key = "_EFL_UI_RANGE_EVENT_MAX_REACHED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event MaxReachedEvt. + /// Method to raise event MaxReachedEvt. public void OnMaxReachedEvt(EventArgs e) { - var key = "_EFL_UI_SPIN_EVENT_MAX_REACHED"; + var key = "_EFL_UI_RANGE_EVENT_MAX_REACHED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -333,27 +336,27 @@ public class Spin : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.IFormat, Efl.Ui Efl.Ui.IFormatConcrete.NativeMethods.efl_ui_format_apply_formatted_value_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } - /// Control the range value (in percentage) on a given range widget - /// Use this call to set range levels. - /// - /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. - /// The range value (must be between $0.0 and 1.0) + /// Control the value (position) of the widget within its valid range. + /// Values outside the limits defined in are ignored and an error is printed. + /// The range value (must be within the bounds of ). virtual public double GetRangeValue() { var _ret_var = Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_value_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Control the range value (in percentage) on a given range widget - /// Use this call to set range levels. - /// - /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. - /// The range value (must be between $0.0 and 1.0) + /// Control the value (position) of the widget within its valid range. + /// Values outside the limits defined in are ignored and an error is printed. + /// The range value (must be within the bounds of ). virtual public void SetRangeValue(double val) { Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_value_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),val); Eina.Error.RaiseIfUnhandledException(); } - /// Get the minimum and maximum values of the given range widget. - /// Note: If only one value is needed, the other pointer can be passed as null. + /// Set the minimum and maximum values for given range widget. + /// If the current value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The resulting value can be obtained with . + /// + /// The default minimum and maximum values may be different for each class. + /// + /// Note: maximum must be greater than minimum, otherwise behavior is undefined. /// The minimum value. /// The maximum value. virtual public void GetRangeLimits(out double min, out double max) { @@ -361,42 +364,38 @@ public class Spin : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.IFormat, Efl.Ui Eina.Error.RaiseIfUnhandledException(); } /// Set the minimum and maximum values for given range widget. - /// Define the allowed range of values to be selected by the user. - /// - /// If actual value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The actual value can be obtained with + /// If the current value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The resulting value can be obtained with . /// - /// The minimum and maximum values may be different for each class. + /// The default minimum and maximum values may be different for each class. /// - /// Warning: maximum must be greater than minimum, otherwise behavior is undefined. + /// Note: maximum must be greater than minimum, otherwise behavior is undefined. /// The minimum value. /// The maximum value. virtual public void SetRangeLimits(double min, double max) { Efl.Ui.IRangeDisplayConcrete.NativeMethods.efl_ui_range_limits_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),min, max); Eina.Error.RaiseIfUnhandledException(); } - /// Control the step used to increment or decrement values for given widget. - /// This value will be incremented or decremented to the displayed value. - /// - /// By default step value is equal to 1. - /// - /// Warning: The step value should be bigger than 0. - /// The step value. - virtual public double GetRangeStep() { - var _ret_var = Efl.Ui.IRangeInteractiveConcrete.NativeMethods.efl_ui_range_step_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Control the step used to increment or decrement values for given widget. - /// This value will be incremented or decremented to the displayed value. - /// - /// By default step value is equal to 1. - /// - /// Warning: The step value should be bigger than 0. - /// The step value. - virtual public void SetRangeStep(double step) { - Efl.Ui.IRangeInteractiveConcrete.NativeMethods.efl_ui_range_step_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),step); - Eina.Error.RaiseIfUnhandledException(); - } + /// Value and text property + /// Value of widget casted to floating point number. + public (double, System.String) ValueAndText { + get { + double _out_value = default(double); + System.String _out_text = default(System.String); + GetValueAndText(out _out_value,out _out_text); + return (_out_value,_out_text); + } + set { SetValueAndText( value.Item1, value.Item2); } + } + /// Gets a range of all possible values and its description + public (double, double, System.String) Range { + get { + double _out_lower_limit = default(double); + double _out_upper_limit = default(double); + System.String _out_description = default(System.String); + GetRange(out _out_lower_limit,out _out_upper_limit,out _out_description); + return (_out_lower_limit,_out_upper_limit,_out_description); + } + } /// Gets an minimal incrementation value /// Minimal incrementation value public double Increment { @@ -414,25 +413,46 @@ public class Spin : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.IFormat, Efl.Ui get { return GetFormatValues(); } set { SetFormatValues(value); } } - /// Control the range value (in percentage) on a given range widget - /// Use this call to set range levels. + /// A user-provided, string used to format the numerical value. + /// For example, "%1.2f meters", "%.0%%" or "%d items". + /// + /// This is the simplest formatting mechanism, working pretty much like printf. + /// + /// Different format specifiers (the character after the %) are available, depending on the type used. Use for simple numerical values and for time and date values. For instance, %d means "integer" when the first type is used, but it means "day of the month as a decimal number" in the second. /// - /// Note: If you pass a value out of the specified interval for val, it will be interpreted as the closest of the boundary values in the interval. - /// The range value (must be between $0.0 and 1.0) + /// Pass NULL to disable this mechanism. + /// Formatting string containing regular characters and format specifiers. + public (System.String, Efl.Ui.FormatStringType) FormatString { + get { + System.String _out_kw_string = default(System.String); + Efl.Ui.FormatStringType _out_type = default(Efl.Ui.FormatStringType); + GetFormatString(out _out_kw_string,out _out_type); + return (_out_kw_string,_out_type); + } + set { SetFormatString( value.Item1, value.Item2); } + } + /// Control the value (position) of the widget within its valid range. + /// Values outside the limits defined in are ignored and an error is printed. + /// The range value (must be within the bounds of ). public double RangeValue { get { return GetRangeValue(); } set { SetRangeValue(value); } } - /// Control the step used to increment or decrement values for given widget. - /// This value will be incremented or decremented to the displayed value. + /// Set the minimum and maximum values for given range widget. + /// If the current value is less than min, it will be updated to min. If it is bigger then max, will be updated to max. The resulting value can be obtained with . /// - /// By default step value is equal to 1. + /// The default minimum and maximum values may be different for each class. /// - /// Warning: The step value should be bigger than 0. - /// The step value. - public double RangeStep { - get { return GetRangeStep(); } - set { SetRangeStep(value); } + /// Note: maximum must be greater than minimum, otherwise behavior is undefined. + /// The minimum value. + public (double, double) RangeLimits { + get { + double _out_min = default(double); + double _out_max = default(double); + GetRangeLimits(out _out_min,out _out_max); + return (_out_min,_out_max); + } + set { SetRangeLimits( value.Item1, value.Item2); } } private static IntPtr GetEflClassStatic() { @@ -620,26 +640,6 @@ public class Spin : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.IFormat, Efl.Ui descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_limits_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_limits_set_static_delegate) }); } - if (efl_ui_range_step_get_static_delegate == null) - { - efl_ui_range_step_get_static_delegate = new efl_ui_range_step_get_delegate(range_step_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetRangeStep") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_step_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_step_get_static_delegate) }); - } - - if (efl_ui_range_step_set_static_delegate == null) - { - efl_ui_range_step_set_static_delegate = new efl_ui_range_step_set_delegate(range_step_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetRangeStep") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_step_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_step_set_static_delegate) }); - } - descs.AddRange(base.GetEoOps(type)); return descs; } @@ -1261,77 +1261,6 @@ public class Spin : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.IFormat, Efl.Ui private static efl_ui_range_limits_set_delegate efl_ui_range_limits_set_static_delegate; - - private delegate double efl_ui_range_step_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate double efl_ui_range_step_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_range_step_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_step_get"); - - private static double range_step_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_range_step_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - double _ret_var = default(double); - try - { - _ret_var = ((Spin)ws.Target).GetRangeStep(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_range_step_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_range_step_get_delegate efl_ui_range_step_get_static_delegate; - - - private delegate void efl_ui_range_step_set_delegate(System.IntPtr obj, System.IntPtr pd, double step); - - - public delegate void efl_ui_range_step_set_api_delegate(System.IntPtr obj, double step); - - public static Efl.Eo.FunctionWrapper efl_ui_range_step_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_step_set"); - - private static void range_step_set(System.IntPtr obj, System.IntPtr pd, double step) - { - Eina.Log.Debug("function efl_ui_range_step_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((Spin)ws.Target).SetRangeStep(step); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_range_step_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); - } - } - - private static efl_ui_range_step_set_delegate efl_ui_range_step_set_static_delegate; - #pragma warning restore CA1707, CS1591, SA1300, SA1600 } @@ -1340,3 +1269,26 @@ public class Spin : Efl.Ui.LayoutBase, Efl.Access.IValue, Efl.Ui.IFormat, Efl.Ui } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiSpin_ExtensionMethods { + + + + public static Efl.BindableProperty FormatFunc(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Spin { + return new Efl.BindableProperty("format_func", fac); + } + + public static Efl.BindableProperty> FormatValues(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Spin { + return new Efl.BindableProperty>("format_values", fac); + } + + + public static Efl.BindableProperty RangeValue(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Spin { + return new Efl.BindableProperty("range_value", fac); + } + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_spin_button.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_spin_button.eo.cs old mode 100644 new mode 100755 index bef5e4191..af46a89d9 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_spin_button.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_spin_button.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Ui { /// A Button Spin. /// This is a widget which allows the user to increase or decrease numeric values using the arrow buttons or to edit values directly by clicking over them and inputting new ones. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.SpinButton.NativeMethods] [Efl.Eo.BindingEntity] -public class SpinButton : Efl.Ui.Spin, Efl.Ui.ILayoutOrientable, Efl.Ui.Focus.IComposition +public class SpinButton : Efl.Ui.Spin, Efl.Ui.ILayoutOrientable, Efl.Ui.IRangeInteractive, Efl.Ui.Focus.IComposition { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -47,7 +49,8 @@ public class SpinButton : Efl.Ui.Spin, Efl.Ui.ILayoutOrientable, Efl.Ui.Focus.IC FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected SpinButton(ConstructingHandle ch) : base(ch) { @@ -68,8 +71,8 @@ public class SpinButton : Efl.Ui.Spin, Efl.Ui.ILayoutOrientable, Efl.Ui.Focus.IC { } - /// Called when spin delay is changed. - public event EventHandler DelayChangedEvt + /// Called when the widget's value has changed and has remained unchanged for 0.2s. This allows filtering out unwanted "noise" from the widget if you are only interested in its final position. Use this event instead of if you are going to perform a costly operation on its handler. + public event EventHandler SteadyEvt { add { @@ -93,7 +96,7 @@ public class SpinButton : Efl.Ui.Spin, Efl.Ui.ILayoutOrientable, Efl.Ui.Focus.IC } }; - string key = "_EFL_UI_SPIN_BUTTON_EVENT_DELAY_CHANGED"; + string key = "_EFL_UI_RANGE_EVENT_STEADY"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -102,15 +105,15 @@ public class SpinButton : Efl.Ui.Spin, Efl.Ui.ILayoutOrientable, Efl.Ui.Focus.IC { lock (eflBindingEventLock) { - string key = "_EFL_UI_SPIN_BUTTON_EVENT_DELAY_CHANGED"; + string key = "_EFL_UI_RANGE_EVENT_STEADY"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event DelayChangedEvt. - public void OnDelayChangedEvt(EventArgs e) + /// Method to raise event SteadyEvt. + public void OnSteadyEvt(EventArgs e) { - var key = "_EFL_UI_SPIN_BUTTON_EVENT_DELAY_CHANGED"; + var key = "_EFL_UI_RANGE_EVENT_STEADY"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -129,8 +132,8 @@ public class SpinButton : Efl.Ui.Spin, Efl.Ui.ILayoutOrientable, Efl.Ui.Focus.IC /// /// When the user decrements the value (using left or bottom arrow), it will display $50. /// true to enable circulate or false to disable it. - virtual public bool GetCirculate() { - var _ret_var = Efl.Ui.SpinButton.NativeMethods.efl_ui_spin_button_circulate_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + virtual public bool GetWraparound() { + var _ret_var = Efl.Ui.SpinButton.NativeMethods.efl_ui_spin_button_wraparound_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -143,23 +146,23 @@ public class SpinButton : Efl.Ui.Spin, Efl.Ui.ILayoutOrientable, Efl.Ui.Focus.IC /// /// When the user decrements the value (using left or bottom arrow), it will display $50. /// true to enable circulate or false to disable it. - virtual public void SetCirculate(bool circulate) { - Efl.Ui.SpinButton.NativeMethods.efl_ui_spin_button_circulate_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),circulate); + virtual public void SetWraparound(bool circulate) { + Efl.Ui.SpinButton.NativeMethods.efl_ui_spin_button_wraparound_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),circulate); Eina.Error.RaiseIfUnhandledException(); } /// Control whether the spin can be directly edited by the user. /// Spin objects can have editing disabled, in which case they can only be changed by using arrows. This is useful for situations where you don't want your users to write their own value. It's especially useful when using special values. The user can see the real values instead of special label when editing. /// true to allow users to edit it or false to don't allow users to edit it directly. - virtual public bool GetEditable() { - var _ret_var = Efl.Ui.SpinButton.NativeMethods.efl_ui_spin_button_editable_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + virtual public bool GetDirectTextInput() { + var _ret_var = Efl.Ui.SpinButton.NativeMethods.efl_ui_spin_button_direct_text_input_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Control whether the spin can be directly edited by the user. /// Spin objects can have editing disabled, in which case they can only be changed by using arrows. This is useful for situations where you don't want your users to write their own value. It's especially useful when using special values. The user can see the real values instead of special label when editing. - /// true to allow users to edit it or false to don't allow users to edit it directly. - virtual public void SetEditable(bool editable) { - Efl.Ui.SpinButton.NativeMethods.efl_ui_spin_button_editable_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),editable); + /// true to allow users to edit it or false to don't allow users to edit it directly. + virtual public void SetDirectTextInput(bool direct_text_input) { + Efl.Ui.SpinButton.NativeMethods.efl_ui_spin_button_direct_text_input_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),direct_text_input); Eina.Error.RaiseIfUnhandledException(); } /// Control the direction of a given widget. @@ -181,6 +184,29 @@ public class SpinButton : Efl.Ui.Spin, Efl.Ui.ILayoutOrientable, Efl.Ui.Focus.IC Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),dir); Eina.Error.RaiseIfUnhandledException(); } + /// Control the step used to increment or decrement values for given widget. + /// This value will be incremented or decremented to the displayed value. + /// + /// By default step value is equal to 1. + /// + /// Warning: The step value should be bigger than 0. + /// The step value. + virtual public double GetRangeStep() { + var _ret_var = Efl.Ui.IRangeInteractiveConcrete.NativeMethods.efl_ui_range_step_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Control the step used to increment or decrement values for given widget. + /// This value will be incremented or decremented to the displayed value. + /// + /// By default step value is equal to 1. + /// + /// Warning: The step value should be bigger than 0. + /// The step value. + virtual public void SetRangeStep(double step) { + Efl.Ui.IRangeInteractiveConcrete.NativeMethods.efl_ui_range_step_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),step); + Eina.Error.RaiseIfUnhandledException(); + } /// Set the order of elements that will be used for composition /// Elements of the list can be either an Efl.Ui.Widget, an Efl.Ui.Focus.Object or an Efl.Gfx. /// @@ -243,16 +269,16 @@ logical_order.Own = false; /// /// When the user decrements the value (using left or bottom arrow), it will display $50. /// true to enable circulate or false to disable it. - public bool Circulate { - get { return GetCirculate(); } - set { SetCirculate(value); } + public bool Wraparound { + get { return GetWraparound(); } + set { SetWraparound(value); } } /// Control whether the spin can be directly edited by the user. /// Spin objects can have editing disabled, in which case they can only be changed by using arrows. This is useful for situations where you don't want your users to write their own value. It's especially useful when using special values. The user can see the real values instead of special label when editing. /// true to allow users to edit it or false to don't allow users to edit it directly. - public bool Editable { - get { return GetEditable(); } - set { SetEditable(value); } + public bool DirectTextInput { + get { return GetDirectTextInput(); } + set { SetDirectTextInput(value); } } /// Control the direction of a given widget. /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. @@ -263,6 +289,17 @@ logical_order.Own = false; get { return GetOrientation(); } set { SetOrientation(value); } } + /// Control the step used to increment or decrement values for given widget. + /// This value will be incremented or decremented to the displayed value. + /// + /// By default step value is equal to 1. + /// + /// Warning: The step value should be bigger than 0. + /// The step value. + public double RangeStep { + get { return GetRangeStep(); } + set { SetRangeStep(value); } + } /// Set the order of elements that will be used for composition /// Elements of the list can be either an Efl.Ui.Widget, an Efl.Ui.Focus.Object or an Efl.Gfx. /// @@ -298,44 +335,44 @@ logical_order.Own = false; var descs = new System.Collections.Generic.List(); var methods = Efl.Eo.Globals.GetUserMethods(type); - if (efl_ui_spin_button_circulate_get_static_delegate == null) + if (efl_ui_spin_button_wraparound_get_static_delegate == null) { - efl_ui_spin_button_circulate_get_static_delegate = new efl_ui_spin_button_circulate_get_delegate(circulate_get); + efl_ui_spin_button_wraparound_get_static_delegate = new efl_ui_spin_button_wraparound_get_delegate(wraparound_get); } - if (methods.FirstOrDefault(m => m.Name == "GetCirculate") != null) + if (methods.FirstOrDefault(m => m.Name == "GetWraparound") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spin_button_circulate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_button_circulate_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spin_button_wraparound_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_button_wraparound_get_static_delegate) }); } - if (efl_ui_spin_button_circulate_set_static_delegate == null) + if (efl_ui_spin_button_wraparound_set_static_delegate == null) { - efl_ui_spin_button_circulate_set_static_delegate = new efl_ui_spin_button_circulate_set_delegate(circulate_set); + efl_ui_spin_button_wraparound_set_static_delegate = new efl_ui_spin_button_wraparound_set_delegate(wraparound_set); } - if (methods.FirstOrDefault(m => m.Name == "SetCirculate") != null) + if (methods.FirstOrDefault(m => m.Name == "SetWraparound") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spin_button_circulate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_button_circulate_set_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spin_button_wraparound_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_button_wraparound_set_static_delegate) }); } - if (efl_ui_spin_button_editable_get_static_delegate == null) + if (efl_ui_spin_button_direct_text_input_get_static_delegate == null) { - efl_ui_spin_button_editable_get_static_delegate = new efl_ui_spin_button_editable_get_delegate(editable_get); + efl_ui_spin_button_direct_text_input_get_static_delegate = new efl_ui_spin_button_direct_text_input_get_delegate(direct_text_input_get); } - if (methods.FirstOrDefault(m => m.Name == "GetEditable") != null) + if (methods.FirstOrDefault(m => m.Name == "GetDirectTextInput") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spin_button_editable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_button_editable_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spin_button_direct_text_input_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_button_direct_text_input_get_static_delegate) }); } - if (efl_ui_spin_button_editable_set_static_delegate == null) + if (efl_ui_spin_button_direct_text_input_set_static_delegate == null) { - efl_ui_spin_button_editable_set_static_delegate = new efl_ui_spin_button_editable_set_delegate(editable_set); + efl_ui_spin_button_direct_text_input_set_static_delegate = new efl_ui_spin_button_direct_text_input_set_delegate(direct_text_input_set); } - if (methods.FirstOrDefault(m => m.Name == "SetEditable") != null) + if (methods.FirstOrDefault(m => m.Name == "SetDirectTextInput") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spin_button_editable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_button_editable_set_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spin_button_direct_text_input_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spin_button_direct_text_input_set_static_delegate) }); } if (efl_ui_layout_orientation_get_static_delegate == null) @@ -358,6 +395,26 @@ logical_order.Own = false; descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_layout_orientation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_orientation_set_static_delegate) }); } + if (efl_ui_range_step_get_static_delegate == null) + { + efl_ui_range_step_get_static_delegate = new efl_ui_range_step_get_delegate(range_step_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetRangeStep") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_step_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_step_get_static_delegate) }); + } + + if (efl_ui_range_step_set_static_delegate == null) + { + efl_ui_range_step_set_static_delegate = new efl_ui_range_step_set_delegate(range_step_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetRangeStep") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_range_step_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_range_step_set_static_delegate) }); + } + if (efl_ui_focus_composition_elements_get_static_delegate == null) { efl_ui_focus_composition_elements_get_static_delegate = new efl_ui_focus_composition_elements_get_delegate(composition_elements_get); @@ -431,23 +488,23 @@ logical_order.Own = false; #pragma warning disable CA1707, CS1591, SA1300, SA1600 [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_ui_spin_button_circulate_get_delegate(System.IntPtr obj, System.IntPtr pd); + private delegate bool efl_ui_spin_button_wraparound_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_ui_spin_button_circulate_get_api_delegate(System.IntPtr obj); + public delegate bool efl_ui_spin_button_wraparound_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_spin_button_circulate_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_spin_button_circulate_get"); + public static Efl.Eo.FunctionWrapper efl_ui_spin_button_wraparound_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_spin_button_wraparound_get"); - private static bool circulate_get(System.IntPtr obj, System.IntPtr pd) + private static bool wraparound_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function efl_ui_spin_button_circulate_get was called"); + Eina.Log.Debug("function efl_ui_spin_button_wraparound_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { - _ret_var = ((SpinButton)ws.Target).GetCirculate(); + _ret_var = ((SpinButton)ws.Target).GetWraparound(); } catch (Exception e) { @@ -460,30 +517,30 @@ logical_order.Own = false; } else { - return efl_ui_spin_button_circulate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + return efl_ui_spin_button_wraparound_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static efl_ui_spin_button_circulate_get_delegate efl_ui_spin_button_circulate_get_static_delegate; + private static efl_ui_spin_button_wraparound_get_delegate efl_ui_spin_button_wraparound_get_static_delegate; - private delegate void efl_ui_spin_button_circulate_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool circulate); + private delegate void efl_ui_spin_button_wraparound_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool circulate); - public delegate void efl_ui_spin_button_circulate_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool circulate); + public delegate void efl_ui_spin_button_wraparound_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool circulate); - public static Efl.Eo.FunctionWrapper efl_ui_spin_button_circulate_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_spin_button_circulate_set"); + public static Efl.Eo.FunctionWrapper efl_ui_spin_button_wraparound_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_spin_button_wraparound_set"); - private static void circulate_set(System.IntPtr obj, System.IntPtr pd, bool circulate) + private static void wraparound_set(System.IntPtr obj, System.IntPtr pd, bool circulate) { - Eina.Log.Debug("function efl_ui_spin_button_circulate_set was called"); + Eina.Log.Debug("function efl_ui_spin_button_wraparound_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ((SpinButton)ws.Target).SetCirculate(circulate); + ((SpinButton)ws.Target).SetWraparound(circulate); } catch (Exception e) { @@ -495,30 +552,30 @@ logical_order.Own = false; } else { - efl_ui_spin_button_circulate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), circulate); + efl_ui_spin_button_wraparound_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), circulate); } } - private static efl_ui_spin_button_circulate_set_delegate efl_ui_spin_button_circulate_set_static_delegate; + private static efl_ui_spin_button_wraparound_set_delegate efl_ui_spin_button_wraparound_set_static_delegate; [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_ui_spin_button_editable_get_delegate(System.IntPtr obj, System.IntPtr pd); + private delegate bool efl_ui_spin_button_direct_text_input_get_delegate(System.IntPtr obj, System.IntPtr pd); [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_ui_spin_button_editable_get_api_delegate(System.IntPtr obj); + public delegate bool efl_ui_spin_button_direct_text_input_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_ui_spin_button_editable_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_spin_button_editable_get"); + public static Efl.Eo.FunctionWrapper efl_ui_spin_button_direct_text_input_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_spin_button_direct_text_input_get"); - private static bool editable_get(System.IntPtr obj, System.IntPtr pd) + private static bool direct_text_input_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function efl_ui_spin_button_editable_get was called"); + Eina.Log.Debug("function efl_ui_spin_button_direct_text_input_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { - _ret_var = ((SpinButton)ws.Target).GetEditable(); + _ret_var = ((SpinButton)ws.Target).GetDirectTextInput(); } catch (Exception e) { @@ -531,30 +588,30 @@ logical_order.Own = false; } else { - return efl_ui_spin_button_editable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + return efl_ui_spin_button_direct_text_input_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static efl_ui_spin_button_editable_get_delegate efl_ui_spin_button_editable_get_static_delegate; + private static efl_ui_spin_button_direct_text_input_get_delegate efl_ui_spin_button_direct_text_input_get_static_delegate; - private delegate void efl_ui_spin_button_editable_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool editable); + private delegate void efl_ui_spin_button_direct_text_input_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool direct_text_input); - public delegate void efl_ui_spin_button_editable_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool editable); + public delegate void efl_ui_spin_button_direct_text_input_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool direct_text_input); - public static Efl.Eo.FunctionWrapper efl_ui_spin_button_editable_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_spin_button_editable_set"); + public static Efl.Eo.FunctionWrapper efl_ui_spin_button_direct_text_input_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_spin_button_direct_text_input_set"); - private static void editable_set(System.IntPtr obj, System.IntPtr pd, bool editable) + private static void direct_text_input_set(System.IntPtr obj, System.IntPtr pd, bool direct_text_input) { - Eina.Log.Debug("function efl_ui_spin_button_editable_set was called"); + Eina.Log.Debug("function efl_ui_spin_button_direct_text_input_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ((SpinButton)ws.Target).SetEditable(editable); + ((SpinButton)ws.Target).SetDirectTextInput(direct_text_input); } catch (Exception e) { @@ -566,11 +623,11 @@ logical_order.Own = false; } else { - efl_ui_spin_button_editable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), editable); + efl_ui_spin_button_direct_text_input_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direct_text_input); } } - private static efl_ui_spin_button_editable_set_delegate efl_ui_spin_button_editable_set_static_delegate; + private static efl_ui_spin_button_direct_text_input_set_delegate efl_ui_spin_button_direct_text_input_set_static_delegate; private delegate Efl.Ui.LayoutOrientation efl_ui_layout_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd); @@ -644,6 +701,77 @@ logical_order.Own = false; private static efl_ui_layout_orientation_set_delegate efl_ui_layout_orientation_set_static_delegate; + private delegate double efl_ui_range_step_get_delegate(System.IntPtr obj, System.IntPtr pd); + + + public delegate double efl_ui_range_step_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_range_step_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_step_get"); + + private static double range_step_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_range_step_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + double _ret_var = default(double); + try + { + _ret_var = ((SpinButton)ws.Target).GetRangeStep(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_range_step_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_range_step_get_delegate efl_ui_range_step_get_static_delegate; + + + private delegate void efl_ui_range_step_set_delegate(System.IntPtr obj, System.IntPtr pd, double step); + + + public delegate void efl_ui_range_step_set_api_delegate(System.IntPtr obj, double step); + + public static Efl.Eo.FunctionWrapper efl_ui_range_step_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_range_step_set"); + + private static void range_step_set(System.IntPtr obj, System.IntPtr pd, double step) + { + Eina.Log.Debug("function efl_ui_range_step_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((SpinButton)ws.Target).SetRangeStep(step); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_range_step_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), step); + } + } + + private static efl_ui_range_step_set_delegate efl_ui_range_step_set_static_delegate; + + private delegate System.IntPtr efl_ui_focus_composition_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); @@ -864,3 +992,33 @@ logical_order.Own = false; } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiSpinButton_ExtensionMethods { + public static Efl.BindableProperty Wraparound(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.SpinButton { + return new Efl.BindableProperty("wraparound", fac); + } + + public static Efl.BindableProperty DirectTextInput(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.SpinButton { + return new Efl.BindableProperty("direct_text_input", fac); + } + + public static Efl.BindableProperty Orientation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.SpinButton { + return new Efl.BindableProperty("orientation", fac); + } + + public static Efl.BindableProperty RangeStep(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.SpinButton { + return new Efl.BindableProperty("range_step", fac); + } + + public static Efl.BindableProperty> CompositionElements(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.SpinButton { + return new Efl.BindableProperty>("composition_elements", fac); + } + + public static Efl.BindableProperty LogicalMode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.SpinButton { + return new Efl.BindableProperty("logical_mode", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_container.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_container.eo.cs old mode 100644 new mode 100755 index 83ce747bd..b6c1a9641 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_container.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_container.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,16 +12,18 @@ namespace Ui { namespace Spotlight { -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ContainerTransitionStartEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// A transition animation has started. public Efl.Ui.Spotlight.TransitionEvent arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ContainerTransitionEndEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// A transition animation has ended. public Efl.Ui.Spotlight.TransitionEvent arg { get; set; } } /// The Spotlight widget is a container for other sub-widgets, where only one sub-widget is active at any given time. @@ -33,11 +36,12 @@ public class ContainerTransitionEndEvt_Args : EventArgs { /// Also, an indicator widget can be used to show a visual cue of how many sub-widgets are there and which one is the active one. /// /// This class can be used to create other widgets like Pagers, Tabbed pagers or Stacks, where each sub-widget represents a "page" full of other widgets. All these cases can be implemented with a different and use the same . +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Spotlight.Container.NativeMethods] [Efl.Eo.BindingEntity] public class Container : Efl.Ui.LayoutBase, Efl.IPack, Efl.IPackLinear { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -69,7 +73,8 @@ public class Container : Efl.Ui.LayoutBase, Efl.IPack, Efl.IPackLinear FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Container(ConstructingHandle ch) : base(ch) { @@ -91,6 +96,7 @@ public class Container : Efl.Ui.LayoutBase, Efl.IPack, Efl.IPackLinear } /// A transition animation has started. + /// public event EventHandler TransitionStartEvt { add @@ -130,7 +136,7 @@ public class Container : Efl.Ui.LayoutBase, Efl.IPack, Efl.IPackLinear } } } - ///Method to raise event TransitionStartEvt. + /// Method to raise event TransitionStartEvt. public void OnTransitionStartEvt(Efl.Ui.Spotlight.ContainerTransitionStartEvt_Args e) { var key = "_EFL_UI_SPOTLIGHT_EVENT_TRANSITION_START"; @@ -153,6 +159,7 @@ public class Container : Efl.Ui.LayoutBase, Efl.IPack, Efl.IPackLinear } } /// A transition animation has ended. + /// public event EventHandler TransitionEndEvt { add @@ -192,7 +199,7 @@ public class Container : Efl.Ui.LayoutBase, Efl.IPack, Efl.IPackLinear } } } - ///Method to raise event TransitionEndEvt. + /// Method to raise event TransitionEndEvt. public void OnTransitionEndEvt(Efl.Ui.Spotlight.ContainerTransitionEndEvt_Args e) { var key = "_EFL_UI_SPOTLIGHT_EVENT_TRANSITION_END"; @@ -1492,6 +1499,28 @@ public class Container : Efl.Ui.LayoutBase, Efl.IPack, Efl.IPackLinear } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Ui_SpotlightContainer_ExtensionMethods { + public static Efl.BindableProperty SpotlightManager(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Spotlight.Container { + return new Efl.BindableProperty("spotlight_manager", fac); + } + + public static Efl.BindableProperty Indicator(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Spotlight.Container { + return new Efl.BindableProperty("indicator", fac); + } + + public static Efl.BindableProperty ActiveIndex(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Spotlight.Container { + return new Efl.BindableProperty("active_index", fac); + } + + public static Efl.BindableProperty SpotlightSize(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Spotlight.Container { + return new Efl.BindableProperty("spotlight_size", fac); + } + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Ui { @@ -1507,7 +1536,9 @@ public struct TransitionEvent public int From; /// The index to where the transition is headed, -1 if not known. public int To; - ///Constructor for TransitionEvent. + /// Constructor for TransitionEvent. + /// The index from where the transition started, -1 if not known.; + /// The index to where the transition is headed, -1 if not known.; public TransitionEvent( int From = default(int), int To = default(int) ) @@ -1516,8 +1547,8 @@ public struct TransitionEvent this.To = To; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator TransitionEvent(IntPtr ptr) { var tmp = (TransitionEvent.NativeStruct)Marshal.PtrToStructure(ptr, typeof(TransitionEvent.NativeStruct)); @@ -1526,7 +1557,7 @@ public struct TransitionEvent #pragma warning disable CS1591 - ///Internal wrapper for struct TransitionEvent. + /// Internal wrapper for struct TransitionEvent. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -1534,7 +1565,7 @@ public struct TransitionEvent public int From; public int To; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator TransitionEvent.NativeStruct(TransitionEvent _external_struct) { var _internal_struct = new TransitionEvent.NativeStruct(); @@ -1543,7 +1574,7 @@ public struct TransitionEvent return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator TransitionEvent(TransitionEvent.NativeStruct _internal_struct) { var _external_struct = new TransitionEvent(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_indicator.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_indicator.eo.cs old mode 100644 new mode 100755 index 969ae61d6..77708af2f --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_indicator.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_indicator.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -13,11 +14,12 @@ namespace Spotlight { /// Object used by to render an indication of the active widgets's position among the rest of the container's widgets. /// An example would be Android's little dots in the home screen. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Spotlight.Indicator.NativeMethods] [Efl.Eo.BindingEntity] public abstract class Indicator : Efl.Object { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -43,7 +45,8 @@ public abstract class Indicator : Efl.Object FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Indicator(ConstructingHandle ch) : base(ch) { @@ -323,3 +326,9 @@ public abstract class Indicator : Efl.Object } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Ui_SpotlightIndicator_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_indicator_icon.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_indicator_icon.eo.cs old mode 100644 new mode 100755 index 157bec3fc..9239908aa --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_indicator_icon.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_indicator_icon.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Ui { namespace Spotlight { +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Spotlight.IndicatorIcon.NativeMethods] [Efl.Eo.BindingEntity] public class IndicatorIcon : Efl.Ui.Spotlight.Indicator { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -41,7 +43,8 @@ public class IndicatorIcon : Efl.Ui.Spotlight.Indicator FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected IndicatorIcon(ConstructingHandle ch) : base(ch) { @@ -97,3 +100,9 @@ public class IndicatorIcon : Efl.Ui.Spotlight.Indicator } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Ui_SpotlightIndicatorIcon_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_manager.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_manager.eo.cs old mode 100644 new mode 100755 index f25c1ab16..ff8ea9f85 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_manager.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_manager.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,19 +12,21 @@ namespace Ui { namespace Spotlight { -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class ManagerPosUpdateEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Index of the sub-widget currently being displayed. Fractional values indicate a position in-between sub-widgets. For instance, when transitioning from sub-widget 2 to sub-widget 3, this event should be emitted with monotonically increasing values ranging from 2.0 to 3.0. Animations can perform any movement they want, but the reported pos_update must move in the same direction. public double arg { get; set; } } /// Manager object used by to handle rendering and animation of its sub-widgets, and user interaction. /// For instance, changes to the current sub-widget in the spotlight () can be animated with a transition. This object can also handle user interaction. For example, dragging the sub-widget to one side to get to a different sub-widget (like an smartphone home screen). Such user interactions should end up setting a new . During a transition, the evolution of the current position should be exposed by emitting pos_update events. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Spotlight.Manager.NativeMethods] [Efl.Eo.BindingEntity] public abstract class Manager : Efl.Object { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -49,7 +52,8 @@ public abstract class Manager : Efl.Object FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Manager(ConstructingHandle ch) : base(ch) { @@ -78,6 +82,7 @@ public abstract class Manager : Efl.Object } /// Index of the sub-widget currently being displayed. Fractional values indicate a position in-between sub-widgets. For instance, when transitioning from sub-widget 2 to sub-widget 3, this event should be emitted with monotonically increasing values ranging from 2.0 to 3.0. Animations can perform any movement they want, but the reported pos_update must move in the same direction. + /// public event EventHandler PosUpdateEvt { add @@ -117,7 +122,7 @@ public abstract class Manager : Efl.Object } } } - ///Method to raise event PosUpdateEvt. + /// Method to raise event PosUpdateEvt. public void OnPosUpdateEvt(Efl.Ui.Spotlight.ManagerPosUpdateEvt_Args e) { var key = "_EFL_UI_SPOTLIGHT_MANAGER_EVENT_POS_UPDATE"; @@ -554,3 +559,17 @@ public abstract class Manager : Efl.Object } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Ui_SpotlightManager_ExtensionMethods { + public static Efl.BindableProperty Size(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Spotlight.Manager { + return new Efl.BindableProperty("size", fac); + } + + public static Efl.BindableProperty AnimationEnabled(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Spotlight.Manager { + return new Efl.BindableProperty("animation_enabled", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_manager_scroll.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_manager_scroll.eo.cs old mode 100644 new mode 100755 index 90dc566a0..2bffc2552 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_manager_scroll.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_manager_scroll.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Ui { namespace Spotlight { +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Spotlight.ManagerScroll.NativeMethods] [Efl.Eo.BindingEntity] public class ManagerScroll : Efl.Ui.Spotlight.Manager { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -41,7 +43,8 @@ public class ManagerScroll : Efl.Ui.Spotlight.Manager FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected ManagerScroll(ConstructingHandle ch) : base(ch) { @@ -62,6 +65,28 @@ public class ManagerScroll : Efl.Ui.Spotlight.Manager { } + /// Blocking of scrolling + /// This function will block scrolling movement (by input of a user). You can disable scrolling movement. The default value is false, where the scrolling movement is allowed. + /// true if block scrolling movement, false otherwise + virtual public bool GetScrollBlock() { + var _ret_var = Efl.Ui.Spotlight.ManagerScroll.NativeMethods.efl_ui_spotlight_manager_scroll_block_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Blocking of scrolling + /// This function will block scrolling movement (by input of a user). You can disable scrolling movement. The default value is false, where the scrolling movement is allowed. + /// true if block scrolling movement, false otherwise + virtual public void SetScrollBlock(bool scroll_block) { + Efl.Ui.Spotlight.ManagerScroll.NativeMethods.efl_ui_spotlight_manager_scroll_block_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),scroll_block); + Eina.Error.RaiseIfUnhandledException(); + } + /// Blocking of scrolling + /// This function will block scrolling movement (by input of a user). You can disable scrolling movement. The default value is false, where the scrolling movement is allowed. + /// true if block scrolling movement, false otherwise + public bool ScrollBlock { + get { return GetScrollBlock(); } + set { SetScrollBlock(value); } + } private static IntPtr GetEflClassStatic() { return Efl.Ui.Spotlight.ManagerScroll.efl_ui_spotlight_manager_scroll_class_get(); @@ -70,11 +95,34 @@ public class ManagerScroll : Efl.Ui.Spotlight.Manager /// For internal use by generated code only. public new class NativeMethods : Efl.Ui.Spotlight.Manager.NativeMethods { + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); /// Gets the list of Eo operations to override. /// The list of Eo operations to be overload. public override System.Collections.Generic.List GetEoOps(System.Type type) { var descs = new System.Collections.Generic.List(); + var methods = Efl.Eo.Globals.GetUserMethods(type); + + if (efl_ui_spotlight_manager_scroll_block_get_static_delegate == null) + { + efl_ui_spotlight_manager_scroll_block_get_static_delegate = new efl_ui_spotlight_manager_scroll_block_get_delegate(scroll_block_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetScrollBlock") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spotlight_manager_scroll_block_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spotlight_manager_scroll_block_get_static_delegate) }); + } + + if (efl_ui_spotlight_manager_scroll_block_set_static_delegate == null) + { + efl_ui_spotlight_manager_scroll_block_set_static_delegate = new efl_ui_spotlight_manager_scroll_block_set_delegate(scroll_block_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScrollBlock") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spotlight_manager_scroll_block_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spotlight_manager_scroll_block_set_static_delegate) }); + } + descs.AddRange(base.GetEoOps(type)); return descs; } @@ -87,6 +135,77 @@ public class ManagerScroll : Efl.Ui.Spotlight.Manager #pragma warning disable CA1707, CS1591, SA1300, SA1600 + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_spotlight_manager_scroll_block_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_spotlight_manager_scroll_block_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_spotlight_manager_scroll_block_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_spotlight_manager_scroll_block_get"); + + private static bool scroll_block_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_spotlight_manager_scroll_block_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((ManagerScroll)ws.Target).GetScrollBlock(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_spotlight_manager_scroll_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_spotlight_manager_scroll_block_get_delegate efl_ui_spotlight_manager_scroll_block_get_static_delegate; + + + private delegate void efl_ui_spotlight_manager_scroll_block_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool scroll_block); + + + public delegate void efl_ui_spotlight_manager_scroll_block_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool scroll_block); + + public static Efl.Eo.FunctionWrapper efl_ui_spotlight_manager_scroll_block_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_spotlight_manager_scroll_block_set"); + + private static void scroll_block_set(System.IntPtr obj, System.IntPtr pd, bool scroll_block) + { + Eina.Log.Debug("function efl_ui_spotlight_manager_scroll_block_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((ManagerScroll)ws.Target).SetScrollBlock(scroll_block); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_spotlight_manager_scroll_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_block); + } + } + + private static efl_ui_spotlight_manager_scroll_block_set_delegate efl_ui_spotlight_manager_scroll_block_set_static_delegate; + #pragma warning restore CA1707, CS1591, SA1300, SA1600 } @@ -97,3 +216,13 @@ public class ManagerScroll : Efl.Ui.Spotlight.Manager } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Ui_SpotlightManagerScroll_ExtensionMethods { + public static Efl.BindableProperty ScrollBlock(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Spotlight.ManagerScroll { + return new Efl.BindableProperty("scroll_block", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_manager_stack.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_manager_stack.eo.cs old mode 100644 new mode 100755 index 2ee19bc87..ee7df9c31 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_manager_stack.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_manager_stack.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Ui { namespace Spotlight { +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Spotlight.ManagerStack.NativeMethods] [Efl.Eo.BindingEntity] public class ManagerStack : Efl.Ui.Spotlight.Manager { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -41,7 +43,8 @@ public class ManagerStack : Efl.Ui.Spotlight.Manager FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected ManagerStack(ConstructingHandle ch) : base(ch) { @@ -97,3 +100,9 @@ public class ManagerStack : Efl.Ui.Spotlight.Manager } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Ui_SpotlightManagerStack_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_util.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_util.eo.cs old mode 100644 new mode 100755 index 69d67f080..de4bdaac8 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_util.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_spotlight_util.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Ui { namespace Spotlight { +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Spotlight.Util.NativeMethods] [Efl.Eo.BindingEntity] public class Util : Efl.Eo.EoWrapper { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -41,7 +43,8 @@ public class Util : Efl.Eo.EoWrapper FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Util(ConstructingHandle ch) : base(ch) { @@ -138,3 +141,9 @@ public class Util : Efl.Eo.EoWrapper } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Ui_SpotlightUtil_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_bar.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_bar.eo.cs old mode 100644 new mode 100755 index f5d1e9cbd..d10766413 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_bar.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_bar.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Tab Bar class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.TabBar.NativeMethods] [Efl.Eo.BindingEntity] public class TabBar : Efl.Ui.LayoutBase { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +48,8 @@ public class TabBar : Efl.Ui.LayoutBase FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected TabBar(ConstructingHandle ch) : base(ch) { @@ -454,3 +457,13 @@ public class TabBar : Efl.Ui.LayoutBase } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiTabBar_ExtensionMethods { + public static Efl.BindableProperty CurrentTab(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.TabBar { + return new Efl.BindableProperty("current_tab", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_page.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_page.eo.cs old mode 100644 new mode 100755 index 52f13a273..a695f4779 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_page.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_page.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,18 +10,20 @@ namespace Efl { namespace Ui { -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class TabPageTabChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when tab changed public Efl.Ui.TabPageTabChangedEvent arg { get; set; } } /// Tab Page class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.TabPage.NativeMethods] [Efl.Eo.BindingEntity] public class TabPage : Efl.Ui.LayoutBase, Efl.IContent { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -52,7 +55,8 @@ public class TabPage : Efl.Ui.LayoutBase, Efl.IContent FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected TabPage(ConstructingHandle ch) : base(ch) { @@ -74,6 +78,7 @@ public class TabPage : Efl.Ui.LayoutBase, Efl.IContent } /// Called when tab changed + /// public event EventHandler TabChangedEvt { add @@ -113,7 +118,7 @@ public class TabPage : Efl.Ui.LayoutBase, Efl.IContent } } } - ///Method to raise event TabChangedEvt. + /// Method to raise event TabChangedEvt. public void OnTabChangedEvt(Efl.Ui.TabPageTabChangedEvt_Args e) { var key = "_EFL_UI_TAB_PAGE_EVENT_TAB_CHANGED"; @@ -137,6 +142,7 @@ public class TabPage : Efl.Ui.LayoutBase, Efl.IContent } /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) + /// public event EventHandler ContentChangedEvt { add @@ -176,7 +182,7 @@ public class TabPage : Efl.Ui.LayoutBase, Efl.IContent } } } - ///Method to raise event ContentChangedEvt. + /// Method to raise event ContentChangedEvt. public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; @@ -406,6 +412,21 @@ public class TabPage : Efl.Ui.LayoutBase, Efl.IContent } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiTabPage_ExtensionMethods { + public static Efl.BindableProperty Content(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.TabPage { + return new Efl.BindableProperty("content", fac); + } + + public static Efl.BindablePart TabPart(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTag x=null) where T : Efl.Ui.TabPage + { + return new Efl.BindablePart("tab" ,fac); + } + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Ui { @@ -434,16 +455,18 @@ namespace Ui { public struct TabPageTabChangedEvent { /// Which part of the tab has changed. + /// Which part of the tab has changed. public Efl.Ui.TabPageTabChanged Changed_info; - ///Constructor for TabPageTabChangedEvent. + /// Constructor for TabPageTabChangedEvent. + /// Which part of the tab has changed.; public TabPageTabChangedEvent( Efl.Ui.TabPageTabChanged Changed_info = default(Efl.Ui.TabPageTabChanged) ) { this.Changed_info = Changed_info; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator TabPageTabChangedEvent(IntPtr ptr) { var tmp = (TabPageTabChangedEvent.NativeStruct)Marshal.PtrToStructure(ptr, typeof(TabPageTabChangedEvent.NativeStruct)); @@ -452,13 +475,13 @@ public struct TabPageTabChangedEvent #pragma warning disable CS1591 - ///Internal wrapper for struct TabPageTabChangedEvent. + /// Internal wrapper for struct TabPageTabChangedEvent. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { public Efl.Ui.TabPageTabChanged Changed_info; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator TabPageTabChangedEvent.NativeStruct(TabPageTabChangedEvent _external_struct) { var _internal_struct = new TabPageTabChangedEvent.NativeStruct(); @@ -466,7 +489,7 @@ public struct TabPageTabChangedEvent return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator TabPageTabChangedEvent(TabPageTabChangedEvent.NativeStruct _internal_struct) { var _external_struct = new TabPageTabChangedEvent(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_page_part_tab.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_page_part_tab.eo.cs old mode 100644 new mode 100755 index 29adc5274..aafaa38ab --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_page_part_tab.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_page_part_tab.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Tab_Page internal part class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.TabPagePartTab.NativeMethods] [Efl.Eo.BindingEntity] public class TabPagePartTab : Efl.Ui.LayoutPart, Efl.IText { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class TabPagePartTab : Efl.Ui.LayoutPart, Efl.IText FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected TabPagePartTab(ConstructingHandle ch) : base(ch) { @@ -311,3 +314,17 @@ public class TabPagePartTab : Efl.Ui.LayoutPart, Efl.IText } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiTabPagePartTab_ExtensionMethods { + public static Efl.BindableProperty Icon(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.TabPagePartTab { + return new Efl.BindableProperty("icon", fac); + } +public static Efl.BindableProperty Icon(this Efl.BindablePart part, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.TabPagePartTab { + return new Efl.BindableProperty(part.PartName, "icon", part.Binder); + } + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_pager.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_pager.eo.cs old mode 100644 new mode 100755 index 4238a4626..01817d27e --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_pager.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_tab_pager.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Tab Pager class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.TabPager.NativeMethods] [Efl.Eo.BindingEntity] public class TabPager : Efl.Ui.Spotlight.Container { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +48,8 @@ public class TabPager : Efl.Ui.Spotlight.Container FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected TabPager(ConstructingHandle ch) : base(ch) { @@ -207,3 +210,13 @@ public class TabPager : Efl.Ui.Spotlight.Container } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiTabPager_ExtensionMethods { + public static Efl.BindableProperty TabBar(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.TabPager { + return new Efl.BindableProperty("tab_bar", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_table.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_table.eo.cs old mode 100644 new mode 100755 index 3d9ff7769..e1190c654 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_table.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_table.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -15,7 +16,7 @@ namespace Ui { [Efl.Eo.BindingEntity] public class Table : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLayout, Efl.IPackTable, Efl.Gfx.IArrangement, Efl.Ui.ILayoutOrientable { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -47,7 +48,8 @@ public class Table : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLayout, FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Table(ConstructingHandle ch) : base(ch) { @@ -70,6 +72,7 @@ public class Table : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLayout, /// Sent after a new sub-object was added. /// (Since EFL 1.22) + /// public event EventHandler ContentAddedEvt { add @@ -109,7 +112,7 @@ public class Table : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLayout, } } } - ///Method to raise event ContentAddedEvt. + /// Method to raise event ContentAddedEvt. public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; @@ -125,6 +128,7 @@ public class Table : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLayout, } /// Sent after a sub-object was removed, before unref. /// (Since EFL 1.22) + /// public event EventHandler ContentRemovedEvt { add @@ -164,7 +168,7 @@ public class Table : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLayout, } } } - ///Method to raise event ContentRemovedEvt. + /// Method to raise event ContentRemovedEvt. public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { var key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; @@ -217,7 +221,7 @@ public class Table : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLayout, } } } - ///Method to raise event LayoutUpdatedEvt. + /// Method to raise event LayoutUpdatedEvt. public void OnLayoutUpdatedEvt(EventArgs e) { var key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; @@ -310,18 +314,42 @@ public class Table : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLayout, Efl.IPackLayoutConcrete.NativeMethods.efl_pack_layout_update_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } - /// Position and span of the subobj in this container, may be modified to move the subobj + /// column of the subobj in this container. /// Child object /// Column number - /// Row number /// Column span + /// Returns false if item is not a child + virtual public bool GetTableCellColumn(Efl.Gfx.IEntity subobj, out int col, out int colspan) { + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_cell_column_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, out col, out colspan); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// column of the subobj in this container. + /// Child object + /// Column number + /// Column span + virtual public void SetTableCellColumn(Efl.Gfx.IEntity subobj, int col, int colspan) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_cell_column_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, col, colspan); + Eina.Error.RaiseIfUnhandledException(); + } + /// row of the subobj in this container. + /// Child object + /// Row number /// Row span /// Returns false if item is not a child - virtual public bool GetTablePosition(Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan) { - var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_position_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, out col, out row, out colspan, out rowspan); + virtual public bool GetTableCellRow(Efl.Gfx.IEntity subobj, out int row, out int rowspan) { + var _ret_var = Efl.IPackTableConcrete.NativeMethods.efl_pack_table_cell_row_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, out row, out rowspan); Eina.Error.RaiseIfUnhandledException(); - return _ret_var; + return _ret_var; } + /// row of the subobj in this container. + /// Child object + /// Row number + /// Row span + virtual public void SetTableCellRow(Efl.Gfx.IEntity subobj, int row, int rowspan) { + Efl.IPackTableConcrete.NativeMethods.efl_pack_table_cell_row_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, row, rowspan); + Eina.Error.RaiseIfUnhandledException(); + } /// Combines and /// Number of columns /// Number of rows @@ -443,6 +471,29 @@ public class Table : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLayout, Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),dir); Eina.Error.RaiseIfUnhandledException(); } + /// Control homogeneous mode. + /// This will enable the homogeneous mode where cells are of the same weight and of the same min size which is determined by maximum min size of cells. + /// true if the box is homogeneous horizontally, false otherwise + public (bool, bool) Homogeneous { + get { + bool _out_homogeneoush = default(bool); + bool _out_homogeneousv = default(bool); + GetHomogeneous(out _out_homogeneoush,out _out_homogeneousv); + return (_out_homogeneoush,_out_homogeneousv); + } + set { SetHomogeneous( value.Item1, value.Item2); } + } + /// Combines and + /// Number of columns + public (int, int) TableSize { + get { + int _out_cols = default(int); + int _out_rows = default(int); + GetTableSize(out _out_cols,out _out_rows); + return (_out_cols,_out_rows); + } + set { SetTableSize( value.Item1, value.Item2); } + } /// Specifies the amount of columns the table will have when the fill direction is horizontal. If it is vertical, the amount of columns depends on the amount of cells added and . /// Amount of columns. public int TableColumns { @@ -455,6 +506,29 @@ public class Table : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLayout, get { return GetTableRows(); } set { SetTableRows(value); } } + /// Alignment of the container within its bounds + /// Horizontal alignment + public (double, double) ContentAlign { + get { + double _out_align_horiz = default(double); + double _out_align_vert = default(double); + GetContentAlign(out _out_align_horiz,out _out_align_vert); + return (_out_align_horiz,_out_align_vert); + } + set { SetContentAlign( value.Item1, value.Item2); } + } + /// Padding between items contained in this object. + /// Horizontal padding + public (double, double, bool) ContentPadding { + get { + double _out_pad_horiz = default(double); + double _out_pad_vert = default(double); + bool _out_scalable = default(bool); + GetContentPadding(out _out_pad_horiz,out _out_pad_vert,out _out_scalable); + return (_out_pad_horiz,_out_pad_vert,_out_scalable); + } + set { SetContentPadding( value.Item1, value.Item2, value.Item3); } + } /// Control the direction of a given widget. /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. /// @@ -580,14 +654,44 @@ public class Table : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLayout, descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_layout_update"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_layout_update_static_delegate) }); } - if (efl_pack_table_position_get_static_delegate == null) + if (efl_pack_table_cell_column_get_static_delegate == null) + { + efl_pack_table_cell_column_get_static_delegate = new efl_pack_table_cell_column_get_delegate(table_cell_column_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetTableCellColumn") != null) { - efl_pack_table_position_get_static_delegate = new efl_pack_table_position_get_delegate(table_position_get); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_cell_column_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_cell_column_get_static_delegate) }); } - if (methods.FirstOrDefault(m => m.Name == "GetTablePosition") != null) + if (efl_pack_table_cell_column_set_static_delegate == null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_position_get_static_delegate) }); + efl_pack_table_cell_column_set_static_delegate = new efl_pack_table_cell_column_set_delegate(table_cell_column_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetTableCellColumn") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_cell_column_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_cell_column_set_static_delegate) }); + } + + if (efl_pack_table_cell_row_get_static_delegate == null) + { + efl_pack_table_cell_row_get_static_delegate = new efl_pack_table_cell_row_get_delegate(table_cell_row_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetTableCellRow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_cell_row_get"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_cell_row_get_static_delegate) }); + } + + if (efl_pack_table_cell_row_set_static_delegate == null) + { + efl_pack_table_cell_row_set_static_delegate = new efl_pack_table_cell_row_set_delegate(table_cell_row_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetTableCellRow") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_pack_table_cell_row_set"), func = Marshal.GetFunctionPointerForDelegate(efl_pack_table_cell_row_set_static_delegate) }); } if (efl_pack_table_size_get_static_delegate == null) @@ -1109,23 +1213,23 @@ public class Table : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLayout, private static efl_pack_layout_update_delegate efl_pack_layout_update_static_delegate; [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_pack_table_position_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); + private delegate bool efl_pack_table_cell_column_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int colspan); [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_pack_table_position_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan); + public delegate bool efl_pack_table_cell_column_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int col, out int colspan); - public static Efl.Eo.FunctionWrapper efl_pack_table_position_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_position_get"); + public static Efl.Eo.FunctionWrapper efl_pack_table_cell_column_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_cell_column_get"); - private static bool table_position_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, out int col, out int row, out int colspan, out int rowspan) + private static bool table_cell_column_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, out int col, out int colspan) { - Eina.Log.Debug("function efl_pack_table_position_get was called"); + Eina.Log.Debug("function efl_pack_table_cell_column_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - col = default(int); row = default(int); colspan = default(int); rowspan = default(int); bool _ret_var = default(bool); + col = default(int); colspan = default(int); bool _ret_var = default(bool); try { - _ret_var = ((Table)ws.Target).GetTablePosition(subobj, out col, out row, out colspan, out rowspan); + _ret_var = ((Table)ws.Target).GetTableCellColumn(subobj, out col, out colspan); } catch (Exception e) { @@ -1133,16 +1237,122 @@ public class Table : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLayout, Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; + return _ret_var; } else { - return efl_pack_table_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, out col, out row, out colspan, out rowspan); + return efl_pack_table_cell_column_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, out col, out colspan); } } - private static efl_pack_table_position_get_delegate efl_pack_table_position_get_static_delegate; + private static efl_pack_table_cell_column_get_delegate efl_pack_table_cell_column_get_static_delegate; + + + private delegate void efl_pack_table_cell_column_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int col, int colspan); + + + public delegate void efl_pack_table_cell_column_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int col, int colspan); + + public static Efl.Eo.FunctionWrapper efl_pack_table_cell_column_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_cell_column_set"); + + private static void table_cell_column_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int col, int colspan) + { + Eina.Log.Debug("function efl_pack_table_cell_column_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Table)ws.Target).SetTableCellColumn(subobj, col, colspan); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_cell_column_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, col, colspan); + } + } + + private static efl_pack_table_cell_column_set_delegate efl_pack_table_cell_column_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_pack_table_cell_row_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int row, out int rowspan); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_pack_table_cell_row_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, out int row, out int rowspan); + + public static Efl.Eo.FunctionWrapper efl_pack_table_cell_row_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_cell_row_get"); + + private static bool table_cell_row_get(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, out int row, out int rowspan) + { + Eina.Log.Debug("function efl_pack_table_cell_row_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + row = default(int); rowspan = default(int); bool _ret_var = default(bool); + try + { + _ret_var = ((Table)ws.Target).GetTableCellRow(subobj, out row, out rowspan); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_pack_table_cell_row_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, out row, out rowspan); + } + } + + private static efl_pack_table_cell_row_get_delegate efl_pack_table_cell_row_get_static_delegate; + + + private delegate void efl_pack_table_cell_row_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int row, int rowspan); + + + public delegate void efl_pack_table_cell_row_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity subobj, int row, int rowspan); + + public static Efl.Eo.FunctionWrapper efl_pack_table_cell_row_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_pack_table_cell_row_set"); + + private static void table_cell_row_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int row, int rowspan) + { + Eina.Log.Debug("function efl_pack_table_cell_row_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Table)ws.Target).SetTableCellRow(subobj, row, rowspan); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_pack_table_cell_row_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, row, rowspan); + } + } + + private static efl_pack_table_cell_row_set_delegate efl_pack_table_cell_row_set_static_delegate; private delegate void efl_pack_table_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int cols, out int rows); @@ -1683,3 +1893,27 @@ public class Table : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLayout, } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiTable_ExtensionMethods { + + + + + public static Efl.BindableProperty TableColumns(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Table { + return new Efl.BindableProperty("table_columns", fac); + } + + public static Efl.BindableProperty TableRows(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Table { + return new Efl.BindableProperty("table_rows", fac); + } + + + + public static Efl.BindableProperty Orientation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Table { + return new Efl.BindableProperty("orientation", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_table_static.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_table_static.eo.cs old mode 100644 new mode 100755 index 760f92d74..9877b1c33 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_table_static.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_table_static.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Efl UI table static class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.TableStatic.NativeMethods] [Efl.Eo.BindingEntity] public class TableStatic : Efl.Ui.Table { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +48,8 @@ public class TableStatic : Efl.Ui.Table FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected TableStatic(ConstructingHandle ch) : base(ch) { @@ -100,3 +103,9 @@ public class TableStatic : Efl.Ui.Table } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiTableStatic_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_tags.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_tags.eo.cs old mode 100644 new mode 100755 index 43c10b591..5f0ab9090 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_tags.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_tags.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,48 +10,55 @@ namespace Efl { namespace Ui { -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class TagsItemSelectedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when item was selected public System.String arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class TagsItemAddedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when item was added public System.String arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class TagsItemDeletedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when item was deleted public System.String arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class TagsItemClickedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when item was clicked public System.String arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class TagsItemLongpressedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when item got a longpress public System.String arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class TagsExpandStateChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when expanded state changed public int arg { get; set; } } /// A widget displaying a list of tags. The user can remove tags by clicking on each tag "close" button and add new tags by typing text in the text entry at the end of the list. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Tags.NativeMethods] [Efl.Eo.BindingEntity] public class Tags : Efl.Ui.LayoutBase, Efl.IText, Efl.Ui.IFormat { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -82,7 +90,8 @@ public class Tags : Efl.Ui.LayoutBase, Efl.IText, Efl.Ui.IFormat FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Tags(ConstructingHandle ch) : base(ch) { @@ -104,6 +113,7 @@ public class Tags : Efl.Ui.LayoutBase, Efl.IText, Efl.Ui.IFormat } /// Called when item was selected + /// public event EventHandler ItemSelectedEvt { add @@ -143,7 +153,7 @@ public class Tags : Efl.Ui.LayoutBase, Efl.IText, Efl.Ui.IFormat } } } - ///Method to raise event ItemSelectedEvt. + /// Method to raise event ItemSelectedEvt. public void OnItemSelectedEvt(Efl.Ui.TagsItemSelectedEvt_Args e) { var key = "_EFL_UI_TAGS_EVENT_ITEM_SELECTED"; @@ -165,6 +175,7 @@ public class Tags : Efl.Ui.LayoutBase, Efl.IText, Efl.Ui.IFormat } } /// Called when item was added + /// public event EventHandler ItemAddedEvt { add @@ -204,7 +215,7 @@ public class Tags : Efl.Ui.LayoutBase, Efl.IText, Efl.Ui.IFormat } } } - ///Method to raise event ItemAddedEvt. + /// Method to raise event ItemAddedEvt. public void OnItemAddedEvt(Efl.Ui.TagsItemAddedEvt_Args e) { var key = "_EFL_UI_TAGS_EVENT_ITEM_ADDED"; @@ -226,6 +237,7 @@ public class Tags : Efl.Ui.LayoutBase, Efl.IText, Efl.Ui.IFormat } } /// Called when item was deleted + /// public event EventHandler ItemDeletedEvt { add @@ -265,7 +277,7 @@ public class Tags : Efl.Ui.LayoutBase, Efl.IText, Efl.Ui.IFormat } } } - ///Method to raise event ItemDeletedEvt. + /// Method to raise event ItemDeletedEvt. public void OnItemDeletedEvt(Efl.Ui.TagsItemDeletedEvt_Args e) { var key = "_EFL_UI_TAGS_EVENT_ITEM_DELETED"; @@ -287,6 +299,7 @@ public class Tags : Efl.Ui.LayoutBase, Efl.IText, Efl.Ui.IFormat } } /// Called when item was clicked + /// public event EventHandler ItemClickedEvt { add @@ -326,7 +339,7 @@ public class Tags : Efl.Ui.LayoutBase, Efl.IText, Efl.Ui.IFormat } } } - ///Method to raise event ItemClickedEvt. + /// Method to raise event ItemClickedEvt. public void OnItemClickedEvt(Efl.Ui.TagsItemClickedEvt_Args e) { var key = "_EFL_UI_TAGS_EVENT_ITEM_CLICKED"; @@ -348,6 +361,7 @@ public class Tags : Efl.Ui.LayoutBase, Efl.IText, Efl.Ui.IFormat } } /// Called when item got a longpress + /// public event EventHandler ItemLongpressedEvt { add @@ -387,7 +401,7 @@ public class Tags : Efl.Ui.LayoutBase, Efl.IText, Efl.Ui.IFormat } } } - ///Method to raise event ItemLongpressedEvt. + /// Method to raise event ItemLongpressedEvt. public void OnItemLongpressedEvt(Efl.Ui.TagsItemLongpressedEvt_Args e) { var key = "_EFL_UI_TAGS_EVENT_ITEM_LONGPRESSED"; @@ -447,7 +461,7 @@ public class Tags : Efl.Ui.LayoutBase, Efl.IText, Efl.Ui.IFormat } } } - ///Method to raise event ExpandedEvt. + /// Method to raise event ExpandedEvt. public void OnExpandedEvt(EventArgs e) { var key = "_EFL_UI_TAGS_EVENT_EXPANDED"; @@ -499,7 +513,7 @@ public class Tags : Efl.Ui.LayoutBase, Efl.IText, Efl.Ui.IFormat } } } - ///Method to raise event ContractedEvt. + /// Method to raise event ContractedEvt. public void OnContractedEvt(EventArgs e) { var key = "_EFL_UI_TAGS_EVENT_CONTRACTED"; @@ -513,6 +527,7 @@ public class Tags : Efl.Ui.LayoutBase, Efl.IText, Efl.Ui.IFormat Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when expanded state changed + /// public event EventHandler ExpandStateChangedEvt { add @@ -552,7 +567,7 @@ public class Tags : Efl.Ui.LayoutBase, Efl.IText, Efl.Ui.IFormat } } } - ///Method to raise event ExpandStateChangedEvt. + /// Method to raise event ExpandStateChangedEvt. public void OnExpandStateChangedEvt(Efl.Ui.TagsExpandStateChangedEvt_Args e) { var key = "_EFL_UI_TAGS_EVENT_EXPAND_STATE_CHANGED"; @@ -743,6 +758,24 @@ public class Tags : Efl.Ui.LayoutBase, Efl.IText, Efl.Ui.IFormat get { return GetFormatValues(); } set { SetFormatValues(value); } } + /// A user-provided, string used to format the numerical value. + /// For example, "%1.2f meters", "%.0%%" or "%d items". + /// + /// This is the simplest formatting mechanism, working pretty much like printf. + /// + /// Different format specifiers (the character after the %) are available, depending on the type used. Use for simple numerical values and for time and date values. For instance, %d means "integer" when the first type is used, but it means "day of the month as a decimal number" in the second. + /// + /// Pass NULL to disable this mechanism. + /// Formatting string containing regular characters and format specifiers. + public (System.String, Efl.Ui.FormatStringType) FormatString { + get { + System.String _out_kw_string = default(System.String); + Efl.Ui.FormatStringType _out_type = default(Efl.Ui.FormatStringType); + GetFormatString(out _out_kw_string,out _out_type); + return (_out_kw_string,_out_type); + } + set { SetFormatString( value.Item1, value.Item2); } + } private static IntPtr GetEflClassStatic() { return Efl.Ui.Tags.efl_ui_tags_class_get(); @@ -1556,3 +1589,31 @@ public class Tags : Efl.Ui.LayoutBase, Efl.IText, Efl.Ui.IFormat } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiTags_ExtensionMethods { + public static Efl.BindableProperty Editable(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Tags { + return new Efl.BindableProperty("editable", fac); + } + + public static Efl.BindableProperty Expanded(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Tags { + return new Efl.BindableProperty("expanded", fac); + } + + public static Efl.BindableProperty> Items(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Tags { + return new Efl.BindableProperty>("items", fac); + } + + + public static Efl.BindableProperty FormatFunc(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Tags { + return new Efl.BindableProperty("format_func", fac); + } + + public static Efl.BindableProperty> FormatValues(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Tags { + return new Efl.BindableProperty>("format_values", fac); + } + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_text.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_text.eo.cs old mode 100644 new mode 100755 index 7ccfecf34..07696a777 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_text.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_text.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,54 +10,62 @@ namespace Efl { namespace Ui { -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class TextChangedUserEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// The text object has changed due to user interaction public Efl.Ui.TextChangeInfo arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class TextValidateEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when validating public Elm.ValidateContent arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class TextAnchorDownEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called on anchor down public Elm.EntryAnchorInfo arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class TextAnchorHoverOpenedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when hover opened public Elm.EntryAnchorHoverInfo arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class TextAnchorInEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called on anchor in public Elm.EntryAnchorInfo arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class TextAnchorOutEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called on anchor out public Elm.EntryAnchorInfo arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class TextAnchorUpEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// called on anchor up public Elm.EntryAnchorInfo arg { get; set; } } -/// Efl UI text class +/// A flexible text widget which can be static (as a label) or editable by the user (as a text entry). It provides all sorts of editing facilities like automatic scrollbars, virtual keyboard, clipboard, configurable context menus, password mode or autocapitalization, for example. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Text.NativeMethods] [Efl.Eo.BindingEntity] -public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl.ITextFormat, Efl.ITextInteractive, Efl.ITextMarkup, Efl.ITextStyle, Efl.Access.IText, Efl.Access.Editable.IText, Efl.Ui.IClickable, Efl.Ui.ISelectable +public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl.ITextFormat, Efl.ITextInteractive, Efl.ITextMarkup, Efl.ITextStyle, Efl.Access.IText, Efl.Access.Editable.IText, Efl.Input.IClickable, Efl.Ui.ITextSelectable { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -88,7 +97,8 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Text(ConstructingHandle ch) : base(ch) { @@ -148,7 +158,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } } - ///Method to raise event ChangedEvt. + /// Method to raise event ChangedEvt. public void OnChangedEvt(EventArgs e) { var key = "_EFL_UI_TEXT_EVENT_CHANGED"; @@ -162,6 +172,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// The text object has changed due to user interaction + /// public event EventHandler ChangedUserEvt { add @@ -201,7 +212,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } } - ///Method to raise event ChangedUserEvt. + /// Method to raise event ChangedUserEvt. public void OnChangedUserEvt(Efl.Ui.TextChangedUserEvt_Args e) { var key = "_EFL_UI_TEXT_EVENT_CHANGED_USER"; @@ -224,6 +235,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } /// Called when validating + /// public event EventHandler ValidateEvt { add @@ -263,7 +275,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } } - ///Method to raise event ValidateEvt. + /// Method to raise event ValidateEvt. public void OnValidateEvt(Efl.Ui.TextValidateEvt_Args e) { var key = "_EFL_UI_TEXT_EVENT_VALIDATE"; @@ -323,7 +335,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } } - ///Method to raise event ContextOpenEvt. + /// Method to raise event ContextOpenEvt. public void OnContextOpenEvt(EventArgs e) { var key = "_EFL_UI_TEXT_EVENT_CONTEXT_OPEN"; @@ -375,7 +387,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } } - ///Method to raise event PreeditChangedEvt. + /// Method to raise event PreeditChangedEvt. public void OnPreeditChangedEvt(EventArgs e) { var key = "_EFL_UI_TEXT_EVENT_PREEDIT_CHANGED"; @@ -427,7 +439,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } } - ///Method to raise event PressEvt. + /// Method to raise event PressEvt. public void OnPressEvt(EventArgs e) { var key = "_EFL_UI_TEXT_EVENT_PRESS"; @@ -479,7 +491,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } } - ///Method to raise event RedoRequestEvt. + /// Method to raise event RedoRequestEvt. public void OnRedoRequestEvt(EventArgs e) { var key = "_EFL_UI_TEXT_EVENT_REDO_REQUEST"; @@ -531,7 +543,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } } - ///Method to raise event UndoRequestEvt. + /// Method to raise event UndoRequestEvt. public void OnUndoRequestEvt(EventArgs e) { var key = "_EFL_UI_TEXT_EVENT_UNDO_REQUEST"; @@ -583,7 +595,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } } - ///Method to raise event AbortedEvt. + /// Method to raise event AbortedEvt. public void OnAbortedEvt(EventArgs e) { var key = "_EFL_UI_TEXT_EVENT_ABORTED"; @@ -597,6 +609,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called on anchor down + /// public event EventHandler AnchorDownEvt { add @@ -636,7 +649,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } } - ///Method to raise event AnchorDownEvt. + /// Method to raise event AnchorDownEvt. public void OnAnchorDownEvt(Efl.Ui.TextAnchorDownEvt_Args e) { var key = "_EFL_UI_TEXT_EVENT_ANCHOR_DOWN"; @@ -658,6 +671,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } /// Called when hover opened + /// public event EventHandler AnchorHoverOpenedEvt { add @@ -697,7 +711,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } } - ///Method to raise event AnchorHoverOpenedEvt. + /// Method to raise event AnchorHoverOpenedEvt. public void OnAnchorHoverOpenedEvt(Efl.Ui.TextAnchorHoverOpenedEvt_Args e) { var key = "_EFL_UI_TEXT_EVENT_ANCHOR_HOVER_OPENED"; @@ -719,6 +733,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } /// Called on anchor in + /// public event EventHandler AnchorInEvt { add @@ -758,7 +773,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } } - ///Method to raise event AnchorInEvt. + /// Method to raise event AnchorInEvt. public void OnAnchorInEvt(Efl.Ui.TextAnchorInEvt_Args e) { var key = "_EFL_UI_TEXT_EVENT_ANCHOR_IN"; @@ -780,6 +795,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } /// Called on anchor out + /// public event EventHandler AnchorOutEvt { add @@ -819,7 +835,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } } - ///Method to raise event AnchorOutEvt. + /// Method to raise event AnchorOutEvt. public void OnAnchorOutEvt(Efl.Ui.TextAnchorOutEvt_Args e) { var key = "_EFL_UI_TEXT_EVENT_ANCHOR_OUT"; @@ -841,6 +857,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } /// called on anchor up + /// public event EventHandler AnchorUpEvt { add @@ -880,7 +897,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } } - ///Method to raise event AnchorUpEvt. + /// Method to raise event AnchorUpEvt. public void OnAnchorUpEvt(Efl.Ui.TextAnchorUpEvt_Args e) { var key = "_EFL_UI_TEXT_EVENT_ANCHOR_UP"; @@ -940,7 +957,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } } - ///Method to raise event CursorChangedManualEvt. + /// Method to raise event CursorChangedManualEvt. public void OnCursorChangedManualEvt(EventArgs e) { var key = "_EFL_UI_TEXT_EVENT_CURSOR_CHANGED_MANUAL"; @@ -992,7 +1009,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } } - ///Method to raise event TextSelectionChangedEvt. + /// Method to raise event TextSelectionChangedEvt. public void OnTextSelectionChangedEvt(EventArgs e) { var key = "_EFL_TEXT_INTERACTIVE_EVENT_TEXT_SELECTION_CHANGED"; @@ -1044,7 +1061,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } } - ///Method to raise event AccessTextCaretMovedEvt. + /// Method to raise event AccessTextCaretMovedEvt. public void OnAccessTextCaretMovedEvt(EventArgs e) { var key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_CARET_MOVED"; @@ -1058,6 +1075,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Text was inserted + /// public event EventHandler AccessTextInsertedEvt { add @@ -1097,7 +1115,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } } - ///Method to raise event AccessTextInsertedEvt. + /// Method to raise event AccessTextInsertedEvt. public void OnAccessTextInsertedEvt(Efl.Access.ITextAccessTextInsertedEvt_Args e) { var key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_INSERTED"; @@ -1120,6 +1138,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } /// Text was removed + /// public event EventHandler AccessTextRemovedEvt { add @@ -1159,7 +1178,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } } - ///Method to raise event AccessTextRemovedEvt. + /// Method to raise event AccessTextRemovedEvt. public void OnAccessTextRemovedEvt(Efl.Access.ITextAccessTextRemovedEvt_Args e) { var key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_REMOVED"; @@ -1220,7 +1239,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } } - ///Method to raise event AccessTextSelectionChangedEvt. + /// Method to raise event AccessTextSelectionChangedEvt. public void OnAccessTextSelectionChangedEvt(EventArgs e) { var key = "_EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_SELECTION_CHANGED"; @@ -1234,7 +1253,8 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when object is in sequence pressed and unpressed, by the primary button - public event EventHandler ClickedEvt + /// + public event EventHandler ClickedEvt { add { @@ -1245,7 +1265,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickableClickedEvt_Args args = new Efl.Ui.IClickableClickedEvt_Args(); + Efl.Input.IClickableClickedEvt_Args args = new Efl.Input.IClickableClickedEvt_Args(); args.arg = evt.Info; try { @@ -1259,7 +1279,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } }; - string key = "_EFL_UI_EVENT_CLICKED"; + string key = "_EFL_INPUT_EVENT_CLICKED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -1268,15 +1288,15 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_CLICKED"; + string key = "_EFL_INPUT_EVENT_CLICKED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ClickedEvt. - public void OnClickedEvt(Efl.Ui.IClickableClickedEvt_Args e) + /// Method to raise event ClickedEvt. + public void OnClickedEvt(Efl.Input.IClickableClickedEvt_Args e) { - var key = "_EFL_UI_EVENT_CLICKED"; + var key = "_EFL_INPUT_EVENT_CLICKED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -1296,7 +1316,8 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } /// Called when object is in sequence pressed and unpressed by any button. The button that triggered the event can be found in the event information. - public event EventHandler ClickedAnyEvt + /// + public event EventHandler ClickedAnyEvt { add { @@ -1307,7 +1328,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickableClickedAnyEvt_Args args = new Efl.Ui.IClickableClickedAnyEvt_Args(); + Efl.Input.IClickableClickedAnyEvt_Args args = new Efl.Input.IClickableClickedAnyEvt_Args(); args.arg = evt.Info; try { @@ -1321,7 +1342,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } }; - string key = "_EFL_UI_EVENT_CLICKED_ANY"; + string key = "_EFL_INPUT_EVENT_CLICKED_ANY"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -1330,15 +1351,15 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_CLICKED_ANY"; + string key = "_EFL_INPUT_EVENT_CLICKED_ANY"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event ClickedAnyEvt. - public void OnClickedAnyEvt(Efl.Ui.IClickableClickedAnyEvt_Args e) + /// Method to raise event ClickedAnyEvt. + public void OnClickedAnyEvt(Efl.Input.IClickableClickedAnyEvt_Args e) { - var key = "_EFL_UI_EVENT_CLICKED_ANY"; + var key = "_EFL_INPUT_EVENT_CLICKED_ANY"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -1358,7 +1379,8 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } /// Called when the object is pressed, event_info is the button that got pressed - public event EventHandler PressedEvt + /// + public event EventHandler PressedEvt { add { @@ -1369,7 +1391,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickablePressedEvt_Args args = new Efl.Ui.IClickablePressedEvt_Args(); + Efl.Input.IClickablePressedEvt_Args args = new Efl.Input.IClickablePressedEvt_Args(); args.arg = Marshal.ReadInt32(evt.Info); try { @@ -1383,7 +1405,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } }; - string key = "_EFL_UI_EVENT_PRESSED"; + string key = "_EFL_INPUT_EVENT_PRESSED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -1392,15 +1414,15 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_PRESSED"; + string key = "_EFL_INPUT_EVENT_PRESSED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event PressedEvt. - public void OnPressedEvt(Efl.Ui.IClickablePressedEvt_Args e) + /// Method to raise event PressedEvt. + public void OnPressedEvt(Efl.Input.IClickablePressedEvt_Args e) { - var key = "_EFL_UI_EVENT_PRESSED"; + var key = "_EFL_INPUT_EVENT_PRESSED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -1419,7 +1441,8 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } /// Called when the object is no longer pressed, event_info is the button that got pressed - public event EventHandler UnpressedEvt + /// + public event EventHandler UnpressedEvt { add { @@ -1430,7 +1453,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickableUnpressedEvt_Args args = new Efl.Ui.IClickableUnpressedEvt_Args(); + Efl.Input.IClickableUnpressedEvt_Args args = new Efl.Input.IClickableUnpressedEvt_Args(); args.arg = Marshal.ReadInt32(evt.Info); try { @@ -1444,7 +1467,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } }; - string key = "_EFL_UI_EVENT_UNPRESSED"; + string key = "_EFL_INPUT_EVENT_UNPRESSED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -1453,15 +1476,15 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_UNPRESSED"; + string key = "_EFL_INPUT_EVENT_UNPRESSED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event UnpressedEvt. - public void OnUnpressedEvt(Efl.Ui.IClickableUnpressedEvt_Args e) + /// Method to raise event UnpressedEvt. + public void OnUnpressedEvt(Efl.Input.IClickableUnpressedEvt_Args e) { - var key = "_EFL_UI_EVENT_UNPRESSED"; + var key = "_EFL_INPUT_EVENT_UNPRESSED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -1480,7 +1503,8 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } /// Called when the object receives a long press, event_info is the button that got pressed - public event EventHandler LongpressedEvt + /// + public event EventHandler LongpressedEvt { add { @@ -1491,7 +1515,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { - Efl.Ui.IClickableLongpressedEvt_Args args = new Efl.Ui.IClickableLongpressedEvt_Args(); + Efl.Input.IClickableLongpressedEvt_Args args = new Efl.Input.IClickableLongpressedEvt_Args(); args.arg = Marshal.ReadInt32(evt.Info); try { @@ -1505,7 +1529,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } }; - string key = "_EFL_UI_EVENT_LONGPRESSED"; + string key = "_EFL_INPUT_EVENT_LONGPRESSED"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } @@ -1514,15 +1538,15 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. { lock (eflBindingEventLock) { - string key = "_EFL_UI_EVENT_LONGPRESSED"; + string key = "_EFL_INPUT_EVENT_LONGPRESSED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } - ///Method to raise event LongpressedEvt. - public void OnLongpressedEvt(Efl.Ui.IClickableLongpressedEvt_Args e) + /// Method to raise event LongpressedEvt. + public void OnLongpressedEvt(Efl.Input.IClickableLongpressedEvt_Args e) { - var key = "_EFL_UI_EVENT_LONGPRESSED"; + var key = "_EFL_INPUT_EVENT_LONGPRESSED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); if (desc == IntPtr.Zero) { @@ -1540,114 +1564,6 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. Marshal.FreeHGlobal(info); } } - /// Called when selected - public event EventHandler ItemSelectedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.ISelectableItemSelectedEvt_Args args = new Efl.Ui.ISelectableItemSelectedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_ITEM_SELECTED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_ITEM_SELECTED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ItemSelectedEvt. - public void OnItemSelectedEvt(Efl.Ui.ISelectableItemSelectedEvt_Args e) - { - var key = "_EFL_UI_EVENT_ITEM_SELECTED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = e.arg.NativeHandle; - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - /// Called when no longer selected - public event EventHandler ItemUnselectedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.ISelectableItemUnselectedEvt_Args args = new Efl.Ui.ISelectableItemUnselectedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Object); - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ItemUnselectedEvt. - public void OnItemUnselectedEvt(Efl.Ui.ISelectableItemUnselectedEvt_Args e) - { - var key = "_EFL_UI_EVENT_ITEM_UNSELECTED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = e.arg.NativeHandle; - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } /// Called when selection is pasted public event EventHandler SelectionPasteEvt { @@ -1687,7 +1603,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } } - ///Method to raise event SelectionPasteEvt. + /// Method to raise event SelectionPasteEvt. public void OnSelectionPasteEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SELECTION_PASTE"; @@ -1739,7 +1655,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } } - ///Method to raise event SelectionCopyEvt. + /// Method to raise event SelectionCopyEvt. public void OnSelectionCopyEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SELECTION_COPY"; @@ -1791,7 +1707,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } } - ///Method to raise event SelectionCutEvt. + /// Method to raise event SelectionCutEvt. public void OnSelectionCutEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SELECTION_CUT"; @@ -1843,7 +1759,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } } - ///Method to raise event SelectionStartEvt. + /// Method to raise event SelectionStartEvt. public void OnSelectionStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SELECTION_START"; @@ -1895,7 +1811,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } } - ///Method to raise event SelectionChangedEvt. + /// Method to raise event SelectionChangedEvt. public void OnSelectionChangedEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SELECTION_CHANGED"; @@ -1947,7 +1863,7 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } } } - ///Method to raise event SelectionClearedEvt. + /// Method to raise event SelectionClearedEvt. public void OnSelectionClearedEvt(EventArgs e) { var key = "_EFL_UI_EVENT_SELECTION_CLEARED"; @@ -1960,17 +1876,17 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } - /// Get the scrollable state of the entry - /// Normally the entry is not scrollable. This gets the scrollable state of the entry. - /// true if it is to be scrollable, false otherwise. + /// Enable or disable scrolling in the widget. + /// When scrolling is enabled scrollbars will appear if the text does not fit the widget size. + /// true to enable scrolling. Default is false. virtual public bool GetScrollable() { var _ret_var = Efl.Ui.Text.NativeMethods.efl_ui_text_scrollable_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Enable or disable scrolling in entry - /// Normally the entry is not scrollable unless you enable it with this call. - /// true if it is to be scrollable, false otherwise. + /// Enable or disable scrolling in the widget. + /// When scrolling is enabled scrollbars will appear if the text does not fit the widget size. + /// true to enable scrolling. Default is false. virtual public void SetScrollable(bool scroll) { Efl.Ui.Text.NativeMethods.efl_ui_text_scrollable_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),scroll); Eina.Error.RaiseIfUnhandledException(); @@ -2373,6 +2289,8 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. /// Set the font family, filename and size for a given text object. /// This function allows the font name and size of a text object to be set. The font string has to follow fontconfig's convention for naming fonts, as it's the underlying library used to query system fonts by Evas (see the fc-list command's output, on your system, to get an idea). Alternatively, youe can use the full path to a font file. /// + /// To skip changing font family pass null as font family. To skip changing font size pass 0 as font size. + /// /// See also , . /// The font family name or filename. /// The font size, in points. @@ -3213,30 +3131,42 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. var _ret_var = Efl.Access.Editable.ITextConcrete.NativeMethods.efl_access_editable_text_paste_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),position); Eina.Error.RaiseIfUnhandledException(); return _ret_var; + } + /// This returns true if the given object is currently in event emission + virtual public bool GetInteraction() { + var _ret_var = Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_interaction_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; } /// Change internal states that a button got pressed. /// When the button is already pressed, this is silently ignored. /// The number of the button. FIXME ensure to have the right interval of possible input virtual public void Press(uint button) { - Efl.Ui.IClickableConcrete.NativeMethods.efl_ui_clickable_press_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_press_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); Eina.Error.RaiseIfUnhandledException(); } /// Change internal states that a button got unpressed. /// When the button is not pressed, this is silently ignored. /// The number of the button. FIXME ensure to have the right interval of possible input virtual public void Unpress(uint button) { - Efl.Ui.IClickableConcrete.NativeMethods.efl_ui_clickable_unpress_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_unpress_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); Eina.Error.RaiseIfUnhandledException(); } /// This aborts the internal state after a press call. /// This will stop the timer for longpress. And set the state of the clickable mixin back into the unpressed state. virtual public void ResetButtonState(uint button) { - Efl.Ui.IClickableConcrete.NativeMethods.efl_ui_clickable_button_state_reset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_button_state_reset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); Eina.Error.RaiseIfUnhandledException(); } - /// Get the scrollable state of the entry - /// Normally the entry is not scrollable. This gets the scrollable state of the entry. - /// true if it is to be scrollable, false otherwise. + /// This aborts ongoing longpress event. + /// That is, this will stop the timer for longpress. + virtual public void LongpressAbort(uint button) { + Efl.Input.IClickableConcrete.NativeMethods.efl_input_clickable_longpress_abort_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),button); + Eina.Error.RaiseIfUnhandledException(); + } + /// Enable or disable scrolling in the widget. + /// When scrolling is enabled scrollbars will appear if the text does not fit the widget size. + /// true to enable scrolling. Default is false. public bool Scrollable { get { return GetScrollable(); } set { SetScrollable(value); } @@ -3369,6 +3299,20 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. public bool Loaded { get { return GetLoaded(); } } + /// Retrieve the font family and size in use on a given text object. + /// This function allows the font name and size of a text object to be queried. Remember that the font name string is still owned by Evas and should not have free() called on it by the caller of the function. + /// + /// See also . + /// The font family name or filename. + public (System.String, Efl.Font.Size) Font { + get { + System.String _out_font = default(System.String); + Efl.Font.Size _out_size = default(Efl.Font.Size); + GetFont(out _out_font,out _out_size); + return (_out_font,_out_size); + } + set { SetFont( value.Item1, value.Item2); } + } /// Get the font file's path which is being used on a given text object. /// See for more details. /// The font file's path. @@ -3493,6 +3437,18 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. get { return GetSelectionAllowed(); } set { SetSelectionAllowed(value); } } + /// The cursors used for selection handling. + /// If the cursors are equal there's no selection. + /// + /// You are allowed to retain and modify them. Modifying them modifies the selection of the object. + public (Efl.TextCursorCursor, Efl.TextCursorCursor) SelectionCursors { + get { + Efl.TextCursorCursor _out_start = default(Efl.TextCursorCursor); + Efl.TextCursorCursor _out_end = default(Efl.TextCursorCursor); + GetSelectionCursors(out _out_start,out _out_end); + return (_out_start,_out_end); + } + } /// Whether the entry is editable. /// By default text interactives are editable. However setting this property to false will make it so that key input will be disregarded. /// If true, user input will be inserted in the entry, if not, the entry is read-only and no user input is allowed. @@ -3506,24 +3462,76 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. get { return GetMarkup(); } set { SetMarkup(value); } } + /// Color of text, excluding style + /// Red component + public (byte, byte, byte, byte) NormalColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetNormalColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetNormalColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Enable or disable backing type /// Backing type public Efl.TextStyleBackingType BackingType { get { return GetBackingType(); } set { SetBackingType(value); } } + /// Backing color + /// Red component + public (byte, byte, byte, byte) BackingColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetBackingColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetBackingColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Sets an underline style on the text /// Underline type public Efl.TextStyleUnderlineType UnderlineType { get { return GetUnderlineType(); } set { SetUnderlineType(value); } } + /// Color of normal underline style + /// Red component + public (byte, byte, byte, byte) UnderlineColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetUnderlineColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetUnderlineColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Height of underline style /// Height public double UnderlineHeight { get { return GetUnderlineHeight(); } set { SetUnderlineHeight(value); } } + /// Color of dashed underline style + /// Red component + public (byte, byte, byte, byte) UnderlineDashedColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetUnderlineDashedColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetUnderlineDashedColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Width of dashed underline style /// Width public int UnderlineDashedWidth { @@ -3536,24 +3544,102 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. get { return GetUnderlineDashedGap(); } set { SetUnderlineDashedGap(value); } } + /// Color of underline2 style + /// Red component + public (byte, byte, byte, byte) Underline2Color { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetUnderline2Color(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetUnderline2Color( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Type of strikethrough style /// Strikethrough type public Efl.TextStyleStrikethroughType StrikethroughType { get { return GetStrikethroughType(); } set { SetStrikethroughType(value); } } + /// Color of strikethrough_style + /// Red component + public (byte, byte, byte, byte) StrikethroughColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetStrikethroughColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetStrikethroughColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Type of effect used for the displayed text /// Effect type public Efl.TextStyleEffectType EffectType { get { return GetEffectType(); } set { SetEffectType(value); } } + /// Color of outline effect + /// Red component + public (byte, byte, byte, byte) OutlineColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetOutlineColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetOutlineColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Direction of shadow effect /// Shadow direction public Efl.TextStyleShadowDirection ShadowDirection { get { return GetShadowDirection(); } set { SetShadowDirection(value); } } + /// Color of shadow effect + /// Red component + public (byte, byte, byte, byte) ShadowColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetShadowColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetShadowColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } + /// Color of glow effect + /// Red component + public (byte, byte, byte, byte) GlowColor { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetGlowColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetGlowColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } + /// Second color of the glow effect + /// Red component + public (byte, byte, byte, byte) Glow2Color { + get { + byte _out_r = default(byte); + byte _out_g = default(byte); + byte _out_b = default(byte); + byte _out_a = default(byte); + GetGlow2Color(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetGlow2Color( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Program that applies a special filter /// See . /// Filter code @@ -3587,6 +3673,10 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. public System.String TextContent { set { SetTextContent(value); } } + /// This returns true if the given object is currently in event emission + public bool Interaction { + get { return GetInteraction(); } + } private static IntPtr GetEflClassStatic() { return Efl.Ui.Text.efl_ui_text_class_get(); @@ -5233,34 +5323,54 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_editable_text_paste"), func = Marshal.GetFunctionPointerForDelegate(efl_access_editable_text_paste_static_delegate) }); } - if (efl_ui_clickable_press_static_delegate == null) + if (efl_input_clickable_interaction_get_static_delegate == null) + { + efl_input_clickable_interaction_get_static_delegate = new efl_input_clickable_interaction_get_delegate(interaction_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetInteraction") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_interaction_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_interaction_get_static_delegate) }); + } + + if (efl_input_clickable_press_static_delegate == null) { - efl_ui_clickable_press_static_delegate = new efl_ui_clickable_press_delegate(press); + efl_input_clickable_press_static_delegate = new efl_input_clickable_press_delegate(press); } if (methods.FirstOrDefault(m => m.Name == "Press") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clickable_press"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clickable_press_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_press"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_press_static_delegate) }); } - if (efl_ui_clickable_unpress_static_delegate == null) + if (efl_input_clickable_unpress_static_delegate == null) { - efl_ui_clickable_unpress_static_delegate = new efl_ui_clickable_unpress_delegate(unpress); + efl_input_clickable_unpress_static_delegate = new efl_input_clickable_unpress_delegate(unpress); } if (methods.FirstOrDefault(m => m.Name == "Unpress") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clickable_unpress"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clickable_unpress_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_unpress"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_unpress_static_delegate) }); } - if (efl_ui_clickable_button_state_reset_static_delegate == null) + if (efl_input_clickable_button_state_reset_static_delegate == null) { - efl_ui_clickable_button_state_reset_static_delegate = new efl_ui_clickable_button_state_reset_delegate(button_state_reset); + efl_input_clickable_button_state_reset_static_delegate = new efl_input_clickable_button_state_reset_delegate(button_state_reset); } if (methods.FirstOrDefault(m => m.Name == "ResetButtonState") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_clickable_button_state_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_clickable_button_state_reset_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_button_state_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_button_state_reset_static_delegate) }); + } + + if (efl_input_clickable_longpress_abort_static_delegate == null) + { + efl_input_clickable_longpress_abort_static_delegate = new efl_input_clickable_longpress_abort_delegate(longpress_abort); + } + + if (methods.FirstOrDefault(m => m.Name == "LongpressAbort") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_clickable_longpress_abort"), func = Marshal.GetFunctionPointerForDelegate(efl_input_clickable_longpress_abort_static_delegate) }); } descs.AddRange(base.GetEoOps(type)); @@ -11071,17 +11181,53 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. private static efl_access_editable_text_paste_delegate efl_access_editable_text_paste_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_input_clickable_interaction_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_input_clickable_interaction_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_input_clickable_interaction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_interaction_get"); + + private static bool interaction_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_input_clickable_interaction_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Text)ws.Target).GetInteraction(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_input_clickable_interaction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_input_clickable_interaction_get_delegate efl_input_clickable_interaction_get_static_delegate; + - private delegate void efl_ui_clickable_press_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + private delegate void efl_input_clickable_press_delegate(System.IntPtr obj, System.IntPtr pd, uint button); - public delegate void efl_ui_clickable_press_api_delegate(System.IntPtr obj, uint button); + public delegate void efl_input_clickable_press_api_delegate(System.IntPtr obj, uint button); - public static Efl.Eo.FunctionWrapper efl_ui_clickable_press_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clickable_press"); + public static Efl.Eo.FunctionWrapper efl_input_clickable_press_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_press"); private static void press(System.IntPtr obj, System.IntPtr pd, uint button) { - Eina.Log.Debug("function efl_ui_clickable_press was called"); + Eina.Log.Debug("function efl_input_clickable_press was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { @@ -11100,23 +11246,23 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } else { - efl_ui_clickable_press_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + efl_input_clickable_press_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); } } - private static efl_ui_clickable_press_delegate efl_ui_clickable_press_static_delegate; + private static efl_input_clickable_press_delegate efl_input_clickable_press_static_delegate; - private delegate void efl_ui_clickable_unpress_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + private delegate void efl_input_clickable_unpress_delegate(System.IntPtr obj, System.IntPtr pd, uint button); - public delegate void efl_ui_clickable_unpress_api_delegate(System.IntPtr obj, uint button); + public delegate void efl_input_clickable_unpress_api_delegate(System.IntPtr obj, uint button); - public static Efl.Eo.FunctionWrapper efl_ui_clickable_unpress_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clickable_unpress"); + public static Efl.Eo.FunctionWrapper efl_input_clickable_unpress_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_unpress"); private static void unpress(System.IntPtr obj, System.IntPtr pd, uint button) { - Eina.Log.Debug("function efl_ui_clickable_unpress was called"); + Eina.Log.Debug("function efl_input_clickable_unpress was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { @@ -11135,23 +11281,23 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } else { - efl_ui_clickable_unpress_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + efl_input_clickable_unpress_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); } } - private static efl_ui_clickable_unpress_delegate efl_ui_clickable_unpress_static_delegate; + private static efl_input_clickable_unpress_delegate efl_input_clickable_unpress_static_delegate; - private delegate void efl_ui_clickable_button_state_reset_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + private delegate void efl_input_clickable_button_state_reset_delegate(System.IntPtr obj, System.IntPtr pd, uint button); - public delegate void efl_ui_clickable_button_state_reset_api_delegate(System.IntPtr obj, uint button); + public delegate void efl_input_clickable_button_state_reset_api_delegate(System.IntPtr obj, uint button); - public static Efl.Eo.FunctionWrapper efl_ui_clickable_button_state_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_clickable_button_state_reset"); + public static Efl.Eo.FunctionWrapper efl_input_clickable_button_state_reset_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_button_state_reset"); private static void button_state_reset(System.IntPtr obj, System.IntPtr pd, uint button) { - Eina.Log.Debug("function efl_ui_clickable_button_state_reset was called"); + Eina.Log.Debug("function efl_input_clickable_button_state_reset was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { @@ -11170,11 +11316,46 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } else { - efl_ui_clickable_button_state_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + efl_input_clickable_button_state_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); } } - private static efl_ui_clickable_button_state_reset_delegate efl_ui_clickable_button_state_reset_static_delegate; + private static efl_input_clickable_button_state_reset_delegate efl_input_clickable_button_state_reset_static_delegate; + + + private delegate void efl_input_clickable_longpress_abort_delegate(System.IntPtr obj, System.IntPtr pd, uint button); + + + public delegate void efl_input_clickable_longpress_abort_api_delegate(System.IntPtr obj, uint button); + + public static Efl.Eo.FunctionWrapper efl_input_clickable_longpress_abort_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_input_clickable_longpress_abort"); + + private static void longpress_abort(System.IntPtr obj, System.IntPtr pd, uint button) + { + Eina.Log.Debug("function efl_input_clickable_longpress_abort was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Text)ws.Target).LongpressAbort(button); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_input_clickable_longpress_abort_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), button); + } + } + + private static efl_input_clickable_longpress_abort_delegate efl_input_clickable_longpress_abort_static_delegate; #pragma warning restore CA1707, CS1591, SA1300, SA1600 @@ -11184,3 +11365,245 @@ public class Text : Efl.Ui.LayoutBase, Efl.IFile, Efl.IText, Efl.ITextFont, Efl. } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiText_ExtensionMethods { + public static Efl.BindableProperty Scrollable(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("scrollable", fac); + } + + public static Efl.BindableProperty InputPanelShowOnDemand(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("input_panel_show_on_demand", fac); + } + + public static Efl.BindableProperty ContextMenuDisabled(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("context_menu_disabled", fac); + } + + public static Efl.BindableProperty CnpMode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("cnp_mode", fac); + } + + public static Efl.BindableProperty InputPanelLanguage(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("input_panel_language", fac); + } + + public static Efl.BindableProperty SelectionHandlerDisabled(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("selection_handler_disabled", fac); + } + + public static Efl.BindableProperty InputPanelLayoutVariation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("input_panel_layout_variation", fac); + } + + public static Efl.BindableProperty AutocapitalType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("autocapital_type", fac); + } + + public static Efl.BindableProperty PasswordMode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("password_mode", fac); + } + + public static Efl.BindableProperty InputPanelReturnKeyDisabled(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("input_panel_return_key_disabled", fac); + } + + public static Efl.BindableProperty PredictionAllow(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("prediction_allow", fac); + } + + public static Efl.BindableProperty InputHint(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("input_hint", fac); + } + + public static Efl.BindableProperty InputPanelLayout(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("input_panel_layout", fac); + } + + public static Efl.BindableProperty InputPanelReturnKeyType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("input_panel_return_key_type", fac); + } + + public static Efl.BindableProperty InputPanelEnabled(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("input_panel_enabled", fac); + } + + public static Efl.BindableProperty InputPanelReturnKeyAutoenabled(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("input_panel_return_key_autoenabled", fac); + } + + public static Efl.BindableProperty ItemFactory(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("item_factory", fac); + } + + public static Efl.BindableProperty Mmap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("mmap", fac); + } + + public static Efl.BindableProperty File(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("file", fac); + } + + public static Efl.BindableProperty Key(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("key", fac); + } + + + + + public static Efl.BindableProperty FontSource(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("font_source", fac); + } + + public static Efl.BindableProperty FontFallbacks(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("font_fallbacks", fac); + } + + public static Efl.BindableProperty FontWeight(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("font_weight", fac); + } + + public static Efl.BindableProperty FontSlant(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("font_slant", fac); + } + + public static Efl.BindableProperty FontWidth(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("font_width", fac); + } + + public static Efl.BindableProperty FontLang(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("font_lang", fac); + } + + public static Efl.BindableProperty FontBitmapScalable(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("font_bitmap_scalable", fac); + } + + public static Efl.BindableProperty Ellipsis(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("ellipsis", fac); + } + + public static Efl.BindableProperty Wrap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("wrap", fac); + } + + public static Efl.BindableProperty Multiline(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("multiline", fac); + } + + public static Efl.BindableProperty HalignAutoType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("halign_auto_type", fac); + } + + public static Efl.BindableProperty Halign(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("halign", fac); + } + + public static Efl.BindableProperty Valign(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("valign", fac); + } + + public static Efl.BindableProperty Linegap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("linegap", fac); + } + + public static Efl.BindableProperty Linerelgap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("linerelgap", fac); + } + + public static Efl.BindableProperty Tabstops(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("tabstops", fac); + } + + public static Efl.BindableProperty Password(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("password", fac); + } + + public static Efl.BindableProperty ReplacementChar(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("replacement_char", fac); + } + + public static Efl.BindableProperty SelectionAllowed(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("selection_allowed", fac); + } + + + public static Efl.BindableProperty Editable(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("editable", fac); + } + + public static Efl.BindableProperty Markup(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("markup", fac); + } + + + public static Efl.BindableProperty BackingType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("backing_type", fac); + } + + + public static Efl.BindableProperty UnderlineType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("underline_type", fac); + } + + + public static Efl.BindableProperty UnderlineHeight(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("underline_height", fac); + } + + + public static Efl.BindableProperty UnderlineDashedWidth(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("underline_dashed_width", fac); + } + + public static Efl.BindableProperty UnderlineDashedGap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("underline_dashed_gap", fac); + } + + + public static Efl.BindableProperty StrikethroughType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("strikethrough_type", fac); + } + + + public static Efl.BindableProperty EffectType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("effect_type", fac); + } + + + public static Efl.BindableProperty ShadowDirection(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("shadow_direction", fac); + } + + + + + public static Efl.BindableProperty GfxFilter(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("gfx_filter", fac); + } + + + + + public static Efl.BindableProperty CaretOffset(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("caret_offset", fac); + } + + + + + + + + + + + + public static Efl.BindableProperty TextContent(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Text { + return new Efl.BindableProperty("text_content", fac); + } + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_alert_popup.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_alert_popup.eo.cs deleted file mode 100644 index 6c15e1b82..000000000 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_alert_popup.eo.cs +++ /dev/null @@ -1,275 +0,0 @@ -#pragma warning disable CS1591 -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.ComponentModel; -namespace Efl { - -namespace Ui { - -/// EFL UI Text Alert Popup class -[Efl.Ui.TextAlertPopup.NativeMethods] -[Efl.Eo.BindingEntity] -public class TextAlertPopup : Efl.Ui.AlertPopup, Efl.IText -{ - ///Pointer to the native class description. - public override System.IntPtr NativeClass - { - get - { - if (((object)this).GetType() == typeof(TextAlertPopup)) - { - return GetEflClassStatic(); - } - else - { - return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; - } - } - } - - [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - efl_ui_text_alert_popup_class_get(); - /// Initializes a new instance of the class. - /// Parent instance. - /// The widget style to use. See - public TextAlertPopup(Efl.Object parent - , System.String style = null) : base(efl_ui_text_alert_popup_class_get(), parent) - { - if (Efl.Eo.Globals.ParamHelperCheck(style)) - { - SetStyle(Efl.Eo.Globals.GetParamHelper(style)); - } - - FinishInstantiation(); - } - - /// Constructor to be used when objects are expected to be constructed from native code. - /// Tag struct storing the native handle of the object being constructed. - protected TextAlertPopup(ConstructingHandle ch) : base(ch) - { - } - - /// Initializes a new instance of the class. - /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. - /// The native pointer to be wrapped. - protected TextAlertPopup(Efl.Eo.Globals.WrappingHandle wh) : base(wh) - { - } - - /// Initializes a new instance of the class. - /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - /// The pointer to the base native Eo class. - /// The Efl.Object parent of this instance. - protected TextAlertPopup(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) - { - } - - /// Set the expandable of popup. - /// If the contents of the popup has min size, the popup will be increased by min size along the Y axis. If max hint is set it will be increased to the value of max hint and scrolling will occur. - /// A 2D max size in pixel units. - virtual public void SetExpandable(Eina.Size2D max_size) { - Eina.Size2D.NativeStruct _in_max_size = max_size; - Efl.Ui.TextAlertPopup.NativeMethods.efl_ui_text_alert_popup_expandable_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_max_size); - Eina.Error.RaiseIfUnhandledException(); - } - /// Retrieves the text string currently being displayed by the given text object. - /// Do not free() the return value. - /// - /// See also . - /// (Since EFL 1.22) - /// Text string to display on it. - virtual public System.String GetText() { - var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Sets the text string to be displayed by the given text object. - /// See also . - /// (Since EFL 1.22) - /// Text string to display on it. - virtual public void SetText(System.String text) { - Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),text); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the expandable of popup. - /// If the contents of the popup has min size, the popup will be increased by min size along the Y axis. If max hint is set it will be increased to the value of max hint and scrolling will occur. - /// A 2D max size in pixel units. - public Eina.Size2D Expandable { - set { SetExpandable(value); } - } - private static IntPtr GetEflClassStatic() - { - return Efl.Ui.TextAlertPopup.efl_ui_text_alert_popup_class_get(); - } - /// Wrapper for native methods and virtual method delegates. - /// For internal use by generated code only. - public new class NativeMethods : Efl.Ui.AlertPopup.NativeMethods - { - private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); - /// Gets the list of Eo operations to override. - /// The list of Eo operations to be overload. - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - - if (efl_ui_text_alert_popup_expandable_set_static_delegate == null) - { - efl_ui_text_alert_popup_expandable_set_static_delegate = new efl_ui_text_alert_popup_expandable_set_delegate(expandable_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetExpandable") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_text_alert_popup_expandable_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_text_alert_popup_expandable_set_static_delegate) }); - } - - if (efl_text_get_static_delegate == null) - { - efl_text_get_static_delegate = new efl_text_get_delegate(text_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetText") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_text_get_static_delegate) }); - } - - if (efl_text_set_static_delegate == null) - { - efl_text_set_static_delegate = new efl_text_set_delegate(text_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetText") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_text_set_static_delegate) }); - } - - descs.AddRange(base.GetEoOps(type)); - return descs; - } - /// Returns the Eo class for the native methods of this class. - /// The native class pointer. - public override IntPtr GetEflClass() - { - return Efl.Ui.TextAlertPopup.efl_ui_text_alert_popup_class_get(); - } - - #pragma warning disable CA1707, CS1591, SA1300, SA1600 - - - private delegate void efl_ui_text_alert_popup_expandable_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct max_size); - - - public delegate void efl_ui_text_alert_popup_expandable_set_api_delegate(System.IntPtr obj, Eina.Size2D.NativeStruct max_size); - - public static Efl.Eo.FunctionWrapper efl_ui_text_alert_popup_expandable_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_text_alert_popup_expandable_set"); - - private static void expandable_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct max_size) - { - Eina.Log.Debug("function efl_ui_text_alert_popup_expandable_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Eina.Size2D _in_max_size = max_size; - - try - { - ((TextAlertPopup)ws.Target).SetExpandable(_in_max_size); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_text_alert_popup_expandable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), max_size); - } - } - - private static efl_ui_text_alert_popup_expandable_set_delegate efl_ui_text_alert_popup_expandable_set_static_delegate; - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - public delegate System.String efl_text_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_get"); - - private static System.String text_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_text_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - System.String _ret_var = default(System.String); - try - { - _ret_var = ((TextAlertPopup)ws.Target).GetText(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_text_get_delegate efl_text_get_static_delegate; - - - private delegate void efl_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - - - public delegate void efl_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); - - public static Efl.Eo.FunctionWrapper efl_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_text_set"); - - private static void text_set(System.IntPtr obj, System.IntPtr pd, System.String text) - { - Eina.Log.Debug("function efl_text_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((TextAlertPopup)ws.Target).SetText(text); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); - } - } - - private static efl_text_set_delegate efl_text_set_static_delegate; - - #pragma warning restore CA1707, CS1591, SA1300, SA1600 - -} -} -} - -} - diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_async.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_async.eo.cs old mode 100644 new mode 100755 index 221c1bf31..230426862 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_async.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_async.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Efl UI text async class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.TextAsync.NativeMethods] [Efl.Eo.BindingEntity] public class TextAsync : Efl.Ui.Text { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +48,8 @@ public class TextAsync : Efl.Ui.Text FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected TextAsync(ConstructingHandle ch) : base(ch) { @@ -100,3 +103,9 @@ public class TextAsync : Efl.Ui.Text } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiTextAsync_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_editable.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_editable.eo.cs old mode 100644 new mode 100755 index df633fda4..c7c8516e4 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_editable.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_editable.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Efl UI text editable class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.TextEditable.NativeMethods] [Efl.Eo.BindingEntity] public class TextEditable : Efl.Ui.Text { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +48,8 @@ public class TextEditable : Efl.Ui.Text FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected TextEditable(ConstructingHandle ch) : base(ch) { @@ -100,3 +103,9 @@ public class TextEditable : Efl.Ui.Text } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiTextEditable_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_emoticons.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_emoticons.eo.cs old mode 100644 new mode 100755 index bb4fc916d..19ec52f1c --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_emoticons.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_emoticons.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -12,11 +13,12 @@ namespace Ui { namespace TextFactory { /// Factory that creates emoticons from the current theme given a key. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.TextFactory.Emoticons.NativeMethods] [Efl.Eo.BindingEntity] public class Emoticons : Efl.Object, Efl.Canvas.ITextFactory { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -42,7 +44,8 @@ public class Emoticons : Efl.Object, Efl.Canvas.ITextFactory FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Emoticons(ConstructingHandle ch) : base(ch) { @@ -155,3 +158,9 @@ public class Emoticons : Efl.Object, Efl.Canvas.ITextFactory } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Ui_Text_FactoryEmoticons_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_fallback.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_fallback.eo.cs old mode 100644 new mode 100755 index 7347e6310..21e123c94 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_fallback.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_fallback.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -13,11 +14,12 @@ namespace TextFactory { /// Internal factory for fallback cases. /// This wraps some internal functionality: - Contains 2 factories: image and emoticon - Strips off "file://" prefix for image items, to be used with the image factory. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.TextFactory.Fallback.NativeMethods] [Efl.Eo.BindingEntity] public class Fallback : Efl.Object, Efl.Canvas.ITextFactory { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -43,7 +45,8 @@ public class Fallback : Efl.Object, Efl.Canvas.ITextFactory FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Fallback(ConstructingHandle ch) : base(ch) { @@ -156,3 +159,9 @@ public class Fallback : Efl.Object, Efl.Canvas.ITextFactory } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Ui_Text_FactoryFallback_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_images.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_images.eo.cs old mode 100644 new mode 100755 index 92879116c..a0d69a0f8 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_images.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_factory_images.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -13,11 +14,12 @@ namespace TextFactory { /// Factory that creates images given key string /// The key can be either a full image path, or associated with one. The factory will fallback if key was not matches with an image, and try to load it as a full path. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.TextFactory.Images.NativeMethods] [Efl.Eo.BindingEntity] public class Images : Efl.Object, Efl.Canvas.ITextFactory { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -43,7 +45,8 @@ public class Images : Efl.Object, Efl.Canvas.ITextFactory FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Images(ConstructingHandle ch) : base(ch) { @@ -384,3 +387,9 @@ public class Images : Efl.Object, Efl.Canvas.ITextFactory } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_Ui_Text_FactoryImages_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_part.eo.cs old mode 100644 new mode 100755 index a2a28a34c..6ace7f67e --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_part.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Efl UI Text internal part class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.TextPart.NativeMethods] [Efl.Eo.BindingEntity] public class TextPart : Efl.Ui.LayoutPartText { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class TextPart : Efl.Ui.LayoutPartText FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected TextPart(ConstructingHandle ch) : base(ch) { @@ -94,3 +97,9 @@ public class TextPart : Efl.Ui.LayoutPartText } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiTextPart_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_text_selectable.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_selectable.eo.cs new file mode 100755 index 000000000..6fc8743e0 --- /dev/null +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_text_selectable.eo.cs @@ -0,0 +1,421 @@ +#define EFL_BETA +#pragma warning disable CS1591 +using System; +using System.Runtime.InteropServices; +using System.Collections.Generic; +using System.Linq; +using System.Threading; +using System.ComponentModel; +namespace Efl { + +namespace Ui { + +/// Efl UI text selectable interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +[Efl.Ui.ITextSelectableConcrete.NativeMethods] +[Efl.Eo.BindingEntity] +public interface ITextSelectable : + Efl.Eo.IWrapper, IDisposable +{ + /// Called when selection is pasted + event EventHandler SelectionPasteEvt; + /// Called when selection is copied + event EventHandler SelectionCopyEvt; + /// Called when selection is cut + event EventHandler SelectionCutEvt; + /// Called at selection start + event EventHandler SelectionStartEvt; + /// Called when selection is changed + event EventHandler SelectionChangedEvt; + /// Called when selection is cleared + event EventHandler SelectionClearedEvt; +} +/// Efl UI text selectable interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class ITextSelectableConcrete : + Efl.Eo.EoWrapper + , ITextSelectable + +{ + /// Pointer to the native class description. + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ITextSelectableConcrete)) + { + return GetEflClassStatic(); + } + else + { + return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } + } + } + + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. + /// Tag struct storing the native handle of the object being constructed. + private ITextSelectableConcrete(ConstructingHandle ch) : base(ch) + { + } + + [System.Runtime.InteropServices.DllImport("libefl.so.1")] internal static extern System.IntPtr + efl_ui_text_selectable_interface_get(); + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. + private ITextSelectableConcrete(Efl.Eo.Globals.WrappingHandle wh) : base(wh) + { + } + + /// Called when selection is pasted + public event EventHandler SelectionPasteEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_SELECTION_PASTE"; + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_SELECTION_PASTE"; + RemoveNativeEventHandler(efl.Libs.Efl, key, value); + } + } + } + /// Method to raise event SelectionPasteEvt. + public void OnSelectionPasteEvt(EventArgs e) + { + var key = "_EFL_UI_EVENT_SELECTION_PASTE"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Called when selection is copied + public event EventHandler SelectionCopyEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_SELECTION_COPY"; + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_SELECTION_COPY"; + RemoveNativeEventHandler(efl.Libs.Efl, key, value); + } + } + } + /// Method to raise event SelectionCopyEvt. + public void OnSelectionCopyEvt(EventArgs e) + { + var key = "_EFL_UI_EVENT_SELECTION_COPY"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Called when selection is cut + public event EventHandler SelectionCutEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_SELECTION_CUT"; + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_SELECTION_CUT"; + RemoveNativeEventHandler(efl.Libs.Efl, key, value); + } + } + } + /// Method to raise event SelectionCutEvt. + public void OnSelectionCutEvt(EventArgs e) + { + var key = "_EFL_UI_EVENT_SELECTION_CUT"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Called at selection start + public event EventHandler SelectionStartEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_SELECTION_START"; + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_SELECTION_START"; + RemoveNativeEventHandler(efl.Libs.Efl, key, value); + } + } + } + /// Method to raise event SelectionStartEvt. + public void OnSelectionStartEvt(EventArgs e) + { + var key = "_EFL_UI_EVENT_SELECTION_START"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Called when selection is changed + public event EventHandler SelectionChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_SELECTION_CHANGED"; + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_SELECTION_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Efl, key, value); + } + } + } + /// Method to raise event SelectionChangedEvt. + public void OnSelectionChangedEvt(EventArgs e) + { + var key = "_EFL_UI_EVENT_SELECTION_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + /// Called when selection is cleared + public event EventHandler SelectionClearedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + EventArgs args = EventArgs.Empty; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_EVENT_SELECTION_CLEARED"; + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_EVENT_SELECTION_CLEARED"; + RemoveNativeEventHandler(efl.Libs.Efl, key, value); + } + } + } + /// Method to raise event SelectionClearedEvt. + public void OnSelectionClearedEvt(EventArgs e) + { + var key = "_EFL_UI_EVENT_SELECTION_CLEARED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); + } + private static IntPtr GetEflClassStatic() + { + return Efl.Ui.ITextSelectableConcrete.efl_ui_text_selectable_interface_get(); + } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods + { + /// Gets the list of Eo operations to override. + /// The list of Eo operations to be overload. + public override System.Collections.Generic.List GetEoOps(System.Type type) + { + var descs = new System.Collections.Generic.List(); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.ITextSelectableConcrete.efl_ui_text_selectable_interface_get(); + } + + #pragma warning disable CA1707, CS1591, SA1300, SA1600 + + #pragma warning restore CA1707, CS1591, SA1300, SA1600 + +} +} +} + +} + +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiITextSelectableConcrete_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_textpath.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_textpath.eo.cs old mode 100644 new mode 100755 index e046ae670..8e55ffd3c --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_textpath.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_textpath.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Efl Ui Textpath class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Textpath.NativeMethods] [Efl.Eo.BindingEntity] public class Textpath : Efl.Ui.LayoutBase, Efl.IText, Efl.Gfx.IPath { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +48,8 @@ public class Textpath : Efl.Ui.LayoutBase, Efl.IText, Efl.Gfx.IPath FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Textpath(ConstructingHandle ch) : base(ch) { @@ -68,7 +71,7 @@ public class Textpath : Efl.Ui.LayoutBase, Efl.IText, Efl.Gfx.IPath } /// The number of slices. The larger the number of slice_num is, The better the text follows the path. - /// @internal + /// internal /// Number of slices virtual public int GetSliceNumber() { var _ret_var = Efl.Ui.Textpath.NativeMethods.efl_ui_textpath_slice_number_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); @@ -76,14 +79,14 @@ public class Textpath : Efl.Ui.LayoutBase, Efl.IText, Efl.Gfx.IPath return _ret_var; } /// The number of slices. The larger the number of slice_num is, The better the text follows the path. - /// @internal + /// internal /// Number of slices virtual public void SetSliceNumber(int slice_no) { Efl.Ui.Textpath.NativeMethods.efl_ui_textpath_slice_number_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),slice_no); Eina.Error.RaiseIfUnhandledException(); } /// Control the ellipsis behavior of the textpath. - /// @since_tizen 5.5 + /// since_tizen 5.5 /// To ellipsis text or not virtual public bool GetEllipsis() { var _ret_var = Efl.Ui.Textpath.NativeMethods.efl_ui_textpath_ellipsis_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); @@ -91,23 +94,21 @@ public class Textpath : Efl.Ui.LayoutBase, Efl.IText, Efl.Gfx.IPath return _ret_var; } /// Control the ellipsis behavior of the textpath. - /// @since_tizen 5.5 + /// since_tizen 5.5 /// To ellipsis text or not virtual public void SetEllipsis(bool ellipsis) { Efl.Ui.Textpath.NativeMethods.efl_ui_textpath_ellipsis_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),ellipsis); Eina.Error.RaiseIfUnhandledException(); } - /// Set a circle with given center, radius, and start angle. - /// @since_tizen 5.5 - /// X coordinate of center - /// Y coordinate of center + /// Set a circle with given radius and start angle. The center of the circle will be decided by the object center position. + /// since_tizen 5.5 /// Radius of the circle /// Start angle of the circle /// Textpath direction - virtual public void SetCircle(double x, double y, double radius, double start_angle, Efl.Ui.TextpathDirection direction) { - Efl.Ui.Textpath.NativeMethods.efl_ui_textpath_circle_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),x, y, radius, start_angle, direction); + virtual public void SetCircular(double radius, double start_angle, Efl.Ui.TextpathDirection direction) { + Efl.Ui.Textpath.NativeMethods.efl_ui_textpath_circular_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),radius, start_angle, direction); Eina.Error.RaiseIfUnhandledException(); - } + } /// Retrieves the text string currently being displayed by the given text object. /// Do not free() the return value. /// @@ -338,19 +339,57 @@ public class Textpath : Efl.Ui.LayoutBase, Efl.IText, Efl.Gfx.IPath Eina.Error.RaiseIfUnhandledException(); } /// The number of slices. The larger the number of slice_num is, The better the text follows the path. - /// @internal + /// internal /// Number of slices public int SliceNumber { get { return GetSliceNumber(); } set { SetSliceNumber(value); } } /// Control the ellipsis behavior of the textpath. - /// @since_tizen 5.5 + /// since_tizen 5.5 /// To ellipsis text or not public bool Ellipsis { get { return GetEllipsis(); } set { SetEllipsis(value); } } + /// Set the list of commands and points to be used to create the content of path. + /// Command list + public (Efl.Gfx.PathCommandType, double) Path { + get { + Efl.Gfx.PathCommandType _out_op = default(Efl.Gfx.PathCommandType); + double _out_points = default(double); + GetPath(out _out_op,out _out_points); + return (_out_op,_out_points); + } + set { SetPath( value.Item1, value.Item2); } + } + /// Path length property + public (uint, uint) Length { + get { + uint _out_commands = default(uint); + uint _out_points = default(uint); + GetLength(out _out_commands,out _out_points); + return (_out_commands,_out_points); + } + } + /// Current point coordinates + public (double, double) Current { + get { + double _out_x = default(double); + double _out_y = default(double); + GetCurrent(out _out_x,out _out_y); + return (_out_x,_out_y); + } + } + /// Current control point coordinates + public (double, double) CurrentCtrl { + get { + double _out_x = default(double); + double _out_y = default(double); + GetCurrentCtrl(out _out_x,out _out_y); + return (_out_x,_out_y); + } + } private static IntPtr GetEflClassStatic() { return Efl.Ui.Textpath.efl_ui_textpath_class_get(); @@ -407,14 +446,14 @@ public class Textpath : Efl.Ui.LayoutBase, Efl.IText, Efl.Gfx.IPath descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_textpath_ellipsis_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_textpath_ellipsis_set_static_delegate) }); } - if (efl_ui_textpath_circle_set_static_delegate == null) + if (efl_ui_textpath_circular_set_static_delegate == null) { - efl_ui_textpath_circle_set_static_delegate = new efl_ui_textpath_circle_set_delegate(circle_set); + efl_ui_textpath_circular_set_static_delegate = new efl_ui_textpath_circular_set_delegate(circular_set); } - if (methods.FirstOrDefault(m => m.Name == "SetCircle") != null) + if (methods.FirstOrDefault(m => m.Name == "SetCircular") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_textpath_circle_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_textpath_circle_set_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_textpath_circular_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_textpath_circular_set_static_delegate) }); } if (efl_text_get_static_delegate == null) @@ -832,23 +871,23 @@ public class Textpath : Efl.Ui.LayoutBase, Efl.IText, Efl.Gfx.IPath private static efl_ui_textpath_ellipsis_set_delegate efl_ui_textpath_ellipsis_set_static_delegate; - private delegate void efl_ui_textpath_circle_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y, double radius, double start_angle, Efl.Ui.TextpathDirection direction); + private delegate void efl_ui_textpath_circular_set_delegate(System.IntPtr obj, System.IntPtr pd, double radius, double start_angle, Efl.Ui.TextpathDirection direction); - public delegate void efl_ui_textpath_circle_set_api_delegate(System.IntPtr obj, double x, double y, double radius, double start_angle, Efl.Ui.TextpathDirection direction); + public delegate void efl_ui_textpath_circular_set_api_delegate(System.IntPtr obj, double radius, double start_angle, Efl.Ui.TextpathDirection direction); - public static Efl.Eo.FunctionWrapper efl_ui_textpath_circle_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_textpath_circle_set"); + public static Efl.Eo.FunctionWrapper efl_ui_textpath_circular_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_textpath_circular_set"); - private static void circle_set(System.IntPtr obj, System.IntPtr pd, double x, double y, double radius, double start_angle, Efl.Ui.TextpathDirection direction) + private static void circular_set(System.IntPtr obj, System.IntPtr pd, double radius, double start_angle, Efl.Ui.TextpathDirection direction) { - Eina.Log.Debug("function efl_ui_textpath_circle_set was called"); + Eina.Log.Debug("function efl_ui_textpath_circular_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + try { - ((Textpath)ws.Target).SetCircle(x, y, radius, start_angle, direction); + ((Textpath)ws.Target).SetCircular(radius, start_angle, direction); } catch (Exception e) { @@ -856,15 +895,15 @@ public class Textpath : Efl.Ui.LayoutBase, Efl.IText, Efl.Gfx.IPath Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + } else { - efl_ui_textpath_circle_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, radius, start_angle, direction); + efl_ui_textpath_circular_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), radius, start_angle, direction); } } - private static efl_ui_textpath_circle_set_delegate efl_ui_textpath_circle_set_static_delegate; + private static efl_ui_textpath_circular_set_delegate efl_ui_textpath_circular_set_static_delegate; [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_text_get_delegate(System.IntPtr obj, System.IntPtr pd); @@ -1795,12 +1834,31 @@ public class Textpath : Efl.Ui.LayoutBase, Efl.IText, Efl.Gfx.IPath } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiTextpath_ExtensionMethods { + public static Efl.BindableProperty SliceNumber(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Textpath { + return new Efl.BindableProperty("slice_number", fac); + } + + public static Efl.BindableProperty Ellipsis(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Textpath { + return new Efl.BindableProperty("ellipsis", fac); + } + + + + + + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Ui { /// Textpath direction -/// @since_tizen 5.5 +/// since_tizen 5.5 [Efl.Eo.BindingEntity] public enum TextpathDirection { diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_textpath_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_textpath_part.eo.cs old mode 100644 new mode 100755 index 5cec07b3b..59cd35f39 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_textpath_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_textpath_part.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Efl UI Textpath internal part class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.TextpathPart.NativeMethods] [Efl.Eo.BindingEntity] public class TextpathPart : Efl.Ui.LayoutPartText { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class TextpathPart : Efl.Ui.LayoutPartText FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected TextpathPart(ConstructingHandle ch) : base(ch) { @@ -94,3 +97,9 @@ public class TextpathPart : Efl.Ui.LayoutPartText } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiTextpathPart_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_theme.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_theme.eo.cs old mode 100644 new mode 100755 index 29862fef3..b47462427 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_theme.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_theme.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Efl Ui Theme class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Theme.NativeMethods] [Efl.Eo.BindingEntity] public class Theme : Efl.Object { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class Theme : Efl.Object FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Theme(ConstructingHandle ch) : base(ch) { @@ -348,3 +351,10 @@ public class Theme : Efl.Object } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiTheme_ExtensionMethods { + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_timepicker.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_timepicker.eo.cs old mode 100644 new mode 100755 index c36044278..f9f7366d8 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_timepicker.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_timepicker.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Ui { /// Timepicker widget /// This is a widget which allows the user to pick a time using internal spinner. User can use the internal spinner to select hour, minute, AM/PM or user can input value using internal entry. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Timepicker.NativeMethods] [Efl.Eo.BindingEntity] public class Timepicker : Efl.Ui.LayoutBase { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -47,7 +49,8 @@ public class Timepicker : Efl.Ui.LayoutBase FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Timepicker(ConstructingHandle ch) : base(ch) { @@ -107,7 +110,7 @@ public class Timepicker : Efl.Ui.LayoutBase } } } - ///Method to raise event ChangedEvt. + /// Method to raise event ChangedEvt. public void OnChangedEvt(EventArgs e) { var key = "_EFL_UI_TIMEPICKER_EVENT_CHANGED"; @@ -153,6 +156,20 @@ public class Timepicker : Efl.Ui.LayoutBase Efl.Ui.Timepicker.NativeMethods.efl_ui_timepicker_ampm_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),is_24hour); Eina.Error.RaiseIfUnhandledException(); } + /// The current value of time + /// hour: Hour. The hour value is in terms of 24 hour format from 0 to 23. + /// + /// min: Minute. The minute range is from 0 to 59. + /// The hour value from 0 to 23. + public (int, int) Time { + get { + int _out_hour = default(int); + int _out_min = default(int); + GetTime(out _out_hour,out _out_min); + return (_out_hour,_out_min); + } + set { SetTime( value.Item1, value.Item2); } + } /// Control if the Timepicker displays 24 hour time or 12 hour time including AM/PM button. /// true to display the 24 hour time, false to display 12 hour time including AM/PM button. public bool Ampm { @@ -376,3 +393,14 @@ public class Timepicker : Efl.Ui.LayoutBase } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiTimepicker_ExtensionMethods { + + public static Efl.BindableProperty Ampm(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Timepicker { + return new Efl.BindableProperty("ampm", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_types.eot.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_types.eot.cs old mode 100644 new mode 100755 diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_video.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_video.eo.cs old mode 100644 new mode 100755 index 537833eab..98e5f059e --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_video.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_video.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Efl UI video class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Video.NativeMethods] [Efl.Eo.BindingEntity] public class Video : Efl.Ui.LayoutBase, Efl.IFile, Efl.IPlayer { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -46,7 +48,8 @@ public class Video : Efl.Ui.LayoutBase, Efl.IFile, Efl.IPlayer FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Video(ConstructingHandle ch) : base(ch) { @@ -1759,3 +1762,52 @@ public class Video : Efl.Ui.LayoutBase, Efl.IFile, Efl.IPlayer } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiVideo_ExtensionMethods { + public static Efl.BindableProperty RememberPosition(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Video { + return new Efl.BindableProperty("remember_position", fac); + } + + + + public static Efl.BindableProperty Mmap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Video { + return new Efl.BindableProperty("mmap", fac); + } + + public static Efl.BindableProperty File(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Video { + return new Efl.BindableProperty("file", fac); + } + + public static Efl.BindableProperty Key(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Video { + return new Efl.BindableProperty("key", fac); + } + + + + public static Efl.BindableProperty Play(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Video { + return new Efl.BindableProperty("play", fac); + } + + public static Efl.BindableProperty Pos(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Video { + return new Efl.BindableProperty("pos", fac); + } + + + public static Efl.BindableProperty PlaySpeed(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Video { + return new Efl.BindableProperty("play_speed", fac); + } + + public static Efl.BindableProperty Volume(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Video { + return new Efl.BindableProperty("volume", fac); + } + + public static Efl.BindableProperty Mute(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Video { + return new Efl.BindableProperty("mute", fac); + } + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_view.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_view.eo.cs old mode 100644 new mode 100755 index cfe2e6bae..ff0ab85e6 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_view.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_view.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Ui { /// Efl UI view interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.IViewConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IView : @@ -21,20 +23,31 @@ Efl.IModel GetModel(); /// Model that is/will be /// Efl model void SetModel(Efl.IModel model); - /// Model that is/will be + /// Event dispatched when a new model is set. + /// + event EventHandler ModelChangedEvt; + /// Model that is/will be /// Efl model Efl.IModel Model { - get ; - set ; + get; + set; } } +/// Event argument wrapper for event . +[Efl.Eo.BindingEntity] +public class IViewModelChangedEvt_Args : EventArgs { + /// Actual event payload. + /// Event dispatched when a new model is set. + public Efl.ModelChangedEvent arg { get; set; } +} /// Efl UI view interface -sealed public class IViewConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IViewConcrete : Efl.Eo.EoWrapper , IView { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -50,7 +63,8 @@ sealed public class IViewConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IViewConcrete(ConstructingHandle ch) : base(ch) { @@ -65,6 +79,69 @@ sealed public class IViewConcrete : { } + /// Event dispatched when a new model is set. + /// + public event EventHandler ModelChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.IViewModelChangedEvt_Args args = new Efl.Ui.IViewModelChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_VIEW_EVENT_MODEL_CHANGED"; + AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_VIEW_EVENT_MODEL_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Efl, key, value); + } + } + } + /// Method to raise event ModelChangedEvt. + public void OnModelChangedEvt(Efl.Ui.IViewModelChangedEvt_Args e) + { + var key = "_EFL_UI_VIEW_EVENT_MODEL_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } /// Model that is/will be /// Efl model public Efl.IModel GetModel() { @@ -210,3 +287,81 @@ sealed public class IViewConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiIViewConcrete_ExtensionMethods { + public static Efl.BindableProperty Model(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IView { + return new Efl.BindableProperty("model", fac); + } + +} +#pragma warning restore CS1591 +#endif +namespace Efl { + +/// Every time the model is changed on the object. +[StructLayout(LayoutKind.Sequential)] +[Efl.Eo.BindingEntity] +public struct ModelChangedEvent +{ + /// The newly set model. + public Efl.IModel Current; + /// The previously set model. + public Efl.IModel Previous; + /// Constructor for ModelChangedEvent. + /// The newly set model.; + /// The previously set model.; + public ModelChangedEvent( + Efl.IModel Current = default(Efl.IModel), + Efl.IModel Previous = default(Efl.IModel) ) + { + this.Current = Current; + this.Previous = Previous; + } + + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. + public static implicit operator ModelChangedEvent(IntPtr ptr) + { + var tmp = (ModelChangedEvent.NativeStruct)Marshal.PtrToStructure(ptr, typeof(ModelChangedEvent.NativeStruct)); + return tmp; + } + + #pragma warning disable CS1591 + + /// Internal wrapper for struct ModelChangedEvent. + [StructLayout(LayoutKind.Sequential)] + public struct NativeStruct + { + /// Internal wrapper for field Current + public System.IntPtr Current; + /// Internal wrapper for field Previous + public System.IntPtr Previous; + /// Implicit conversion to the internal/marshalling representation. + public static implicit operator ModelChangedEvent.NativeStruct(ModelChangedEvent _external_struct) + { + var _internal_struct = new ModelChangedEvent.NativeStruct(); + _internal_struct.Current = _external_struct.Current?.NativeHandle ?? System.IntPtr.Zero; + _internal_struct.Previous = _external_struct.Previous?.NativeHandle ?? System.IntPtr.Zero; + return _internal_struct; + } + + /// Implicit conversion to the managed representation. + public static implicit operator ModelChangedEvent(ModelChangedEvent.NativeStruct _internal_struct) + { + var _external_struct = new ModelChangedEvent(); + + _external_struct.Current = (Efl.IModelConcrete) Efl.Eo.Globals.CreateWrapperFor(_internal_struct.Current); + + _external_struct.Previous = (Efl.IModelConcrete) Efl.Eo.Globals.CreateWrapperFor(_internal_struct.Previous); + return _external_struct; + } + + } + + #pragma warning restore CS1591 + +} + +} + diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_view_factory.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_view_factory.eo.cs new file mode 100755 index 000000000..6353b0570 --- /dev/null +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_view_factory.eo.cs @@ -0,0 +1,152 @@ +#define EFL_BETA +#pragma warning disable CS1591 +using System; +using System.Runtime.InteropServices; +using System.Collections.Generic; +using System.Linq; +using System.Threading; +using System.ComponentModel; +namespace Efl { + +namespace Ui { + +/// This class provide a utility function that class that wish to use should use. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +[Efl.Ui.ViewFactory.NativeMethods] +[Efl.Eo.BindingEntity] +public class ViewFactory : Efl.Eo.EoWrapper +{ + /// Pointer to the native class description. + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ViewFactory)) + { + return GetEflClassStatic(); + } + else + { + return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } + } + } + + [System.Runtime.InteropServices.DllImport("libefl.so.1")] internal static extern System.IntPtr + efl_ui_view_factory_class_get(); + /// Initializes a new instance of the class. + /// Parent instance. + public ViewFactory(Efl.Object parent= null + ) : base(efl_ui_view_factory_class_get(), parent) + { + FinishInstantiation(); + } + + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. + /// Tag struct storing the native handle of the object being constructed. + protected ViewFactory(ConstructingHandle ch) : base(ch) + { + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. + protected ViewFactory(Efl.Eo.Globals.WrappingHandle wh) : base(wh) + { + } + + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The Efl.Object parent of this instance. + protected ViewFactory(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) + { + } + + /// Create a UI object from the necessary properties in the specified model and generate the created event on the factory when the object is done building. This function must be use by all that need to create object. They should not use directly. + /// The factory to use for requesting the new object from and generating the created event onto. + /// Efl iterator providing the model to be associated to the new item. It should remain valid until the end of the function call. + /// Efl canvas + /// Created UI object + public static Eina.Future CreateWithEvent(Efl.Ui.IFactory factory, Eina.Iterator models, Efl.Gfx.IEntity parent) { + var _in_models = models.Handle; + var _ret_var = Efl.Ui.ViewFactory.NativeMethods.efl_ui_view_factory_create_with_event_ptr.Value.Delegate(factory, _in_models, parent); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + private static IntPtr GetEflClassStatic() + { + return Efl.Ui.ViewFactory.efl_ui_view_factory_class_get(); + } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods + { + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl); + /// Gets the list of Eo operations to override. + /// The list of Eo operations to be overload. + public override System.Collections.Generic.List GetEoOps(System.Type type) + { + var descs = new System.Collections.Generic.List(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.ViewFactory.efl_ui_view_factory_class_get(); + } + + #pragma warning disable CA1707, CS1591, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + private delegate Eina.Future efl_ui_view_factory_create_with_event_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.IFactory factory, System.IntPtr models, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity parent); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] + public delegate Eina.Future efl_ui_view_factory_create_with_event_api_delegate([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.IFactory factory, System.IntPtr models, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity parent); + + public static Efl.Eo.FunctionWrapper efl_ui_view_factory_create_with_event_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_view_factory_create_with_event"); + + private static Eina.Future create_with_event(System.IntPtr obj, System.IntPtr pd, Efl.Ui.IFactory factory, System.IntPtr models, Efl.Gfx.IEntity parent) + { + Eina.Log.Debug("function efl_ui_view_factory_create_with_event was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + var _in_models = new Eina.Iterator(models, false); + Eina.Future _ret_var = default( Eina.Future); + try + { + _ret_var = ViewFactory.CreateWithEvent(factory, _in_models, parent); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_view_factory_create_with_event_ptr.Value.Delegate(factory, models, parent); + } + } + + #pragma warning restore CA1707, CS1591, SA1300, SA1600 + +} +} +} + +} + +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiViewFactory_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_widget.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_widget.eo.cs old mode 100644 new mode 100755 index fa3174e12..54e6a54c0 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_widget.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_widget.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,6 +10,9 @@ namespace Efl { namespace Ui { +/// +/// +/// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Canvas object /// Showed region [Efl.Eo.BindingEntity] @@ -90,9 +94,9 @@ namespace Ui { /// (Since EFL 1.22) [Efl.Ui.Widget.NativeMethods] [Efl.Eo.BindingEntity] -public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, Efl.Access.IComponent, Efl.Access.IObject, Efl.Access.Widget.IAction, Efl.Ui.IDnd, Efl.Ui.IL10n, Efl.Ui.IPropertyBind, Efl.Ui.ISelection, Efl.Ui.IView, Efl.Ui.Focus.IObject +public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, Efl.Access.IComponent, Efl.Access.IObject, Efl.Access.Widget.IAction, Efl.Ui.IDnd, Efl.Ui.II18n, Efl.Ui.IL10n, Efl.Ui.IPropertyBind, Efl.Ui.ISelection, Efl.Ui.IView, Efl.Ui.Focus.IObject { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -124,7 +128,8 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Widget(ConstructingHandle ch) : base(ch) { @@ -190,7 +195,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event AtspiHighlightedEvt. + /// Method to raise event AtspiHighlightedEvt. public void OnAtspiHighlightedEvt(EventArgs e) { var key = "_EFL_UI_WIDGET_EVENT_ATSPI_HIGHLIGHTED"; @@ -241,7 +246,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event AtspiUnhighlightedEvt. + /// Method to raise event AtspiUnhighlightedEvt. public void OnAtspiUnhighlightedEvt(EventArgs e) { var key = "_EFL_UI_WIDGET_EVENT_ATSPI_UNHIGHLIGHTED"; @@ -294,7 +299,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event LanguageChangedEvt. + /// Method to raise event LanguageChangedEvt. public void OnLanguageChangedEvt(EventArgs e) { var key = "_EFL_UI_WIDGET_EVENT_LANGUAGE_CHANGED"; @@ -347,7 +352,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event AccessChangedEvt. + /// Method to raise event AccessChangedEvt. public void OnAccessChangedEvt(EventArgs e) { var key = "_EFL_UI_WIDGET_EVENT_ACCESS_CHANGED"; @@ -361,6 +366,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when property has changed + /// public event EventHandler PropertyChangedEvt { add @@ -400,7 +406,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event PropertyChangedEvt. + /// Method to raise event PropertyChangedEvt. public void OnPropertyChangedEvt(Efl.Access.IObjectPropertyChangedEvt_Args e) { var key = "_EFL_ACCESS_OBJECT_EVENT_PROPERTY_CHANGED"; @@ -422,6 +428,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } /// Called when children have changed + /// public event EventHandler ChildrenChangedEvt { add @@ -461,7 +468,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event ChildrenChangedEvt. + /// Method to raise event ChildrenChangedEvt. public void OnChildrenChangedEvt(Efl.Access.IObjectChildrenChangedEvt_Args e) { var key = "_EFL_ACCESS_OBJECT_EVENT_CHILDREN_CHANGED"; @@ -484,6 +491,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } /// Called when state has changed + /// public event EventHandler StateChangedEvt { add @@ -523,7 +531,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event StateChangedEvt. + /// Method to raise event StateChangedEvt. public void OnStateChangedEvt(Efl.Access.IObjectStateChangedEvt_Args e) { var key = "_EFL_ACCESS_OBJECT_EVENT_STATE_CHANGED"; @@ -546,6 +554,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } /// Called when boundaries have changed + /// public event EventHandler BoundsChangedEvt { add @@ -585,7 +594,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event BoundsChangedEvt. + /// Method to raise event BoundsChangedEvt. public void OnBoundsChangedEvt(Efl.Access.IObjectBoundsChangedEvt_Args e) { var key = "_EFL_ACCESS_OBJECT_EVENT_BOUNDS_CHANGED"; @@ -646,7 +655,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event VisibleDataChangedEvt. + /// Method to raise event VisibleDataChangedEvt. public void OnVisibleDataChangedEvt(EventArgs e) { var key = "_EFL_ACCESS_OBJECT_EVENT_VISIBLE_DATA_CHANGED"; @@ -660,6 +669,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// Called when active state of descendant has changed + /// public event EventHandler ActiveDescendantChangedEvt { add @@ -699,7 +709,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event ActiveDescendantChangedEvt. + /// Method to raise event ActiveDescendantChangedEvt. public void OnActiveDescendantChangedEvt(Efl.Access.IObjectActiveDescendantChangedEvt_Args e) { var key = "_EFL_ACCESS_OBJECT_EVENT_ACTIVE_DESCENDANT_CHANGED"; @@ -752,7 +762,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event AddedEvt. + /// Method to raise event AddedEvt. public void OnAddedEvt(EventArgs e) { var key = "_EFL_ACCESS_OBJECT_EVENT_ADDED"; @@ -804,7 +814,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event RemovedEvt. + /// Method to raise event RemovedEvt. public void OnRemovedEvt(EventArgs e) { var key = "_EFL_ACCESS_OBJECT_EVENT_REMOVED"; @@ -855,7 +865,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event MoveOutedEvt. + /// Method to raise event MoveOutedEvt. public void OnMoveOutedEvt(EventArgs e) { var key = "_EFL_ACCESS_OBJECT_EVENT_MOVE_OUTED"; @@ -906,7 +916,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event ReadingStateChangedEvt. + /// Method to raise event ReadingStateChangedEvt. public void OnReadingStateChangedEvt(EventArgs e) { var key = "_EFL_ACCESS_WIDGET_ACTION_EVENT_READING_STATE_CHANGED"; @@ -920,6 +930,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// accept drag data + /// public event EventHandler DragAcceptEvt { add @@ -959,7 +970,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event DragAcceptEvt. + /// Method to raise event DragAcceptEvt. public void OnDragAcceptEvt(Efl.Ui.IDndDragAcceptEvt_Args e) { var key = "_EFL_UI_DND_EVENT_DRAG_ACCEPT"; @@ -1019,7 +1030,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event DragDoneEvt. + /// Method to raise event DragDoneEvt. public void OnDragDoneEvt(EventArgs e) { var key = "_EFL_UI_DND_EVENT_DRAG_DONE"; @@ -1071,7 +1082,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event DragEnterEvt. + /// Method to raise event DragEnterEvt. public void OnDragEnterEvt(EventArgs e) { var key = "_EFL_UI_DND_EVENT_DRAG_ENTER"; @@ -1123,7 +1134,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event DragLeaveEvt. + /// Method to raise event DragLeaveEvt. public void OnDragLeaveEvt(EventArgs e) { var key = "_EFL_UI_DND_EVENT_DRAG_LEAVE"; @@ -1137,6 +1148,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } /// called when the drag object changes drag position + /// public event EventHandler DragPosEvt { add @@ -1176,7 +1188,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event DragPosEvt. + /// Method to raise event DragPosEvt. public void OnDragPosEvt(Efl.Ui.IDndDragPosEvt_Args e) { var key = "_EFL_UI_DND_EVENT_DRAG_POS"; @@ -1199,6 +1211,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } /// called when the drag object dropped on this object + /// public event EventHandler DragDropEvt { add @@ -1238,7 +1251,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event DragDropEvt. + /// Method to raise event DragDropEvt. public void OnDragDropEvt(Efl.Ui.IDndDragDropEvt_Args e) { var key = "_EFL_UI_DND_EVENT_DRAG_DROP"; @@ -1261,6 +1274,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } /// Event dispatched when a property on the object has changed due to an user interaction on the object that a model could be interested in. + /// public event EventHandler PropertiesChangedEvt { add @@ -1300,7 +1314,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event PropertiesChangedEvt. + /// Method to raise event PropertiesChangedEvt. public void OnPropertiesChangedEvt(Efl.Ui.IPropertyBindPropertiesChangedEvt_Args e) { var key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTIES_CHANGED"; @@ -1323,6 +1337,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } /// Event dispatched when a property on the object is bound to a model. This is useful to not overgenerate event. + /// public event EventHandler PropertyBoundEvt { add @@ -1362,7 +1377,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event PropertyBoundEvt. + /// Method to raise event PropertyBoundEvt. public void OnPropertyBoundEvt(Efl.Ui.IPropertyBindPropertyBoundEvt_Args e) { var key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTY_BOUND"; @@ -1384,6 +1399,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } /// Called when display server's selection has changed + /// public event EventHandler WmSelectionChangedEvt { add @@ -1423,7 +1439,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event WmSelectionChangedEvt. + /// Method to raise event WmSelectionChangedEvt. public void OnWmSelectionChangedEvt(Efl.Ui.ISelectionWmSelectionChangedEvt_Args e) { var key = "_EFL_UI_SELECTION_EVENT_WM_SELECTION_CHANGED"; @@ -1445,8 +1461,72 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, Marshal.FreeHGlobal(info); } } + /// Event dispatched when a new model is set. + /// + public event EventHandler ModelChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.IViewModelChangedEvt_Args args = new Efl.Ui.IViewModelChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_VIEW_EVENT_MODEL_CHANGED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_VIEW_EVENT_MODEL_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event ModelChangedEvt. + public void OnModelChangedEvt(Efl.Ui.IViewModelChangedEvt_Args e) + { + var key = "_EFL_UI_VIEW_EVENT_MODEL_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } /// Emitted if the focus state has changed. /// (Since EFL 1.22) + /// public event EventHandler FocusChangedEvt { add @@ -1486,7 +1566,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event FocusChangedEvt. + /// Method to raise event FocusChangedEvt. public void OnFocusChangedEvt(Efl.Ui.Focus.IObjectFocusChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_CHANGED"; @@ -1509,6 +1589,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } /// Emitted when a new manager is the parent for this object. /// (Since EFL 1.22) + /// public event EventHandler FocusManagerChangedEvt { add @@ -1548,7 +1629,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event FocusManagerChangedEvt. + /// Method to raise event FocusManagerChangedEvt. public void OnFocusManagerChangedEvt(Efl.Ui.Focus.IObjectFocusManagerChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_MANAGER_CHANGED"; @@ -1564,6 +1645,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } /// Emitted when a new logical parent should be used. /// (Since EFL 1.22) + /// public event EventHandler FocusParentChangedEvt { add @@ -1603,7 +1685,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event FocusParentChangedEvt. + /// Method to raise event FocusParentChangedEvt. public void OnFocusParentChangedEvt(Efl.Ui.Focus.IObjectFocusParentChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_PARENT_CHANGED"; @@ -1619,6 +1701,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } /// Emitted if child_focus has changed. /// (Since EFL 1.22) + /// public event EventHandler ChildFocusChangedEvt { add @@ -1658,7 +1741,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event ChildFocusChangedEvt. + /// Method to raise event ChildFocusChangedEvt. public void OnChildFocusChangedEvt(Efl.Ui.Focus.IObjectChildFocusChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_OBJECT_EVENT_CHILD_FOCUS_CHANGED"; @@ -1681,6 +1764,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } /// Emitted if focus geometry of this object has changed. /// (Since EFL 1.22) + /// public event EventHandler FocusGeometryChangedEvt { add @@ -1720,7 +1804,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } } - ///Method to raise event FocusGeometryChangedEvt. + /// Method to raise event FocusGeometryChangedEvt. public void OnFocusGeometryChangedEvt(Efl.Ui.Focus.IObjectFocusGeometryChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_GEOMETRY_CHANGED"; @@ -1757,7 +1841,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } } /// Returns the current cursor name. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The cursor name, defined either by the display system or the theme. virtual public System.String GetCursor() { var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_cursor_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); @@ -1766,7 +1852,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } /// Sets or unsets the current cursor. /// If cursor is null this function will reset the cursor to the default one. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The cursor name, defined either by the display system or the theme. /// true if successful. virtual public bool SetCursor(System.String cursor) { @@ -1775,7 +1863,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, return _ret_var; } /// Returns the current cursor style name. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// A specific style to use, eg. default, transparent, .... virtual public System.String GetCursorStyle() { var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_cursor_style_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); @@ -1783,7 +1873,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, return _ret_var; } /// Sets a style for the current cursor. Call after . - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// A specific style to use, eg. default, transparent, .... /// true if successful. virtual public bool SetCursorStyle(System.String style) { @@ -1792,7 +1884,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, return _ret_var; } /// Returns the current state of theme cursors search. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Whether to use theme cursors. virtual public bool GetCursorThemeSearchEnabled() { var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_cursor_theme_search_enabled_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); @@ -1800,7 +1894,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, return _ret_var; } /// Enables or disables theme cursors. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Whether to use theme cursors. /// true if successful. virtual public bool SetCursorThemeSearchEnabled(bool allow) { @@ -1893,7 +1989,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } /// Accessibility information. /// This is a replacement string to be read by the accessibility text-to-speech engine, if accessibility is enabled by configuration. This will take precedence over the default text for this object, which means for instance that the label of a button won't be read out loud, instead txt will be read out. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessibility text description. virtual public System.String GetAccessInfo() { var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_access_info_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); @@ -1902,7 +2000,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } /// Accessibility information. /// This is a replacement string to be read by the accessibility text-to-speech engine, if accessibility is enabled by configuration. This will take precedence over the default text for this object, which means for instance that the label of a button won't be read out loud, instead txt will be read out. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessibility text description. virtual public void SetAccessInfo(System.String txt) { Efl.Ui.Widget.NativeMethods.efl_ui_widget_access_info_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),txt); @@ -1928,7 +2028,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, return _ret_var; } /// Focus order property - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// FIXME virtual public uint GetFocusOrder() { var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_order_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); @@ -1937,7 +2039,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } /// A custom chain of objects to pass focus. /// Note: On focus cycle, only will be evaluated children of this container. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Chain of objects virtual public Eina.List GetFocusCustomChain() { var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_custom_chain_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); @@ -1945,7 +2049,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, return new Eina.List(_ret_var, false, false); } /// This function overwrites any previous custom focus chain within the list of objects. The previous list will be deleted and this list will be managed by elementary. After it is set, don't modify it. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Chain of objects to pass focus virtual public void SetFocusCustomChain(Eina.List objs) { var _in_objs = objs.Handle; @@ -1953,7 +2059,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, Eina.Error.RaiseIfUnhandledException(); } /// Current focused object in object tree. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Current focused or null, if there is no focused object. virtual public Efl.Canvas.Object GetFocusedObject() { var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_focused_object_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); @@ -1961,7 +2069,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, return _ret_var; } /// The widget's focus move policy. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Focus move policy virtual public Efl.Ui.Focus.MovePolicy GetFocusMovePolicy() { var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_move_policy_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); @@ -1969,14 +2079,18 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, return _ret_var; } /// The widget's focus move policy. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Focus move policy virtual public void SetFocusMovePolicy(Efl.Ui.Focus.MovePolicy policy) { Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_move_policy_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),policy); Eina.Error.RaiseIfUnhandledException(); } /// Control the widget's focus_move_policy mode setting. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// true to follow system focus move policy change, false otherwise virtual public bool GetFocusMovePolicyAutomatic() { var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_move_policy_automatic_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); @@ -1984,7 +2098,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, return _ret_var; } /// Control the widget's focus_move_policy mode setting. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// true to follow system focus move policy change, false otherwise virtual public void SetFocusMovePolicyAutomatic(bool automatic) { Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_move_policy_automatic_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),automatic); @@ -1998,16 +2114,16 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, /// EO event struct with an Efl.Input.Event as info. /// Source object where the event originated. Often same as this. /// true on success, false otherwise - virtual protected bool WidgetInputEventHandler(ref Efl.Event eo_event, Efl.Canvas.Object source) { - Efl.Event.NativeStruct _in_eo_event = eo_event; - var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_input_event_handler_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),ref _in_eo_event, source); + virtual protected bool WidgetInputEventHandler(Efl.Event eo_event, Efl.Canvas.Object source) { + var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_input_event_handler_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),eo_event, source); Eina.Error.RaiseIfUnhandledException(); - eo_event = _in_eo_event; - return _ret_var; + return _ret_var; } /// Hook function called when widget is activated through accessibility. /// This meant to be overridden by subclasses to support accessibility. This is an unstable API. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Type of activation. /// true on success, false otherwise virtual protected bool OnAccessActivate(Efl.Ui.Activate act) { @@ -2017,7 +2133,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } /// Hook function called when accessibility is changed on the widget. /// This meant to be overridden by subclasses to support accessibility. This is an unstable API. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// true if accessibility is enabled. virtual protected void UpdateOnAccess(bool enable) { Efl.Ui.Widget.NativeMethods.efl_ui_widget_on_access_update_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),enable); @@ -2075,25 +2193,33 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, return _ret_var; } /// Push scroll hold - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. virtual public void PushScrollHold() { Efl.Ui.Widget.NativeMethods.efl_ui_widget_scroll_hold_push_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } /// Pop scroller hold - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. virtual public void PopScrollHold() { Efl.Ui.Widget.NativeMethods.efl_ui_widget_scroll_hold_pop_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } /// Push scroller freeze - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. virtual public void PushScrollFreeze() { Efl.Ui.Widget.NativeMethods.efl_ui_widget_scroll_freeze_push_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } /// Pop scroller freeze - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. virtual public void PopScrollFreeze() { Efl.Ui.Widget.NativeMethods.efl_ui_widget_scroll_freeze_pop_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); @@ -2117,7 +2243,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, return _ret_var; } /// Set the next object with specific focus direction. - /// (Since EFL 1.8) + /// (Since EFL 1.8) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Focus next object /// Focus direction virtual public void SetFocusNextObject(Efl.Canvas.Object next, Efl.Ui.Focus.Direction dir) { @@ -2125,7 +2253,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, Eina.Error.RaiseIfUnhandledException(); } /// Get the next object with specific focus direction. - /// (Since EFL 1.8) + /// (Since EFL 1.8) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Focus direction /// Focus next object virtual public Efl.Canvas.Object GetFocusNextObject(Efl.Ui.Focus.Direction dir) { @@ -2134,7 +2264,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, return _ret_var; } /// Set the next object item with specific focus direction. - /// (Since EFL 1.16) + /// (Since EFL 1.16) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Focus next object item /// Focus direction virtual public void SetFocusNextItem(Efl.Ui.Widget next_item, Efl.Ui.Focus.Direction dir) { @@ -2142,7 +2274,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, Eina.Error.RaiseIfUnhandledException(); } /// Get the next object item with specific focus direction. - /// (Since EFL 1.16) + /// (Since EFL 1.16) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Focus direction /// Focus next object item virtual public Efl.Ui.Widget GetFocusNextItem(Efl.Ui.Focus.Direction dir) { @@ -2160,7 +2294,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, /// Note: If @"relative_child" equal to null or not in custom chain, the object will be added in begin. /// /// Note: On focus cycle, only will be evaluated children of this container. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The child to be added in custom chain. /// The relative object to position the child. virtual public void FocusCustomChainPrepend(Efl.Canvas.Object child, Efl.Canvas.Object relative_child) { @@ -2168,14 +2304,18 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, Eina.Error.RaiseIfUnhandledException(); } /// Give focus to next object with specific focus direction in object tree. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Direction to move the focus. virtual public void FocusCycle(Efl.Ui.Focus.Direction dir) { Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_cycle_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),dir); Eina.Error.RaiseIfUnhandledException(); } /// 'Virtual' function handling passing focus to sub-objects given a direction, in degrees. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Base object /// Degree /// Direction @@ -2188,7 +2328,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, return _ret_var; } /// 'Virtual' function which checks if handling of passing focus to sub-objects is supported by widget. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// true on success, false otherwise virtual public bool IsFocusNextManager() { var _ret_var = Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_next_manager_is_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); @@ -2196,7 +2338,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, return _ret_var; } /// Get focus list direction - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Base object /// Item list /// Data get function @@ -2212,13 +2356,17 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, return _ret_var; } /// Clear focused object - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. virtual public void ClearFocusedObject() { Efl.Ui.Widget.NativeMethods.efl_ui_widget_focused_object_clear_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } /// Go in focus direction - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Degree /// true on success, false otherwise virtual public bool FocusDirectionGo(double degree) { @@ -2227,7 +2375,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, return _ret_var; } /// Get next focus item - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Focus direction /// Next object /// Next item @@ -2239,33 +2389,43 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } /// Restore the focus state of the sub-tree. /// This API will restore the focus state of the sub-tree to the latest state. If a sub-tree is unfocused and wants to get back to the latest focus state, this API will be helpful. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. virtual public void FocusRestore() { Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_restore_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } /// Unset a custom focus chain on a given Elementary widget. /// Any focus chain previously set is removed entirely after this call. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. virtual public void UnsetFocusCustomChain() { Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_custom_chain_unset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } /// Steal focus - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Widget to steal focus from virtual public void FocusSteal(Efl.Ui.Widget item) { Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_steal_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),item); Eina.Error.RaiseIfUnhandledException(); } /// Handle hide focus - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. virtual public void FocusHideHandle() { Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_hide_handle_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } /// 'Virtual' function handling passing focus to sub-objects. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Focus direction /// Next object /// Next item @@ -2276,7 +2436,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, return _ret_var; } /// Get next item in focus list - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Item list /// Function type /// Focus direction @@ -2296,7 +2458,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, Eina.Error.RaiseIfUnhandledException(); } /// Get focus direction - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Base /// Degree /// Direction @@ -2309,7 +2473,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, return _ret_var; } /// Handle disable widget focus - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. virtual public void FocusDisabledHandle() { Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_disabled_handle_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); @@ -2318,7 +2484,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, /// Note: If @"relative_child" equal to null or not in custom chain, the object will be added in end. /// /// Note: On focus cycle, only will be evaluated children of this container. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The child to be added in custom chain. /// The relative object to position the child. virtual public void AppendFocusCustomChain(Efl.Canvas.Object child, Efl.Canvas.Object relative_child) { @@ -2326,7 +2494,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, Eina.Error.RaiseIfUnhandledException(); } /// No description supplied. - /// (Since EFL 1.18) + /// (Since EFL 1.18) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. virtual public void FocusReconfigure() { Efl.Ui.Widget.NativeMethods.efl_ui_widget_focus_reconfigure_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); @@ -2483,61 +2653,75 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, return _ret_var; } /// Highlights accessible widget. returns true if highlight grab has successed, false otherwise. - /// @if MOBILE @since_tizen 4.0 @elseif WEARABLE @since_tizen 3.0 @endif + /// if MOBILE since_tizen 4.0 elseif WEARABLE since_tizen 3.0 endif virtual public bool GrabHighlight() { var _ret_var = Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_highlight_grab_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Clears highlight of accessible widget. returns true if clear has successed, false otherwise. - /// @if MOBILE @since_tizen 4.0 @elseif WEARABLE @since_tizen 3.0 @endif + /// if MOBILE since_tizen 4.0 elseif WEARABLE since_tizen 3.0 endif virtual public bool ClearHighlight() { var _ret_var = Efl.Access.IComponentConcrete.NativeMethods.efl_access_component_highlight_clear_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Gets an localized string describing accessible object role name. + /// Gets an localized string describing accessible object role name. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Localized accessible object role name virtual public System.String GetLocalizedRoleName() { var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_localized_role_name_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Accessible name of the object. + /// Accessible name of the object. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible name virtual public System.String GetI18nName() { var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_i18n_name_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Accessible name of the object. + /// Accessible name of the object. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible name virtual public void SetI18nName(System.String i18n_name) { Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_i18n_name_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),i18n_name); Eina.Error.RaiseIfUnhandledException(); } /// Sets name information callback about widget. - /// @if WEARABLE @since_tizen 3.0 @endif + /// if WEARABLE since_tizen 3.0 endif + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// reading information callback virtual public void SetNameCb(Efl.Access.ReadingInfoCb name_cb, System.IntPtr data) { Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_name_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),name_cb, data); Eina.Error.RaiseIfUnhandledException(); } - /// Gets an all relations between accessible object and other accessible objects. + /// Gets an all relations between accessible object and other accessible objects. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible relation set virtual public Efl.Access.RelationSet GetRelationSet() { var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_relation_set_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// The role of the object in accessibility domain. + /// The role of the object in accessibility domain. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible role virtual public Efl.Access.Role GetRole() { var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_role_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Sets the role of the object in accessibility domain. + /// Sets the role of the object in accessibility domain. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible role virtual public void SetRole(Efl.Access.Role role) { Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_role_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),role); @@ -2557,9 +2741,11 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, Eina.Error.RaiseIfUnhandledException(); } /// Sets contextual information callback about widget. - /// @if WEARABLE @since_tizen 3.0 @endif + /// if WEARABLE since_tizen 3.0 endif + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The function called to provide the accessible description. - /// The data passed to @c description_cb. + /// The data passed to c description_cb. virtual public void SetDescriptionCb(Efl.Access.ReadingInfoCb description_cb, System.IntPtr data) { Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_description_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),description_cb, data); Eina.Error.RaiseIfUnhandledException(); @@ -2567,26 +2753,34 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, /// Sets gesture callback to give widget. /// Warning: Please do not abuse this API. The purpose of this API is to support special application such as screen-reader guidance. Before using this API, please check if there is another way. /// - /// @if WEARABLE @since_tizen 3.0 @endif + /// if WEARABLE since_tizen 3.0 endif + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. virtual public void SetGestureCb(Efl.Access.GestureCb gesture_cb, System.IntPtr data) { Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_gesture_cb_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),gesture_cb, data); Eina.Error.RaiseIfUnhandledException(); } - /// Gets object's accessible children. + /// Gets object's accessible children. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// List of widget's children virtual public Eina.List GetAccessChildren() { var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_access_children_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return new Eina.List(_ret_var, true, false); } - /// Gets human-readable string indentifying object accessibility role. + /// Gets human-readable string indentifying object accessibility role. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible role name virtual public System.String GetRoleName() { var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_role_name_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Gets key-value pairs indentifying object extra attributes. Must be free by a user. + /// Gets key-value pairs indentifying object extra attributes. Must be free by a user. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// List of object attributes, Must be freed by the user virtual public Eina.List GetAttributes() { var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_attributes_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); @@ -2594,7 +2788,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, return new Eina.List(_ret_var, true, true); } /// Gets reading information types of an accessible object. if no reading information is set, 0 is returned which means all four reading information types will be read on object highlight - /// @if WEARABLE @since_tizen 3.0 @endif + /// if WEARABLE since_tizen 3.0 endif /// Reading information types virtual public Efl.Access.ReadingInfoTypeMask GetReadingInfoType() { var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_reading_info_type_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); @@ -2602,60 +2796,55 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, return _ret_var; } /// Sets reading information of an accessible object. If set as 0, existing reading info will be deleted and by default all four reading information types like name, role, state and description will be read on object highlight - /// @if WEARABLE @since_tizen 3.0 @endif + /// if WEARABLE since_tizen 3.0 endif /// Reading information types virtual public void SetReadingInfoType(Efl.Access.ReadingInfoTypeMask reading_info) { Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_reading_info_type_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),reading_info); Eina.Error.RaiseIfUnhandledException(); } - /// Gets index of the child in parent's children list. + /// Gets index of the child in parent's children list. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Index in children list virtual public int GetIndexInParent() { var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_index_in_parent_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Gets contextual information about object. + /// Gets contextual information about object. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible contextual information virtual public System.String GetDescription() { var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_description_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Sets widget contextual information. + /// Sets widget contextual information. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible contextual information virtual public void SetDescription(System.String description) { Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_description_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),description); Eina.Error.RaiseIfUnhandledException(); } - /// Gets set describing object accessible states. + /// Gets set describing object accessible states. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessible state set virtual public Efl.Access.StateSet GetStateSet() { var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_state_set_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Gets highlightable of given widget. - /// @if WEARABLE @since_tizen 3.0 @endif - /// If @c true, the object is highlightable. - virtual public bool GetCanHighlight() { - var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_can_highlight_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Sets highlightable to given widget. - /// @if WEARABLE @since_tizen 3.0 @endif - /// If @c true, the object is highlightable. - virtual public void SetCanHighlight(bool can_highlight) { - Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_can_highlight_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),can_highlight); - Eina.Error.RaiseIfUnhandledException(); - } /// The translation domain of "name" and "description" properties. /// Translation domain should be set if the application wants to support i18n for accessibility "name" and "description" properties. /// /// When translation domain is set, values of "name" and "description" properties will be translated with the dgettext function using the current translation domain as the "domainname" parameter. /// - /// It is the application developer's responsibility to ensure that translation files are loaded and bound to the translation domain when accessibility is enabled. + /// It is the application developer's responsibility to ensure that translation files are loaded and bound to the translation domain when accessibility is enabled. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Translation domain virtual public System.String GetTranslationDomain() { var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_translation_domain_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); @@ -2667,19 +2856,38 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, /// /// When translation domain is set, values of "name" and "description" properties will be translated with the dgettext function using the current translation domain as the "domainname" parameter. /// - /// It is the application developer's responsibility to ensure that translation files are loaded and bound to the translation domain when accessibility is enabled. + /// It is the application developer's responsibility to ensure that translation files are loaded and bound to the translation domain when accessibility is enabled. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Translation domain virtual public void SetTranslationDomain(System.String domain) { Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_translation_domain_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),domain); Eina.Error.RaiseIfUnhandledException(); } - /// Get root object of accessible object hierarchy + /// Get root object of accessible object hierarchy + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Root object public static Efl.Object GetAccessRoot() { var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_access_root_get_ptr.Value.Delegate(); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } + /// Gets highlightable of given widget. + /// if WEARABLE since_tizen 3.0 endif + /// If c true, the object is highlightable. + virtual public bool GetCanHighlight() { + var _ret_var = Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_can_highlight_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Sets highlightable to given widget. + /// if WEARABLE since_tizen 3.0 endif + /// If c true, the object is highlightable. + virtual public void SetCanHighlight(bool can_highlight) { + Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_can_highlight_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),can_highlight); + Eina.Error.RaiseIfUnhandledException(); + } /// Handles gesture on given widget. virtual public bool GestureDo(Efl.Access.GestureInfo gesture_info) { Efl.Access.GestureInfo.NativeStruct _in_gesture_info = gesture_info; @@ -2688,7 +2896,7 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, return _ret_var; } /// Add key-value pair identifying object extra attribute - /// @if WEARABLE @since_tizen 3.0 @endif + /// if WEARABLE since_tizen 3.0 endif /// The string key to give extra information /// The string value to give extra information virtual public void AppendAttribute(System.String key, System.String value) { @@ -2706,7 +2914,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_attributes_clear_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } - /// Register accessibility event listener + /// Register accessibility event listener + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Callback /// Data /// Event handler @@ -2715,13 +2925,17 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, Eina.Error.RaiseIfUnhandledException(); return _ret_var; } - /// Deregister accessibility event listener + /// Deregister accessibility event listener + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Event handler public static void DelEventHandler(Efl.Access.Event.Handler handler) { Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_event_handler_del_ptr.Value.Delegate(handler); Eina.Error.RaiseIfUnhandledException(); } - /// Emit event + /// Emit event + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Accessibility object. /// Accessibility event type. /// Accessibility event details. @@ -2735,7 +2949,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, /// /// Relationships can be queried by Assistive Technology clients to provide customized feedback, improving overall user experience. /// - /// Relationship_append API is asymmetric, which means that appending, for example, relation EFL_ACCESS_RELATION_TYPE_FLOWS_TO from object A to B, do NOT append relation EFL_ACCESS_RELATION_TYPE_FLOWS_FROM from object B to object A. + /// Relationship_append API is asymmetric, which means that appending, for example, relation EFL_ACCESS_RELATION_TYPE_FLOWS_TO from object A to B, do NOT append relation EFL_ACCESS_RELATION_TYPE_FLOWS_FROM from object B to object A. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Relation type /// Object to relate to /// true if relationship was successfully appended, false otherwise @@ -2745,14 +2961,18 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, return _ret_var; } /// Removes the relationship between two accessible objects. - /// If relation_object is NULL function removes all relations of the given type. + /// If relation_object is NULL function removes all relations of the given type. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// Relation type /// Object to remove relation from virtual public void RelationshipRemove(Efl.Access.RelationType type, Efl.Access.IObject relation_object) { Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_relationship_remove_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),type, relation_object); Eina.Error.RaiseIfUnhandledException(); } - /// Removes all relationships in accessible object. + /// Removes all relationships in accessible object. + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. virtual public void ClearRelationships() { Efl.Access.IObjectConcrete.NativeMethods.efl_access_object_relationships_clear_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); @@ -2810,6 +3030,53 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, Efl.Ui.IDndConcrete.NativeMethods.efl_ui_dnd_drop_target_del_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),format, seat); Eina.Error.RaiseIfUnhandledException(); } + /// Whether this object should be mirrored. + /// If mirrored, an object is in RTL (right to left) mode instead of LTR (left to right). + /// true for RTL, false for LTR (default). + virtual public bool GetMirrored() { + var _ret_var = Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Whether this object should be mirrored. + /// If mirrored, an object is in RTL (right to left) mode instead of LTR (left to right). + /// true for RTL, false for LTR (default). + virtual public void SetMirrored(bool rtl) { + Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),rtl); + Eina.Error.RaiseIfUnhandledException(); + } + /// Whether the property should be set automatically. + /// If enabled, the system or application configuration will be used to set the value of . + /// + /// This property may be implemented by high-level widgets (in Efl.Ui) but not by low-level widgets (in ) as the configuration should affect only high-level widgets. + /// Whether the widget uses automatic mirroring + virtual public bool GetMirroredAutomatic() { + var _ret_var = Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_automatic_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Whether the property should be set automatically. + /// If enabled, the system or application configuration will be used to set the value of . + /// + /// This property may be implemented by high-level widgets (in Efl.Ui) but not by low-level widgets (in ) as the configuration should affect only high-level widgets. + /// Whether the widget uses automatic mirroring + virtual public void SetMirroredAutomatic(bool automatic) { + Efl.Ui.II18nConcrete.NativeMethods.efl_ui_mirrored_automatic_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),automatic); + Eina.Error.RaiseIfUnhandledException(); + } + /// Gets the language for this object. + /// The current language. + virtual public System.String GetLanguage() { + var _ret_var = Efl.Ui.II18nConcrete.NativeMethods.efl_ui_language_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Sets the language for this object. + /// The current language. + virtual public void SetLanguage(System.String language) { + Efl.Ui.II18nConcrete.NativeMethods.efl_ui_language_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),language); + Eina.Error.RaiseIfUnhandledException(); + } /// A unique string to be translated. /// Often this will be a human-readable string (e.g. in English) but it can also be a unique string identifier that must then be translated to the current locale with dgettext() or any similar mechanism. /// @@ -2987,7 +3254,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, /// This is the cursor that will be displayed when mouse is over the object. The object can have only one cursor set to it so if is called twice for an object, the previous set will be unset. /// /// If using X cursors, a definition of all the valid cursor names is listed on Elementary_Cursors.h. If an invalid name is set the default cursor will be used. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// The cursor name, defined either by the display system or the theme. public System.String Cursor { get { return GetCursor(); } @@ -2995,7 +3264,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } /// A different style for the cursor. /// This only makes sense if theme cursors are used. The cursor should be set with first before setting its style with this property. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// A specific style to use, eg. default, transparent, .... public System.String CursorStyle { get { return GetCursorStyle(); } @@ -3003,7 +3274,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } /// Whether the cursor may be looked in the theme or not. /// If false, the cursor may only come from the render engine, i.e. from the display manager. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Whether to use theme cursors. public bool CursorThemeSearchEnabled { get { return GetCursorThemeSearchEnabled(); } @@ -3058,7 +3331,9 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } /// Accessibility information. /// This is a replacement string to be read by the accessibility text-to-speech engine, if accessibility is enabled by configuration. This will take precedence over the default text for this object, which means for instance that the label of a button won't be read out loud, instead txt will be read out. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Accessibility text description. public System.String AccessInfo { get { return GetAccessInfo(); } @@ -3081,34 +3356,44 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, get { return GetFocusHighlightGeometry(); } } /// Focus order property - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// FIXME public uint FocusOrder { get { return GetFocusOrder(); } } /// A custom chain of objects to pass focus. /// Note: On focus cycle, only will be evaluated children of this container. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Chain of objects to pass focus public Eina.List FocusCustomChain { get { return GetFocusCustomChain(); } set { SetFocusCustomChain(value); } } /// Current focused object in object tree. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Current focused or null, if there is no focused object. public Efl.Canvas.Object FocusedObject { get { return GetFocusedObject(); } } /// The widget's focus move policy. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Focus move policy public Efl.Ui.Focus.MovePolicy FocusMovePolicy { get { return GetFocusMovePolicy(); } set { SetFocusMovePolicy(value); } } /// Control the widget's focus_move_policy mode setting. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// true to follow system focus move policy change, false otherwise public bool FocusMovePolicyAutomatic { get { return GetFocusMovePolicyAutomatic(); } @@ -3124,23 +3409,60 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, public int ZOrder { get { return GetZOrder(); } } - /// Gets an localized string describing accessible object role name. + /// Position of accessible widget. + /// X coordinate + public (int, int) ScreenPosition { + get { + int _out_x = default(int); + int _out_y = default(int); + GetScreenPosition(out _out_x,out _out_y); + return (_out_x,_out_y); + } + set { SetScreenPosition( value.Item1, value.Item2); } + } + /// Gets position of socket offset. + public (int, int) SocketOffset { + get { + int _out_x = default(int); + int _out_y = default(int); + GetSocketOffset(out _out_x,out _out_y); + return (_out_x,_out_y); + } + set { SetSocketOffset( value.Item1, value.Item2); } + } + /// Gets an localized string describing accessible object role name. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Localized accessible object role name public System.String LocalizedRoleName { get { return GetLocalizedRoleName(); } } - /// Accessible name of the object. + /// Accessible name of the object. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Accessible name public System.String I18nName { get { return GetI18nName(); } set { SetI18nName(value); } } - /// Gets an all relations between accessible object and other accessible objects. + /// Sets name information callback about widget. + /// if WEARABLE since_tizen 3.0 endif + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. + /// reading information callback + public (Efl.Access.ReadingInfoCb, System.IntPtr) NameCb { + set { SetNameCb( value.Item1, value.Item2); } + } + /// Gets an all relations between accessible object and other accessible objects. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Accessible relation set public Efl.Access.RelationSet RelationSet { get { return GetRelationSet(); } } - /// The role of the object in accessibility domain. + /// The role of the object in accessibility domain. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Accessible role public Efl.Access.Role Role { get { return GetRole(); } @@ -3152,72 +3474,127 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, get { return GetAccessParent(); } set { SetAccessParent(value); } } - /// Gets object's accessible children. + /// Sets contextual information callback about widget. + /// if WEARABLE since_tizen 3.0 endif + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. + /// The function called to provide the accessible description. + public (Efl.Access.ReadingInfoCb, System.IntPtr) DescriptionCb { + set { SetDescriptionCb( value.Item1, value.Item2); } + } + /// Sets gesture callback to give widget. + /// Warning: Please do not abuse this API. The purpose of this API is to support special application such as screen-reader guidance. Before using this API, please check if there is another way. + /// + /// if WEARABLE since_tizen 3.0 endif + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. + public (Efl.Access.GestureCb, System.IntPtr) GestureCb { + set { SetGestureCb( value.Item1, value.Item2); } + } + /// Gets object's accessible children. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// List of widget's children public Eina.List AccessChildren { get { return GetAccessChildren(); } } - /// Gets human-readable string indentifying object accessibility role. + /// Gets human-readable string indentifying object accessibility role. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Accessible role name public System.String RoleName { get { return GetRoleName(); } } - /// Gets key-value pairs indentifying object extra attributes. Must be free by a user. + /// Gets key-value pairs indentifying object extra attributes. Must be free by a user. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// List of object attributes, Must be freed by the user public Eina.List Attributes { get { return GetAttributes(); } } /// Gets reading information types of an accessible object. if no reading information is set, 0 is returned which means all four reading information types will be read on object highlight - /// @if WEARABLE @since_tizen 3.0 @endif + /// if WEARABLE since_tizen 3.0 endif /// Reading information types public Efl.Access.ReadingInfoTypeMask ReadingInfoType { get { return GetReadingInfoType(); } set { SetReadingInfoType(value); } } - /// Gets index of the child in parent's children list. + /// Gets index of the child in parent's children list. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Index in children list public int IndexInParent { get { return GetIndexInParent(); } } - /// Gets contextual information about object. + /// Gets contextual information about object. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Accessible contextual information public System.String Description { get { return GetDescription(); } set { SetDescription(value); } } - /// Gets set describing object accessible states. + /// Gets set describing object accessible states. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Accessible state set public Efl.Access.StateSet StateSet { get { return GetStateSet(); } } - /// Gets highlightable of given widget. - /// @if WEARABLE @since_tizen 3.0 @endif - /// If @c true, the object is highlightable. - public bool CanHighlight { - get { return GetCanHighlight(); } - set { SetCanHighlight(value); } - } /// The translation domain of "name" and "description" properties. /// Translation domain should be set if the application wants to support i18n for accessibility "name" and "description" properties. /// /// When translation domain is set, values of "name" and "description" properties will be translated with the dgettext function using the current translation domain as the "domainname" parameter. /// - /// It is the application developer's responsibility to ensure that translation files are loaded and bound to the translation domain when accessibility is enabled. + /// It is the application developer's responsibility to ensure that translation files are loaded and bound to the translation domain when accessibility is enabled. + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Translation domain public System.String TranslationDomain { get { return GetTranslationDomain(); } set { SetTranslationDomain(value); } } - /// Get root object of accessible object hierarchy + /// Get root object of accessible object hierarchy + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// Root object public static Efl.Object AccessRoot { get { return GetAccessRoot(); } } - /// Elementary actions - /// NULL-terminated array of Efl.Access.Action_Data. + /// Gets highlightable of given widget. + /// if WEARABLE since_tizen 3.0 endif + /// If c true, the object is highlightable. + public bool CanHighlight { + get { return GetCanHighlight(); } + set { SetCanHighlight(value); } + } + /// Elementary actions + /// NULL-terminated array of Efl.Access.Action_Data. public Efl.Access.ActionData ElmActions { get { return GetElmActions(); } } + /// Whether this object should be mirrored. + /// If mirrored, an object is in RTL (right to left) mode instead of LTR (left to right). + /// true for RTL, false for LTR (default). + public bool Mirrored { + get { return GetMirrored(); } + set { SetMirrored(value); } + } + /// Whether the property should be set automatically. + /// If enabled, the system or application configuration will be used to set the value of . + /// + /// This property may be implemented by high-level widgets (in Efl.Ui) but not by low-level widgets (in ) as the configuration should affect only high-level widgets. + /// Whether the widget uses automatic mirroring + public bool MirroredAutomatic { + get { return GetMirroredAutomatic(); } + set { SetMirroredAutomatic(value); } + } + /// The (human) language for this object. + /// The current language. + public System.String Language { + get { return GetLanguage(); } + set { SetLanguage(value); } + } /// Model that is/will be /// Efl model public Efl.IModel Model { @@ -4322,44 +4699,44 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_state_set_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_state_set_get_static_delegate) }); } - if (efl_access_object_can_highlight_get_static_delegate == null) + if (efl_access_object_translation_domain_get_static_delegate == null) { - efl_access_object_can_highlight_get_static_delegate = new efl_access_object_can_highlight_get_delegate(can_highlight_get); + efl_access_object_translation_domain_get_static_delegate = new efl_access_object_translation_domain_get_delegate(translation_domain_get); } - if (methods.FirstOrDefault(m => m.Name == "GetCanHighlight") != null) + if (methods.FirstOrDefault(m => m.Name == "GetTranslationDomain") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_can_highlight_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_can_highlight_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_translation_domain_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_translation_domain_get_static_delegate) }); } - if (efl_access_object_can_highlight_set_static_delegate == null) + if (efl_access_object_translation_domain_set_static_delegate == null) { - efl_access_object_can_highlight_set_static_delegate = new efl_access_object_can_highlight_set_delegate(can_highlight_set); + efl_access_object_translation_domain_set_static_delegate = new efl_access_object_translation_domain_set_delegate(translation_domain_set); } - if (methods.FirstOrDefault(m => m.Name == "SetCanHighlight") != null) + if (methods.FirstOrDefault(m => m.Name == "SetTranslationDomain") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_can_highlight_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_can_highlight_set_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_translation_domain_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_translation_domain_set_static_delegate) }); } - if (efl_access_object_translation_domain_get_static_delegate == null) + if (efl_access_object_can_highlight_get_static_delegate == null) { - efl_access_object_translation_domain_get_static_delegate = new efl_access_object_translation_domain_get_delegate(translation_domain_get); + efl_access_object_can_highlight_get_static_delegate = new efl_access_object_can_highlight_get_delegate(can_highlight_get); } - if (methods.FirstOrDefault(m => m.Name == "GetTranslationDomain") != null) + if (methods.FirstOrDefault(m => m.Name == "GetCanHighlight") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_translation_domain_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_translation_domain_get_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_can_highlight_get"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_can_highlight_get_static_delegate) }); } - if (efl_access_object_translation_domain_set_static_delegate == null) + if (efl_access_object_can_highlight_set_static_delegate == null) { - efl_access_object_translation_domain_set_static_delegate = new efl_access_object_translation_domain_set_delegate(translation_domain_set); + efl_access_object_can_highlight_set_static_delegate = new efl_access_object_can_highlight_set_delegate(can_highlight_set); } - if (methods.FirstOrDefault(m => m.Name == "SetTranslationDomain") != null) + if (methods.FirstOrDefault(m => m.Name == "SetCanHighlight") != null) { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_translation_domain_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_translation_domain_set_static_delegate) }); + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_access_object_can_highlight_set"), func = Marshal.GetFunctionPointerForDelegate(efl_access_object_can_highlight_set_static_delegate) }); } if (efl_access_object_gesture_do_static_delegate == null) @@ -4502,6 +4879,66 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_dnd_drop_target_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_dnd_drop_target_del_static_delegate) }); } + if (efl_ui_mirrored_get_static_delegate == null) + { + efl_ui_mirrored_get_static_delegate = new efl_ui_mirrored_get_delegate(mirrored_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetMirrored") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_get_static_delegate) }); + } + + if (efl_ui_mirrored_set_static_delegate == null) + { + efl_ui_mirrored_set_static_delegate = new efl_ui_mirrored_set_delegate(mirrored_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetMirrored") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_set_static_delegate) }); + } + + if (efl_ui_mirrored_automatic_get_static_delegate == null) + { + efl_ui_mirrored_automatic_get_static_delegate = new efl_ui_mirrored_automatic_get_delegate(mirrored_automatic_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetMirroredAutomatic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_automatic_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_automatic_get_static_delegate) }); + } + + if (efl_ui_mirrored_automatic_set_static_delegate == null) + { + efl_ui_mirrored_automatic_set_static_delegate = new efl_ui_mirrored_automatic_set_delegate(mirrored_automatic_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetMirroredAutomatic") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_mirrored_automatic_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_mirrored_automatic_set_static_delegate) }); + } + + if (efl_ui_language_get_static_delegate == null) + { + efl_ui_language_get_static_delegate = new efl_ui_language_get_delegate(language_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetLanguage") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_language_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_language_get_static_delegate) }); + } + + if (efl_ui_language_set_static_delegate == null) + { + efl_ui_language_set_static_delegate = new efl_ui_language_set_delegate(language_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetLanguage") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_language_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_language_set_static_delegate) }); + } + if (efl_ui_l10n_text_get_static_delegate == null) { efl_ui_l10n_text_get_static_delegate = new efl_ui_l10n_text_get_delegate(l10n_text_get); @@ -5680,24 +6117,23 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, private static efl_ui_widget_focus_move_policy_automatic_set_delegate efl_ui_widget_focus_move_policy_automatic_set_static_delegate; [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_ui_widget_input_event_handler_delegate(System.IntPtr obj, System.IntPtr pd, ref Efl.Event.NativeStruct eo_event, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object source); + private delegate bool efl_ui_widget_input_event_handler_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Event.NativeStruct eo_event, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object source); [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_ui_widget_input_event_handler_api_delegate(System.IntPtr obj, ref Efl.Event.NativeStruct eo_event, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object source); + public delegate bool efl_ui_widget_input_event_handler_api_delegate(System.IntPtr obj, Efl.Event.NativeStruct eo_event, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object source); public static Efl.Eo.FunctionWrapper efl_ui_widget_input_event_handler_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_input_event_handler"); - private static bool widget_input_event_handler(System.IntPtr obj, System.IntPtr pd, ref Efl.Event.NativeStruct eo_event, Efl.Canvas.Object source) + private static bool widget_input_event_handler(System.IntPtr obj, System.IntPtr pd, Efl.Event.NativeStruct eo_event, Efl.Canvas.Object source) { Eina.Log.Debug("function efl_ui_widget_input_event_handler was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - Efl.Event _in_eo_event = eo_event; - bool _ret_var = default(bool); + bool _ret_var = default(bool); try { - _ret_var = ((Widget)ws.Target).WidgetInputEventHandler(ref _in_eo_event, source); + _ret_var = ((Widget)ws.Target).WidgetInputEventHandler(eo_event, source); } catch (Exception e) { @@ -5705,13 +6141,12 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - eo_event = _in_eo_event; - return _ret_var; + return _ret_var; } else { - return efl_ui_widget_input_event_handler_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref eo_event, source); + return efl_ui_widget_input_event_handler_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), eo_event, source); } } @@ -8463,24 +8898,24 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, private static efl_access_object_state_set_get_delegate efl_access_object_state_set_get_static_delegate; - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_access_object_can_highlight_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_access_object_translation_domain_get_delegate(System.IntPtr obj, System.IntPtr pd); - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_access_object_can_highlight_get_api_delegate(System.IntPtr obj); + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_access_object_translation_domain_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_can_highlight_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_can_highlight_get"); + public static Efl.Eo.FunctionWrapper efl_access_object_translation_domain_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_translation_domain_get"); - private static bool can_highlight_get(System.IntPtr obj, System.IntPtr pd) + private static System.String translation_domain_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function efl_access_object_can_highlight_get was called"); + Eina.Log.Debug("function efl_access_object_translation_domain_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - bool _ret_var = default(bool); + System.String _ret_var = default(System.String); try { - _ret_var = ((Widget)ws.Target).GetCanHighlight(); + _ret_var = ((Widget)ws.Target).GetTranslationDomain(); } catch (Exception e) { @@ -8493,30 +8928,30 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } else { - return efl_access_object_can_highlight_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + return efl_access_object_translation_domain_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static efl_access_object_can_highlight_get_delegate efl_access_object_can_highlight_get_static_delegate; + private static efl_access_object_translation_domain_get_delegate efl_access_object_translation_domain_get_static_delegate; - private delegate void efl_access_object_can_highlight_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_highlight); + private delegate void efl_access_object_translation_domain_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); - public delegate void efl_access_object_can_highlight_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_highlight); + public delegate void efl_access_object_translation_domain_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); - public static Efl.Eo.FunctionWrapper efl_access_object_can_highlight_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_can_highlight_set"); + public static Efl.Eo.FunctionWrapper efl_access_object_translation_domain_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_translation_domain_set"); - private static void can_highlight_set(System.IntPtr obj, System.IntPtr pd, bool can_highlight) + private static void translation_domain_set(System.IntPtr obj, System.IntPtr pd, System.String domain) { - Eina.Log.Debug("function efl_access_object_can_highlight_set was called"); + Eina.Log.Debug("function efl_access_object_translation_domain_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { - ((Widget)ws.Target).SetCanHighlight(can_highlight); + ((Widget)ws.Target).SetTranslationDomain(domain); } catch (Exception e) { @@ -8528,30 +8963,30 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } else { - efl_access_object_can_highlight_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_highlight); + efl_access_object_translation_domain_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), domain); } } - private static efl_access_object_can_highlight_set_delegate efl_access_object_can_highlight_set_static_delegate; + private static efl_access_object_translation_domain_set_delegate efl_access_object_translation_domain_set_static_delegate; - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - private delegate System.String efl_access_object_translation_domain_get_delegate(System.IntPtr obj, System.IntPtr pd); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Object efl_access_object_access_root_get_delegate(); - [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] - public delegate System.String efl_access_object_translation_domain_get_api_delegate(System.IntPtr obj); + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Object efl_access_object_access_root_get_api_delegate(); - public static Efl.Eo.FunctionWrapper efl_access_object_translation_domain_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_translation_domain_get"); + public static Efl.Eo.FunctionWrapper efl_access_object_access_root_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_access_root_get"); - private static System.String translation_domain_get(System.IntPtr obj, System.IntPtr pd) + private static Efl.Object access_root_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function efl_access_object_translation_domain_get was called"); + Eina.Log.Debug("function efl_access_object_access_root_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - System.String _ret_var = default(System.String); + Efl.Object _ret_var = default(Efl.Object); try { - _ret_var = ((Widget)ws.Target).GetTranslationDomain(); + _ret_var = Widget.GetAccessRoot(); } catch (Exception e) { @@ -8564,30 +8999,28 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } else { - return efl_access_object_translation_domain_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + return efl_access_object_access_root_get_ptr.Value.Delegate(); } } - private static efl_access_object_translation_domain_get_delegate efl_access_object_translation_domain_get_static_delegate; - - - private delegate void efl_access_object_translation_domain_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_access_object_can_highlight_get_delegate(System.IntPtr obj, System.IntPtr pd); - - public delegate void efl_access_object_translation_domain_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String domain); + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_access_object_can_highlight_get_api_delegate(System.IntPtr obj); - public static Efl.Eo.FunctionWrapper efl_access_object_translation_domain_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_translation_domain_set"); + public static Efl.Eo.FunctionWrapper efl_access_object_can_highlight_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_can_highlight_get"); - private static void translation_domain_set(System.IntPtr obj, System.IntPtr pd, System.String domain) + private static bool can_highlight_get(System.IntPtr obj, System.IntPtr pd) { - Eina.Log.Debug("function efl_access_object_translation_domain_set was called"); + Eina.Log.Debug("function efl_access_object_can_highlight_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - + bool _ret_var = default(bool); try { - ((Widget)ws.Target).SetTranslationDomain(domain); + _ret_var = ((Widget)ws.Target).GetCanHighlight(); } catch (Exception e) { @@ -8595,34 +9028,35 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - + return _ret_var; + } else { - efl_access_object_translation_domain_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), domain); + return efl_access_object_can_highlight_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } - private static efl_access_object_translation_domain_set_delegate efl_access_object_translation_domain_set_static_delegate; + private static efl_access_object_can_highlight_get_delegate efl_access_object_can_highlight_get_static_delegate; - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Object efl_access_object_access_root_get_delegate(); + + private delegate void efl_access_object_can_highlight_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_highlight); - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Object efl_access_object_access_root_get_api_delegate(); + + public delegate void efl_access_object_can_highlight_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_highlight); - public static Efl.Eo.FunctionWrapper efl_access_object_access_root_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_access_root_get"); + public static Efl.Eo.FunctionWrapper efl_access_object_can_highlight_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_access_object_can_highlight_set"); - private static Efl.Object access_root_get(System.IntPtr obj, System.IntPtr pd) + private static void can_highlight_set(System.IntPtr obj, System.IntPtr pd, bool can_highlight) { - Eina.Log.Debug("function efl_access_object_access_root_get was called"); + Eina.Log.Debug("function efl_access_object_can_highlight_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - Efl.Object _ret_var = default(Efl.Object); + try { - _ret_var = Widget.GetAccessRoot(); + ((Widget)ws.Target).SetCanHighlight(can_highlight); } catch (Exception e) { @@ -8630,15 +9064,16 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } - return _ret_var; - + } else { - return efl_access_object_access_root_get_ptr.Value.Delegate(); + efl_access_object_can_highlight_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_highlight); } } + private static efl_access_object_can_highlight_set_delegate efl_access_object_can_highlight_set_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_access_object_gesture_do_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Access.GestureInfo.NativeStruct gesture_info); @@ -9235,6 +9670,219 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, private static efl_ui_dnd_drop_target_del_delegate efl_ui_dnd_drop_target_del_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_mirrored_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_mirrored_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_mirrored_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_get"); + + private static bool mirrored_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_mirrored_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)ws.Target).GetMirrored(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_mirrored_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_mirrored_get_delegate efl_ui_mirrored_get_static_delegate; + + + private delegate void efl_ui_mirrored_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool rtl); + + + public delegate void efl_ui_mirrored_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool rtl); + + public static Efl.Eo.FunctionWrapper efl_ui_mirrored_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_set"); + + private static void mirrored_set(System.IntPtr obj, System.IntPtr pd, bool rtl) + { + Eina.Log.Debug("function efl_ui_mirrored_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Widget)ws.Target).SetMirrored(rtl); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_mirrored_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rtl); + } + } + + private static efl_ui_mirrored_set_delegate efl_ui_mirrored_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_mirrored_automatic_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_mirrored_automatic_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_mirrored_automatic_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_automatic_get"); + + private static bool mirrored_automatic_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_mirrored_automatic_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((Widget)ws.Target).GetMirroredAutomatic(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_mirrored_automatic_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_mirrored_automatic_get_delegate efl_ui_mirrored_automatic_get_static_delegate; + + + private delegate void efl_ui_mirrored_automatic_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool automatic); + + + public delegate void efl_ui_mirrored_automatic_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool automatic); + + public static Efl.Eo.FunctionWrapper efl_ui_mirrored_automatic_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_mirrored_automatic_set"); + + private static void mirrored_automatic_set(System.IntPtr obj, System.IntPtr pd, bool automatic) + { + Eina.Log.Debug("function efl_ui_mirrored_automatic_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Widget)ws.Target).SetMirroredAutomatic(automatic); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_mirrored_automatic_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), automatic); + } + } + + private static efl_ui_mirrored_automatic_set_delegate efl_ui_mirrored_automatic_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_language_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_language_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_language_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_language_get"); + + private static System.String language_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_language_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((Widget)ws.Target).GetLanguage(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_language_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_language_get_delegate efl_ui_language_get_static_delegate; + + + private delegate void efl_ui_language_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String language); + + + public delegate void efl_ui_language_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String language); + + public static Efl.Eo.FunctionWrapper efl_ui_language_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_language_set"); + + private static void language_set(System.IntPtr obj, System.IntPtr pd, System.String language) + { + Eina.Log.Debug("function efl_ui_language_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((Widget)ws.Target).SetLanguage(language); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_language_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), language); + } + } + + private static efl_ui_language_set_delegate efl_ui_language_set_static_delegate; + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_ui_l10n_text_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String domain); @@ -9957,6 +10605,150 @@ public abstract class Widget : Efl.Canvas.Group, Efl.IPart, Efl.Access.IAction, } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiWidget_ExtensionMethods { + public static Efl.BindableProperty Cursor(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Widget { + return new Efl.BindableProperty("cursor", fac); + } + + public static Efl.BindableProperty CursorStyle(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Widget { + return new Efl.BindableProperty("cursor_style", fac); + } + + public static Efl.BindableProperty CursorThemeSearchEnabled(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Widget { + return new Efl.BindableProperty("cursor_theme_search_enabled", fac); + } + + public static Efl.BindableProperty ResizeObject(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Widget { + return new Efl.BindableProperty("resize_object", fac); + } + + public static Efl.BindableProperty Disabled(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Widget { + return new Efl.BindableProperty("disabled", fac); + } + + public static Efl.BindableProperty Style(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Widget { + return new Efl.BindableProperty("style", fac); + } + + public static Efl.BindableProperty FocusAllow(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Widget { + return new Efl.BindableProperty("focus_allow", fac); + } + + public static Efl.BindableProperty WidgetParent(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Widget { + return new Efl.BindableProperty("widget_parent", fac); + } + + public static Efl.BindableProperty AccessInfo(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Widget { + return new Efl.BindableProperty("access_info", fac); + } + + + + + public static Efl.BindableProperty> FocusCustomChain(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Widget { + return new Efl.BindableProperty>("focus_custom_chain", fac); + } + + + public static Efl.BindableProperty FocusMovePolicy(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Widget { + return new Efl.BindableProperty("focus_move_policy", fac); + } + + public static Efl.BindableProperty FocusMovePolicyAutomatic(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Widget { + return new Efl.BindableProperty("focus_move_policy_automatic", fac); + } + + + + + + + + + + + public static Efl.BindableProperty I18nName(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Widget { + return new Efl.BindableProperty("i18n_name", fac); + } + + + + public static Efl.BindableProperty Role(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Widget { + return new Efl.BindableProperty("role", fac); + } + + public static Efl.BindableProperty AccessParent(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Widget { + return new Efl.BindableProperty("access_parent", fac); + } + + + + + + + public static Efl.BindableProperty ReadingInfoType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Widget { + return new Efl.BindableProperty("reading_info_type", fac); + } + + + public static Efl.BindableProperty Description(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Widget { + return new Efl.BindableProperty("description", fac); + } + + + public static Efl.BindableProperty TranslationDomain(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Widget { + return new Efl.BindableProperty("translation_domain", fac); + } + + + public static Efl.BindableProperty CanHighlight(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Widget { + return new Efl.BindableProperty("can_highlight", fac); + } + + + public static Efl.BindableProperty Mirrored(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Widget { + return new Efl.BindableProperty("mirrored", fac); + } + + public static Efl.BindableProperty MirroredAutomatic(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Widget { + return new Efl.BindableProperty("mirrored_automatic", fac); + } + + public static Efl.BindableProperty Language(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Widget { + return new Efl.BindableProperty("language", fac); + } + + + public static Efl.BindableProperty Model(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Widget { + return new Efl.BindableProperty("model", fac); + } + + + public static Efl.BindableProperty Focus(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Widget { + return new Efl.BindableProperty("focus", fac); + } + + + + public static Efl.BindableProperty ChildFocus(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Widget { + return new Efl.BindableProperty("child_focus", fac); + } + + public static Efl.BindablePart BackgroundPart(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTag x=null) where T : Efl.Ui.Widget + { + return new Efl.BindablePart("background" ,fac); + } + + public static Efl.BindablePart ShadowPart(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTag x=null) where T : Efl.Ui.Widget + { + return new Efl.BindablePart("shadow" ,fac); + } + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Ui { @@ -9973,7 +10765,10 @@ public struct WidgetFocusState public Efl.Ui.Focus.IObject Parent; /// true if this is registered as logical currently public bool Logical; - ///Constructor for WidgetFocusState. + /// Constructor for WidgetFocusState. + /// The manager where the widget is registered in; + /// The parent the widget is using as logical parent; + /// true if this is registered as logical currently; public WidgetFocusState( Efl.Ui.Focus.IManager Manager = default(Efl.Ui.Focus.IManager), Efl.Ui.Focus.IObject Parent = default(Efl.Ui.Focus.IObject), @@ -9984,8 +10779,8 @@ public struct WidgetFocusState this.Logical = Logical; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator WidgetFocusState(IntPtr ptr) { var tmp = (WidgetFocusState.NativeStruct)Marshal.PtrToStructure(ptr, typeof(WidgetFocusState.NativeStruct)); @@ -9994,17 +10789,17 @@ public struct WidgetFocusState #pragma warning disable CS1591 - ///Internal wrapper for struct WidgetFocusState. + /// Internal wrapper for struct WidgetFocusState. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { - ///Internal wrapper for field Manager + /// Internal wrapper for field Manager public System.IntPtr Manager; - ///Internal wrapper for field Parent + /// Internal wrapper for field Parent public System.IntPtr Parent; - ///Internal wrapper for field Logical + /// Internal wrapper for field Logical public System.Byte Logical; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator WidgetFocusState.NativeStruct(WidgetFocusState _external_struct) { var _internal_struct = new WidgetFocusState.NativeStruct(); @@ -10014,7 +10809,7 @@ public struct WidgetFocusState return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator WidgetFocusState(WidgetFocusState.NativeStruct _internal_struct) { var _external_struct = new WidgetFocusState(); diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_factory.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_factory.eo.cs old mode 100644 new mode 100755 index f173f811f..c8a4b1015 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_factory.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_factory.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Ui { /// Efl Ui Factory that provides . /// This factory is designed to build and optionally set their if it was connected with "style". +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.WidgetFactory.NativeMethods] [Efl.Eo.BindingEntity] -public class WidgetFactory : Efl.LoopConsumer, Efl.Ui.IFactory, Efl.Ui.IFactoryBind, Efl.Ui.IPropertyBind +public class WidgetFactory : Efl.LoopConsumer, Efl.IPart, Efl.Ui.IFactory, Efl.Ui.IFactoryBind, Efl.Ui.IPropertyBind { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -47,7 +49,8 @@ public class WidgetFactory : Efl.LoopConsumer, Efl.Ui.IFactory, Efl.Ui.IFactoryB FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected WidgetFactory(ConstructingHandle ch) : base(ch) { @@ -69,6 +72,7 @@ public class WidgetFactory : Efl.LoopConsumer, Efl.Ui.IFactory, Efl.Ui.IFactoryB } /// Event triggered when an item has been successfully created. + /// public event EventHandler CreatedEvt { add @@ -108,7 +112,7 @@ public class WidgetFactory : Efl.LoopConsumer, Efl.Ui.IFactory, Efl.Ui.IFactoryB } } } - ///Method to raise event CreatedEvt. + /// Method to raise event CreatedEvt. public void OnCreatedEvt(Efl.Ui.IFactoryCreatedEvt_Args e) { var key = "_EFL_UI_FACTORY_EVENT_CREATED"; @@ -131,6 +135,7 @@ public class WidgetFactory : Efl.LoopConsumer, Efl.Ui.IFactory, Efl.Ui.IFactoryB } } /// Event dispatched when a property on the object has changed due to an user interaction on the object that a model could be interested in. + /// public event EventHandler PropertiesChangedEvt { add @@ -170,7 +175,7 @@ public class WidgetFactory : Efl.LoopConsumer, Efl.Ui.IFactory, Efl.Ui.IFactoryB } } } - ///Method to raise event PropertiesChangedEvt. + /// Method to raise event PropertiesChangedEvt. public void OnPropertiesChangedEvt(Efl.Ui.IPropertyBindPropertiesChangedEvt_Args e) { var key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTIES_CHANGED"; @@ -193,6 +198,7 @@ public class WidgetFactory : Efl.LoopConsumer, Efl.Ui.IFactory, Efl.Ui.IFactoryB } } /// Event dispatched when a property on the object is bound to a model. This is useful to not overgenerate event. + /// public event EventHandler PropertyBoundEvt { add @@ -232,7 +238,7 @@ public class WidgetFactory : Efl.LoopConsumer, Efl.Ui.IFactory, Efl.Ui.IFactoryB } } } - ///Method to raise event PropertyBoundEvt. + /// Method to raise event PropertyBoundEvt. public void OnPropertyBoundEvt(Efl.Ui.IPropertyBindPropertyBoundEvt_Args e) { var key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTY_BOUND"; @@ -266,12 +272,23 @@ public class WidgetFactory : Efl.LoopConsumer, Efl.Ui.IFactory, Efl.Ui.IFactoryB Efl.Ui.WidgetFactory.NativeMethods.efl_ui_widget_factory_item_class_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),klass); Eina.Error.RaiseIfUnhandledException(); } - /// Create a UI object from the necessary properties in the specified model. - /// Efl model + /// Get a proxy object referring to a part of an object. + /// (Since EFL 1.22) + /// The part name. + /// A (proxy) object, valid for a single call. + virtual public Efl.Object GetPart(System.String name) { + var _ret_var = Efl.IPartConcrete.NativeMethods.efl_part_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),name); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Create a UI object from the necessary properties in the specified model. + /// Note: This is the function you need to implement for a custom factory, but if you want to use a factory, you should rely on . + /// Efl iterator providing the model to be associated to the new item. It should remain valid until the end of the function call. /// Efl canvas /// Created UI object - virtual public Eina.Future Create(Efl.IModel model, Efl.Gfx.IEntity parent) { - var _ret_var = Efl.Ui.IFactoryConcrete.NativeMethods.efl_ui_factory_create_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),model, parent); + virtual public Eina.Future Create(Eina.Iterator models, Efl.Gfx.IEntity parent) { + var _in_models = models.Handle; + var _ret_var = Efl.Ui.IFactoryConcrete.NativeMethods.efl_ui_factory_create_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_models, parent); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -281,6 +298,13 @@ public class WidgetFactory : Efl.LoopConsumer, Efl.Ui.IFactory, Efl.Ui.IFactoryB Efl.Ui.IFactoryConcrete.NativeMethods.efl_ui_factory_release_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),ui_view); Eina.Error.RaiseIfUnhandledException(); } + /// This function is called during the creation of an UI object between the Efl.Object.constructor and call. + /// Note: if the does keep a cache of object, this won't be called when object are pulled out of the cache. + /// The UI object being created. + virtual public void Building(Efl.Gfx.IEntity ui_view) { + Efl.Ui.IFactoryConcrete.NativeMethods.efl_ui_factory_building_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),ui_view); + Eina.Error.RaiseIfUnhandledException(); + } /// bind the factory with the given key string. when the data is ready or changed, factory create the object and bind the data to the key action and process promised work. Note: the input need to be at least once. /// Key string for bind model property data /// for create and bind model property data @@ -298,13 +322,13 @@ public class WidgetFactory : Efl.LoopConsumer, Efl.Ui.IFactory, Efl.Ui.IFactoryB return _ret_var; } /// Async wrapper for . - /// Efl model + /// Efl iterator providing the model to be associated to the new item. It should remain valid until the end of the function call. /// Efl canvas /// Token to notify the async operation of external request to cancel. /// An async task wrapping the result of the operation. - public System.Threading.Tasks.Task CreateAsync(Efl.IModel model,Efl.Gfx.IEntity parent, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) + public System.Threading.Tasks.Task CreateAsync(Eina.Iterator models,Efl.Gfx.IEntity parent, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) { - Eina.Future future = Create( model, parent); + Eina.Future future = Create( models, parent); return Efl.Eo.Globals.WrapAsync(future, token); } @@ -350,6 +374,16 @@ public class WidgetFactory : Efl.LoopConsumer, Efl.Ui.IFactory, Efl.Ui.IFactoryB descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_factory_item_class_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_factory_item_class_set_static_delegate) }); } + if (efl_part_get_static_delegate == null) + { + efl_part_get_static_delegate = new efl_part_get_delegate(part_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetPart") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_part_get"), func = Marshal.GetFunctionPointerForDelegate(efl_part_get_static_delegate) }); + } + if (efl_ui_factory_create_static_delegate == null) { efl_ui_factory_create_static_delegate = new efl_ui_factory_create_delegate(create); @@ -370,6 +404,16 @@ public class WidgetFactory : Efl.LoopConsumer, Efl.Ui.IFactory, Efl.Ui.IFactoryB descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_factory_release"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_factory_release_static_delegate) }); } + if (efl_ui_factory_building_static_delegate == null) + { + efl_ui_factory_building_static_delegate = new efl_ui_factory_building_delegate(building); + } + + if (methods.FirstOrDefault(m => m.Name == "Building") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_factory_building"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_factory_building_static_delegate) }); + } + if (efl_ui_factory_bind_static_delegate == null) { efl_ui_factory_bind_static_delegate = new efl_ui_factory_bind_delegate(factory_bind); @@ -473,24 +517,61 @@ public class WidgetFactory : Efl.LoopConsumer, Efl.Ui.IFactory, Efl.Ui.IFactoryB private static efl_ui_widget_factory_item_class_set_delegate efl_ui_widget_factory_item_class_set_static_delegate; + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Object efl_part_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Object efl_part_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name); + + public static Efl.Eo.FunctionWrapper efl_part_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_part_get"); + + private static Efl.Object part_get(System.IntPtr obj, System.IntPtr pd, System.String name) + { + Eina.Log.Debug("function efl_part_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Object _ret_var = default(Efl.Object); + try + { + _ret_var = ((WidgetFactory)ws.Target).GetPart(name); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_part_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name); + } + } + + private static efl_part_get_delegate efl_part_get_static_delegate; + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] - private delegate Eina.Future efl_ui_factory_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.IModel model, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity parent); + private delegate Eina.Future efl_ui_factory_create_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr models, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity parent); [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Eina.FutureMarshaler))] - public delegate Eina.Future efl_ui_factory_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.IModel model, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity parent); + public delegate Eina.Future efl_ui_factory_create_api_delegate(System.IntPtr obj, System.IntPtr models, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity parent); public static Efl.Eo.FunctionWrapper efl_ui_factory_create_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_factory_create"); - private static Eina.Future create(System.IntPtr obj, System.IntPtr pd, Efl.IModel model, Efl.Gfx.IEntity parent) + private static Eina.Future create(System.IntPtr obj, System.IntPtr pd, System.IntPtr models, Efl.Gfx.IEntity parent) { Eina.Log.Debug("function efl_ui_factory_create was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - Eina.Future _ret_var = default( Eina.Future); + var _in_models = new Eina.Iterator(models, false); + Eina.Future _ret_var = default( Eina.Future); try { - _ret_var = ((WidgetFactory)ws.Target).Create(model, parent); + _ret_var = ((WidgetFactory)ws.Target).Create(_in_models, parent); } catch (Exception e) { @@ -503,7 +584,7 @@ public class WidgetFactory : Efl.LoopConsumer, Efl.Ui.IFactory, Efl.Ui.IFactoryB } else { - return efl_ui_factory_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), model, parent); + return efl_ui_factory_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), models, parent); } } @@ -545,6 +626,41 @@ public class WidgetFactory : Efl.LoopConsumer, Efl.Ui.IFactory, Efl.Ui.IFactoryB private static efl_ui_factory_release_delegate efl_ui_factory_release_static_delegate; + private delegate void efl_ui_factory_building_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity ui_view); + + + public delegate void efl_ui_factory_building_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Gfx.IEntity ui_view); + + public static Efl.Eo.FunctionWrapper efl_ui_factory_building_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_factory_building"); + + private static void building(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity ui_view) + { + Eina.Log.Debug("function efl_ui_factory_building was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((WidgetFactory)ws.Target).Building(ui_view); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_factory_building_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ui_view); + } + } + + private static efl_ui_factory_building_delegate efl_ui_factory_building_static_delegate; + + private delegate void efl_ui_factory_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.IFactory factory); @@ -623,3 +739,13 @@ public class WidgetFactory : Efl.LoopConsumer, Efl.Ui.IFactory, Efl.Ui.IFactoryB } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiWidgetFactory_ExtensionMethods { + public static Efl.BindableProperty ItemClass(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.WidgetFactory { + return new Efl.BindableProperty("item_class", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_focus_manager.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_focus_manager.eo.cs old mode 100644 new mode 100755 index d4786c6c8..2835dbe18 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_focus_manager.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_focus_manager.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -26,12 +27,12 @@ Efl.Ui.Focus.IManager FocusManagerCreate(Efl.Ui.Focus.IObject root); } /// No description supplied. /// (Since EFL 1.22) -sealed public class IWidgetFocusManagerConcrete : +sealed public class IWidgetFocusManagerConcrete : Efl.Eo.EoWrapper , IWidgetFocusManager , Efl.Ui.Focus.IManager { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -47,7 +48,8 @@ sealed public class IWidgetFocusManagerConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IWidgetFocusManagerConcrete(ConstructingHandle ch) : base(ch) { @@ -64,6 +66,7 @@ sealed public class IWidgetFocusManagerConcrete : /// Redirect object has changed, the old manager is passed as an event argument. /// (Since EFL 1.22) + /// public event EventHandler RedirectChangedEvt { add @@ -103,7 +106,7 @@ sealed public class IWidgetFocusManagerConcrete : } } } - ///Method to raise event RedirectChangedEvt. + /// Method to raise event RedirectChangedEvt. public void OnRedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; @@ -157,7 +160,7 @@ sealed public class IWidgetFocusManagerConcrete : } } } - ///Method to raise event FlushPreEvt. + /// Method to raise event FlushPreEvt. public void OnFlushPreEvt(EventArgs e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; @@ -210,7 +213,7 @@ sealed public class IWidgetFocusManagerConcrete : } } } - ///Method to raise event CoordsDirtyEvt. + /// Method to raise event CoordsDirtyEvt. public void OnCoordsDirtyEvt(EventArgs e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; @@ -225,6 +228,7 @@ sealed public class IWidgetFocusManagerConcrete : } /// The manager_focus property has changed. The previously focused object is passed as an event argument. /// (Since EFL 1.22) + /// public event EventHandler ManagerFocusChangedEvt { add @@ -264,7 +268,7 @@ sealed public class IWidgetFocusManagerConcrete : } } } - ///Method to raise event ManagerFocusChangedEvt. + /// Method to raise event ManagerFocusChangedEvt. public void OnManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; @@ -280,6 +284,7 @@ sealed public class IWidgetFocusManagerConcrete : } /// Called when this focus manager is frozen or thawed, even_info being true indicates that it is now frozen, false indicates that it is thawed. /// (Since EFL 1.22) + /// public event EventHandler DirtyLogicFreezeChangedEvt { add @@ -319,7 +324,7 @@ sealed public class IWidgetFocusManagerConcrete : } } } - ///Method to raise event DirtyLogicFreezeChangedEvt. + /// Method to raise event DirtyLogicFreezeChangedEvt. public void OnDirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; @@ -456,7 +461,9 @@ sealed public class IWidgetFocusManagerConcrete : } /// This will fetch the data from a registered node. /// Be aware this function will trigger a computation of all dirty nodes. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The child object to inspect. /// The list of relations starting from child. public Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child) { @@ -1446,3 +1453,23 @@ sealed public class IWidgetFocusManagerConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiIWidgetFocusManagerConcrete_ExtensionMethods { + public static Efl.BindableProperty ManagerFocus(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IWidgetFocusManager { + return new Efl.BindableProperty("manager_focus", fac); + } + + public static Efl.BindableProperty Redirect(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IWidgetFocusManager { + return new Efl.BindableProperty("redirect", fac); + } + + + + public static Efl.BindableProperty Root(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IWidgetFocusManager { + return new Efl.BindableProperty("root", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part.eo.cs old mode 100644 new mode 100755 index 657feb36d..082bfbc31 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Ui { /// This is the base class for all "Part" handles in Efl.Ui widgets. /// Since objects of this type are returned by , their lifetime is limited to exactly one function call only. Each widget class should expose more specific types for their API-defined parts. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.WidgetPart.NativeMethods] [Efl.Eo.BindingEntity] -public class WidgetPart : Efl.Object +public class WidgetPart : Efl.Object, Efl.Ui.IPropertyBind { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -41,7 +43,8 @@ public class WidgetPart : Efl.Object FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected WidgetPart(ConstructingHandle ch) : base(ch) { @@ -62,6 +65,140 @@ public class WidgetPart : Efl.Object { } + /// Event dispatched when a property on the object has changed due to an user interaction on the object that a model could be interested in. + /// + public event EventHandler PropertiesChangedEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.IPropertyBindPropertiesChangedEvt_Args args = new Efl.Ui.IPropertyBindPropertiesChangedEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTIES_CHANGED"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTIES_CHANGED"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event PropertiesChangedEvt. + public void OnPropertiesChangedEvt(Efl.Ui.IPropertyBindPropertiesChangedEvt_Args e) + { + var key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTIES_CHANGED"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Event dispatched when a property on the object is bound to a model. This is useful to not overgenerate event. + /// + public event EventHandler PropertyBoundEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.IPropertyBindPropertyBoundEvt_Args args = new Efl.Ui.IPropertyBindPropertyBoundEvt_Args(); + args.arg = Eina.StringConversion.NativeUtf8ToManagedString(evt.Info); + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTY_BOUND"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTY_BOUND"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event PropertyBoundEvt. + public void OnPropertyBoundEvt(Efl.Ui.IPropertyBindPropertyBoundEvt_Args e) + { + var key = "_EFL_UI_PROPERTY_BIND_EVENT_PROPERTY_BOUND"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Eina.StringConversion.ManagedStringToNativeUtf8Alloc(e.arg); + try + { + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Eina.MemoryNative.Free(info); + } + } + /// bind property data with the given key string. when the data is ready or changed, bind the data to the key action and process promised work. + /// key string for bind model property data + /// Model property name + /// 0 when it succeed, an error code otherwise. + virtual public Eina.Error PropertyBind(System.String key, System.String property) { + var _ret_var = Efl.Ui.IPropertyBindConcrete.NativeMethods.efl_ui_property_bind_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),key, property); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } private static IntPtr GetEflClassStatic() { return Efl.Ui.WidgetPart.efl_ui_widget_part_class_get(); @@ -70,11 +207,24 @@ public class WidgetPart : Efl.Object /// For internal use by generated code only. public new class NativeMethods : Efl.Object.NativeMethods { + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); /// Gets the list of Eo operations to override. /// The list of Eo operations to be overload. public override System.Collections.Generic.List GetEoOps(System.Type type) { var descs = new System.Collections.Generic.List(); + var methods = Efl.Eo.Globals.GetUserMethods(type); + + if (efl_ui_property_bind_static_delegate == null) + { + efl_ui_property_bind_static_delegate = new efl_ui_property_bind_delegate(property_bind); + } + + if (methods.FirstOrDefault(m => m.Name == "PropertyBind") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_property_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_property_bind_static_delegate) }); + } + descs.AddRange(base.GetEoOps(type)); return descs; } @@ -87,6 +237,42 @@ public class WidgetPart : Efl.Object #pragma warning disable CA1707, CS1591, SA1300, SA1600 + + private delegate Eina.Error efl_ui_property_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + + public delegate Eina.Error efl_ui_property_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String property); + + public static Efl.Eo.FunctionWrapper efl_ui_property_bind_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_property_bind"); + + private static Eina.Error property_bind(System.IntPtr obj, System.IntPtr pd, System.String key, System.String property) + { + Eina.Log.Debug("function efl_ui_property_bind was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Eina.Error _ret_var = default(Eina.Error); + try + { + _ret_var = ((WidgetPart)ws.Target).PropertyBind(key, property); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_property_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), key, property); + } + } + + private static efl_ui_property_bind_delegate efl_ui_property_bind_static_delegate; + #pragma warning restore CA1707, CS1591, SA1300, SA1600 } @@ -95,3 +281,9 @@ public class WidgetPart : Efl.Object } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiWidgetPart_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part_bg.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part_bg.eo.cs old mode 100644 new mode 100755 index d47dc8bf3..ee1d54628 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part_bg.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part_bg.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Elementary widget internal part background class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.WidgetPartBg.NativeMethods] [Efl.Eo.BindingEntity] public class WidgetPartBg : Efl.Ui.WidgetPart, Efl.IFile, Efl.Gfx.IColor, Efl.Gfx.IImage { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class WidgetPartBg : Efl.Ui.WidgetPart, Efl.IFile, Efl.Gfx.IColor, Efl.Gf FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected WidgetPartBg(ConstructingHandle ch) : base(ch) { @@ -100,7 +103,7 @@ public class WidgetPartBg : Efl.Ui.WidgetPart, Efl.IFile, Efl.Gfx.IColor, Efl.Gf } } } - ///Method to raise event ImagePreloadEvt. + /// Method to raise event ImagePreloadEvt. public void OnImagePreloadEvt(EventArgs e) { var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_PRELOAD"; @@ -152,7 +155,7 @@ public class WidgetPartBg : Efl.Ui.WidgetPart, Efl.IFile, Efl.Gfx.IColor, Efl.Gf } } } - ///Method to raise event ImageResizeEvt. + /// Method to raise event ImageResizeEvt. public void OnImageResizeEvt(EventArgs e) { var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_RESIZE"; @@ -204,7 +207,7 @@ public class WidgetPartBg : Efl.Ui.WidgetPart, Efl.IFile, Efl.Gfx.IColor, Efl.Gf } } } - ///Method to raise event ImageUnloadEvt. + /// Method to raise event ImageUnloadEvt. public void OnImageUnloadEvt(EventArgs e) { var key = "_EFL_GFX_IMAGE_EVENT_IMAGE_UNLOAD"; @@ -370,6 +373,32 @@ public class WidgetPartBg : Efl.Ui.WidgetPart, Efl.IFile, Efl.Gfx.IColor, Efl.Gf Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_scale_type_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),scale_type); Eina.Error.RaiseIfUnhandledException(); } + /// If true, the image may be scaled to a larger size. If false, the image will never be resized larger than its native size. This is set to true by default. + /// Allow image upscaling + virtual public bool GetCanUpscale() { + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_can_upscale_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// If true, the image may be scaled to a larger size. If false, the image will never be resized larger than its native size. This is set to true by default. + /// Allow image upscaling + virtual public void SetCanUpscale(bool upscale) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_can_upscale_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),upscale); + Eina.Error.RaiseIfUnhandledException(); + } + /// If true, the image may be scaled to a smaller size. If false, the image will never be resized smaller than its native size. This is set to true by default. + /// Allow image downscaling + virtual public bool GetCanDownscale() { + var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_can_downscale_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// If true, the image may be scaled to a smaller size. If false, the image will never be resized smaller than its native size. This is set to true by default. + /// Allow image downscaling + virtual public void SetCanDownscale(bool downscale) { + Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_can_downscale_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),downscale); + Eina.Error.RaiseIfUnhandledException(); + } /// Returns 1.0 if not applicable (eg. height = 0). /// The image's ratio. virtual public double GetRatio() { @@ -465,20 +494,20 @@ public class WidgetPartBg : Efl.Ui.WidgetPart, Efl.IFile, Efl.Gfx.IColor, Efl.Gf /// When the regions are set by the user, the method will walk the iterators once and then destroy them. When the regions are retrieved by the user, it is his responsibility to destroy the iterators.. It will remember the information for the lifetime of the object. It will ignore all value of , and . To reset the object you can just pass null to both horizontal and vertical at the same time. /// Representation of area that are stretchable in the image horizontal space. /// Representation of area that are stretchable in the image vertical space. - virtual public void GetStretchRegion(out Eina.Iterator horizontal, out Eina.Iterator vertical) { + virtual public void GetStretchRegion(out Eina.Iterator horizontal, out Eina.Iterator vertical) { System.IntPtr _out_horizontal = System.IntPtr.Zero; System.IntPtr _out_vertical = System.IntPtr.Zero; Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_stretch_region_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out _out_horizontal, out _out_vertical); Eina.Error.RaiseIfUnhandledException(); - horizontal = new Eina.Iterator(_out_horizontal, false); - vertical = new Eina.Iterator(_out_vertical, false); + horizontal = new Eina.Iterator(_out_horizontal, false); + vertical = new Eina.Iterator(_out_vertical, false); } /// This property defines the stretchable pixels region of an image. /// When the regions are set by the user, the method will walk the iterators once and then destroy them. When the regions are retrieved by the user, it is his responsibility to destroy the iterators.. It will remember the information for the lifetime of the object. It will ignore all value of , and . To reset the object you can just pass null to both horizontal and vertical at the same time. /// Representation of area that are stretchable in the image horizontal space. /// Representation of area that are stretchable in the image vertical space. /// return an error code if the stretch_region provided are incorrect. - virtual public Eina.Error SetStretchRegion(Eina.Iterator horizontal, Eina.Iterator vertical) { + virtual public Eina.Error SetStretchRegion(Eina.Iterator horizontal, Eina.Iterator vertical) { var _in_horizontal = horizontal.Handle; var _in_vertical = vertical.Handle; var _ret_var = Efl.Gfx.IImageConcrete.NativeMethods.efl_gfx_image_stretch_region_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_horizontal, _in_vertical); @@ -563,6 +592,26 @@ public class WidgetPartBg : Efl.Ui.WidgetPart, Efl.IFile, Efl.Gfx.IColor, Efl.Gf public bool Loaded { get { return GetLoaded(); } } + /// Retrieves the general/main color of the given Evas object. + /// Retrieves the main color's RGB component (and alpha channel) values, which range from 0 to 255. For the alpha channel, which defines the object's transparency level, 0 means totally transparent, while 255 means opaque. These color values are premultiplied by the alpha value. + /// + /// Usually youll use this attribute for text and rectangle objects, where the main color is their unique one. If set for objects which themselves have colors, like the images one, those colors get modulated by this one. + /// + /// All newly created Evas rectangles get the default color values of 255 255 255 255 (opaque white). + /// + /// Use null pointers on the components you're not interested in: they'll be ignored by the function. + /// (Since EFL 1.22) + public (int, int, int, int) Color { + get { + int _out_r = default(int); + int _out_g = default(int); + int _out_b = default(int); + int _out_a = default(int); + GetColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Get hex color code of given Evas object. This returns a short lived hex color code string. /// (Since EFL 1.22) /// the hex color code. @@ -585,6 +634,18 @@ public class WidgetPartBg : Efl.Ui.WidgetPart, Efl.IFile, Efl.Gfx.IColor, Efl.Gf get { return GetScaleType(); } set { SetScaleType(value); } } + /// If true, the image may be scaled to a larger size. If false, the image will never be resized larger than its native size. This is set to true by default. + /// Allow image upscaling + public bool CanUpscale { + get { return GetCanUpscale(); } + set { SetCanUpscale(value); } + } + /// If true, the image may be scaled to a smaller size. If false, the image will never be resized smaller than its native size. This is set to true by default. + /// Allow image downscaling + public bool CanDownscale { + get { return GetCanDownscale(); } + set { SetCanDownscale(value); } + } /// The native width/height ratio of the image. /// The image's ratio. public double Ratio { @@ -598,6 +659,28 @@ public class WidgetPartBg : Efl.Ui.WidgetPart, Efl.IFile, Efl.Gfx.IColor, Efl.Gf public Eina.Rect ContentRegion { get { return GetContentRegion(); } } + /// Dimensions of this image's border, a region that does not scale with the center area. + /// When EFL renders an image, its source may be scaled to fit the size of the object. This function sets an area from the borders of the image inwards which is not to be scaled. This function is useful for making frames and for widget theming, where, for example, buttons may be of varying sizes, but their border size must remain constant. + /// + /// The units used for l, r, t and b are canvas units (pixels). + /// + /// Note: The border region itself may be scaled by the function. + /// + /// Note: By default, image objects have no borders set, i.e. l, r, t and b start as 0. + /// + /// Note: Similar to the concepts of 9-patch images or cap insets. + /// The border's left width. + public (int, int, int, int) Border { + get { + int _out_l = default(int); + int _out_r = default(int); + int _out_t = default(int); + int _out_b = default(int); + GetBorder(out _out_l,out _out_r,out _out_t,out _out_b); + return (_out_l,_out_r,_out_t,_out_b); + } + set { SetBorder( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Scaling factor applied to the image borders. /// This value multiplies the size of the when scaling an object. /// @@ -616,6 +699,18 @@ public class WidgetPartBg : Efl.Ui.WidgetPart, Efl.IFile, Efl.Gfx.IColor, Efl.Gf get { return GetBorderCenterFill(); } set { SetBorderCenterFill(value); } } + /// This property defines the stretchable pixels region of an image. + /// When the regions are set by the user, the method will walk the iterators once and then destroy them. When the regions are retrieved by the user, it is his responsibility to destroy the iterators.. It will remember the information for the lifetime of the object. It will ignore all value of , and . To reset the object you can just pass null to both horizontal and vertical at the same time. + /// Representation of area that are stretchable in the image horizontal space. + public (Eina.Iterator, Eina.Iterator) StretchRegion { + get { + Eina.Iterator _out_horizontal = default(Eina.Iterator); + Eina.Iterator _out_vertical = default(Eina.Iterator); + GetStretchRegion(out _out_horizontal,out _out_vertical); + return (_out_horizontal,_out_vertical); + } + set { SetStretchRegion( value.Item1, value.Item2); } + } /// This represents the size of the original image in pixels. /// This may be different from the actual geometry on screen or even the size of the loaded pixel buffer. This is the size of the image as stored in the original file. /// @@ -829,6 +924,46 @@ public class WidgetPartBg : Efl.Ui.WidgetPart, Efl.IFile, Efl.Gfx.IColor, Efl.Gf descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_scale_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_scale_type_set_static_delegate) }); } + if (efl_gfx_image_can_upscale_get_static_delegate == null) + { + efl_gfx_image_can_upscale_get_static_delegate = new efl_gfx_image_can_upscale_get_delegate(can_upscale_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetCanUpscale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_can_upscale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_can_upscale_get_static_delegate) }); + } + + if (efl_gfx_image_can_upscale_set_static_delegate == null) + { + efl_gfx_image_can_upscale_set_static_delegate = new efl_gfx_image_can_upscale_set_delegate(can_upscale_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetCanUpscale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_can_upscale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_can_upscale_set_static_delegate) }); + } + + if (efl_gfx_image_can_downscale_get_static_delegate == null) + { + efl_gfx_image_can_downscale_get_static_delegate = new efl_gfx_image_can_downscale_get_delegate(can_downscale_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetCanDownscale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_can_downscale_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_can_downscale_get_static_delegate) }); + } + + if (efl_gfx_image_can_downscale_set_static_delegate == null) + { + efl_gfx_image_can_downscale_set_static_delegate = new efl_gfx_image_can_downscale_set_delegate(can_downscale_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetCanDownscale") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_image_can_downscale_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_image_can_downscale_set_static_delegate) }); + } + if (efl_gfx_image_ratio_get_static_delegate == null) { efl_gfx_image_ratio_get_static_delegate = new efl_gfx_image_ratio_get_delegate(ratio_get); @@ -1606,6 +1741,148 @@ public class WidgetPartBg : Efl.Ui.WidgetPart, Efl.IFile, Efl.Gfx.IColor, Efl.Gf private static efl_gfx_image_scale_type_set_delegate efl_gfx_image_scale_type_set_static_delegate; + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_can_upscale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_can_upscale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_can_upscale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_can_upscale_get"); + + private static bool can_upscale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_can_upscale_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((WidgetPartBg)ws.Target).GetCanUpscale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_can_upscale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_can_upscale_get_delegate efl_gfx_image_can_upscale_get_static_delegate; + + + private delegate void efl_gfx_image_can_upscale_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool upscale); + + + public delegate void efl_gfx_image_can_upscale_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool upscale); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_can_upscale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_can_upscale_set"); + + private static void can_upscale_set(System.IntPtr obj, System.IntPtr pd, bool upscale) + { + Eina.Log.Debug("function efl_gfx_image_can_upscale_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((WidgetPartBg)ws.Target).SetCanUpscale(upscale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_can_upscale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), upscale); + } + } + + private static efl_gfx_image_can_upscale_set_delegate efl_gfx_image_can_upscale_set_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_gfx_image_can_downscale_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_gfx_image_can_downscale_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_can_downscale_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_can_downscale_get"); + + private static bool can_downscale_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_gfx_image_can_downscale_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((WidgetPartBg)ws.Target).GetCanDownscale(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_gfx_image_can_downscale_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_gfx_image_can_downscale_get_delegate efl_gfx_image_can_downscale_get_static_delegate; + + + private delegate void efl_gfx_image_can_downscale_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool downscale); + + + public delegate void efl_gfx_image_can_downscale_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool downscale); + + public static Efl.Eo.FunctionWrapper efl_gfx_image_can_downscale_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_image_can_downscale_set"); + + private static void can_downscale_set(System.IntPtr obj, System.IntPtr pd, bool downscale) + { + Eina.Log.Debug("function efl_gfx_image_can_downscale_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((WidgetPartBg)ws.Target).SetCanDownscale(downscale); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_gfx_image_can_downscale_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), downscale); + } + } + + private static efl_gfx_image_can_downscale_set_delegate efl_gfx_image_can_downscale_set_static_delegate; + private delegate double efl_gfx_image_ratio_get_delegate(System.IntPtr obj, System.IntPtr pd); @@ -1904,8 +2181,8 @@ public class WidgetPartBg : Efl.Ui.WidgetPart, Efl.IFile, Efl.Gfx.IColor, Efl.Gf var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - Eina.Iterator _out_horizontal = default(Eina.Iterator); - Eina.Iterator _out_vertical = default(Eina.Iterator); + Eina.Iterator _out_horizontal = default(Eina.Iterator); + Eina.Iterator _out_vertical = default(Eina.Iterator); try { @@ -1943,8 +2220,8 @@ public class WidgetPartBg : Efl.Ui.WidgetPart, Efl.IFile, Efl.Gfx.IColor, Efl.Gf var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { - var _in_horizontal = new Eina.Iterator(horizontal, false); - var _in_vertical = new Eina.Iterator(vertical, false); + var _in_horizontal = new Eina.Iterator(horizontal, false); + var _in_vertical = new Eina.Iterator(vertical, false); Eina.Error _ret_var = default(Eina.Error); try { @@ -2189,3 +2466,65 @@ public class WidgetPartBg : Efl.Ui.WidgetPart, Efl.IFile, Efl.Gfx.IColor, Efl.Gf } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiWidgetPartBg_ExtensionMethods { + public static Efl.BindableProperty Mmap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.WidgetPartBg { + return new Efl.BindableProperty("mmap", fac); + } + + public static Efl.BindableProperty File(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.WidgetPartBg { + return new Efl.BindableProperty("file", fac); + } + + public static Efl.BindableProperty Key(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.WidgetPartBg { + return new Efl.BindableProperty("key", fac); + } + + + + public static Efl.BindableProperty ColorCode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.WidgetPartBg { + return new Efl.BindableProperty("color_code", fac); + } + + public static Efl.BindableProperty SmoothScale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.WidgetPartBg { + return new Efl.BindableProperty("smooth_scale", fac); + } + + public static Efl.BindableProperty ScaleType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.WidgetPartBg { + return new Efl.BindableProperty("scale_type", fac); + } + + public static Efl.BindableProperty CanUpscale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.WidgetPartBg { + return new Efl.BindableProperty("can_upscale", fac); + } + + public static Efl.BindableProperty CanDownscale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.WidgetPartBg { + return new Efl.BindableProperty("can_downscale", fac); + } + + + + + public static Efl.BindableProperty BorderScale(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.WidgetPartBg { + return new Efl.BindableProperty("border_scale", fac); + } + + public static Efl.BindableProperty BorderCenterFill(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.WidgetPartBg { + return new Efl.BindableProperty("border_center_fill", fac); + } + + + + public static Efl.BindableProperty ContentHint(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.WidgetPartBg { + return new Efl.BindableProperty("content_hint", fac); + } + + public static Efl.BindableProperty ScaleHint(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.WidgetPartBg { + return new Efl.BindableProperty("scale_hint", fac); + } + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part_shadow.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part_shadow.eo.cs old mode 100644 new mode 100755 index 3cd9ae78b..e36b08c0e --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part_shadow.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_part_shadow.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -17,11 +18,12 @@ namespace Ui { /// As another example, here's a black drop-shadow: obj.shadow().color_set(0, 0, 0, 255); obj.shadow().grow_set(1); obj.shadow().radius_set(5, 5); obj.shadow().offset_set(5, 5); /// /// It is also possible to manually specify which program to use. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.WidgetPartShadow.NativeMethods] [Efl.Eo.BindingEntity] public class WidgetPartShadow : Efl.Ui.WidgetPart, Efl.Gfx.IBlur, Efl.Gfx.IColor, Efl.Gfx.IFilter { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -47,7 +49,8 @@ public class WidgetPartShadow : Efl.Ui.WidgetPart, Efl.Gfx.IBlur, Efl.Gfx.IColor FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected WidgetPartShadow(ConstructingHandle ch) : base(ch) { @@ -247,6 +250,29 @@ public class WidgetPartShadow : Efl.Ui.WidgetPart, Efl.Gfx.IBlur, Efl.Gfx.IColor Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_data_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),name, value, execute); Eina.Error.RaiseIfUnhandledException(); } + /// The blur radius in pixels. + /// The horizontal blur radius. + public (double, double) Radius { + get { + double _out_rx = default(double); + double _out_ry = default(double); + GetRadius(out _out_rx,out _out_ry); + return (_out_rx,_out_ry); + } + set { SetRadius( value.Item1, value.Item2); } + } + /// An offset relative to the original pixels. + /// This property allows for drop shadow effects. + /// Horizontal offset in pixels. + public (double, double) Offset { + get { + double _out_ox = default(double); + double _out_oy = default(double); + GetOffset(out _out_ox,out _out_oy); + return (_out_ox,_out_oy); + } + set { SetOffset( value.Item1, value.Item2); } + } /// How much the original image should be "grown" before blurring. /// Growing is a combination of blur & color levels adjustment. If the value of grow is positive, the pixels will appear more "fat" or "bold" than the original. If the value is negative, a shrink effect happens instead. /// @@ -256,6 +282,26 @@ public class WidgetPartShadow : Efl.Ui.WidgetPart, Efl.Gfx.IBlur, Efl.Gfx.IColor get { return GetGrow(); } set { SetGrow(value); } } + /// Retrieves the general/main color of the given Evas object. + /// Retrieves the main color's RGB component (and alpha channel) values, which range from 0 to 255. For the alpha channel, which defines the object's transparency level, 0 means totally transparent, while 255 means opaque. These color values are premultiplied by the alpha value. + /// + /// Usually youll use this attribute for text and rectangle objects, where the main color is their unique one. If set for objects which themselves have colors, like the images one, those colors get modulated by this one. + /// + /// All newly created Evas rectangles get the default color values of 255 255 255 255 (opaque white). + /// + /// Use null pointers on the components you're not interested in: they'll be ignored by the function. + /// (Since EFL 1.22) + public (int, int, int, int) Color { + get { + int _out_r = default(int); + int _out_g = default(int); + int _out_b = default(int); + int _out_a = default(int); + GetColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Get hex color code of given Evas object. This returns a short lived hex color code string. /// (Since EFL 1.22) /// the hex color code. @@ -263,6 +309,46 @@ public class WidgetPartShadow : Efl.Ui.WidgetPart, Efl.Gfx.IBlur, Efl.Gfx.IColor get { return GetColorCode(); } set { SetColorCode(value); } } + /// Gets the code of the filter program set on this object. May be null. + /// The Lua program source code. + public (System.String, System.String) FilterProgram { + get { + System.String _out_code = default(System.String); + System.String _out_name = default(System.String); + GetFilterProgram(out _out_code,out _out_name); + return (_out_code,_out_name); + } + set { SetFilterProgram( value.Item1, value.Item2); } + } + /// Set the current state of the filter. + /// This should be used by Edje (EFL's internal layout engine), but could also be used when implementing animations programmatically. + /// + /// A full state is defined by two states (name + value): origin state and target state of an ongoing animation, as well as the pos progress (from 0 to 1) of that animation timeline. The second state can be omitted if there is no ongoing animation. + /// Current state of the filter + public (System.String, double, System.String, double, double) FilterState { + get { + System.String _out_cur_state = default(System.String); + double _out_cur_val = default(double); + System.String _out_next_state = default(System.String); + double _out_next_val = default(double); + double _out_pos = default(double); + GetFilterState(out _out_cur_state,out _out_cur_val,out _out_next_state,out _out_next_val,out _out_pos); + return (_out_cur_state,_out_cur_val,_out_next_state,_out_next_val,_out_pos); + } + set { SetFilterState( value.Item1, value.Item2, value.Item3, value.Item4, value.Item5); } + } + /// Required padding to apply this filter without cropping. + /// Read-only property that can be used to calculate the object's final geometry. This can be overridden (set) from inside the filter program by using the function 'padding_set' in the Lua program. + public (int, int, int, int) FilterPadding { + get { + int _out_l = default(int); + int _out_r = default(int); + int _out_t = default(int); + int _out_b = default(int); + GetFilterPadding(out _out_l,out _out_r,out _out_t,out _out_b); + return (_out_l,_out_r,_out_t,_out_b); + } + } private static IntPtr GetEflClassStatic() { return Efl.Ui.WidgetPartShadow.efl_ui_widget_part_shadow_class_get(); @@ -1167,3 +1253,25 @@ public class WidgetPartShadow : Efl.Ui.WidgetPart, Efl.Gfx.IBlur, Efl.Gfx.IColor } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiWidgetPartShadow_ExtensionMethods { + + + public static Efl.BindableProperty Grow(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.WidgetPartShadow { + return new Efl.BindableProperty("grow", fac); + } + + + public static Efl.BindableProperty ColorCode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.WidgetPartShadow { + return new Efl.BindableProperty("color_code", fac); + } + + + + + + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_scrollable_content.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_scrollable_content.eo.cs new file mode 100755 index 000000000..d25e39b07 --- /dev/null +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_widget_scrollable_content.eo.cs @@ -0,0 +1,544 @@ +#define EFL_BETA +#pragma warning disable CS1591 +using System; +using System.Runtime.InteropServices; +using System.Collections.Generic; +using System.Linq; +using System.Threading; +using System.ComponentModel; +namespace Efl { + +namespace Ui { + +/// Efl widget scrollable content mixin +/// This can be used to provide scrollable contents and text for widgets. +/// +/// Widgets can set the "__efl_scrollable_content_scroller_style" key data during their constructor to apply a style to the internal scroller widget. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +[Efl.Ui.IWidgetScrollableContentConcrete.NativeMethods] +[Efl.Eo.BindingEntity] +public interface IWidgetScrollableContent : + Efl.Eo.IWrapper, IDisposable +{ + /// Widgets can call this function during their implementation after the super call to determine whether the internal scroller has performed sizing calculations. +/// The optimal_size,calc event will have been emitted during the super call if this method returns true. +/// +/// In the case that this returns true, it's likely that the widget should be completing its internal sizing calculations from the optimal_size,calc callback using +/// +/// `efl_canvas_group_calculate(efl_super(ev->object, EFL_UI_WIDGET_SCROLLABLE_CONTENT_MIXIN));` +/// +/// in order to skip the scrollable sizing calc. +/// Whether the internal scroller has done sizing calcs. +bool GetScrollableContentDidGroupCalc(); + /// This is the content which will be placed in the internal scroller. +/// The content object. +Efl.Canvas.Object GetScrollableContent(); + /// This is the content which will be placed in the internal scroller. +/// The content object. +/// True on success +bool SetScrollableContent(Efl.Canvas.Object content); + /// Retrieves the text string currently being displayed by the given text object. +/// Do not free() the return value. +/// +/// See also . +/// Text string to display on it. +System.String GetScrollableText(); + /// Sets the text string to be displayed by the given text object. The text will be scrollable depending on its size relative to the object's geometry. +/// See also . +/// Text string to display on it. +void SetScrollableText(System.String text); + /// The optimal size for the widget based on scrollable content. + /// + event EventHandler OptimalSizeCalcEvt; + /// Widgets can call this function during their implementation after the super call to determine whether the internal scroller has performed sizing calculations. + /// The optimal_size,calc event will have been emitted during the super call if this method returns true. + /// + /// In the case that this returns true, it's likely that the widget should be completing its internal sizing calculations from the optimal_size,calc callback using + /// + /// `efl_canvas_group_calculate(efl_super(ev->object, EFL_UI_WIDGET_SCROLLABLE_CONTENT_MIXIN));` + /// + /// in order to skip the scrollable sizing calc. + /// Whether the internal scroller has done sizing calcs. + bool ScrollableContentDidGroupCalc { + get; + } + /// This is the content which will be placed in the internal scroller. + /// The content object. + Efl.Canvas.Object ScrollableContent { + get; + set; + } + /// Retrieves the text string currently being displayed by the given text object. + /// Do not free() the return value. + /// + /// See also . + /// Text string to display on it. + System.String ScrollableText { + get; + set; + } +} +/// Event argument wrapper for event . +[Efl.Eo.BindingEntity] +public class IWidgetScrollableContentOptimalSizeCalcEvt_Args : EventArgs { + /// Actual event payload. + /// The optimal size for the widget based on scrollable content. + public Eina.Size2D arg { get; set; } +} +/// Efl widget scrollable content mixin +/// This can be used to provide scrollable contents and text for widgets. +/// +/// Widgets can set the "__efl_scrollable_content_scroller_style" key data during their constructor to apply a style to the internal scroller widget. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IWidgetScrollableContentConcrete : + Efl.Eo.EoWrapper + , IWidgetScrollableContent + +{ + /// Pointer to the native class description. + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(IWidgetScrollableContentConcrete)) + { + return GetEflClassStatic(); + } + else + { + return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } + } + } + + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. + /// Tag struct storing the native handle of the object being constructed. + private IWidgetScrollableContentConcrete(ConstructingHandle ch) : base(ch) + { + } + + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr + efl_ui_widget_scrollable_content_mixin_get(); + /// Initializes a new instance of the class. + /// Internal usage: This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. + private IWidgetScrollableContentConcrete(Efl.Eo.Globals.WrappingHandle wh) : base(wh) + { + } + + /// The optimal size for the widget based on scrollable content. + /// + public event EventHandler OptimalSizeCalcEvt + { + add + { + lock (eflBindingEventLock) + { + Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => + { + var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; + if (obj != null) + { + Efl.Ui.IWidgetScrollableContentOptimalSizeCalcEvt_Args args = new Efl.Ui.IWidgetScrollableContentOptimalSizeCalcEvt_Args(); + args.arg = evt.Info; + try + { + value?.Invoke(obj, args); + } + catch (Exception e) + { + Eina.Log.Error(e.ToString()); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + } + }; + + string key = "_EFL_UI_WIDGET_SCROLLABLE_CONTENT_EVENT_OPTIMAL_SIZE_CALC"; + AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); + } + } + + remove + { + lock (eflBindingEventLock) + { + string key = "_EFL_UI_WIDGET_SCROLLABLE_CONTENT_EVENT_OPTIMAL_SIZE_CALC"; + RemoveNativeEventHandler(efl.Libs.Elementary, key, value); + } + } + } + /// Method to raise event OptimalSizeCalcEvt. + public void OnOptimalSizeCalcEvt(Efl.Ui.IWidgetScrollableContentOptimalSizeCalcEvt_Args e) + { + var key = "_EFL_UI_WIDGET_SCROLLABLE_CONTENT_EVENT_OPTIMAL_SIZE_CALC"; + IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); + if (desc == IntPtr.Zero) + { + Eina.Log.Error($"Failed to get native event {key}"); + return; + } + + IntPtr info = Marshal.AllocHGlobal(Marshal.SizeOf(e.arg)); + try + { + Marshal.StructureToPtr(e.arg, info, false); + Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); + } + finally + { + Marshal.FreeHGlobal(info); + } + } + /// Widgets can call this function during their implementation after the super call to determine whether the internal scroller has performed sizing calculations. + /// The optimal_size,calc event will have been emitted during the super call if this method returns true. + /// + /// In the case that this returns true, it's likely that the widget should be completing its internal sizing calculations from the optimal_size,calc callback using + /// + /// `efl_canvas_group_calculate(efl_super(ev->object, EFL_UI_WIDGET_SCROLLABLE_CONTENT_MIXIN));` + /// + /// in order to skip the scrollable sizing calc. + /// Whether the internal scroller has done sizing calcs. + public bool GetScrollableContentDidGroupCalc() { + var _ret_var = Efl.Ui.IWidgetScrollableContentConcrete.NativeMethods.efl_ui_widget_scrollable_content_did_group_calc_get_ptr.Value.Delegate(this.NativeHandle); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// This is the content which will be placed in the internal scroller. + /// The content object. + public Efl.Canvas.Object GetScrollableContent() { + var _ret_var = Efl.Ui.IWidgetScrollableContentConcrete.NativeMethods.efl_ui_widget_scrollable_content_get_ptr.Value.Delegate(this.NativeHandle); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// This is the content which will be placed in the internal scroller. + /// The content object. + /// True on success + public bool SetScrollableContent(Efl.Canvas.Object content) { + var _ret_var = Efl.Ui.IWidgetScrollableContentConcrete.NativeMethods.efl_ui_widget_scrollable_content_set_ptr.Value.Delegate(this.NativeHandle,content); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Retrieves the text string currently being displayed by the given text object. + /// Do not free() the return value. + /// + /// See also . + /// Text string to display on it. + public System.String GetScrollableText() { + var _ret_var = Efl.Ui.IWidgetScrollableContentConcrete.NativeMethods.efl_ui_widget_scrollable_text_get_ptr.Value.Delegate(this.NativeHandle); + Eina.Error.RaiseIfUnhandledException(); + return _ret_var; + } + /// Sets the text string to be displayed by the given text object. The text will be scrollable depending on its size relative to the object's geometry. + /// See also . + /// Text string to display on it. + public void SetScrollableText(System.String text) { + Efl.Ui.IWidgetScrollableContentConcrete.NativeMethods.efl_ui_widget_scrollable_text_set_ptr.Value.Delegate(this.NativeHandle,text); + Eina.Error.RaiseIfUnhandledException(); + } + /// Widgets can call this function during their implementation after the super call to determine whether the internal scroller has performed sizing calculations. + /// The optimal_size,calc event will have been emitted during the super call if this method returns true. + /// + /// In the case that this returns true, it's likely that the widget should be completing its internal sizing calculations from the optimal_size,calc callback using + /// + /// `efl_canvas_group_calculate(efl_super(ev->object, EFL_UI_WIDGET_SCROLLABLE_CONTENT_MIXIN));` + /// + /// in order to skip the scrollable sizing calc. + /// Whether the internal scroller has done sizing calcs. + public bool ScrollableContentDidGroupCalc { + get { return GetScrollableContentDidGroupCalc(); } + } + /// This is the content which will be placed in the internal scroller. + /// The content object. + public Efl.Canvas.Object ScrollableContent { + get { return GetScrollableContent(); } + set { SetScrollableContent(value); } + } + /// Retrieves the text string currently being displayed by the given text object. + /// Do not free() the return value. + /// + /// See also . + /// Text string to display on it. + public System.String ScrollableText { + get { return GetScrollableText(); } + set { SetScrollableText(value); } + } + private static IntPtr GetEflClassStatic() + { + return Efl.Ui.IWidgetScrollableContentConcrete.efl_ui_widget_scrollable_content_mixin_get(); + } + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods + { + private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); + /// Gets the list of Eo operations to override. + /// The list of Eo operations to be overload. + public override System.Collections.Generic.List GetEoOps(System.Type type) + { + var descs = new System.Collections.Generic.List(); + var methods = Efl.Eo.Globals.GetUserMethods(type); + + if (efl_ui_widget_scrollable_content_did_group_calc_get_static_delegate == null) + { + efl_ui_widget_scrollable_content_did_group_calc_get_static_delegate = new efl_ui_widget_scrollable_content_did_group_calc_get_delegate(scrollable_content_did_group_calc_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetScrollableContentDidGroupCalc") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_scrollable_content_did_group_calc_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_scrollable_content_did_group_calc_get_static_delegate) }); + } + + if (efl_ui_widget_scrollable_content_get_static_delegate == null) + { + efl_ui_widget_scrollable_content_get_static_delegate = new efl_ui_widget_scrollable_content_get_delegate(scrollable_content_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetScrollableContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_scrollable_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_scrollable_content_get_static_delegate) }); + } + + if (efl_ui_widget_scrollable_content_set_static_delegate == null) + { + efl_ui_widget_scrollable_content_set_static_delegate = new efl_ui_widget_scrollable_content_set_delegate(scrollable_content_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScrollableContent") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_scrollable_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_scrollable_content_set_static_delegate) }); + } + + if (efl_ui_widget_scrollable_text_get_static_delegate == null) + { + efl_ui_widget_scrollable_text_get_static_delegate = new efl_ui_widget_scrollable_text_get_delegate(scrollable_text_get); + } + + if (methods.FirstOrDefault(m => m.Name == "GetScrollableText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_scrollable_text_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_scrollable_text_get_static_delegate) }); + } + + if (efl_ui_widget_scrollable_text_set_static_delegate == null) + { + efl_ui_widget_scrollable_text_set_static_delegate = new efl_ui_widget_scrollable_text_set_delegate(scrollable_text_set); + } + + if (methods.FirstOrDefault(m => m.Name == "SetScrollableText") != null) + { + descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_scrollable_text_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_scrollable_text_set_static_delegate) }); + } + + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.IWidgetScrollableContentConcrete.efl_ui_widget_scrollable_content_mixin_get(); + } + + #pragma warning disable CA1707, CS1591, SA1300, SA1600 + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_widget_scrollable_content_did_group_calc_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_widget_scrollable_content_did_group_calc_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_scrollable_content_did_group_calc_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_scrollable_content_did_group_calc_get"); + + private static bool scrollable_content_did_group_calc_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_scrollable_content_did_group_calc_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IWidgetScrollableContent)ws.Target).GetScrollableContentDidGroupCalc(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_scrollable_content_did_group_calc_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_widget_scrollable_content_did_group_calc_get_delegate efl_ui_widget_scrollable_content_did_group_calc_get_static_delegate; + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + private delegate Efl.Canvas.Object efl_ui_widget_scrollable_content_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] + public delegate Efl.Canvas.Object efl_ui_widget_scrollable_content_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_scrollable_content_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_scrollable_content_get"); + + private static Efl.Canvas.Object scrollable_content_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_scrollable_content_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object); + try + { + _ret_var = ((IWidgetScrollableContent)ws.Target).GetScrollableContent(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_scrollable_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_widget_scrollable_content_get_delegate efl_ui_widget_scrollable_content_get_static_delegate; + + [return: MarshalAs(UnmanagedType.U1)] + private delegate bool efl_ui_widget_scrollable_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object content); + + [return: MarshalAs(UnmanagedType.U1)] + public delegate bool efl_ui_widget_scrollable_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object content); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_scrollable_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_scrollable_content_set"); + + private static bool scrollable_content_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object content) + { + Eina.Log.Debug("function efl_ui_widget_scrollable_content_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + bool _ret_var = default(bool); + try + { + _ret_var = ((IWidgetScrollableContent)ws.Target).SetScrollableContent(content); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_scrollable_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); + } + } + + private static efl_ui_widget_scrollable_content_set_delegate efl_ui_widget_scrollable_content_set_static_delegate; + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + private delegate System.String efl_ui_widget_scrollable_text_get_delegate(System.IntPtr obj, System.IntPtr pd); + + [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] + public delegate System.String efl_ui_widget_scrollable_text_get_api_delegate(System.IntPtr obj); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_scrollable_text_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_scrollable_text_get"); + + private static System.String scrollable_text_get(System.IntPtr obj, System.IntPtr pd) + { + Eina.Log.Debug("function efl_ui_widget_scrollable_text_get was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + System.String _ret_var = default(System.String); + try + { + _ret_var = ((IWidgetScrollableContent)ws.Target).GetScrollableText(); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + return _ret_var; + + } + else + { + return efl_ui_widget_scrollable_text_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); + } + } + + private static efl_ui_widget_scrollable_text_get_delegate efl_ui_widget_scrollable_text_get_static_delegate; + + + private delegate void efl_ui_widget_scrollable_text_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + + public delegate void efl_ui_widget_scrollable_text_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String text); + + public static Efl.Eo.FunctionWrapper efl_ui_widget_scrollable_text_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_scrollable_text_set"); + + private static void scrollable_text_set(System.IntPtr obj, System.IntPtr pd, System.String text) + { + Eina.Log.Debug("function efl_ui_widget_scrollable_text_set was called"); + var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); + if (ws != null) + { + + try + { + ((IWidgetScrollableContent)ws.Target).SetScrollableText(text); + } + catch (Exception e) + { + Eina.Log.Warning($"Callback error: {e.ToString()}"); + Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); + } + + + } + else + { + efl_ui_widget_scrollable_text_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), text); + } + } + + private static efl_ui_widget_scrollable_text_set_delegate efl_ui_widget_scrollable_text_set_static_delegate; + + #pragma warning restore CA1707, CS1591, SA1300, SA1600 + +} +} +} + +} + +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiIWidgetScrollableContentConcrete_ExtensionMethods { + + public static Efl.BindableProperty ScrollableContent(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IWidgetScrollableContent { + return new Efl.BindableProperty("scrollable_content", fac); + } + + public static Efl.BindableProperty ScrollableText(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IWidgetScrollableContent { + return new Efl.BindableProperty("scrollable_text", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_win.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_win.eo.cs old mode 100644 new mode 100755 index c674380cd..a73910725 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_win.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_win.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -9,31 +10,35 @@ namespace Efl { namespace Ui { -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class WinFullscreenChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when window is set to or from fullscreen public bool arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class WinMaximizedChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when window is set to or from maximized public bool arg { get; set; } } -///Event argument wrapper for event . +/// Event argument wrapper for event . [Efl.Eo.BindingEntity] public class WinWinRotationChangedEvt_Args : EventArgs { - ///Actual event payload. + /// Actual event payload. + /// Called when window rotation is changed, sends current rotation in degrees public int arg { get; set; } } -/// Efl UI window class +/// Efl UI window class. /// (Since EFL 1.22) +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.Win.NativeMethods] [Efl.Eo.BindingEntity] public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IText, Efl.Access.IWindow, Efl.Canvas.IScene, Efl.Input.IState, Efl.Ui.IWidgetFocusManager, Efl.Ui.Focus.IManager, Efl.Ui.Focus.IManagerWindowRoot { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -83,7 +88,8 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Win(ConstructingHandle ch) : base(ch) { @@ -144,7 +150,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event DeleteRequestEvt. + /// Method to raise event DeleteRequestEvt. public void OnDeleteRequestEvt(EventArgs e) { var key = "_EFL_UI_WIN_EVENT_DELETE_REQUEST"; @@ -197,7 +203,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event WithdrawnEvt. + /// Method to raise event WithdrawnEvt. public void OnWithdrawnEvt(EventArgs e) { var key = "_EFL_UI_WIN_EVENT_WITHDRAWN"; @@ -250,7 +256,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event MinimizedEvt. + /// Method to raise event MinimizedEvt. public void OnMinimizedEvt(EventArgs e) { var key = "_EFL_UI_WIN_EVENT_MINIMIZED"; @@ -303,7 +309,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event NormalEvt. + /// Method to raise event NormalEvt. public void OnNormalEvt(EventArgs e) { var key = "_EFL_UI_WIN_EVENT_NORMAL"; @@ -356,7 +362,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event StickEvt. + /// Method to raise event StickEvt. public void OnStickEvt(EventArgs e) { var key = "_EFL_UI_WIN_EVENT_STICK"; @@ -409,7 +415,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event UnstickEvt. + /// Method to raise event UnstickEvt. public void OnUnstickEvt(EventArgs e) { var key = "_EFL_UI_WIN_EVENT_UNSTICK"; @@ -424,6 +430,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } /// Called when window is set to or from fullscreen /// (Since EFL 1.22) + /// public event EventHandler FullscreenChangedEvt { add @@ -463,7 +470,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event FullscreenChangedEvt. + /// Method to raise event FullscreenChangedEvt. public void OnFullscreenChangedEvt(Efl.Ui.WinFullscreenChangedEvt_Args e) { var key = "_EFL_UI_WIN_EVENT_FULLSCREEN_CHANGED"; @@ -486,6 +493,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } /// Called when window is set to or from maximized /// (Since EFL 1.22) + /// public event EventHandler MaximizedChangedEvt { add @@ -525,7 +533,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event MaximizedChangedEvt. + /// Method to raise event MaximizedChangedEvt. public void OnMaximizedChangedEvt(Efl.Ui.WinMaximizedChangedEvt_Args e) { var key = "_EFL_UI_WIN_EVENT_MAXIMIZED_CHANGED"; @@ -586,7 +594,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event IndicatorPropChangedEvt. + /// Method to raise event IndicatorPropChangedEvt. public void OnIndicatorPropChangedEvt(EventArgs e) { var key = "_EFL_UI_WIN_EVENT_INDICATOR_PROP_CHANGED"; @@ -601,6 +609,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } /// Called when window rotation is changed, sends current rotation in degrees /// (Since EFL 1.22) + /// public event EventHandler WinRotationChangedEvt { add @@ -640,7 +649,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event WinRotationChangedEvt. + /// Method to raise event WinRotationChangedEvt. public void OnWinRotationChangedEvt(Efl.Ui.WinWinRotationChangedEvt_Args e) { var key = "_EFL_UI_WIN_EVENT_WIN_ROTATION_CHANGED"; @@ -701,7 +710,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event ProfileChangedEvt. + /// Method to raise event ProfileChangedEvt. public void OnProfileChangedEvt(EventArgs e) { var key = "_EFL_UI_WIN_EVENT_PROFILE_CHANGED"; @@ -754,7 +763,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event WmRotationChangedEvt. + /// Method to raise event WmRotationChangedEvt. public void OnWmRotationChangedEvt(EventArgs e) { var key = "_EFL_UI_WIN_EVENT_WM_ROTATION_CHANGED"; @@ -807,7 +816,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event ThemeChangedEvt. + /// Method to raise event ThemeChangedEvt. public void OnThemeChangedEvt(EventArgs e) { var key = "_EFL_UI_WIN_EVENT_THEME_CHANGED"; @@ -860,7 +869,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event ElmActionBlockMenuEvt. + /// Method to raise event ElmActionBlockMenuEvt. public void OnElmActionBlockMenuEvt(EventArgs e) { var key = "_EFL_UI_WIN_EVENT_ELM_ACTION_BLOCK_MENU"; @@ -913,7 +922,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event PauseEvt. + /// Method to raise event PauseEvt. public void OnPauseEvt(EventArgs e) { var key = "_EFL_UI_WIN_EVENT_PAUSE"; @@ -966,7 +975,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event ResumeEvt. + /// Method to raise event ResumeEvt. public void OnResumeEvt(EventArgs e) { var key = "_EFL_UI_WIN_EVENT_RESUME"; @@ -981,6 +990,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) + /// public event EventHandler ContentChangedEvt { add @@ -1020,7 +1030,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event ContentChangedEvt. + /// Method to raise event ContentChangedEvt. public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; @@ -1073,7 +1083,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event WindowCreatedEvt. + /// Method to raise event WindowCreatedEvt. public void OnWindowCreatedEvt(EventArgs e) { var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_CREATED"; @@ -1125,7 +1135,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event WindowDestroyedEvt. + /// Method to raise event WindowDestroyedEvt. public void OnWindowDestroyedEvt(EventArgs e) { var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_DESTROYED"; @@ -1177,7 +1187,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event WindowActivatedEvt. + /// Method to raise event WindowActivatedEvt. public void OnWindowActivatedEvt(EventArgs e) { var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_ACTIVATED"; @@ -1229,7 +1239,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event WindowDeactivatedEvt. + /// Method to raise event WindowDeactivatedEvt. public void OnWindowDeactivatedEvt(EventArgs e) { var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_DEACTIVATED"; @@ -1281,7 +1291,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event WindowMaximizedEvt. + /// Method to raise event WindowMaximizedEvt. public void OnWindowMaximizedEvt(EventArgs e) { var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_MAXIMIZED"; @@ -1333,7 +1343,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event WindowMinimizedEvt. + /// Method to raise event WindowMinimizedEvt. public void OnWindowMinimizedEvt(EventArgs e) { var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_MINIMIZED"; @@ -1385,7 +1395,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event WindowRestoredEvt. + /// Method to raise event WindowRestoredEvt. public void OnWindowRestoredEvt(EventArgs e) { var key = "_EFL_ACCESS_WINDOW_EVENT_WINDOW_RESTORED"; @@ -1438,7 +1448,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event SceneFocusInEvt. + /// Method to raise event SceneFocusInEvt. public void OnSceneFocusInEvt(EventArgs e) { var key = "_EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_IN"; @@ -1491,7 +1501,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event SceneFocusOutEvt. + /// Method to raise event SceneFocusOutEvt. public void OnSceneFocusOutEvt(EventArgs e) { var key = "_EFL_CANVAS_SCENE_EVENT_SCENE_FOCUS_OUT"; @@ -1506,6 +1516,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } /// Called when object got focus /// (Since EFL 1.22) + /// public event EventHandler ObjectFocusInEvt { add @@ -1545,7 +1556,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event ObjectFocusInEvt. + /// Method to raise event ObjectFocusInEvt. public void OnObjectFocusInEvt(Efl.Canvas.ISceneObjectFocusInEvt_Args e) { var key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_IN"; @@ -1561,6 +1572,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } /// Called when object lost focus /// (Since EFL 1.22) + /// public event EventHandler ObjectFocusOutEvt { add @@ -1600,7 +1612,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event ObjectFocusOutEvt. + /// Method to raise event ObjectFocusOutEvt. public void OnObjectFocusOutEvt(Efl.Canvas.ISceneObjectFocusOutEvt_Args e) { var key = "_EFL_CANVAS_SCENE_EVENT_OBJECT_FOCUS_OUT"; @@ -1654,7 +1666,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event RenderPreEvt. + /// Method to raise event RenderPreEvt. public void OnRenderPreEvt(EventArgs e) { var key = "_EFL_CANVAS_SCENE_EVENT_RENDER_PRE"; @@ -1669,6 +1681,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } /// Called when post render happens /// (Since EFL 1.22) + /// public event EventHandler RenderPostEvt { add @@ -1708,7 +1721,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event RenderPostEvt. + /// Method to raise event RenderPostEvt. public void OnRenderPostEvt(Efl.Canvas.ISceneRenderPostEvt_Args e) { var key = "_EFL_CANVAS_SCENE_EVENT_RENDER_POST"; @@ -1732,6 +1745,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } /// Called when input device changed /// (Since EFL 1.22) + /// public event EventHandler DeviceChangedEvt { add @@ -1771,7 +1785,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event DeviceChangedEvt. + /// Method to raise event DeviceChangedEvt. public void OnDeviceChangedEvt(Efl.Canvas.ISceneDeviceChangedEvt_Args e) { var key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_CHANGED"; @@ -1787,6 +1801,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } /// Called when input device was added /// (Since EFL 1.22) + /// public event EventHandler DeviceAddedEvt { add @@ -1826,7 +1841,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event DeviceAddedEvt. + /// Method to raise event DeviceAddedEvt. public void OnDeviceAddedEvt(Efl.Canvas.ISceneDeviceAddedEvt_Args e) { var key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_ADDED"; @@ -1842,6 +1857,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } /// Called when input device was removed /// (Since EFL 1.22) + /// public event EventHandler DeviceRemovedEvt { add @@ -1881,7 +1897,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event DeviceRemovedEvt. + /// Method to raise event DeviceRemovedEvt. public void OnDeviceRemovedEvt(Efl.Canvas.ISceneDeviceRemovedEvt_Args e) { var key = "_EFL_CANVAS_SCENE_EVENT_DEVICE_REMOVED"; @@ -1897,6 +1913,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } /// Redirect object has changed, the old manager is passed as an event argument. /// (Since EFL 1.22) + /// public event EventHandler RedirectChangedEvt { add @@ -1936,7 +1953,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event RedirectChangedEvt. + /// Method to raise event RedirectChangedEvt. public void OnRedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; @@ -1990,7 +2007,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event FlushPreEvt. + /// Method to raise event FlushPreEvt. public void OnFlushPreEvt(EventArgs e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; @@ -2043,7 +2060,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event CoordsDirtyEvt. + /// Method to raise event CoordsDirtyEvt. public void OnCoordsDirtyEvt(EventArgs e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; @@ -2058,6 +2075,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } /// The manager_focus property has changed. The previously focused object is passed as an event argument. /// (Since EFL 1.22) + /// public event EventHandler ManagerFocusChangedEvt { add @@ -2097,7 +2115,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event ManagerFocusChangedEvt. + /// Method to raise event ManagerFocusChangedEvt. public void OnManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; @@ -2113,6 +2131,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } /// Called when this focus manager is frozen or thawed, even_info being true indicates that it is now frozen, false indicates that it is thawed. /// (Since EFL 1.22) + /// public event EventHandler DirtyLogicFreezeChangedEvt { add @@ -2152,7 +2171,7 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } } } - ///Method to raise event DirtyLogicFreezeChangedEvt. + /// Method to raise event DirtyLogicFreezeChangedEvt. public void OnDirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) { var key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; @@ -2936,7 +2955,9 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT return _ret_var; } /// Get a device by name. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The name of the seat to find. /// The device or seat, null if not found. virtual public Efl.Input.Device GetDevice(System.String name) { @@ -2945,7 +2966,9 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT return _ret_var; } /// Get a seat by id. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The id of the seat to find. /// The seat or null if not found. virtual public Efl.Input.Device GetSeat(int id) { @@ -2954,7 +2977,9 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT return _ret_var; } /// Get the default seat. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The default seat or null if one does not exist. virtual public Efl.Input.Device GetSeatDefault() { var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_seat_default_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); @@ -2963,7 +2988,9 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } /// This function returns the current known pointer coordinates /// This function returns the current position of the main input pointer (mouse, pen, etc...). - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The seat, or null to use the default. /// The pointer position in pixels. /// true if a pointer exists for the given seat, otherwise false. @@ -3042,7 +3069,9 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } /// Iterate over the available input device seats for the canvas. /// A "seat" is the term used for a group of input devices, typically including a pointer and a keyboard. A seat object is the parent of the individual input devices. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// An iterator over the attached seats. virtual public Eina.Iterator Seats() { var _ret_var = Efl.Canvas.ISceneConcrete.NativeMethods.efl_canvas_scene_seats_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); @@ -3050,7 +3079,9 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT return new Eina.Iterator(_ret_var, true); } /// Indicates whether a key modifier is on, such as Ctrl, Shift, ... - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The modifier key to test. /// The seat device, may be null /// true if the key modifier is pressed. @@ -3060,7 +3091,9 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT return _ret_var; } /// Indicates whether a key lock is on, such as NumLock, CapsLock, ... - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The lock key to test. /// The seat device, may be null /// true if the key lock is on. @@ -3185,7 +3218,9 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } /// This will fetch the data from a registered node. /// Be aware this function will trigger a computation of all dirty nodes. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA method. It can be modified or removed in the future. Do not use it for product development. /// The child object to inspect. /// The list of relations starting from child. virtual public Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child) { @@ -3256,6 +3291,21 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT get { return GetKeyboardMode(); } set { SetKeyboardMode(value); } } + /// Defines which rotations this window supports. + /// The window manager will refer to these hints and rotate the window accordingly, depending on the device orientation, for instance. + /// (Since EFL 1.22) + /// Normal orientation. + public (bool, bool, bool, bool) WmAvailableRotations { + get { + bool _out_allow_0 = default(bool); + bool _out_allow_90 = default(bool); + bool _out_allow_180 = default(bool); + bool _out_allow_270 = default(bool); + GetWmAvailableRotations(out _out_allow_0,out _out_allow_90,out _out_allow_180,out _out_allow_270); + return (_out_allow_0,_out_allow_90,_out_allow_180,_out_allow_270); + } + set { SetWmAvailableRotations( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Available profiles on a window. /// (Since EFL 1.22) /// A list of profiles. @@ -3555,6 +3605,29 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT public int ScreenRotation { get { return GetScreenRotation(); } } + /// Get the pixel density in DPI (Dots Per Inch) for the screen that a window is on. + /// (Since EFL 1.22) + public (int, int) ScreenDpi { + get { + int _out_xdpi = default(int); + int _out_ydpi = default(int); + GetScreenDpi(out _out_xdpi,out _out_ydpi); + return (_out_xdpi,_out_ydpi); + } + } + /// Get the maximum image size the canvas can possibly handle. + /// This function returns the largest image or surface size that the canvas can handle in pixels, and if there is one, returns true. It returns false if no extra constraint on maximum image size exists. + /// + /// The default limit is 65535x65535. + /// (Since EFL 1.22) + /// true on success, false otherwise + public Eina.Size2D ImageMaxSize { + get { + Eina.Size2D _out_max = default(Eina.Size2D); + GetImageMaxSize(out _out_max); + return (_out_max); + } + } /// Get if the canvas is currently calculating group objects. /// (Since EFL 1.22) /// true if currently calculating group objects. @@ -3565,7 +3638,9 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT /// A canvas may have exactly one default seat. /// /// See also to find a seat by name. See also to find a seat by id. - /// (Since EFL 1.22) + /// (Since EFL 1.22) + /// + /// This is a BETA property. It can be modified or removed in the future. Do not use it for product development. /// The default seat or null if one does not exist. public Efl.Input.Device SeatDefault { get { return GetSeatDefault(); } @@ -8597,11 +8672,167 @@ public class Win : Efl.Ui.Widget, Efl.IConfig, Efl.IContent, Efl.IScreen, Efl.IT } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiWin_ExtensionMethods { + public static Efl.BindableProperty IndicatorMode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("indicator_mode", fac); + } + + public static Efl.BindableProperty KeyboardMode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("keyboard_mode", fac); + } + + + public static Efl.BindableProperty> WmAvailableProfiles(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty>("wm_available_profiles", fac); + } + + public static Efl.BindableProperty ScreenConstrain(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("screen_constrain", fac); + } + + public static Efl.BindableProperty PropFocusSkip(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("prop_focus_skip", fac); + } + + public static Efl.BindableProperty Autohide(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("autohide", fac); + } + + public static Efl.BindableProperty ExitOnClose(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("exit_on_close", fac); + } + + public static Efl.BindableProperty IconObject(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("icon_object", fac); + } + + public static Efl.BindableProperty Minimized(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("minimized", fac); + } + + public static Efl.BindableProperty Maximized(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("maximized", fac); + } + + public static Efl.BindableProperty Fullscreen(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("fullscreen", fac); + } + + public static Efl.BindableProperty Sticky(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("sticky", fac); + } + + public static Efl.BindableProperty Urgent(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("urgent", fac); + } + + public static Efl.BindableProperty Modal(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("modal", fac); + } + + public static Efl.BindableProperty Borderless(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("borderless", fac); + } + + public static Efl.BindableProperty WinRole(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("win_role", fac); + } + + public static Efl.BindableProperty WinName(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("win_name", fac); + } + + public static Efl.BindableProperty WinType(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("win_type", fac); + } + + public static Efl.BindableProperty AccelPreference(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("accel_preference", fac); + } + + public static Efl.BindableProperty Alpha(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("alpha", fac); + } + + + public static Efl.BindableProperty StackMasterId(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("stack_master_id", fac); + } + + public static Efl.BindableProperty StackBase(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("stack_base", fac); + } + + public static Efl.BindableProperty ExitOnAllWindowsClosed(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("exit_on_all_windows_closed", fac); + } + + public static Efl.BindableProperty HintBase(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("hint_base", fac); + } + + public static Efl.BindableProperty HintStep(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("hint_step", fac); + } + + public static Efl.BindableProperty WinRotation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("win_rotation", fac); + } + + public static Efl.BindableProperty FocusHighlightEnabled(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("focus_highlight_enabled", fac); + } + + public static Efl.BindableProperty FocusHighlightStyle(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("focus_highlight_style", fac); + } + + public static Efl.BindableProperty FocusHighlightAnimate(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("focus_highlight_animate", fac); + } + + + public static Efl.BindableProperty Content(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("content", fac); + } + + + + + + + + + + + + + + + public static Efl.BindableProperty ManagerFocus(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("manager_focus", fac); + } + + public static Efl.BindableProperty Redirect(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("redirect", fac); + } + + + + public static Efl.BindableProperty Root(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Win { + return new Efl.BindableProperty("root", fac); + } + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Ui { -/// Defines the types of window that can be created +/// Defines the types of window that can be created. /// These are hints set on a window so that a running Window Manager knows how the window should be handled and/or what kind of decorations it should have. /// /// Currently, only the X11 backed engines use them. @@ -8618,23 +8849,23 @@ DialogBasic = 2, Desktop = 3, /// The window is used as a dock or panel. Usually would be kept on top of any other window by the Window Manager. Dock = 4, -/// The window is used to hold a floating toolbar, or similar. +/// The window is used to hold a floating toolbar or similar. Toolbar = 5, -/// Similar to @.toolbar. +/// Similar to . Menu = 6, /// A persistent utility window, like a toolbox or palette. Utility = 7, /// Splash window for a starting up application. Splash = 8, -/// The window is a dropdown menu, as when an entry in a menubar is clicked. This hint exists for completion only, as the EFL way of implementing a menu would not normally use a separate window for its contents. +/// The window is a dropdown menu, as when an entry in a menu bar is clicked. This hint exists for completeness' sake, as the EFL way of implementing a menu would not normally use a separate window for its contents. DropdownMenu = 9, -/// Like @.dropdown_menu, but for the menu triggered by right-clicking an object. +/// Like , but for the menu triggered by right-clicking an object. PopupMenu = 10, -/// The window is a tooltip. A short piece of explanatory text that typically appear after the mouse cursor hovers over an object for a while. Typically not very commonly used in the EFL. +/// The window is a tooltip. A short piece of explanatory text that typically appear after the mouse cursor hovers over an object for a while. Not commonly used in the EFL. Tooltip = 11, /// A notification window, like a warning about battery life or a new E-Mail received. Notification = 12, -/// A window holding the contents of a combo box. Not usually used in the EFL. +/// A window holding the contents of a combo box. Not commonly used in the EFL. Combo = 13, /// Internal use. Dnd = 14, @@ -8703,20 +8934,20 @@ namespace Efl { namespace Ui { -/// Defines the type indicator that can be shown +/// Defines the type indicator that can be shown. /// (Since EFL 1.22) [Efl.Eo.BindingEntity] public enum WinIndicatorMode { -/// Request to deactivate the indicator +/// Request to deactivate the indicator. Off = 0, -/// The indicator icon is opaque, as is the indicator background. The content of window is located at the end of the indicator. The area of indicator and window content are not overlapped +/// The indicator icon is opaque, as is the indicator background. The content of window is located at the end of the indicator. The area of indicator and window content are not overlapped. BgOpaque = 1, /// Be translucent the indicator Translucent = 2, /// Transparentizes the indicator Transparent = 3, -/// The icon of indicator is opaque, but the background is transparent. The content of window is located under the indicator in Z-order. The area of indicator and window content are overlapped +/// The icon of indicator is opaque, but the background is transparent. The content of window is located under the indicator in Z-order. The area of indicator and window content are overlapped. BgTransparent = 4, /// The indicator is hidden so user can see only the content of window such as in video mode. If user flicks the upper side of window, the indicator is shown temporarily. Hidden = 5, @@ -8730,13 +8961,13 @@ namespace Efl { namespace Ui { -/// Defines the mode of a modal window +/// Defines the mode of a modal window. [Efl.Eo.BindingEntity] public enum WinModalMode { -/// The window is not modal window. +/// The window is not a modal window. None = 0, -/// The window is modal window. +/// The window is a modal window. Modal = 1, } @@ -8766,7 +8997,7 @@ namespace Efl { namespace Ui { -/// Define the move or resize mode of window. +/// Define the move or resize mode of a window. /// The user can request the display server to start moving or resizing the window by combining these modes. However only limited combinations are allowed. /// /// Currently, only the following 9 combinations are permitted. More combinations may be added in future: 1. move, 2. top, 3. bottom, 4. left, 5. right, 6. top | left, 7. top | right, 8. bottom | left, 9. bottom | right. diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_win_inlined.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_win_inlined.eo.cs old mode 100644 new mode 100755 index 37ce2a945..0ef6f92d6 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_win_inlined.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_win_inlined.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Ui { /// An inlined window. /// The window is rendered onto an image buffer. No actual window is created, instead the window and all of its contents will be rendered to an image buffer. This allows child windows inside a parent just like any other object. You can also do other things like apply map effects. This window must have a valid parent. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.WinInlined.NativeMethods] [Efl.Eo.BindingEntity] public class WinInlined : Efl.Ui.Win { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -65,7 +67,8 @@ public class WinInlined : Efl.Ui.Win FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected WinInlined(ConstructingHandle ch) : base(ch) { @@ -180,3 +183,10 @@ public class WinInlined : Efl.Ui.Win } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiWinInlined_ExtensionMethods { + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_win_part.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_win_part.eo.cs old mode 100644 new mode 100755 index 108b7efae..0fa3bd4a2 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_win_part.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_win_part.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,11 +11,12 @@ namespace Efl { namespace Ui { /// Efl UI window interal part class +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.WinPart.NativeMethods] [Efl.Eo.BindingEntity] public class WinPart : Efl.Ui.WidgetPart, Efl.IContent, Efl.IFile, Efl.Gfx.IColor { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -40,7 +42,8 @@ public class WinPart : Efl.Ui.WidgetPart, Efl.IContent, Efl.IFile, Efl.Gfx.IColo FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected WinPart(ConstructingHandle ch) : base(ch) { @@ -63,6 +66,7 @@ public class WinPart : Efl.Ui.WidgetPart, Efl.IContent, Efl.IFile, Efl.Gfx.IColo /// Sent after the content is set or unset using the current content object. /// (Since EFL 1.22) + /// public event EventHandler ContentChangedEvt { add @@ -102,7 +106,7 @@ public class WinPart : Efl.Ui.WidgetPart, Efl.IContent, Efl.IFile, Efl.Gfx.IColo } } } - ///Method to raise event ContentChangedEvt. + /// Method to raise event ContentChangedEvt. public void OnContentChangedEvt(Efl.IContentContentChangedEvt_Args e) { var key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED"; @@ -303,6 +307,26 @@ public class WinPart : Efl.Ui.WidgetPart, Efl.IContent, Efl.IFile, Efl.Gfx.IColo public bool Loaded { get { return GetLoaded(); } } + /// Retrieves the general/main color of the given Evas object. + /// Retrieves the main color's RGB component (and alpha channel) values, which range from 0 to 255. For the alpha channel, which defines the object's transparency level, 0 means totally transparent, while 255 means opaque. These color values are premultiplied by the alpha value. + /// + /// Usually youll use this attribute for text and rectangle objects, where the main color is their unique one. If set for objects which themselves have colors, like the images one, those colors get modulated by this one. + /// + /// All newly created Evas rectangles get the default color values of 255 255 255 255 (opaque white). + /// + /// Use null pointers on the components you're not interested in: they'll be ignored by the function. + /// (Since EFL 1.22) + public (int, int, int, int) Color { + get { + int _out_r = default(int); + int _out_g = default(int); + int _out_b = default(int); + int _out_a = default(int); + GetColor(out _out_r,out _out_g,out _out_b,out _out_a); + return (_out_r,_out_g,_out_b,_out_a); + } + set { SetColor( value.Item1, value.Item2, value.Item3, value.Item4); } + } /// Get hex color code of given Evas object. This returns a short lived hex color code string. /// (Since EFL 1.22) /// the hex color code. @@ -1077,3 +1101,31 @@ public class WinPart : Efl.Ui.WidgetPart, Efl.IContent, Efl.IFile, Efl.Gfx.IColo } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiWinPart_ExtensionMethods { + public static Efl.BindableProperty Content(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.WinPart { + return new Efl.BindableProperty("content", fac); + } + + public static Efl.BindableProperty Mmap(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.WinPart { + return new Efl.BindableProperty("mmap", fac); + } + + public static Efl.BindableProperty File(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.WinPart { + return new Efl.BindableProperty("file", fac); + } + + public static Efl.BindableProperty Key(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.WinPart { + return new Efl.BindableProperty("key", fac); + } + + + + public static Efl.BindableProperty ColorCode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.WinPart { + return new Efl.BindableProperty("color_code", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_win_socket.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_win_socket.eo.cs old mode 100644 new mode 100755 index e333ab2a2..f1df40515 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_win_socket.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_win_socket.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -11,11 +12,12 @@ namespace Ui { /// An off-screen window to be displayed in a remote process. /// The window is rendered onto an image buffer to be displayed in another process' plug image object. No actual window is created for this type. The window contents can then be sent over a socket so that another process displays it inside a plug image. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.WinSocket.NativeMethods] [Efl.Eo.BindingEntity] public class WinSocket : Efl.Ui.Win { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -65,7 +67,8 @@ public class WinSocket : Efl.Ui.Win FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected WinSocket(ConstructingHandle ch) : base(ch) { @@ -178,3 +181,9 @@ public class WinSocket : Efl.Ui.Win } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiWinSocket_ExtensionMethods { +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_zoom.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_zoom.eo.cs old mode 100644 new mode 100755 index fc3760f3d..7379687fe --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_zoom.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_zoom.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -10,6 +11,7 @@ namespace Efl { namespace Ui { /// Efl UI zoom interface +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.IZoomConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface IZoom : @@ -48,31 +50,32 @@ void SetZoomMode(Efl.Ui.ZoomMode mode); /// This sets the zoom animation state to on or off for zoomable. The default is off. When paused is true, it will stop zooming using animation on zoom level changes and change instantly, stopping any existing animations that are running. /// The paused state. bool ZoomAnimation { - get ; - set ; + get; + set; } /// Get the zoom level of the photo /// This returns the current zoom level of the zoomable object. Note that if you set the fill mode to other than #EFL_UI_ZOOM_MODE_MANUAL (which is the default), the zoom level may be changed at any time by the zoomable object itself to account for photo size and zoomable viewport size. /// The zoom level to set double ZoomLevel { - get ; - set ; + get; + set; } /// Get the zoom mode /// This gets the current zoom mode of the zoomable object. /// The zoom mode. Efl.Ui.ZoomMode ZoomMode { - get ; - set ; + get; + set; } } /// Efl UI zoom interface -sealed public class IZoomConcrete : +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. +sealed public class IZoomConcrete : Efl.Eo.EoWrapper , IZoom { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -88,7 +91,8 @@ sealed public class IZoomConcrete : } } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private IZoomConcrete(ConstructingHandle ch) : base(ch) { @@ -142,7 +146,7 @@ sealed public class IZoomConcrete : } } } - ///Method to raise event ZoomStartEvt. + /// Method to raise event ZoomStartEvt. public void OnZoomStartEvt(EventArgs e) { var key = "_EFL_UI_EVENT_ZOOM_START"; @@ -194,7 +198,7 @@ sealed public class IZoomConcrete : } } } - ///Method to raise event ZoomStopEvt. + /// Method to raise event ZoomStopEvt. public void OnZoomStopEvt(EventArgs e) { var key = "_EFL_UI_EVENT_ZOOM_STOP"; @@ -246,7 +250,7 @@ sealed public class IZoomConcrete : } } } - ///Method to raise event ZoomChangeEvt. + /// Method to raise event ZoomChangeEvt. public void OnZoomChangeEvt(EventArgs e) { var key = "_EFL_UI_EVENT_ZOOM_CHANGE"; @@ -632,6 +636,24 @@ sealed public class IZoomConcrete : } +#if EFL_BETA +#pragma warning disable CS1591 +public static class Efl_UiIZoomConcrete_ExtensionMethods { + public static Efl.BindableProperty ZoomAnimation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IZoom { + return new Efl.BindableProperty("zoom_animation", fac); + } + + public static Efl.BindableProperty ZoomLevel(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IZoom { + return new Efl.BindableProperty("zoom_level", fac); + } + + public static Efl.BindableProperty ZoomMode(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.IZoom { + return new Efl.BindableProperty("zoom_mode", fac); + } + +} +#pragma warning restore CS1591 +#endif namespace Efl { namespace Ui { diff --git a/internals/src/EflSharp/EflSharp/efl/efl_view_model.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_view_model.eo.cs old mode 100644 new mode 100755 index 7154fb8d7..a6786f6ff --- a/internals/src/EflSharp/EflSharp/efl/efl_view_model.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_view_model.eo.cs @@ -1,3 +1,4 @@ +#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; @@ -152,11 +153,12 @@ namespace Efl { /// Efl model providing helpers for custom properties used when linking a model to a view and you need to generate/adapt values for display. /// There is two ways to use this class, you can either inherit from it and have a custom constructor for example. Or you can just instantiate it and manually define your property on it via callbacks. +/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.ViewModel.NativeMethods] [Efl.Eo.BindingEntity] public class ViewModel : Efl.CompositeModel { - ///Pointer to the native class description. + /// Pointer to the native class description. public override System.IntPtr NativeClass { get @@ -200,7 +202,8 @@ public class ViewModel : Efl.CompositeModel FinishInstantiation(); } - /// Constructor to be used when objects are expected to be constructed from native code. + /// Subclasses should override this constructor if they are expected to be instantiated from native code. + /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected ViewModel(ConstructingHandle ch) : base(ch) { @@ -707,3 +710,13 @@ public class ViewModel : Efl.CompositeModel } } +#if EFL_BETA +#pragma warning disable CS1591 +public static class EflViewModel_ExtensionMethods { + public static Efl.BindableProperty ChildrenBind(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.ViewModel { + return new Efl.BindableProperty("children_bind", fac); + } + +} +#pragma warning restore CS1591 +#endif diff --git a/internals/src/EflSharp/EflSharp/efl/eina_accessor.cs b/internals/src/EflSharp/EflSharp/efl/eina_accessor.cs old mode 100644 new mode 100755 diff --git a/internals/src/EflSharp/EflSharp/efl/eina_array.cs b/internals/src/EflSharp/EflSharp/efl/eina_array.cs old mode 100644 new mode 100755 index e75ca6ae7..8c0955709 --- a/internals/src/EflSharp/EflSharp/efl/eina_array.cs +++ b/internals/src/EflSharp/EflSharp/efl/eina_array.cs @@ -138,7 +138,7 @@ public class Array : IEnumerable, IDisposable return; } - if (OwnContent) + if (Own && OwnContent) { int len = (int)eina_array_count_custom_export_mono(h); for (int i = 0; i < len; ++i) diff --git a/internals/src/EflSharp/EflSharp/efl/eina_binbuf.cs b/internals/src/EflSharp/EflSharp/efl/eina_binbuf.cs old mode 100644 new mode 100755 diff --git a/internals/src/EflSharp/EflSharp/efl/eina_common.cs b/internals/src/EflSharp/EflSharp/efl/eina_common.cs old mode 100644 new mode 100755 diff --git a/internals/src/EflSharp/EflSharp/efl/eina_config.cs b/internals/src/EflSharp/EflSharp/efl/eina_config.cs old mode 100644 new mode 100755 diff --git a/internals/src/EflSharp/EflSharp/efl/eina_container_common.cs b/internals/src/EflSharp/EflSharp/efl/eina_container_common.cs old mode 100644 new mode 100755 diff --git a/internals/src/EflSharp/EflSharp/efl/eina_error.cs b/internals/src/EflSharp/EflSharp/efl/eina_error.cs old mode 100644 new mode 100755 diff --git a/internals/src/EflSharp/EflSharp/efl/eina_hash.cs b/internals/src/EflSharp/EflSharp/efl/eina_hash.cs old mode 100644 new mode 100755 diff --git a/internals/src/EflSharp/EflSharp/efl/eina_inarray.cs b/internals/src/EflSharp/EflSharp/efl/eina_inarray.cs old mode 100644 new mode 100755 diff --git a/internals/src/EflSharp/EflSharp/efl/eina_inlist.cs b/internals/src/EflSharp/EflSharp/efl/eina_inlist.cs old mode 100644 new mode 100755 diff --git a/internals/src/EflSharp/EflSharp/efl/eina_iterator.cs b/internals/src/EflSharp/EflSharp/efl/eina_iterator.cs old mode 100644 new mode 100755 diff --git a/internals/src/EflSharp/EflSharp/efl/eina_list.cs b/internals/src/EflSharp/EflSharp/efl/eina_list.cs old mode 100644 new mode 100755 index 4c25c25e6..9fe5e90d7 --- a/internals/src/EflSharp/EflSharp/efl/eina_list.cs +++ b/internals/src/EflSharp/EflSharp/efl/eina_list.cs @@ -182,7 +182,7 @@ public class List : IEnumerable, IDisposable return; } - if (OwnContent) + if (Own && OwnContent) { for (IntPtr curr = h; curr != IntPtr.Zero; curr = InternalNext(curr)) { diff --git a/internals/src/EflSharp/EflSharp/efl/eina_log.cs b/internals/src/EflSharp/EflSharp/efl/eina_log.cs old mode 100644 new mode 100755 diff --git a/internals/src/EflSharp/EflSharp/efl/eina_promises.cs b/internals/src/EflSharp/EflSharp/efl/eina_promises.cs old mode 100644 new mode 100755 diff --git a/internals/src/EflSharp/EflSharp/efl/eina_slice.cs b/internals/src/EflSharp/EflSharp/efl/eina_slice.cs old mode 100644 new mode 100755 diff --git a/internals/src/EflSharp/EflSharp/efl/eina_strbuf.cs b/internals/src/EflSharp/EflSharp/efl/eina_strbuf.cs old mode 100644 new mode 100755 diff --git a/internals/src/EflSharp/EflSharp/efl/eina_stringshare.cs b/internals/src/EflSharp/EflSharp/efl/eina_stringshare.cs old mode 100644 new mode 100755 diff --git a/internals/src/EflSharp/EflSharp/efl/eina_types.eot.cs b/internals/src/EflSharp/EflSharp/efl/eina_types.eot.cs old mode 100644 new mode 100755 index 800babe0a..ddb7cd7eb --- a/internals/src/EflSharp/EflSharp/efl/eina_types.eot.cs +++ b/internals/src/EflSharp/EflSharp/efl/eina_types.eot.cs @@ -67,7 +67,11 @@ public struct Rect public int W; /// Height of the rectangle in pixels. public int H; - ///Constructor for Rect. + /// Constructor for Rect. + /// X coordinate of the rectangle, from the top-left corner.; + /// Y coordinate of the rectangle, from the top-left corner.; + /// Width of the rectangle in pixels.; + /// Height of the rectangle in pixels.; public Rect( int X = default(int), int Y = default(int), @@ -80,8 +84,8 @@ public struct Rect this.H = H; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator Rect(IntPtr ptr) { var tmp = (Rect.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Rect.NativeStruct)); @@ -90,7 +94,7 @@ public struct Rect #pragma warning disable CS1591 - ///Internal wrapper for struct Rect. + /// Internal wrapper for struct Rect. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -102,7 +106,7 @@ public struct Rect public int W; public int H; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator Rect.NativeStruct(Rect _external_struct) { var _internal_struct = new Rect.NativeStruct(); @@ -113,7 +117,7 @@ public struct Rect return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator Rect(Rect.NativeStruct _internal_struct) { var _external_struct = new Rect(); @@ -143,7 +147,9 @@ public struct Position2D public int X; /// Y position in pixels, from the top-left corner. public int Y; - ///Constructor for Position2D. + /// Constructor for Position2D. + /// X position in pixels, from the top-left corner.; + /// Y position in pixels, from the top-left corner.; public Position2D( int X = default(int), int Y = default(int) ) @@ -152,8 +158,8 @@ public struct Position2D this.Y = Y; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator Position2D(IntPtr ptr) { var tmp = (Position2D.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Position2D.NativeStruct)); @@ -162,7 +168,7 @@ public struct Position2D #pragma warning disable CS1591 - ///Internal wrapper for struct Position2D. + /// Internal wrapper for struct Position2D. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -170,7 +176,7 @@ public struct Position2D public int X; public int Y; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator Position2D.NativeStruct(Position2D _external_struct) { var _internal_struct = new Position2D.NativeStruct(); @@ -179,7 +185,7 @@ public struct Position2D return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator Position2D(Position2D.NativeStruct _internal_struct) { var _external_struct = new Position2D(); @@ -207,7 +213,9 @@ public struct Size2D public int W; /// Y position in pixels, from the top-left corner. public int H; - ///Constructor for Size2D. + /// Constructor for Size2D. + /// X position in pixels, from the top-left corner.; + /// Y position in pixels, from the top-left corner.; public Size2D( int W = default(int), int H = default(int) ) @@ -216,8 +224,8 @@ public struct Size2D this.H = H; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator Size2D(IntPtr ptr) { var tmp = (Size2D.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Size2D.NativeStruct)); @@ -226,7 +234,7 @@ public struct Size2D #pragma warning disable CS1591 - ///Internal wrapper for struct Size2D. + /// Internal wrapper for struct Size2D. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -234,7 +242,7 @@ public struct Size2D public int W; public int H; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator Size2D.NativeStruct(Size2D _external_struct) { var _internal_struct = new Size2D.NativeStruct(); @@ -243,7 +251,7 @@ public struct Size2D return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator Size2D(Size2D.NativeStruct _internal_struct) { var _external_struct = new Size2D(); @@ -267,10 +275,10 @@ namespace Eina { [Efl.Eo.BindingEntity] public struct File { - ///Placeholder field + /// Placeholder field public IntPtr field; - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator File(IntPtr ptr) { var tmp = (File.NativeStruct)Marshal.PtrToStructure(ptr, typeof(File.NativeStruct)); @@ -279,19 +287,19 @@ public struct File #pragma warning disable CS1591 - ///Internal wrapper for struct File. + /// Internal wrapper for struct File. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { internal IntPtr field; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator File.NativeStruct(File _external_struct) { var _internal_struct = new File.NativeStruct(); return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator File(File.NativeStruct _internal_struct) { var _external_struct = new File(); @@ -317,7 +325,9 @@ public struct Vector2 public double X; /// Y coordinate. public double Y; - ///Constructor for Vector2. + /// Constructor for Vector2. + /// X coordinate.; + /// Y coordinate.; public Vector2( double X = default(double), double Y = default(double) ) @@ -326,8 +336,8 @@ public struct Vector2 this.Y = Y; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator Vector2(IntPtr ptr) { var tmp = (Vector2.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Vector2.NativeStruct)); @@ -336,7 +346,7 @@ public struct Vector2 #pragma warning disable CS1591 - ///Internal wrapper for struct Vector2. + /// Internal wrapper for struct Vector2. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -344,7 +354,7 @@ public struct Vector2 public double X; public double Y; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator Vector2.NativeStruct(Vector2 _external_struct) { var _internal_struct = new Vector2.NativeStruct(); @@ -353,7 +363,7 @@ public struct Vector2 return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator Vector2(Vector2.NativeStruct _internal_struct) { var _external_struct = new Vector2(); @@ -395,7 +405,16 @@ public struct Matrix3 public double Zy; /// ZZ matrix value public double Zz; - ///Constructor for Matrix3. + /// Constructor for Matrix3. + /// XX matrix value; + /// XY matrix value; + /// XZ matrix value; + /// YX matrix value; + /// YY matrix value; + /// YZ matrix value; + /// ZX matrix value; + /// ZY matrix value; + /// ZZ matrix value; public Matrix3( double Xx = default(double), double Xy = default(double), @@ -418,8 +437,8 @@ public struct Matrix3 this.Zz = Zz; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator Matrix3(IntPtr ptr) { var tmp = (Matrix3.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Matrix3.NativeStruct)); @@ -428,7 +447,7 @@ public struct Matrix3 #pragma warning disable CS1591 - ///Internal wrapper for struct Matrix3. + /// Internal wrapper for struct Matrix3. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -450,7 +469,7 @@ public struct Matrix3 public double Zy; public double Zz; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator Matrix3.NativeStruct(Matrix3 _external_struct) { var _internal_struct = new Matrix3.NativeStruct(); @@ -466,7 +485,7 @@ public struct Matrix3 return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator Matrix3(Matrix3.NativeStruct _internal_struct) { var _external_struct = new Matrix3(); @@ -497,10 +516,10 @@ namespace Eina { [Efl.Eo.BindingEntity] public struct FileDirectInfo { - ///Placeholder field + /// Placeholder field public IntPtr field; - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator FileDirectInfo(IntPtr ptr) { var tmp = (FileDirectInfo.NativeStruct)Marshal.PtrToStructure(ptr, typeof(FileDirectInfo.NativeStruct)); @@ -509,19 +528,19 @@ public struct FileDirectInfo #pragma warning disable CS1591 - ///Internal wrapper for struct FileDirectInfo. + /// Internal wrapper for struct FileDirectInfo. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { internal IntPtr field; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator FileDirectInfo.NativeStruct(FileDirectInfo _external_struct) { var _internal_struct = new FileDirectInfo.NativeStruct(); return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator FileDirectInfo(FileDirectInfo.NativeStruct _internal_struct) { var _external_struct = new FileDirectInfo(); @@ -575,7 +594,23 @@ public struct Stat public uint Ctime; /// The nano version of the timestmap when the file was created public uint Ctimensec; - ///Constructor for Stat. + /// Constructor for Stat. + /// The device where this file is located; + /// The inode; + /// The mode; + /// The link number; + /// The owner user id; + /// The owner group id; + /// The remote device; + /// The file size in bytes; + /// The block size in bytes; + /// The number of blocks allocated; + /// The tilestamp when the file was last accessed; + /// The nano version of the timestmap when the file was last accessed; + /// The tilestamp when the file was modified; + /// The nano version of the timestmap when the file was modified; + /// The tilestamp when the file was created; + /// The nano version of the timestmap when the file was created; public Stat( uint Dev = default(uint), uint Ino = default(uint), @@ -612,8 +647,8 @@ public struct Stat this.Ctimensec = Ctimensec; } - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator Stat(IntPtr ptr) { var tmp = (Stat.NativeStruct)Marshal.PtrToStructure(ptr, typeof(Stat.NativeStruct)); @@ -622,7 +657,7 @@ public struct Stat #pragma warning disable CS1591 - ///Internal wrapper for struct Stat. + /// Internal wrapper for struct Stat. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { @@ -658,7 +693,7 @@ public struct Stat public uint Ctime; public uint Ctimensec; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator Stat.NativeStruct(Stat _external_struct) { var _internal_struct = new Stat.NativeStruct(); @@ -681,7 +716,7 @@ public struct Stat return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator Stat(Stat.NativeStruct _internal_struct) { var _external_struct = new Stat(); diff --git a/internals/src/EflSharp/EflSharp/efl/eina_value.cs b/internals/src/EflSharp/EflSharp/efl/eina_value.cs old mode 100644 new mode 100755 index cedf5001c..57a615772 --- a/internals/src/EflSharp/EflSharp/efl/eina_value.cs +++ b/internals/src/EflSharp/EflSharp/efl/eina_value.cs @@ -3,6 +3,7 @@ #define CODE_ANALYSIS using System; +using System.ComponentModel; using System.Linq; using System.Runtime.InteropServices; using System.Collections.Generic; @@ -515,6 +516,8 @@ static internal class UnsafeNativeMethods internal static extern IntPtr type_array(); [DllImport(efl.Libs.CustomExports)] internal static extern IntPtr type_list(); + [DllImport(efl.Libs.CustomExports)] + internal static extern IntPtr type_hash(); // Optional [DllImport(efl.Libs.CustomExports)] @@ -716,6 +719,39 @@ static class ValueTypeMethods } } +/// Boxing class for custom marshalling of ValueType enums. +/// +/// As custom marshalling of enums (and other value types) is not supported, use +/// use this boxing class as an intermediate at the Marshalling API level (like in +/// marshall_type_impl.hh in the generator). User-facing API still uses Eina.ValueType +/// normally. +/// +[EditorBrowsable(EditorBrowsableState.Never)] +public class ValueTypeBox +{ + public ValueType _payload; + + public ValueTypeBox(ValueType v) + { + _payload = v; + } + + public static implicit operator ValueTypeBox(ValueType v) + { + return new ValueTypeBox(v); + } + + public static implicit operator ValueType(ValueTypeBox box) + { + if (box == null) + { + return Eina.ValueType.Empty; + } + + return box._payload; + } +} + static class ValueTypeBridge { private static Dictionary ManagedToNative = new Dictionary(); @@ -860,6 +896,9 @@ static class ValueTypeBridge ManagedToNative.Add(ValueType.List, type_list()); NativeToManaged.Add(type_list(), ValueType.List); + ManagedToNative.Add(ValueType.Hash, type_hash()); + NativeToManaged.Add(type_hash(), ValueType.Hash); + ManagedToNative.Add(ValueType.Optional, type_optional()); NativeToManaged.Add(type_optional(), ValueType.Optional); @@ -2898,6 +2937,7 @@ public class Value : IDisposable, IComparable, IEquatable /// Custom marshaler to convert value pointers to managed values and back, /// without changing ownership. +[EditorBrowsable(EditorBrowsableState.Never)] public class ValueMarshaler : ICustomMarshaler { /// Creates a managed value from a C pointer, whitout taking ownership of it. @@ -3000,4 +3040,49 @@ public class ValueMarshalerOwn : ICustomMarshaler static private ValueMarshalerOwn marshaler; } +/// Custom marshaler to convert value type pointers to managed boxed enum values +/// and back. +public class ValueTypeMarshaler : ICustomMarshaler +{ + /// Creates a boxed ValueType enum value from a C pointer. + public object MarshalNativeToManaged(IntPtr pNativeData) + { + var r = ValueTypeBridge.GetManaged(pNativeData); + return new ValueTypeBox(r); + } + public static Eina.ValueType vtype; + + /// Retrieves the C pointer from a given boxed enum value type. + public IntPtr MarshalManagedToNative(object managedObj) + { + ValueTypeBox v = (ValueTypeBox)managedObj; + return ValueTypeBridge.GetNative(v); + } + + public void CleanUpNativeData(IntPtr pNativeData) + { + } + + public void CleanUpManagedData(object managedObj) + { + } + + public int GetNativeDataSize() + { + return -1; + } + + public static ICustomMarshaler GetInstance(string cookie) + { + if (marshaler == null) + { + marshaler = new ValueTypeMarshaler(); + } + + return marshaler; + } + + static private ValueTypeMarshaler marshaler; +} + } diff --git a/internals/src/EflSharp/EflSharp/efl/elm_general.eot.cs b/internals/src/EflSharp/EflSharp/efl/elm_general.eot.cs old mode 100644 new mode 100755 index 3bf99b89d..4f994d835 --- a/internals/src/EflSharp/EflSharp/efl/elm_general.eot.cs +++ b/internals/src/EflSharp/EflSharp/efl/elm_general.eot.cs @@ -250,10 +250,10 @@ namespace Elm { [Efl.Eo.BindingEntity] public struct ValidateContent { - ///Placeholder field + /// Placeholder field public IntPtr field; - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator ValidateContent(IntPtr ptr) { var tmp = (ValidateContent.NativeStruct)Marshal.PtrToStructure(ptr, typeof(ValidateContent.NativeStruct)); @@ -262,19 +262,19 @@ public struct ValidateContent #pragma warning disable CS1591 - ///Internal wrapper for struct ValidateContent. + /// Internal wrapper for struct ValidateContent. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { internal IntPtr field; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator ValidateContent.NativeStruct(ValidateContent _external_struct) { var _internal_struct = new ValidateContent.NativeStruct(); return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator ValidateContent(ValidateContent.NativeStruct _internal_struct) { var _external_struct = new ValidateContent(); @@ -296,10 +296,10 @@ namespace Elm { [Efl.Eo.BindingEntity] public struct EntryAnchorInfo { - ///Placeholder field + /// Placeholder field public IntPtr field; - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator EntryAnchorInfo(IntPtr ptr) { var tmp = (EntryAnchorInfo.NativeStruct)Marshal.PtrToStructure(ptr, typeof(EntryAnchorInfo.NativeStruct)); @@ -308,19 +308,19 @@ public struct EntryAnchorInfo #pragma warning disable CS1591 - ///Internal wrapper for struct EntryAnchorInfo. + /// Internal wrapper for struct EntryAnchorInfo. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { internal IntPtr field; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator EntryAnchorInfo.NativeStruct(EntryAnchorInfo _external_struct) { var _internal_struct = new EntryAnchorInfo.NativeStruct(); return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator EntryAnchorInfo(EntryAnchorInfo.NativeStruct _internal_struct) { var _external_struct = new EntryAnchorInfo(); @@ -342,10 +342,10 @@ namespace Elm { [Efl.Eo.BindingEntity] public struct EntryAnchorHoverInfo { - ///Placeholder field + /// Placeholder field public IntPtr field; - ///Implicit conversion to the managed representation from a native pointer. - ///Native pointer to be converted. + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. public static implicit operator EntryAnchorHoverInfo(IntPtr ptr) { var tmp = (EntryAnchorHoverInfo.NativeStruct)Marshal.PtrToStructure(ptr, typeof(EntryAnchorHoverInfo.NativeStruct)); @@ -354,19 +354,19 @@ public struct EntryAnchorHoverInfo #pragma warning disable CS1591 - ///Internal wrapper for struct EntryAnchorHoverInfo. + /// Internal wrapper for struct EntryAnchorHoverInfo. [StructLayout(LayoutKind.Sequential)] public struct NativeStruct { internal IntPtr field; - ///Implicit conversion to the internal/marshalling representation. + /// Implicit conversion to the internal/marshalling representation. public static implicit operator EntryAnchorHoverInfo.NativeStruct(EntryAnchorHoverInfo _external_struct) { var _internal_struct = new EntryAnchorHoverInfo.NativeStruct(); return _internal_struct; } - ///Implicit conversion to the managed representation. + /// Implicit conversion to the managed representation. public static implicit operator EntryAnchorHoverInfo(EntryAnchorHoverInfo.NativeStruct _internal_struct) { var _external_struct = new EntryAnchorHoverInfo(); diff --git a/internals/src/EflSharp/EflSharp/efl/elm_interface_scrollable.eo.cs b/internals/src/EflSharp/EflSharp/efl/elm_interface_scrollable.eo.cs deleted file mode 100644 index ab810b095..000000000 --- a/internals/src/EflSharp/EflSharp/efl/elm_interface_scrollable.eo.cs +++ /dev/null @@ -1,7090 +0,0 @@ -#pragma warning disable CS1591 -using System; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.ComponentModel; -namespace Elm { - -/// Elm scrollable mixin -[Elm.IInterfaceScrollableConcrete.NativeMethods] -[Efl.Eo.BindingEntity] -public interface IInterfaceScrollable : - Efl.Ui.IScrollable , - Efl.Ui.IWidgetFocusManager , - Efl.Ui.Focus.IManagerSub , - Efl.Eo.IWrapper, IDisposable -{ - /// Control scrolling gravity on the scrollable -/// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. -/// -/// The scroller will adjust the view to glue itself as follows. -/// -/// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content -/// -/// Default values for x and y are 0.0 -/// Horizontal scrolling gravity -/// Vertical scrolling gravity -void GetGravity(out double x, out double y); - /// Control scrolling gravity on the scrollable -/// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. -/// -/// The scroller will adjust the view to glue itself as follows. -/// -/// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content -/// -/// Default values for x and y are 0.0 -/// Horizontal scrolling gravity -/// Vertical scrolling gravity -void SetGravity(double x, double y); - /// Bouncing behavior -/// When scrolling, the scroller may "bounce" when reaching an edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axis. This API will set if it is enabled for the given axis with the boolean parameters for each axis. -/// Horizontal bounce policy. -/// Vertical bounce policy. -void GetBounceAllow(out bool horiz, out bool vert); - /// Bouncing behavior -/// When scrolling, the scroller may "bounce" when reaching an edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axis. This API will set if it is enabled for the given axis with the boolean parameters for each axis. -/// Horizontal bounce policy. -/// Vertical bounce policy. -void SetBounceAllow(bool horiz, bool vert); - /// Control Wheel disable Enable or disable mouse wheel to be used to scroll the scroller content. heel is enabled by default. -/// true if wheel is disabled, false otherwise -bool GetWheelDisabled(); - /// Control Wheel disable Enable or disable mouse wheel to be used to scroll the scroller content. heel is enabled by default. -/// true if wheel is disabled, false otherwise -void SetWheelDisabled(bool disabled); - /// Blocking of scrolling (per axis) -/// This function will block scrolling movement (by input of a user) in a given direction. One can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. -/// -/// What makes this function different from freeze_push(), hold_push() and lock_x_set() (or lock_y_set()) is that it doesn't propagate its effects to any parent or child widget of obj. Only the target scrollable widget will be locked with regard to scrolling. -/// Which axis (or axes) to block -Efl.Ui.ScrollBlock GetMovementBlock(); - /// Blocking of scrolling (per axis) -/// This function will block scrolling movement (by input of a user) in a given direction. One can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. -/// -/// What makes this function different from freeze_push(), hold_push() and lock_x_set() (or lock_y_set()) is that it doesn't propagate its effects to any parent or child widget of obj. Only the target scrollable widget will be locked with regard to scrolling. -/// Which axis (or axes) to block -void SetMovementBlock(Efl.Ui.ScrollBlock block); - /// Momentum animator -/// true if disabled, false otherwise -bool GetMomentumAnimatorDisabled(); - /// Momentum animator -/// true if disabled, false otherwise -void SetMomentumAnimatorDisabled(bool disabled); - /// Scrollbar visibility policy -/// #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off. This applies respectively for the horizontal and vertical scrollbars. -/// Horizontal scrollbar policy -/// Vertical scrollbar policy -void GetPolicy(out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar); - /// Scrollbar visibility policy -/// #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off. This applies respectively for the horizontal and vertical scrollbars. -/// Horizontal scrollbar policy -/// Vertical scrollbar policy -void SetPolicy(Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar); - /// Currently visible content region -/// This gets the current region in the content object that is visible through the scroller. The region co-ordinates are returned in the x, y, w, h values pointed to. -/// -/// Note: All coordinates are relative to the content. -/// -/// See: . -/// X coordinate of the region -/// Y coordinate of the region -/// Width of the region -/// Height of the region -void GetContentRegion(out int x, out int y, out int w, out int h); - /// Currently visible content region -/// This gets the current region in the content object that is visible through the scroller. The region co-ordinates are returned in the x, y, w, h values pointed to. -/// -/// Note: All coordinates are relative to the content. -/// -/// See: . -/// X coordinate of the region -/// Y coordinate of the region -/// Width of the region -/// Height of the region -void SetContentRegion(int x, int y, int w, int h); - /// It decides whether the scrollable object propagates the events to content object or not. -/// true if events are propagated, false otherwise -bool GetContentEvents(); - /// It decides whether the scrollable object propagates the events to content object or not. -/// true if events are propagated, false otherwise -void SetContentEvents(bool repeat_events); - /// Scroll page size relative to viewport size. -/// The scroller is capable of limiting scrolling by the user to "pages". That is to jump by and only show a "whole page" at a time as if the continuous area of the scroller content is split into page sized pieces. This sets the size of a page relative to the viewport of the scroller. 1.0 is "1 viewport" is size (horizontally or vertically). 0.0 turns it off in that axis. This is mutually exclusive with page size (see for more information). Likewise 0.5 is "half a viewport". Sane usable values are normally between 0.0 and 1.0 including 1.0. If you only want 1 axis to be page "limited", use 0.0 for the other axis. -/// The horizontal page relative size -/// The vertical page relative size -void GetPageSize(out int x, out int y); - /// Scroll page size relative to viewport size. -/// The scroller is capable of limiting scrolling by the user to "pages". That is to jump by and only show a "whole page" at a time as if the continuous area of the scroller content is split into page sized pieces. This sets the size of a page relative to the viewport of the scroller. 1.0 is "1 viewport" is size (horizontally or vertically). 0.0 turns it off in that axis. This is mutually exclusive with page size (see for more information). Likewise 0.5 is "half a viewport". Sane usable values are normally between 0.0 and 1.0 including 1.0. If you only want 1 axis to be page "limited", use 0.0 for the other axis. -/// The horizontal page relative size -/// The vertical page relative size -void SetPageSize(int x, int y); - /// Bounce animator -/// true if bounce animation is disabled, false otherwise -bool GetBounceAnimatorDisabled(); - /// Bounce animator -/// true if bounce animation is disabled, false otherwise -void SetBounceAnimatorDisabled(bool disabled); - /// Page scroll limit -/// Page limit horizontal -/// Page limit vertical -void GetPageScrollLimit(out int page_limit_h, out int page_limit_v); - /// Page scroll limit -/// Page limit horizontal -/// Page limit vertical -void SetPageScrollLimit(int page_limit_h, int page_limit_v); - /// Page snapping behavior -/// When scrolling, if a scroller is paged (see elm_scroller_page_size_set() and elm_scroller_page_relative_set()), the scroller may snap to pages when being scrolled, i.e., even if it had momentum to scroll further, it will stop at the next page boundaries. This is disabled, by default, for both axis. This function will set if it that is enabled or not, for each axis. -/// -/// Note: If obj is not set to have pages, nothing will happen after this call. -/// Allow snap horizontally -/// Allow snap vertically -void GetPageSnapAllow(out bool horiz, out bool vert); - /// Page snapping behavior -/// When scrolling, if a scroller is paged (see elm_scroller_page_size_set() and elm_scroller_page_relative_set()), the scroller may snap to pages when being scrolled, i.e., even if it had momentum to scroll further, it will stop at the next page boundaries. This is disabled, by default, for both axis. This function will set if it that is enabled or not, for each axis. -/// -/// Note: If obj is not set to have pages, nothing will happen after this call. -/// Allow snap horizontally -/// Allow snap vertically -void SetPageSnapAllow(bool horiz, bool vert); - /// Pagin property -/// Page relation horizontal -/// Page relation vertical -/// Page size horizontal -/// Page size vertical -void GetPaging(out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v); - /// Pagin property -/// Page relation horizontal -/// Page relation vertical -/// Page size horizontal -/// Page size vertical -void SetPaging(double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v); - /// Single direction scroll configuration -/// This makes it possible to restrict scrolling to a single direction, with a "soft" or "hard" behavior. -/// -/// The hard behavior restricts the scrolling to a single direction all of the time while the soft one will restrict depending on factors such as the movement angle. If the user scrolls roughly in one direction only, it will only move according to it while if the move was clearly wanted on both axes, it will happen on both of them. -/// The single direction scroll policy -Elm.Scroller.SingleDirection GetSingleDirection(); - /// Single direction scroll configuration -/// This makes it possible to restrict scrolling to a single direction, with a "soft" or "hard" behavior. -/// -/// The hard behavior restricts the scrolling to a single direction all of the time while the soft one will restrict depending on factors such as the movement angle. If the user scrolls roughly in one direction only, it will only move according to it while if the move was clearly wanted on both axes, it will happen on both of them. -/// The single direction scroll policy -void SetSingleDirection(Elm.Scroller.SingleDirection single_dir); - /// Step size -/// X coordinate -/// Y coordinate -void GetStepSize(out int x, out int y); - /// Step size -/// X coordinate -/// Y coordinate -void SetStepSize(int x, int y); - /// Controls an infinite loop for a scroller. -/// The scrolling horizontal loop -/// The scrolling vertical loop -void GetContentLoop(out bool loop_h, out bool loop_v); - /// Controls an infinite loop for a scroller. -/// The scrolling horizontal loop -/// The scrolling vertical loop -void SetContentLoop(bool loop_h, bool loop_v); - /// Set the callback to run when the content has been moved up. -/// The callback -void SetScrollUpCb(ElmInterfaceScrollableCb scroll_up_cb); - /// Set the callback to run when the horizontal scrollbar is dragged. -/// The callback -void SetHbarDragCb(ElmInterfaceScrollableCb hbar_drag_cb); - /// Set the callback to run when dragging of the contents has started. -/// The callback -void SetDragStartCb(ElmInterfaceScrollableCb drag_start_cb); - /// Set the callback to run when scrolling of the contents has started. -/// The callback -void SetScrollStartCb(ElmInterfaceScrollableCb scroll_start_cb); - /// Freeze property -/// true if freeze, false otherwise -void SetFreeze(bool freeze); - /// When the viewport is resized, the callback is called. -/// The callback -void SetContentViewportResizeCb(ElmInterfaceScrollableResizeCb viewport_resize_cb); - /// Set the callback to run when the content has been moved to the left -/// The callback -void SetScrollLeftCb(ElmInterfaceScrollableCb scroll_left_cb); - /// Set the callback to run when the vertical scrollbar is pressed. -/// The callback -void SetVbarPressCb(ElmInterfaceScrollableCb vbar_press_cb); - /// Set the callback to run when the horizontal scrollbar is pressed. -/// The callback -void SetHbarPressCb(ElmInterfaceScrollableCb hbar_press_cb); - /// Set the callback to run when the horizontal scrollbar is unpressed. -/// The callback -void SetHbarUnpressCb(ElmInterfaceScrollableCb hbar_unpress_cb); - /// Set the callback to run when dragging of the contents has stopped. -/// The callback -void SetDragStopCb(ElmInterfaceScrollableCb drag_stop_cb); - /// Set the callback to run when scrolling of the contents has stopped. -/// The callback -void SetScrollStopCb(ElmInterfaceScrollableCb scroll_stop_cb); - /// Extern pan -/// Pan object -void SetExternPan(Efl.Canvas.Object pan); - /// Set the callback to run when the visible page changes. -/// The callback -void SetPageChangeCb(ElmInterfaceScrollableCb page_change_cb); - /// Hold property -/// true if hold, false otherwise -void SetHold(bool hold); - /// Set the callback to run when the scrolling animation has started. -/// The callback -void SetAnimateStartCb(ElmInterfaceScrollableCb animate_start_cb); - /// Set the callback to run when the content has been moved down. -/// The callback -void SetScrollDownCb(ElmInterfaceScrollableCb scroll_down_cb); - /// Set scroll page size relative to viewport size. -/// Page relation horizontal -/// Page relation vertical -void SetPageRelative(double h_pagerel, double v_pagerel); - /// Set the callback to run when the content has been moved. -/// The callback -void SetScrollCb(ElmInterfaceScrollableCb scroll_cb); - /// Set the callback to run when the scrolling animation has stopped. -/// The callback -void SetAnimateStopCb(ElmInterfaceScrollableCb animate_stop_cb); - /// set the callback to run on minimal limit content -/// The callback -void SetContentMinLimitCb(ElmInterfaceScrollableMinLimitCb min_limit_cb); - /// Set the callback to run when the content has been moved to the right. -/// The callback -void SetScrollRightCb(ElmInterfaceScrollableCb scroll_right_cb); - /// Content property -/// Content object -void SetScrollableContent(Efl.Canvas.Object content); - /// Set the callback to run when the left edge of the content has been reached. -/// The callback -void SetEdgeLeftCb(ElmInterfaceScrollableCb edge_left_cb); - /// Set the callback to run when the horizontal scrollbar is dragged. -/// The callback -void SetVbarDragCb(ElmInterfaceScrollableCb vbar_drag_cb); - /// Set the callback to run when the horizontal scrollbar is unpressed. -/// The callback -void SetVbarUnpressCb(ElmInterfaceScrollableCb vbar_unpress_cb); - /// Set the callback to run when the bottom edge of the content has been reached. -/// The callback -void SetEdgeBottomCb(ElmInterfaceScrollableCb edge_bottom_cb); - /// Set the callback to run when the right edge of the content has been reached. -/// The callback -void SetEdgeRightCb(ElmInterfaceScrollableCb edge_right_cb); - /// Set the callback to run when the top edge of the content has been reached. -/// The callback -void SetEdgeTopCb(ElmInterfaceScrollableCb edge_top_cb); - /// Object property -/// Edje object -/// Evas object -void SetObjects(Efl.Canvas.Object edje_object, Efl.Canvas.Object hit_rectangle); - /// Get scroll last page number. -/// The page number starts from 0. 0 is the first page. This returns the last page number among the pages. -/// -/// See: , and . -/// The horizontal page number -/// The vertical page number -void GetLastPage(out int pagenumber_h, out int pagenumber_v); - /// Get scroll current page number. -/// The page number starts from 0. 0 is the first page. Current page means the page which meets the top-left of the viewport. If there are two or more pages in the viewport, it returns the number of the page which meets the top-left of the viewport. -/// -/// See: , and . -/// The horizontal page number -/// The vertical page number -void GetCurrentPage(out int pagenumber_h, out int pagenumber_v); - /// Content viewport geometry -/// X coordinate -/// Y coordinate -/// Width -/// Height -void GetContentViewportGeometry(out int x, out int y, out int w, out int h); - /// Get the size of the content object -/// This gets the size of the content object of the scroller. -/// Width of the content object. -/// Height of the content object. -void GetContentSize(out int w, out int h); - /// Whether scrolling should loop around. -/// True to enable looping. -bool GetItemLoopEnabled(); - /// Whether scrolling should loop around. -/// True to enable looping. -void SetItemLoopEnabled(bool enable); - /// Set the content position -/// X coordinate -/// Y coordinate -/// Send signals to the theme corresponding to the scroll direction, or if an edge was reached. -void SetContentPos(int x, int y, bool sig); - /// Get content position -/// X coordinate -/// Y coordinate -void GetContentPos(out int x, out int y); - /// Show a specific virtual region within the scroller content object by page number. -/// 0, 0 of the indicated page is located at the top-left of the viewport. This will jump to the page directly without animation. -/// -/// See . -/// The horizontal page number -/// The vertical page number -void ShowPage(int pagenumber_h, int pagenumber_v); - /// Show a specific virtual region within the scroller content object. -/// This will ensure all (or part if it does not fit) of the designated region in the virtual content object (0, 0 starting at the top-left of the virtual content object) is shown within the scroller. Unlike elm_scroller_region_show(), this allows the scroller to "smoothly slide" to this location (if configuration in general calls for transitions). It may not jump immediately to the new location and make take a while and show other content along the way. -/// -/// See -/// X coordinate of the region -/// Y coordinate of the region -/// Width of the region -/// Height of the region -void RegionBringIn(int x, int y, int w, int h); - /// Show a specific virtual region within the scroller content object by page number. -/// 0, 0 of the indicated page is located at the top-left of the viewport. This will slide to the page with animation. -/// -/// -/// The horizontal page number -/// The vertical page number -void PageBringIn(int pagenumber_h, int pagenumber_v); - /// Show a specific virtual region within the scroller content object -/// This will ensure all (or part if it does not fit) of the designated region in the virtual content object (0, 0 starting at the top-left of the virtual content object) is shown within the scroller. -/// X coordinate of the region -/// Y coordinate of the region -/// Width of the region -/// Height of the region -void ShowContentRegion(int x, int y, int w, int h); - /// Prevent the scrollable from being smaller than the minimum size of the content. -/// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. -/// Whether to limit the minimum horizontal size -/// Whether to limit the minimum vertical size -void ContentMinLimit(bool w, bool h); - void SetWantedRegion(int x, int y); - void CustomPanPosAdjust(int x, int y); - /// Called when content changed - event EventHandler ChangedEvt; - /// Control Wheel disable Enable or disable mouse wheel to be used to scroll the scroller content. heel is enabled by default. - /// true if wheel is disabled, false otherwise - bool WheelDisabled { - get ; - set ; - } - /// Blocking of scrolling (per axis) - /// This function will block scrolling movement (by input of a user) in a given direction. One can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. - /// - /// What makes this function different from freeze_push(), hold_push() and lock_x_set() (or lock_y_set()) is that it doesn't propagate its effects to any parent or child widget of obj. Only the target scrollable widget will be locked with regard to scrolling. - /// Which axis (or axes) to block - Efl.Ui.ScrollBlock MovementBlock { - get ; - set ; - } - /// Momentum animator - /// true if disabled, false otherwise - bool MomentumAnimatorDisabled { - get ; - set ; - } - /// It decides whether the scrollable object propagates the events to content object or not. - /// true if events are propagated, false otherwise - bool ContentEvents { - get ; - set ; - } - /// Bounce animator - /// true if bounce animation is disabled, false otherwise - bool BounceAnimatorDisabled { - get ; - set ; - } - /// Single direction scroll configuration - /// This makes it possible to restrict scrolling to a single direction, with a "soft" or "hard" behavior. - /// - /// The hard behavior restricts the scrolling to a single direction all of the time while the soft one will restrict depending on factors such as the movement angle. If the user scrolls roughly in one direction only, it will only move according to it while if the move was clearly wanted on both axes, it will happen on both of them. - /// The single direction scroll policy - Elm.Scroller.SingleDirection SingleDirection { - get ; - set ; - } - /// Set the callback to run when the content has been moved up. - /// The callback - ElmInterfaceScrollableCb ScrollUpCb { - set ; - } - /// Set the callback to run when the horizontal scrollbar is dragged. - /// The callback - ElmInterfaceScrollableCb HbarDragCb { - set ; - } - /// Set the callback to run when dragging of the contents has started. - /// The callback - ElmInterfaceScrollableCb DragStartCb { - set ; - } - /// Set the callback to run when scrolling of the contents has started. - /// The callback - ElmInterfaceScrollableCb ScrollStartCb { - set ; - } - /// Freeze property - /// true if freeze, false otherwise - bool Freeze { - set ; - } - /// When the viewport is resized, the callback is called. - /// The callback - ElmInterfaceScrollableResizeCb ContentViewportResizeCb { - set ; - } - /// Set the callback to run when the content has been moved to the left - /// The callback - ElmInterfaceScrollableCb ScrollLeftCb { - set ; - } - /// Set the callback to run when the vertical scrollbar is pressed. - /// The callback - ElmInterfaceScrollableCb VbarPressCb { - set ; - } - /// Set the callback to run when the horizontal scrollbar is pressed. - /// The callback - ElmInterfaceScrollableCb HbarPressCb { - set ; - } - /// Set the callback to run when the horizontal scrollbar is unpressed. - /// The callback - ElmInterfaceScrollableCb HbarUnpressCb { - set ; - } - /// Set the callback to run when dragging of the contents has stopped. - /// The callback - ElmInterfaceScrollableCb DragStopCb { - set ; - } - /// Set the callback to run when scrolling of the contents has stopped. - /// The callback - ElmInterfaceScrollableCb ScrollStopCb { - set ; - } - /// Extern pan - /// Pan object - Efl.Canvas.Object ExternPan { - set ; - } - /// Set the callback to run when the visible page changes. - /// The callback - ElmInterfaceScrollableCb PageChangeCb { - set ; - } - /// Hold property - /// true if hold, false otherwise - bool Hold { - set ; - } - /// Set the callback to run when the scrolling animation has started. - /// The callback - ElmInterfaceScrollableCb AnimateStartCb { - set ; - } - /// Set the callback to run when the content has been moved down. - /// The callback - ElmInterfaceScrollableCb ScrollDownCb { - set ; - } - /// Set the callback to run when the content has been moved. - /// The callback - ElmInterfaceScrollableCb ScrollCb { - set ; - } - /// Set the callback to run when the scrolling animation has stopped. - /// The callback - ElmInterfaceScrollableCb AnimateStopCb { - set ; - } - /// set the callback to run on minimal limit content - /// The callback - ElmInterfaceScrollableMinLimitCb ContentMinLimitCb { - set ; - } - /// Set the callback to run when the content has been moved to the right. - /// The callback - ElmInterfaceScrollableCb ScrollRightCb { - set ; - } - /// Content property - /// Content object - Efl.Canvas.Object ScrollableContent { - set ; - } - /// Set the callback to run when the left edge of the content has been reached. - /// The callback - ElmInterfaceScrollableCb EdgeLeftCb { - set ; - } - /// Set the callback to run when the horizontal scrollbar is dragged. - /// The callback - ElmInterfaceScrollableCb VbarDragCb { - set ; - } - /// Set the callback to run when the horizontal scrollbar is unpressed. - /// The callback - ElmInterfaceScrollableCb VbarUnpressCb { - set ; - } - /// Set the callback to run when the bottom edge of the content has been reached. - /// The callback - ElmInterfaceScrollableCb EdgeBottomCb { - set ; - } - /// Set the callback to run when the right edge of the content has been reached. - /// The callback - ElmInterfaceScrollableCb EdgeRightCb { - set ; - } - /// Set the callback to run when the top edge of the content has been reached. - /// The callback - ElmInterfaceScrollableCb EdgeTopCb { - set ; - } - /// Whether scrolling should loop around. - /// True to enable looping. - bool ItemLoopEnabled { - get ; - set ; - } -} -/// Elm scrollable mixin -sealed public class IInterfaceScrollableConcrete : - Efl.Eo.EoWrapper - , IInterfaceScrollable - , Efl.Ui.IScrollable, Efl.Ui.IWidgetFocusManager, Efl.Ui.Focus.IManager, Efl.Ui.Focus.IManagerSub -{ - ///Pointer to the native class description. - public override System.IntPtr NativeClass - { - get - { - if (((object)this).GetType() == typeof(IInterfaceScrollableConcrete)) - { - return GetEflClassStatic(); - } - else - { - return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; - } - } - } - - /// Constructor to be used when objects are expected to be constructed from native code. - /// Tag struct storing the native handle of the object being constructed. - private IInterfaceScrollableConcrete(ConstructingHandle ch) : base(ch) - { - } - - [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr - elm_interface_scrollable_mixin_get(); - /// Initializes a new instance of the class. - /// Internal usage: This is used when interacting with C code and should not be used directly. - /// The native pointer to be wrapped. - private IInterfaceScrollableConcrete(Efl.Eo.Globals.WrappingHandle wh) : base(wh) - { - } - - /// Called when content changed - public event EventHandler ChangedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_ELM_INTERFACE_SCROLLABLE_EVENT_CHANGED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_ELM_INTERFACE_SCROLLABLE_EVENT_CHANGED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ChangedEvt. - public void OnChangedEvt(EventArgs e) - { - var key = "_ELM_INTERFACE_SCROLLABLE_EVENT_CHANGED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scroll operation starts - public event EventHandler ScrollStartEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_START"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_START"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollStartEvt. - public void OnScrollStartEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_START"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scrolling - public event EventHandler ScrollEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollEvt. - public void OnScrollEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scroll operation stops - public event EventHandler ScrollStopEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_STOP"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_STOP"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollStopEvt. - public void OnScrollStopEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_STOP"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scrolling upwards - public event EventHandler ScrollUpEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_UP"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_UP"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollUpEvt. - public void OnScrollUpEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_UP"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scrolling downwards - public event EventHandler ScrollDownEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_DOWN"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_DOWN"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollDownEvt. - public void OnScrollDownEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_DOWN"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scrolling left - public event EventHandler ScrollLeftEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_LEFT"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_LEFT"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollLeftEvt. - public void OnScrollLeftEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_LEFT"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scrolling right - public event EventHandler ScrollRightEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollRightEvt. - public void OnScrollRightEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_RIGHT"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when hitting the top edge - public event EventHandler EdgeUpEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_EDGE_UP"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_EDGE_UP"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event EdgeUpEvt. - public void OnEdgeUpEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_EDGE_UP"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when hitting the bottom edge - public event EventHandler EdgeDownEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_EDGE_DOWN"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_EDGE_DOWN"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event EdgeDownEvt. - public void OnEdgeDownEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_EDGE_DOWN"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when hitting the left edge - public event EventHandler EdgeLeftEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_EDGE_LEFT"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_EDGE_LEFT"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event EdgeLeftEvt. - public void OnEdgeLeftEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_EDGE_LEFT"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when hitting the right edge - public event EventHandler EdgeRightEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_EDGE_RIGHT"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_EDGE_RIGHT"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event EdgeRightEvt. - public void OnEdgeRightEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_EDGE_RIGHT"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scroll animation starts - public event EventHandler ScrollAnimStartEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollAnimStartEvt. - public void OnScrollAnimStartEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_ANIM_START"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scroll animation stopps - public event EventHandler ScrollAnimStopEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollAnimStopEvt. - public void OnScrollAnimStopEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_ANIM_STOP"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scroll drag starts - public event EventHandler ScrollDragStartEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollDragStartEvt. - public void OnScrollDragStartEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_DRAG_START"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Called when scroll drag stops - public event EventHandler ScrollDragStopEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ScrollDragStopEvt. - public void OnScrollDragStopEvt(EventArgs e) - { - var key = "_EFL_UI_EVENT_SCROLL_DRAG_STOP"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Redirect object has changed, the old manager is passed as an event argument. - /// (Since EFL 1.22) - public event EventHandler RedirectChangedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.Focus.IManagerRedirectChangedEvt_Args args = new Efl.Ui.Focus.IManagerRedirectChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IManagerConcrete); - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event RedirectChangedEvt. - public void OnRedirectChangedEvt(Efl.Ui.Focus.IManagerRedirectChangedEvt_Args e) - { - var key = "_EFL_UI_FOCUS_MANAGER_EVENT_REDIRECT_CHANGED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = e.arg.NativeHandle; - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - /// After this event, the manager object will calculate relations in the graph. Can be used to add / remove children in a lazy fashion. - /// (Since EFL 1.22) - public event EventHandler FlushPreEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event FlushPreEvt. - public void OnFlushPreEvt(EventArgs e) - { - var key = "_EFL_UI_FOCUS_MANAGER_EVENT_FLUSH_PRE"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// Cached relationship calculation results have been invalidated. - /// (Since EFL 1.22) - public event EventHandler CoordsDirtyEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - EventArgs args = EventArgs.Empty; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event CoordsDirtyEvt. - public void OnCoordsDirtyEvt(EventArgs e) - { - var key = "_EFL_UI_FOCUS_MANAGER_EVENT_COORDS_DIRTY"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); - } - /// The manager_focus property has changed. The previously focused object is passed as an event argument. - /// (Since EFL 1.22) - public event EventHandler ManagerFocusChangedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args args = new Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args(); - args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Ui.Focus.IObjectConcrete); - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event ManagerFocusChangedEvt. - public void OnManagerFocusChangedEvt(Efl.Ui.Focus.IManagerManagerFocusChangedEvt_Args e) - { - var key = "_EFL_UI_FOCUS_MANAGER_EVENT_MANAGER_FOCUS_CHANGED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = e.arg.NativeHandle; - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - /// Called when this focus manager is frozen or thawed, even_info being true indicates that it is now frozen, false indicates that it is thawed. - /// (Since EFL 1.22) - public event EventHandler DirtyLogicFreezeChangedEvt - { - add - { - lock (eflBindingEventLock) - { - Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => - { - var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; - if (obj != null) - { - Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args args = new Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args(); - args.arg = Marshal.ReadByte(evt.Info) != 0; - try - { - value?.Invoke(obj, args); - } - catch (Exception e) - { - Eina.Log.Error(e.ToString()); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - } - }; - - string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; - AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); - } - } - - remove - { - lock (eflBindingEventLock) - { - string key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; - RemoveNativeEventHandler(efl.Libs.Elementary, key, value); - } - } - } - ///Method to raise event DirtyLogicFreezeChangedEvt. - public void OnDirtyLogicFreezeChangedEvt(Efl.Ui.Focus.IManagerDirtyLogicFreezeChangedEvt_Args e) - { - var key = "_EFL_UI_FOCUS_MANAGER_EVENT_DIRTY_LOGIC_FREEZE_CHANGED"; - IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, key); - if (desc == IntPtr.Zero) - { - Eina.Log.Error($"Failed to get native event {key}"); - return; - } - - IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0); - try - { - Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); - } - finally - { - Marshal.FreeHGlobal(info); - } - } - /// Control scrolling gravity on the scrollable - /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. - /// - /// The scroller will adjust the view to glue itself as follows. - /// - /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content - /// - /// Default values for x and y are 0.0 - /// Horizontal scrolling gravity - /// Vertical scrolling gravity - public void GetGravity(out double x, out double y) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_gravity_get_ptr.Value.Delegate(this.NativeHandle,out x, out y); - Eina.Error.RaiseIfUnhandledException(); - } - /// Control scrolling gravity on the scrollable - /// The gravity defines how the scroller will adjust its view when the size of the scroller contents increases. - /// - /// The scroller will adjust the view to glue itself as follows. - /// - /// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the right edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content - /// - /// Default values for x and y are 0.0 - /// Horizontal scrolling gravity - /// Vertical scrolling gravity - public void SetGravity(double x, double y) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_gravity_set_ptr.Value.Delegate(this.NativeHandle,x, y); - Eina.Error.RaiseIfUnhandledException(); - } - /// Bouncing behavior - /// When scrolling, the scroller may "bounce" when reaching an edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axis. This API will set if it is enabled for the given axis with the boolean parameters for each axis. - /// Horizontal bounce policy. - /// Vertical bounce policy. - public void GetBounceAllow(out bool horiz, out bool vert) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_bounce_allow_get_ptr.Value.Delegate(this.NativeHandle,out horiz, out vert); - Eina.Error.RaiseIfUnhandledException(); - } - /// Bouncing behavior - /// When scrolling, the scroller may "bounce" when reaching an edge of the content object. This is a visual way to indicate the end has been reached. This is enabled by default for both axis. This API will set if it is enabled for the given axis with the boolean parameters for each axis. - /// Horizontal bounce policy. - /// Vertical bounce policy. - public void SetBounceAllow(bool horiz, bool vert) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_bounce_allow_set_ptr.Value.Delegate(this.NativeHandle,horiz, vert); - Eina.Error.RaiseIfUnhandledException(); - } - /// Control Wheel disable Enable or disable mouse wheel to be used to scroll the scroller content. heel is enabled by default. - /// true if wheel is disabled, false otherwise - public bool GetWheelDisabled() { - var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_wheel_disabled_get_ptr.Value.Delegate(this.NativeHandle); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Control Wheel disable Enable or disable mouse wheel to be used to scroll the scroller content. heel is enabled by default. - /// true if wheel is disabled, false otherwise - public void SetWheelDisabled(bool disabled) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_wheel_disabled_set_ptr.Value.Delegate(this.NativeHandle,disabled); - Eina.Error.RaiseIfUnhandledException(); - } - /// Blocking of scrolling (per axis) - /// This function will block scrolling movement (by input of a user) in a given direction. One can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. - /// - /// What makes this function different from freeze_push(), hold_push() and lock_x_set() (or lock_y_set()) is that it doesn't propagate its effects to any parent or child widget of obj. Only the target scrollable widget will be locked with regard to scrolling. - /// Which axis (or axes) to block - public Efl.Ui.ScrollBlock GetMovementBlock() { - var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_movement_block_get_ptr.Value.Delegate(this.NativeHandle); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Blocking of scrolling (per axis) - /// This function will block scrolling movement (by input of a user) in a given direction. One can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. - /// - /// What makes this function different from freeze_push(), hold_push() and lock_x_set() (or lock_y_set()) is that it doesn't propagate its effects to any parent or child widget of obj. Only the target scrollable widget will be locked with regard to scrolling. - /// Which axis (or axes) to block - public void SetMovementBlock(Efl.Ui.ScrollBlock block) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_movement_block_set_ptr.Value.Delegate(this.NativeHandle,block); - Eina.Error.RaiseIfUnhandledException(); - } - /// Momentum animator - /// true if disabled, false otherwise - public bool GetMomentumAnimatorDisabled() { - var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_momentum_animator_disabled_get_ptr.Value.Delegate(this.NativeHandle); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Momentum animator - /// true if disabled, false otherwise - public void SetMomentumAnimatorDisabled(bool disabled) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_momentum_animator_disabled_set_ptr.Value.Delegate(this.NativeHandle,disabled); - Eina.Error.RaiseIfUnhandledException(); - } - /// Scrollbar visibility policy - /// #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off. This applies respectively for the horizontal and vertical scrollbars. - /// Horizontal scrollbar policy - /// Vertical scrollbar policy - public void GetPolicy(out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_policy_get_ptr.Value.Delegate(this.NativeHandle,out hbar, out vbar); - Eina.Error.RaiseIfUnhandledException(); - } - /// Scrollbar visibility policy - /// #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off. This applies respectively for the horizontal and vertical scrollbars. - /// Horizontal scrollbar policy - /// Vertical scrollbar policy - public void SetPolicy(Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_policy_set_ptr.Value.Delegate(this.NativeHandle,hbar, vbar); - Eina.Error.RaiseIfUnhandledException(); - } - /// Currently visible content region - /// This gets the current region in the content object that is visible through the scroller. The region co-ordinates are returned in the x, y, w, h values pointed to. - /// - /// Note: All coordinates are relative to the content. - /// - /// See: . - /// X coordinate of the region - /// Y coordinate of the region - /// Width of the region - /// Height of the region - public void GetContentRegion(out int x, out int y, out int w, out int h) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_region_get_ptr.Value.Delegate(this.NativeHandle,out x, out y, out w, out h); - Eina.Error.RaiseIfUnhandledException(); - } - /// Currently visible content region - /// This gets the current region in the content object that is visible through the scroller. The region co-ordinates are returned in the x, y, w, h values pointed to. - /// - /// Note: All coordinates are relative to the content. - /// - /// See: . - /// X coordinate of the region - /// Y coordinate of the region - /// Width of the region - /// Height of the region - public void SetContentRegion(int x, int y, int w, int h) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_region_set_ptr.Value.Delegate(this.NativeHandle,x, y, w, h); - Eina.Error.RaiseIfUnhandledException(); - } - /// It decides whether the scrollable object propagates the events to content object or not. - /// true if events are propagated, false otherwise - public bool GetContentEvents() { - var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_events_get_ptr.Value.Delegate(this.NativeHandle); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// It decides whether the scrollable object propagates the events to content object or not. - /// true if events are propagated, false otherwise - public void SetContentEvents(bool repeat_events) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_events_set_ptr.Value.Delegate(this.NativeHandle,repeat_events); - Eina.Error.RaiseIfUnhandledException(); - } - /// Scroll page size relative to viewport size. - /// The scroller is capable of limiting scrolling by the user to "pages". That is to jump by and only show a "whole page" at a time as if the continuous area of the scroller content is split into page sized pieces. This sets the size of a page relative to the viewport of the scroller. 1.0 is "1 viewport" is size (horizontally or vertically). 0.0 turns it off in that axis. This is mutually exclusive with page size (see for more information). Likewise 0.5 is "half a viewport". Sane usable values are normally between 0.0 and 1.0 including 1.0. If you only want 1 axis to be page "limited", use 0.0 for the other axis. - /// The horizontal page relative size - /// The vertical page relative size - public void GetPageSize(out int x, out int y) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_size_get_ptr.Value.Delegate(this.NativeHandle,out x, out y); - Eina.Error.RaiseIfUnhandledException(); - } - /// Scroll page size relative to viewport size. - /// The scroller is capable of limiting scrolling by the user to "pages". That is to jump by and only show a "whole page" at a time as if the continuous area of the scroller content is split into page sized pieces. This sets the size of a page relative to the viewport of the scroller. 1.0 is "1 viewport" is size (horizontally or vertically). 0.0 turns it off in that axis. This is mutually exclusive with page size (see for more information). Likewise 0.5 is "half a viewport". Sane usable values are normally between 0.0 and 1.0 including 1.0. If you only want 1 axis to be page "limited", use 0.0 for the other axis. - /// The horizontal page relative size - /// The vertical page relative size - public void SetPageSize(int x, int y) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_size_set_ptr.Value.Delegate(this.NativeHandle,x, y); - Eina.Error.RaiseIfUnhandledException(); - } - /// Bounce animator - /// true if bounce animation is disabled, false otherwise - public bool GetBounceAnimatorDisabled() { - var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_bounce_animator_disabled_get_ptr.Value.Delegate(this.NativeHandle); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Bounce animator - /// true if bounce animation is disabled, false otherwise - public void SetBounceAnimatorDisabled(bool disabled) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_bounce_animator_disabled_set_ptr.Value.Delegate(this.NativeHandle,disabled); - Eina.Error.RaiseIfUnhandledException(); - } - /// Page scroll limit - /// Page limit horizontal - /// Page limit vertical - public void GetPageScrollLimit(out int page_limit_h, out int page_limit_v) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_scroll_limit_get_ptr.Value.Delegate(this.NativeHandle,out page_limit_h, out page_limit_v); - Eina.Error.RaiseIfUnhandledException(); - } - /// Page scroll limit - /// Page limit horizontal - /// Page limit vertical - public void SetPageScrollLimit(int page_limit_h, int page_limit_v) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_scroll_limit_set_ptr.Value.Delegate(this.NativeHandle,page_limit_h, page_limit_v); - Eina.Error.RaiseIfUnhandledException(); - } - /// Page snapping behavior - /// When scrolling, if a scroller is paged (see elm_scroller_page_size_set() and elm_scroller_page_relative_set()), the scroller may snap to pages when being scrolled, i.e., even if it had momentum to scroll further, it will stop at the next page boundaries. This is disabled, by default, for both axis. This function will set if it that is enabled or not, for each axis. - /// - /// Note: If obj is not set to have pages, nothing will happen after this call. - /// Allow snap horizontally - /// Allow snap vertically - public void GetPageSnapAllow(out bool horiz, out bool vert) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_snap_allow_get_ptr.Value.Delegate(this.NativeHandle,out horiz, out vert); - Eina.Error.RaiseIfUnhandledException(); - } - /// Page snapping behavior - /// When scrolling, if a scroller is paged (see elm_scroller_page_size_set() and elm_scroller_page_relative_set()), the scroller may snap to pages when being scrolled, i.e., even if it had momentum to scroll further, it will stop at the next page boundaries. This is disabled, by default, for both axis. This function will set if it that is enabled or not, for each axis. - /// - /// Note: If obj is not set to have pages, nothing will happen after this call. - /// Allow snap horizontally - /// Allow snap vertically - public void SetPageSnapAllow(bool horiz, bool vert) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_snap_allow_set_ptr.Value.Delegate(this.NativeHandle,horiz, vert); - Eina.Error.RaiseIfUnhandledException(); - } - /// Pagin property - /// Page relation horizontal - /// Page relation vertical - /// Page size horizontal - /// Page size vertical - public void GetPaging(out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_paging_get_ptr.Value.Delegate(this.NativeHandle,out pagerel_h, out pagerel_v, out pagesize_h, out pagesize_v); - Eina.Error.RaiseIfUnhandledException(); - } - /// Pagin property - /// Page relation horizontal - /// Page relation vertical - /// Page size horizontal - /// Page size vertical - public void SetPaging(double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_paging_set_ptr.Value.Delegate(this.NativeHandle,pagerel_h, pagerel_v, pagesize_h, pagesize_v); - Eina.Error.RaiseIfUnhandledException(); - } - /// Single direction scroll configuration - /// This makes it possible to restrict scrolling to a single direction, with a "soft" or "hard" behavior. - /// - /// The hard behavior restricts the scrolling to a single direction all of the time while the soft one will restrict depending on factors such as the movement angle. If the user scrolls roughly in one direction only, it will only move according to it while if the move was clearly wanted on both axes, it will happen on both of them. - /// The single direction scroll policy - public Elm.Scroller.SingleDirection GetSingleDirection() { - var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_single_direction_get_ptr.Value.Delegate(this.NativeHandle); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Single direction scroll configuration - /// This makes it possible to restrict scrolling to a single direction, with a "soft" or "hard" behavior. - /// - /// The hard behavior restricts the scrolling to a single direction all of the time while the soft one will restrict depending on factors such as the movement angle. If the user scrolls roughly in one direction only, it will only move according to it while if the move was clearly wanted on both axes, it will happen on both of them. - /// The single direction scroll policy - public void SetSingleDirection(Elm.Scroller.SingleDirection single_dir) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_single_direction_set_ptr.Value.Delegate(this.NativeHandle,single_dir); - Eina.Error.RaiseIfUnhandledException(); - } - /// Step size - /// X coordinate - /// Y coordinate - public void GetStepSize(out int x, out int y) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_step_size_get_ptr.Value.Delegate(this.NativeHandle,out x, out y); - Eina.Error.RaiseIfUnhandledException(); - } - /// Step size - /// X coordinate - /// Y coordinate - public void SetStepSize(int x, int y) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_step_size_set_ptr.Value.Delegate(this.NativeHandle,x, y); - Eina.Error.RaiseIfUnhandledException(); - } - /// Controls an infinite loop for a scroller. - /// The scrolling horizontal loop - /// The scrolling vertical loop - public void GetContentLoop(out bool loop_h, out bool loop_v) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_loop_get_ptr.Value.Delegate(this.NativeHandle,out loop_h, out loop_v); - Eina.Error.RaiseIfUnhandledException(); - } - /// Controls an infinite loop for a scroller. - /// The scrolling horizontal loop - /// The scrolling vertical loop - public void SetContentLoop(bool loop_h, bool loop_v) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_loop_set_ptr.Value.Delegate(this.NativeHandle,loop_h, loop_v); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the content has been moved up. - /// The callback - public void SetScrollUpCb(ElmInterfaceScrollableCb scroll_up_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_up_cb_set_ptr.Value.Delegate(this.NativeHandle,scroll_up_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the horizontal scrollbar is dragged. - /// The callback - public void SetHbarDragCb(ElmInterfaceScrollableCb hbar_drag_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_hbar_drag_cb_set_ptr.Value.Delegate(this.NativeHandle,hbar_drag_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when dragging of the contents has started. - /// The callback - public void SetDragStartCb(ElmInterfaceScrollableCb drag_start_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_drag_start_cb_set_ptr.Value.Delegate(this.NativeHandle,drag_start_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when scrolling of the contents has started. - /// The callback - public void SetScrollStartCb(ElmInterfaceScrollableCb scroll_start_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_start_cb_set_ptr.Value.Delegate(this.NativeHandle,scroll_start_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Freeze property - /// true if freeze, false otherwise - public void SetFreeze(bool freeze) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_freeze_set_ptr.Value.Delegate(this.NativeHandle,freeze); - Eina.Error.RaiseIfUnhandledException(); - } - /// When the viewport is resized, the callback is called. - /// The callback - public void SetContentViewportResizeCb(ElmInterfaceScrollableResizeCb viewport_resize_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_viewport_resize_cb_set_ptr.Value.Delegate(this.NativeHandle,viewport_resize_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the content has been moved to the left - /// The callback - public void SetScrollLeftCb(ElmInterfaceScrollableCb scroll_left_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_left_cb_set_ptr.Value.Delegate(this.NativeHandle,scroll_left_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the vertical scrollbar is pressed. - /// The callback - public void SetVbarPressCb(ElmInterfaceScrollableCb vbar_press_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_vbar_press_cb_set_ptr.Value.Delegate(this.NativeHandle,vbar_press_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the horizontal scrollbar is pressed. - /// The callback - public void SetHbarPressCb(ElmInterfaceScrollableCb hbar_press_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_hbar_press_cb_set_ptr.Value.Delegate(this.NativeHandle,hbar_press_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the horizontal scrollbar is unpressed. - /// The callback - public void SetHbarUnpressCb(ElmInterfaceScrollableCb hbar_unpress_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_hbar_unpress_cb_set_ptr.Value.Delegate(this.NativeHandle,hbar_unpress_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when dragging of the contents has stopped. - /// The callback - public void SetDragStopCb(ElmInterfaceScrollableCb drag_stop_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_drag_stop_cb_set_ptr.Value.Delegate(this.NativeHandle,drag_stop_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when scrolling of the contents has stopped. - /// The callback - public void SetScrollStopCb(ElmInterfaceScrollableCb scroll_stop_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_stop_cb_set_ptr.Value.Delegate(this.NativeHandle,scroll_stop_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Extern pan - /// Pan object - public void SetExternPan(Efl.Canvas.Object pan) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_extern_pan_set_ptr.Value.Delegate(this.NativeHandle,pan); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the visible page changes. - /// The callback - public void SetPageChangeCb(ElmInterfaceScrollableCb page_change_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_change_cb_set_ptr.Value.Delegate(this.NativeHandle,page_change_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Hold property - /// true if hold, false otherwise - public void SetHold(bool hold) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_hold_set_ptr.Value.Delegate(this.NativeHandle,hold); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the scrolling animation has started. - /// The callback - public void SetAnimateStartCb(ElmInterfaceScrollableCb animate_start_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_animate_start_cb_set_ptr.Value.Delegate(this.NativeHandle,animate_start_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the content has been moved down. - /// The callback - public void SetScrollDownCb(ElmInterfaceScrollableCb scroll_down_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_down_cb_set_ptr.Value.Delegate(this.NativeHandle,scroll_down_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set scroll page size relative to viewport size. - /// Page relation horizontal - /// Page relation vertical - public void SetPageRelative(double h_pagerel, double v_pagerel) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_relative_set_ptr.Value.Delegate(this.NativeHandle,h_pagerel, v_pagerel); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the content has been moved. - /// The callback - public void SetScrollCb(ElmInterfaceScrollableCb scroll_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_cb_set_ptr.Value.Delegate(this.NativeHandle,scroll_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the scrolling animation has stopped. - /// The callback - public void SetAnimateStopCb(ElmInterfaceScrollableCb animate_stop_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_animate_stop_cb_set_ptr.Value.Delegate(this.NativeHandle,animate_stop_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// set the callback to run on minimal limit content - /// The callback - public void SetContentMinLimitCb(ElmInterfaceScrollableMinLimitCb min_limit_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_min_limit_cb_set_ptr.Value.Delegate(this.NativeHandle,min_limit_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the content has been moved to the right. - /// The callback - public void SetScrollRightCb(ElmInterfaceScrollableCb scroll_right_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_scroll_right_cb_set_ptr.Value.Delegate(this.NativeHandle,scroll_right_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Content property - /// Content object - public void SetScrollableContent(Efl.Canvas.Object content) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_set_ptr.Value.Delegate(this.NativeHandle,content); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the left edge of the content has been reached. - /// The callback - public void SetEdgeLeftCb(ElmInterfaceScrollableCb edge_left_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_edge_left_cb_set_ptr.Value.Delegate(this.NativeHandle,edge_left_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the horizontal scrollbar is dragged. - /// The callback - public void SetVbarDragCb(ElmInterfaceScrollableCb vbar_drag_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_vbar_drag_cb_set_ptr.Value.Delegate(this.NativeHandle,vbar_drag_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the horizontal scrollbar is unpressed. - /// The callback - public void SetVbarUnpressCb(ElmInterfaceScrollableCb vbar_unpress_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_vbar_unpress_cb_set_ptr.Value.Delegate(this.NativeHandle,vbar_unpress_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the bottom edge of the content has been reached. - /// The callback - public void SetEdgeBottomCb(ElmInterfaceScrollableCb edge_bottom_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_edge_bottom_cb_set_ptr.Value.Delegate(this.NativeHandle,edge_bottom_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the right edge of the content has been reached. - /// The callback - public void SetEdgeRightCb(ElmInterfaceScrollableCb edge_right_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_edge_right_cb_set_ptr.Value.Delegate(this.NativeHandle,edge_right_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the callback to run when the top edge of the content has been reached. - /// The callback - public void SetEdgeTopCb(ElmInterfaceScrollableCb edge_top_cb) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_edge_top_cb_set_ptr.Value.Delegate(this.NativeHandle,edge_top_cb); - Eina.Error.RaiseIfUnhandledException(); - } - /// Object property - /// Edje object - /// Evas object - public void SetObjects(Efl.Canvas.Object edje_object, Efl.Canvas.Object hit_rectangle) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_objects_set_ptr.Value.Delegate(this.NativeHandle,edje_object, hit_rectangle); - Eina.Error.RaiseIfUnhandledException(); - } - /// Get scroll last page number. - /// The page number starts from 0. 0 is the first page. This returns the last page number among the pages. - /// - /// See: , and . - /// The horizontal page number - /// The vertical page number - public void GetLastPage(out int pagenumber_h, out int pagenumber_v) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_last_page_get_ptr.Value.Delegate(this.NativeHandle,out pagenumber_h, out pagenumber_v); - Eina.Error.RaiseIfUnhandledException(); - } - /// Get scroll current page number. - /// The page number starts from 0. 0 is the first page. Current page means the page which meets the top-left of the viewport. If there are two or more pages in the viewport, it returns the number of the page which meets the top-left of the viewport. - /// - /// See: , and . - /// The horizontal page number - /// The vertical page number - public void GetCurrentPage(out int pagenumber_h, out int pagenumber_v) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_current_page_get_ptr.Value.Delegate(this.NativeHandle,out pagenumber_h, out pagenumber_v); - Eina.Error.RaiseIfUnhandledException(); - } - /// Content viewport geometry - /// X coordinate - /// Y coordinate - /// Width - /// Height - public void GetContentViewportGeometry(out int x, out int y, out int w, out int h) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_viewport_geometry_get_ptr.Value.Delegate(this.NativeHandle,out x, out y, out w, out h); - Eina.Error.RaiseIfUnhandledException(); - } - /// Get the size of the content object - /// This gets the size of the content object of the scroller. - /// Width of the content object. - /// Height of the content object. - public void GetContentSize(out int w, out int h) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_size_get_ptr.Value.Delegate(this.NativeHandle,out w, out h); - Eina.Error.RaiseIfUnhandledException(); - } - /// Whether scrolling should loop around. - /// True to enable looping. - public bool GetItemLoopEnabled() { - var _ret_var = Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_item_loop_enabled_get_ptr.Value.Delegate(this.NativeHandle); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Whether scrolling should loop around. - /// True to enable looping. - public void SetItemLoopEnabled(bool enable) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_item_loop_enabled_set_ptr.Value.Delegate(this.NativeHandle,enable); - Eina.Error.RaiseIfUnhandledException(); - } - /// Set the content position - /// X coordinate - /// Y coordinate - /// Send signals to the theme corresponding to the scroll direction, or if an edge was reached. - public void SetContentPos(int x, int y, bool sig) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_pos_set_ptr.Value.Delegate(this.NativeHandle,x, y, sig); - Eina.Error.RaiseIfUnhandledException(); - } - /// Get content position - /// X coordinate - /// Y coordinate - public void GetContentPos(out int x, out int y) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_pos_get_ptr.Value.Delegate(this.NativeHandle,out x, out y); - Eina.Error.RaiseIfUnhandledException(); - } - /// Show a specific virtual region within the scroller content object by page number. - /// 0, 0 of the indicated page is located at the top-left of the viewport. This will jump to the page directly without animation. - /// - /// See . - /// The horizontal page number - /// The vertical page number - public void ShowPage(int pagenumber_h, int pagenumber_v) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_show_ptr.Value.Delegate(this.NativeHandle,pagenumber_h, pagenumber_v); - Eina.Error.RaiseIfUnhandledException(); - } - /// Show a specific virtual region within the scroller content object. - /// This will ensure all (or part if it does not fit) of the designated region in the virtual content object (0, 0 starting at the top-left of the virtual content object) is shown within the scroller. Unlike elm_scroller_region_show(), this allows the scroller to "smoothly slide" to this location (if configuration in general calls for transitions). It may not jump immediately to the new location and make take a while and show other content along the way. - /// - /// See - /// X coordinate of the region - /// Y coordinate of the region - /// Width of the region - /// Height of the region - public void RegionBringIn(int x, int y, int w, int h) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_region_bring_in_ptr.Value.Delegate(this.NativeHandle,x, y, w, h); - Eina.Error.RaiseIfUnhandledException(); - } - /// Show a specific virtual region within the scroller content object by page number. - /// 0, 0 of the indicated page is located at the top-left of the viewport. This will slide to the page with animation. - /// - /// - /// The horizontal page number - /// The vertical page number - public void PageBringIn(int pagenumber_h, int pagenumber_v) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_page_bring_in_ptr.Value.Delegate(this.NativeHandle,pagenumber_h, pagenumber_v); - Eina.Error.RaiseIfUnhandledException(); - } - /// Show a specific virtual region within the scroller content object - /// This will ensure all (or part if it does not fit) of the designated region in the virtual content object (0, 0 starting at the top-left of the virtual content object) is shown within the scroller. - /// X coordinate of the region - /// Y coordinate of the region - /// Width of the region - /// Height of the region - public void ShowContentRegion(int x, int y, int w, int h) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_region_show_ptr.Value.Delegate(this.NativeHandle,x, y, w, h); - Eina.Error.RaiseIfUnhandledException(); - } - /// Prevent the scrollable from being smaller than the minimum size of the content. - /// By default the scroller will be as small as its design allows, irrespective of its content. This will make the scroller minimum size the right size horizontally and/or vertically to perfectly fit its content in that direction. - /// Whether to limit the minimum horizontal size - /// Whether to limit the minimum vertical size - public void ContentMinLimit(bool w, bool h) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_content_min_limit_ptr.Value.Delegate(this.NativeHandle,w, h); - Eina.Error.RaiseIfUnhandledException(); - } - public void SetWantedRegion(int x, int y) { - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_wanted_region_set_ptr.Value.Delegate(this.NativeHandle,x, y); - Eina.Error.RaiseIfUnhandledException(); - } - public void CustomPanPosAdjust(int x, int y) { - var _in_x = Eina.PrimitiveConversion.ManagedToPointerAlloc(x); - var _in_y = Eina.PrimitiveConversion.ManagedToPointerAlloc(y); - Elm.IInterfaceScrollableConcrete.NativeMethods.elm_interface_scrollable_custom_pan_pos_adjust_ptr.Value.Delegate(this.NativeHandle,_in_x, _in_y); - Eina.Error.RaiseIfUnhandledException(); - } - /// If the widget needs a focus manager, this function will be called. - /// It can be used and overriden to inject your own manager or set custom options on the focus manager. - /// (Since EFL 1.22) - /// The logical root object for focus. - /// The focus manager. - public Efl.Ui.Focus.IManager FocusManagerCreate(Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.IWidgetFocusManagerConcrete.NativeMethods.efl_ui_widget_focus_manager_create_ptr.Value.Delegate(this.NativeHandle,root); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// The element which is currently focused by this manager - /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. - /// (Since EFL 1.22) - /// Currently focused element. - public Efl.Ui.Focus.IObject GetManagerFocus() { - var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_get_ptr.Value.Delegate(this.NativeHandle); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// The element which is currently focused by this manager - /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. - /// (Since EFL 1.22) - /// Currently focused element. - public void SetManagerFocus(Efl.Ui.Focus.IObject focus) { - Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_focus_set_ptr.Value.Delegate(this.NativeHandle,focus); - Eina.Error.RaiseIfUnhandledException(); - } - /// Add another manager to serve the move requests. - /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. - /// (Since EFL 1.22) - /// The redirect manager. - public Efl.Ui.Focus.IManager GetRedirect() { - var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(this.NativeHandle); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Add another manager to serve the move requests. - /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. - /// (Since EFL 1.22) - /// The redirect manager. - public void SetRedirect(Efl.Ui.Focus.IManager redirect) { - Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(this.NativeHandle,redirect); - Eina.Error.RaiseIfUnhandledException(); - } - /// The list of elements which are at the border of the graph. - /// This means one of the relations right,left or down,up are not set. This call flushes all changes. See - /// (Since EFL 1.22) - /// An iterator over the border objects. - public Eina.Iterator GetBorderElements() { - var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(this.NativeHandle); - Eina.Error.RaiseIfUnhandledException(); - return new Eina.Iterator(_ret_var, false); - } - /// Get all elements that are at the border of the viewport - /// Every element returned by this is located inside the viewport rectangle, but has a right, left, down or up neighbor outside the viewport. - /// (Since EFL 1.22) - /// The rectangle defining the viewport. - /// The list of border objects. - public Eina.Iterator GetViewportElements(Eina.Rect viewport) { - Eina.Rect.NativeStruct _in_viewport = viewport; - var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(this.NativeHandle,_in_viewport); - Eina.Error.RaiseIfUnhandledException(); - return new Eina.Iterator(_ret_var, false); - } - /// Root node for all logical subtrees. - /// This property can only be set once. - /// (Since EFL 1.22) - /// Will be registered into this manager object. - public Efl.Ui.Focus.IObject GetRoot() { - var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_get_ptr.Value.Delegate(this.NativeHandle); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Root node for all logical subtrees. - /// This property can only be set once. - /// (Since EFL 1.22) - /// Will be registered into this manager object. - /// If true, this is the root node - public bool SetRoot(Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_root_set_ptr.Value.Delegate(this.NativeHandle,root); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Move the focus in the given direction. - /// This call flushes all changes. This means all changes between the last flush and now are computed. - /// (Since EFL 1.22) - /// The direction to move to. - /// The element which is now focused. - public Efl.Ui.Focus.IObject Move(Efl.Ui.Focus.Direction direction) { - var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_move_ptr.Value.Delegate(this.NativeHandle,direction); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Return the object in the direction from child. - /// (Since EFL 1.22) - /// Direction to move focus. - /// The child to move from. Pass null to indicate the currently focused child. - /// Wether you want to have a logical node as result or a non-logical. Note, in a call no logical node will get focus. - /// Object that would receive focus if moved in the given direction. - public Efl.Ui.Focus.IObject MoveRequest(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) { - var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_move_ptr.Value.Delegate(this.NativeHandle,direction, child, logical); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Return the widget in the direction next. - /// The returned widget is a child of root. It's guaranteed that child will not be prepared once again, so you can call this function inside a call. - /// (Since EFL 1.22) - /// Parent for returned child. - /// Child of passed parameter. - public Efl.Ui.Focus.IObject RequestSubchild(Efl.Ui.Focus.IObject root) { - var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(this.NativeHandle,root); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// This will fetch the data from a registered node. - /// Be aware this function will trigger a computation of all dirty nodes. - /// (Since EFL 1.22) - /// The child object to inspect. - /// The list of relations starting from child. - public Efl.Ui.Focus.Relations Fetch(Efl.Ui.Focus.IObject child) { - var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_fetch_ptr.Value.Delegate(this.NativeHandle,child); - Eina.Error.RaiseIfUnhandledException(); - var __ret_tmp = Eina.PrimitiveConversion.PointerToManaged(_ret_var); - Marshal.FreeHGlobal(_ret_var); - return __ret_tmp; - } - /// Return the last logical object. - /// The returned object is the last object that would be returned if you start at the root and move the direction into next. - /// (Since EFL 1.22) - /// Last object. - public Efl.Ui.Focus.ManagerLogicalEndDetail LogicalEnd() { - var _ret_var = Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_logical_end_ptr.Value.Delegate(this.NativeHandle); - Eina.Error.RaiseIfUnhandledException(); - return _ret_var; - } - /// Reset the history stack of this manager object. This means the uppermost element will be unfocused, and all other elements will be removed from the remembered list. - /// You should focus another element immediately after calling this, in order to always have a focused object. - /// (Since EFL 1.22) - public void ResetHistory() { - Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_reset_history_ptr.Value.Delegate(this.NativeHandle); - Eina.Error.RaiseIfUnhandledException(); - } - /// Remove the uppermost history element, and focus the previous one. - /// If there is an element that was focused before, it will be used. Otherwise, the best fitting element from the registered elements will be focused. - /// (Since EFL 1.22) - public void PopHistoryStack() { - Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(this.NativeHandle); - Eina.Error.RaiseIfUnhandledException(); - } - /// Called when this manager is set as redirect. - /// In case that this is called as an result of a move call, direction and entry will be set to the direction of the move call, and the entry object will be set to the object that had this manager as redirect property. - /// (Since EFL 1.22) - /// The direction in which this should be setup. - /// The object that caused this manager to be redirect. - public void SetupOnFirstTouch(Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) { - Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(this.NativeHandle,direction, entry); - Eina.Error.RaiseIfUnhandledException(); - } - /// This disables the cache invalidation when an object is moved. - /// Even if an object is moved, the focus manager will not recalculate its relations. This can be used when you know that the set of widgets in the focus manager is moved the same way, so the relations between the widets in the set do not change and the complex calculations can be avoided. Use to re-enable relationship calculation. - /// (Since EFL 1.22) - public void FreezeDirtyLogic() { - Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(this.NativeHandle); - Eina.Error.RaiseIfUnhandledException(); - } - /// This enables the cache invalidation when an object is moved. - /// This is the counterpart to . - /// (Since EFL 1.22) - public void DirtyLogicUnfreeze() { - Efl.Ui.Focus.IManagerConcrete.NativeMethods.efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(this.NativeHandle); - Eina.Error.RaiseIfUnhandledException(); - } - /// Control Wheel disable Enable or disable mouse wheel to be used to scroll the scroller content. heel is enabled by default. - /// true if wheel is disabled, false otherwise - public bool WheelDisabled { - get { return GetWheelDisabled(); } - set { SetWheelDisabled(value); } - } - /// Blocking of scrolling (per axis) - /// This function will block scrolling movement (by input of a user) in a given direction. One can disable movements in the X axis, the Y axis or both. The default value is none, where movements are allowed in both directions. - /// - /// What makes this function different from freeze_push(), hold_push() and lock_x_set() (or lock_y_set()) is that it doesn't propagate its effects to any parent or child widget of obj. Only the target scrollable widget will be locked with regard to scrolling. - /// Which axis (or axes) to block - public Efl.Ui.ScrollBlock MovementBlock { - get { return GetMovementBlock(); } - set { SetMovementBlock(value); } - } - /// Momentum animator - /// true if disabled, false otherwise - public bool MomentumAnimatorDisabled { - get { return GetMomentumAnimatorDisabled(); } - set { SetMomentumAnimatorDisabled(value); } - } - /// It decides whether the scrollable object propagates the events to content object or not. - /// true if events are propagated, false otherwise - public bool ContentEvents { - get { return GetContentEvents(); } - set { SetContentEvents(value); } - } - /// Bounce animator - /// true if bounce animation is disabled, false otherwise - public bool BounceAnimatorDisabled { - get { return GetBounceAnimatorDisabled(); } - set { SetBounceAnimatorDisabled(value); } - } - /// Single direction scroll configuration - /// This makes it possible to restrict scrolling to a single direction, with a "soft" or "hard" behavior. - /// - /// The hard behavior restricts the scrolling to a single direction all of the time while the soft one will restrict depending on factors such as the movement angle. If the user scrolls roughly in one direction only, it will only move according to it while if the move was clearly wanted on both axes, it will happen on both of them. - /// The single direction scroll policy - public Elm.Scroller.SingleDirection SingleDirection { - get { return GetSingleDirection(); } - set { SetSingleDirection(value); } - } - /// Set the callback to run when the content has been moved up. - /// The callback - public ElmInterfaceScrollableCb ScrollUpCb { - set { SetScrollUpCb(value); } - } - /// Set the callback to run when the horizontal scrollbar is dragged. - /// The callback - public ElmInterfaceScrollableCb HbarDragCb { - set { SetHbarDragCb(value); } - } - /// Set the callback to run when dragging of the contents has started. - /// The callback - public ElmInterfaceScrollableCb DragStartCb { - set { SetDragStartCb(value); } - } - /// Set the callback to run when scrolling of the contents has started. - /// The callback - public ElmInterfaceScrollableCb ScrollStartCb { - set { SetScrollStartCb(value); } - } - /// Freeze property - /// true if freeze, false otherwise - public bool Freeze { - set { SetFreeze(value); } - } - /// When the viewport is resized, the callback is called. - /// The callback - public ElmInterfaceScrollableResizeCb ContentViewportResizeCb { - set { SetContentViewportResizeCb(value); } - } - /// Set the callback to run when the content has been moved to the left - /// The callback - public ElmInterfaceScrollableCb ScrollLeftCb { - set { SetScrollLeftCb(value); } - } - /// Set the callback to run when the vertical scrollbar is pressed. - /// The callback - public ElmInterfaceScrollableCb VbarPressCb { - set { SetVbarPressCb(value); } - } - /// Set the callback to run when the horizontal scrollbar is pressed. - /// The callback - public ElmInterfaceScrollableCb HbarPressCb { - set { SetHbarPressCb(value); } - } - /// Set the callback to run when the horizontal scrollbar is unpressed. - /// The callback - public ElmInterfaceScrollableCb HbarUnpressCb { - set { SetHbarUnpressCb(value); } - } - /// Set the callback to run when dragging of the contents has stopped. - /// The callback - public ElmInterfaceScrollableCb DragStopCb { - set { SetDragStopCb(value); } - } - /// Set the callback to run when scrolling of the contents has stopped. - /// The callback - public ElmInterfaceScrollableCb ScrollStopCb { - set { SetScrollStopCb(value); } - } - /// Extern pan - /// Pan object - public Efl.Canvas.Object ExternPan { - set { SetExternPan(value); } - } - /// Set the callback to run when the visible page changes. - /// The callback - public ElmInterfaceScrollableCb PageChangeCb { - set { SetPageChangeCb(value); } - } - /// Hold property - /// true if hold, false otherwise - public bool Hold { - set { SetHold(value); } - } - /// Set the callback to run when the scrolling animation has started. - /// The callback - public ElmInterfaceScrollableCb AnimateStartCb { - set { SetAnimateStartCb(value); } - } - /// Set the callback to run when the content has been moved down. - /// The callback - public ElmInterfaceScrollableCb ScrollDownCb { - set { SetScrollDownCb(value); } - } - /// Set the callback to run when the content has been moved. - /// The callback - public ElmInterfaceScrollableCb ScrollCb { - set { SetScrollCb(value); } - } - /// Set the callback to run when the scrolling animation has stopped. - /// The callback - public ElmInterfaceScrollableCb AnimateStopCb { - set { SetAnimateStopCb(value); } - } - /// set the callback to run on minimal limit content - /// The callback - public ElmInterfaceScrollableMinLimitCb ContentMinLimitCb { - set { SetContentMinLimitCb(value); } - } - /// Set the callback to run when the content has been moved to the right. - /// The callback - public ElmInterfaceScrollableCb ScrollRightCb { - set { SetScrollRightCb(value); } - } - /// Content property - /// Content object - public Efl.Canvas.Object ScrollableContent { - set { SetScrollableContent(value); } - } - /// Set the callback to run when the left edge of the content has been reached. - /// The callback - public ElmInterfaceScrollableCb EdgeLeftCb { - set { SetEdgeLeftCb(value); } - } - /// Set the callback to run when the horizontal scrollbar is dragged. - /// The callback - public ElmInterfaceScrollableCb VbarDragCb { - set { SetVbarDragCb(value); } - } - /// Set the callback to run when the horizontal scrollbar is unpressed. - /// The callback - public ElmInterfaceScrollableCb VbarUnpressCb { - set { SetVbarUnpressCb(value); } - } - /// Set the callback to run when the bottom edge of the content has been reached. - /// The callback - public ElmInterfaceScrollableCb EdgeBottomCb { - set { SetEdgeBottomCb(value); } - } - /// Set the callback to run when the right edge of the content has been reached. - /// The callback - public ElmInterfaceScrollableCb EdgeRightCb { - set { SetEdgeRightCb(value); } - } - /// Set the callback to run when the top edge of the content has been reached. - /// The callback - public ElmInterfaceScrollableCb EdgeTopCb { - set { SetEdgeTopCb(value); } - } - /// Whether scrolling should loop around. - /// True to enable looping. - public bool ItemLoopEnabled { - get { return GetItemLoopEnabled(); } - set { SetItemLoopEnabled(value); } - } - /// The element which is currently focused by this manager - /// Use this property to retrieve the object currently being focused, or to set the focus to a new one. When focus is a logical child (which cannot receive focus), the next non-logical object is selected instead. If there is no such object, focus does not change. - /// (Since EFL 1.22) - /// Currently focused element. - public Efl.Ui.Focus.IObject ManagerFocus { - get { return GetManagerFocus(); } - set { SetManagerFocus(value); } - } - /// Add another manager to serve the move requests. - /// If this value is set, all move requests are redirected to this manager object. Set it to null once nothing should be redirected anymore. - /// (Since EFL 1.22) - /// The redirect manager. - public Efl.Ui.Focus.IManager Redirect { - get { return GetRedirect(); } - set { SetRedirect(value); } - } - /// The list of elements which are at the border of the graph. - /// This means one of the relations right,left or down,up are not set. This call flushes all changes. See - /// (Since EFL 1.22) - /// An iterator over the border objects. - public Eina.Iterator BorderElements { - get { return GetBorderElements(); } - } - /// Root node for all logical subtrees. - /// This property can only be set once. - /// (Since EFL 1.22) - /// Will be registered into this manager object. - public Efl.Ui.Focus.IObject Root { - get { return GetRoot(); } - set { SetRoot(value); } - } - private static IntPtr GetEflClassStatic() - { - return Elm.IInterfaceScrollableConcrete.elm_interface_scrollable_mixin_get(); - } - /// Wrapper for native methods and virtual method delegates. - /// For internal use by generated code only. - public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods - { - private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Elementary); - /// Gets the list of Eo operations to override. - /// The list of Eo operations to be overload. - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - - if (elm_interface_scrollable_gravity_get_static_delegate == null) - { - elm_interface_scrollable_gravity_get_static_delegate = new elm_interface_scrollable_gravity_get_delegate(gravity_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetGravity") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_gravity_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_gravity_get_static_delegate) }); - } - - if (elm_interface_scrollable_gravity_set_static_delegate == null) - { - elm_interface_scrollable_gravity_set_static_delegate = new elm_interface_scrollable_gravity_set_delegate(gravity_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetGravity") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_gravity_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_gravity_set_static_delegate) }); - } - - if (elm_interface_scrollable_bounce_allow_get_static_delegate == null) - { - elm_interface_scrollable_bounce_allow_get_static_delegate = new elm_interface_scrollable_bounce_allow_get_delegate(bounce_allow_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetBounceAllow") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_bounce_allow_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_bounce_allow_get_static_delegate) }); - } - - if (elm_interface_scrollable_bounce_allow_set_static_delegate == null) - { - elm_interface_scrollable_bounce_allow_set_static_delegate = new elm_interface_scrollable_bounce_allow_set_delegate(bounce_allow_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetBounceAllow") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_bounce_allow_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_bounce_allow_set_static_delegate) }); - } - - if (elm_interface_scrollable_wheel_disabled_get_static_delegate == null) - { - elm_interface_scrollable_wheel_disabled_get_static_delegate = new elm_interface_scrollable_wheel_disabled_get_delegate(wheel_disabled_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetWheelDisabled") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_wheel_disabled_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_wheel_disabled_get_static_delegate) }); - } - - if (elm_interface_scrollable_wheel_disabled_set_static_delegate == null) - { - elm_interface_scrollable_wheel_disabled_set_static_delegate = new elm_interface_scrollable_wheel_disabled_set_delegate(wheel_disabled_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetWheelDisabled") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_wheel_disabled_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_wheel_disabled_set_static_delegate) }); - } - - if (elm_interface_scrollable_movement_block_get_static_delegate == null) - { - elm_interface_scrollable_movement_block_get_static_delegate = new elm_interface_scrollable_movement_block_get_delegate(movement_block_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetMovementBlock") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_movement_block_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_movement_block_get_static_delegate) }); - } - - if (elm_interface_scrollable_movement_block_set_static_delegate == null) - { - elm_interface_scrollable_movement_block_set_static_delegate = new elm_interface_scrollable_movement_block_set_delegate(movement_block_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetMovementBlock") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_movement_block_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_movement_block_set_static_delegate) }); - } - - if (elm_interface_scrollable_momentum_animator_disabled_get_static_delegate == null) - { - elm_interface_scrollable_momentum_animator_disabled_get_static_delegate = new elm_interface_scrollable_momentum_animator_disabled_get_delegate(momentum_animator_disabled_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetMomentumAnimatorDisabled") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_momentum_animator_disabled_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_momentum_animator_disabled_get_static_delegate) }); - } - - if (elm_interface_scrollable_momentum_animator_disabled_set_static_delegate == null) - { - elm_interface_scrollable_momentum_animator_disabled_set_static_delegate = new elm_interface_scrollable_momentum_animator_disabled_set_delegate(momentum_animator_disabled_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetMomentumAnimatorDisabled") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_momentum_animator_disabled_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_momentum_animator_disabled_set_static_delegate) }); - } - - if (elm_interface_scrollable_policy_get_static_delegate == null) - { - elm_interface_scrollable_policy_get_static_delegate = new elm_interface_scrollable_policy_get_delegate(policy_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetPolicy") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_policy_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_policy_get_static_delegate) }); - } - - if (elm_interface_scrollable_policy_set_static_delegate == null) - { - elm_interface_scrollable_policy_set_static_delegate = new elm_interface_scrollable_policy_set_delegate(policy_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetPolicy") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_policy_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_policy_set_static_delegate) }); - } - - if (elm_interface_scrollable_content_region_get_static_delegate == null) - { - elm_interface_scrollable_content_region_get_static_delegate = new elm_interface_scrollable_content_region_get_delegate(content_region_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetContentRegion") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_region_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_region_get_static_delegate) }); - } - - if (elm_interface_scrollable_content_region_set_static_delegate == null) - { - elm_interface_scrollable_content_region_set_static_delegate = new elm_interface_scrollable_content_region_set_delegate(content_region_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetContentRegion") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_region_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_region_set_static_delegate) }); - } - - if (elm_interface_scrollable_content_events_get_static_delegate == null) - { - elm_interface_scrollable_content_events_get_static_delegate = new elm_interface_scrollable_content_events_get_delegate(content_events_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetContentEvents") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_events_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_events_get_static_delegate) }); - } - - if (elm_interface_scrollable_content_events_set_static_delegate == null) - { - elm_interface_scrollable_content_events_set_static_delegate = new elm_interface_scrollable_content_events_set_delegate(content_events_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetContentEvents") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_events_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_events_set_static_delegate) }); - } - - if (elm_interface_scrollable_page_size_get_static_delegate == null) - { - elm_interface_scrollable_page_size_get_static_delegate = new elm_interface_scrollable_page_size_get_delegate(page_size_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetPageSize") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_size_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_size_get_static_delegate) }); - } - - if (elm_interface_scrollable_page_size_set_static_delegate == null) - { - elm_interface_scrollable_page_size_set_static_delegate = new elm_interface_scrollable_page_size_set_delegate(page_size_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetPageSize") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_size_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_size_set_static_delegate) }); - } - - if (elm_interface_scrollable_bounce_animator_disabled_get_static_delegate == null) - { - elm_interface_scrollable_bounce_animator_disabled_get_static_delegate = new elm_interface_scrollable_bounce_animator_disabled_get_delegate(bounce_animator_disabled_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetBounceAnimatorDisabled") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_bounce_animator_disabled_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_bounce_animator_disabled_get_static_delegate) }); - } - - if (elm_interface_scrollable_bounce_animator_disabled_set_static_delegate == null) - { - elm_interface_scrollable_bounce_animator_disabled_set_static_delegate = new elm_interface_scrollable_bounce_animator_disabled_set_delegate(bounce_animator_disabled_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetBounceAnimatorDisabled") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_bounce_animator_disabled_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_bounce_animator_disabled_set_static_delegate) }); - } - - if (elm_interface_scrollable_page_scroll_limit_get_static_delegate == null) - { - elm_interface_scrollable_page_scroll_limit_get_static_delegate = new elm_interface_scrollable_page_scroll_limit_get_delegate(page_scroll_limit_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetPageScrollLimit") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_scroll_limit_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_scroll_limit_get_static_delegate) }); - } - - if (elm_interface_scrollable_page_scroll_limit_set_static_delegate == null) - { - elm_interface_scrollable_page_scroll_limit_set_static_delegate = new elm_interface_scrollable_page_scroll_limit_set_delegate(page_scroll_limit_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetPageScrollLimit") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_scroll_limit_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_scroll_limit_set_static_delegate) }); - } - - if (elm_interface_scrollable_page_snap_allow_get_static_delegate == null) - { - elm_interface_scrollable_page_snap_allow_get_static_delegate = new elm_interface_scrollable_page_snap_allow_get_delegate(page_snap_allow_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetPageSnapAllow") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_snap_allow_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_snap_allow_get_static_delegate) }); - } - - if (elm_interface_scrollable_page_snap_allow_set_static_delegate == null) - { - elm_interface_scrollable_page_snap_allow_set_static_delegate = new elm_interface_scrollable_page_snap_allow_set_delegate(page_snap_allow_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetPageSnapAllow") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_snap_allow_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_snap_allow_set_static_delegate) }); - } - - if (elm_interface_scrollable_paging_get_static_delegate == null) - { - elm_interface_scrollable_paging_get_static_delegate = new elm_interface_scrollable_paging_get_delegate(paging_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetPaging") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_paging_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_paging_get_static_delegate) }); - } - - if (elm_interface_scrollable_paging_set_static_delegate == null) - { - elm_interface_scrollable_paging_set_static_delegate = new elm_interface_scrollable_paging_set_delegate(paging_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetPaging") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_paging_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_paging_set_static_delegate) }); - } - - if (elm_interface_scrollable_single_direction_get_static_delegate == null) - { - elm_interface_scrollable_single_direction_get_static_delegate = new elm_interface_scrollable_single_direction_get_delegate(single_direction_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetSingleDirection") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_single_direction_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_single_direction_get_static_delegate) }); - } - - if (elm_interface_scrollable_single_direction_set_static_delegate == null) - { - elm_interface_scrollable_single_direction_set_static_delegate = new elm_interface_scrollable_single_direction_set_delegate(single_direction_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetSingleDirection") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_single_direction_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_single_direction_set_static_delegate) }); - } - - if (elm_interface_scrollable_step_size_get_static_delegate == null) - { - elm_interface_scrollable_step_size_get_static_delegate = new elm_interface_scrollable_step_size_get_delegate(step_size_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetStepSize") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_step_size_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_step_size_get_static_delegate) }); - } - - if (elm_interface_scrollable_step_size_set_static_delegate == null) - { - elm_interface_scrollable_step_size_set_static_delegate = new elm_interface_scrollable_step_size_set_delegate(step_size_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetStepSize") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_step_size_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_step_size_set_static_delegate) }); - } - - if (elm_interface_scrollable_content_loop_get_static_delegate == null) - { - elm_interface_scrollable_content_loop_get_static_delegate = new elm_interface_scrollable_content_loop_get_delegate(content_loop_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetContentLoop") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_loop_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_loop_get_static_delegate) }); - } - - if (elm_interface_scrollable_content_loop_set_static_delegate == null) - { - elm_interface_scrollable_content_loop_set_static_delegate = new elm_interface_scrollable_content_loop_set_delegate(content_loop_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetContentLoop") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_loop_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_loop_set_static_delegate) }); - } - - if (elm_interface_scrollable_scroll_up_cb_set_static_delegate == null) - { - elm_interface_scrollable_scroll_up_cb_set_static_delegate = new elm_interface_scrollable_scroll_up_cb_set_delegate(scroll_up_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetScrollUpCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_up_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_up_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_hbar_drag_cb_set_static_delegate == null) - { - elm_interface_scrollable_hbar_drag_cb_set_static_delegate = new elm_interface_scrollable_hbar_drag_cb_set_delegate(hbar_drag_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetHbarDragCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_hbar_drag_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_hbar_drag_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_drag_start_cb_set_static_delegate == null) - { - elm_interface_scrollable_drag_start_cb_set_static_delegate = new elm_interface_scrollable_drag_start_cb_set_delegate(drag_start_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetDragStartCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_drag_start_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_drag_start_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_scroll_start_cb_set_static_delegate == null) - { - elm_interface_scrollable_scroll_start_cb_set_static_delegate = new elm_interface_scrollable_scroll_start_cb_set_delegate(scroll_start_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetScrollStartCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_start_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_start_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_freeze_set_static_delegate == null) - { - elm_interface_scrollable_freeze_set_static_delegate = new elm_interface_scrollable_freeze_set_delegate(freeze_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetFreeze") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_freeze_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_freeze_set_static_delegate) }); - } - - if (elm_interface_scrollable_content_viewport_resize_cb_set_static_delegate == null) - { - elm_interface_scrollable_content_viewport_resize_cb_set_static_delegate = new elm_interface_scrollable_content_viewport_resize_cb_set_delegate(content_viewport_resize_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetContentViewportResizeCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_viewport_resize_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_viewport_resize_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_scroll_left_cb_set_static_delegate == null) - { - elm_interface_scrollable_scroll_left_cb_set_static_delegate = new elm_interface_scrollable_scroll_left_cb_set_delegate(scroll_left_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetScrollLeftCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_left_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_left_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_vbar_press_cb_set_static_delegate == null) - { - elm_interface_scrollable_vbar_press_cb_set_static_delegate = new elm_interface_scrollable_vbar_press_cb_set_delegate(vbar_press_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetVbarPressCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_vbar_press_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_vbar_press_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_hbar_press_cb_set_static_delegate == null) - { - elm_interface_scrollable_hbar_press_cb_set_static_delegate = new elm_interface_scrollable_hbar_press_cb_set_delegate(hbar_press_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetHbarPressCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_hbar_press_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_hbar_press_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_hbar_unpress_cb_set_static_delegate == null) - { - elm_interface_scrollable_hbar_unpress_cb_set_static_delegate = new elm_interface_scrollable_hbar_unpress_cb_set_delegate(hbar_unpress_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetHbarUnpressCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_hbar_unpress_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_hbar_unpress_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_drag_stop_cb_set_static_delegate == null) - { - elm_interface_scrollable_drag_stop_cb_set_static_delegate = new elm_interface_scrollable_drag_stop_cb_set_delegate(drag_stop_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetDragStopCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_drag_stop_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_drag_stop_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_scroll_stop_cb_set_static_delegate == null) - { - elm_interface_scrollable_scroll_stop_cb_set_static_delegate = new elm_interface_scrollable_scroll_stop_cb_set_delegate(scroll_stop_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetScrollStopCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_stop_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_stop_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_extern_pan_set_static_delegate == null) - { - elm_interface_scrollable_extern_pan_set_static_delegate = new elm_interface_scrollable_extern_pan_set_delegate(extern_pan_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetExternPan") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_extern_pan_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_extern_pan_set_static_delegate) }); - } - - if (elm_interface_scrollable_page_change_cb_set_static_delegate == null) - { - elm_interface_scrollable_page_change_cb_set_static_delegate = new elm_interface_scrollable_page_change_cb_set_delegate(page_change_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetPageChangeCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_change_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_change_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_hold_set_static_delegate == null) - { - elm_interface_scrollable_hold_set_static_delegate = new elm_interface_scrollable_hold_set_delegate(hold_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetHold") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_hold_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_hold_set_static_delegate) }); - } - - if (elm_interface_scrollable_animate_start_cb_set_static_delegate == null) - { - elm_interface_scrollable_animate_start_cb_set_static_delegate = new elm_interface_scrollable_animate_start_cb_set_delegate(animate_start_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetAnimateStartCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_animate_start_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_animate_start_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_scroll_down_cb_set_static_delegate == null) - { - elm_interface_scrollable_scroll_down_cb_set_static_delegate = new elm_interface_scrollable_scroll_down_cb_set_delegate(scroll_down_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetScrollDownCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_down_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_down_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_page_relative_set_static_delegate == null) - { - elm_interface_scrollable_page_relative_set_static_delegate = new elm_interface_scrollable_page_relative_set_delegate(page_relative_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetPageRelative") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_relative_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_relative_set_static_delegate) }); - } - - if (elm_interface_scrollable_scroll_cb_set_static_delegate == null) - { - elm_interface_scrollable_scroll_cb_set_static_delegate = new elm_interface_scrollable_scroll_cb_set_delegate(scroll_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetScrollCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_animate_stop_cb_set_static_delegate == null) - { - elm_interface_scrollable_animate_stop_cb_set_static_delegate = new elm_interface_scrollable_animate_stop_cb_set_delegate(animate_stop_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetAnimateStopCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_animate_stop_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_animate_stop_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_content_min_limit_cb_set_static_delegate == null) - { - elm_interface_scrollable_content_min_limit_cb_set_static_delegate = new elm_interface_scrollable_content_min_limit_cb_set_delegate(content_min_limit_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetContentMinLimitCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_min_limit_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_min_limit_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_scroll_right_cb_set_static_delegate == null) - { - elm_interface_scrollable_scroll_right_cb_set_static_delegate = new elm_interface_scrollable_scroll_right_cb_set_delegate(scroll_right_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetScrollRightCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_scroll_right_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_scroll_right_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_content_set_static_delegate == null) - { - elm_interface_scrollable_content_set_static_delegate = new elm_interface_scrollable_content_set_delegate(scrollable_content_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetScrollableContent") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_set_static_delegate) }); - } - - if (elm_interface_scrollable_edge_left_cb_set_static_delegate == null) - { - elm_interface_scrollable_edge_left_cb_set_static_delegate = new elm_interface_scrollable_edge_left_cb_set_delegate(edge_left_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetEdgeLeftCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_edge_left_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_edge_left_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_vbar_drag_cb_set_static_delegate == null) - { - elm_interface_scrollable_vbar_drag_cb_set_static_delegate = new elm_interface_scrollable_vbar_drag_cb_set_delegate(vbar_drag_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetVbarDragCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_vbar_drag_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_vbar_drag_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_vbar_unpress_cb_set_static_delegate == null) - { - elm_interface_scrollable_vbar_unpress_cb_set_static_delegate = new elm_interface_scrollable_vbar_unpress_cb_set_delegate(vbar_unpress_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetVbarUnpressCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_vbar_unpress_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_vbar_unpress_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_edge_bottom_cb_set_static_delegate == null) - { - elm_interface_scrollable_edge_bottom_cb_set_static_delegate = new elm_interface_scrollable_edge_bottom_cb_set_delegate(edge_bottom_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetEdgeBottomCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_edge_bottom_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_edge_bottom_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_edge_right_cb_set_static_delegate == null) - { - elm_interface_scrollable_edge_right_cb_set_static_delegate = new elm_interface_scrollable_edge_right_cb_set_delegate(edge_right_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetEdgeRightCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_edge_right_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_edge_right_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_edge_top_cb_set_static_delegate == null) - { - elm_interface_scrollable_edge_top_cb_set_static_delegate = new elm_interface_scrollable_edge_top_cb_set_delegate(edge_top_cb_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetEdgeTopCb") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_edge_top_cb_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_edge_top_cb_set_static_delegate) }); - } - - if (elm_interface_scrollable_objects_set_static_delegate == null) - { - elm_interface_scrollable_objects_set_static_delegate = new elm_interface_scrollable_objects_set_delegate(objects_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetObjects") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_objects_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_objects_set_static_delegate) }); - } - - if (elm_interface_scrollable_last_page_get_static_delegate == null) - { - elm_interface_scrollable_last_page_get_static_delegate = new elm_interface_scrollable_last_page_get_delegate(last_page_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetLastPage") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_last_page_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_last_page_get_static_delegate) }); - } - - if (elm_interface_scrollable_current_page_get_static_delegate == null) - { - elm_interface_scrollable_current_page_get_static_delegate = new elm_interface_scrollable_current_page_get_delegate(current_page_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetCurrentPage") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_current_page_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_current_page_get_static_delegate) }); - } - - if (elm_interface_scrollable_content_viewport_geometry_get_static_delegate == null) - { - elm_interface_scrollable_content_viewport_geometry_get_static_delegate = new elm_interface_scrollable_content_viewport_geometry_get_delegate(content_viewport_geometry_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetContentViewportGeometry") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_viewport_geometry_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_viewport_geometry_get_static_delegate) }); - } - - if (elm_interface_scrollable_content_size_get_static_delegate == null) - { - elm_interface_scrollable_content_size_get_static_delegate = new elm_interface_scrollable_content_size_get_delegate(content_size_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_size_get_static_delegate) }); - } - - if (elm_interface_scrollable_item_loop_enabled_get_static_delegate == null) - { - elm_interface_scrollable_item_loop_enabled_get_static_delegate = new elm_interface_scrollable_item_loop_enabled_get_delegate(item_loop_enabled_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetItemLoopEnabled") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_item_loop_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_item_loop_enabled_get_static_delegate) }); - } - - if (elm_interface_scrollable_item_loop_enabled_set_static_delegate == null) - { - elm_interface_scrollable_item_loop_enabled_set_static_delegate = new elm_interface_scrollable_item_loop_enabled_set_delegate(item_loop_enabled_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetItemLoopEnabled") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_item_loop_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_item_loop_enabled_set_static_delegate) }); - } - - if (elm_interface_scrollable_content_pos_set_static_delegate == null) - { - elm_interface_scrollable_content_pos_set_static_delegate = new elm_interface_scrollable_content_pos_set_delegate(content_pos_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetContentPos") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_pos_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_pos_set_static_delegate) }); - } - - if (elm_interface_scrollable_content_pos_get_static_delegate == null) - { - elm_interface_scrollable_content_pos_get_static_delegate = new elm_interface_scrollable_content_pos_get_delegate(content_pos_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetContentPos") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_pos_get"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_pos_get_static_delegate) }); - } - - if (elm_interface_scrollable_page_show_static_delegate == null) - { - elm_interface_scrollable_page_show_static_delegate = new elm_interface_scrollable_page_show_delegate(page_show); - } - - if (methods.FirstOrDefault(m => m.Name == "ShowPage") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_show"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_show_static_delegate) }); - } - - if (elm_interface_scrollable_region_bring_in_static_delegate == null) - { - elm_interface_scrollable_region_bring_in_static_delegate = new elm_interface_scrollable_region_bring_in_delegate(region_bring_in); - } - - if (methods.FirstOrDefault(m => m.Name == "RegionBringIn") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_region_bring_in"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_region_bring_in_static_delegate) }); - } - - if (elm_interface_scrollable_page_bring_in_static_delegate == null) - { - elm_interface_scrollable_page_bring_in_static_delegate = new elm_interface_scrollable_page_bring_in_delegate(page_bring_in); - } - - if (methods.FirstOrDefault(m => m.Name == "PageBringIn") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_page_bring_in"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_page_bring_in_static_delegate) }); - } - - if (elm_interface_scrollable_content_region_show_static_delegate == null) - { - elm_interface_scrollable_content_region_show_static_delegate = new elm_interface_scrollable_content_region_show_delegate(content_region_show); - } - - if (methods.FirstOrDefault(m => m.Name == "ShowContentRegion") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_region_show"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_region_show_static_delegate) }); - } - - if (elm_interface_scrollable_content_min_limit_static_delegate == null) - { - elm_interface_scrollable_content_min_limit_static_delegate = new elm_interface_scrollable_content_min_limit_delegate(content_min_limit); - } - - if (methods.FirstOrDefault(m => m.Name == "ContentMinLimit") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_content_min_limit"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_content_min_limit_static_delegate) }); - } - - if (elm_interface_scrollable_wanted_region_set_static_delegate == null) - { - elm_interface_scrollable_wanted_region_set_static_delegate = new elm_interface_scrollable_wanted_region_set_delegate(wanted_region_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetWantedRegion") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_wanted_region_set"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_wanted_region_set_static_delegate) }); - } - - if (elm_interface_scrollable_custom_pan_pos_adjust_static_delegate == null) - { - elm_interface_scrollable_custom_pan_pos_adjust_static_delegate = new elm_interface_scrollable_custom_pan_pos_adjust_delegate(custom_pan_pos_adjust); - } - - if (methods.FirstOrDefault(m => m.Name == "CustomPanPosAdjust") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "elm_interface_scrollable_custom_pan_pos_adjust"), func = Marshal.GetFunctionPointerForDelegate(elm_interface_scrollable_custom_pan_pos_adjust_static_delegate) }); - } - - if (efl_ui_widget_focus_manager_create_static_delegate == null) - { - efl_ui_widget_focus_manager_create_static_delegate = new efl_ui_widget_focus_manager_create_delegate(focus_manager_create); - } - - if (methods.FirstOrDefault(m => m.Name == "FocusManagerCreate") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_widget_focus_manager_create"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_widget_focus_manager_create_static_delegate) }); - } - - if (efl_ui_focus_manager_focus_get_static_delegate == null) - { - efl_ui_focus_manager_focus_get_static_delegate = new efl_ui_focus_manager_focus_get_delegate(manager_focus_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetManagerFocus") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_get_static_delegate) }); - } - - if (efl_ui_focus_manager_focus_set_static_delegate == null) - { - efl_ui_focus_manager_focus_set_static_delegate = new efl_ui_focus_manager_focus_set_delegate(manager_focus_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetManagerFocus") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_focus_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_focus_set_static_delegate) }); - } - - if (efl_ui_focus_manager_redirect_get_static_delegate == null) - { - efl_ui_focus_manager_redirect_get_static_delegate = new efl_ui_focus_manager_redirect_get_delegate(redirect_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetRedirect") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_get_static_delegate) }); - } - - if (efl_ui_focus_manager_redirect_set_static_delegate == null) - { - efl_ui_focus_manager_redirect_set_static_delegate = new efl_ui_focus_manager_redirect_set_delegate(redirect_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetRedirect") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_redirect_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_redirect_set_static_delegate) }); - } - - if (efl_ui_focus_manager_border_elements_get_static_delegate == null) - { - efl_ui_focus_manager_border_elements_get_static_delegate = new efl_ui_focus_manager_border_elements_get_delegate(border_elements_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetBorderElements") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_border_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_border_elements_get_static_delegate) }); - } - - if (efl_ui_focus_manager_viewport_elements_get_static_delegate == null) - { - efl_ui_focus_manager_viewport_elements_get_static_delegate = new efl_ui_focus_manager_viewport_elements_get_delegate(viewport_elements_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetViewportElements") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_viewport_elements_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_viewport_elements_get_static_delegate) }); - } - - if (efl_ui_focus_manager_root_get_static_delegate == null) - { - efl_ui_focus_manager_root_get_static_delegate = new efl_ui_focus_manager_root_get_delegate(root_get); - } - - if (methods.FirstOrDefault(m => m.Name == "GetRoot") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_get_static_delegate) }); - } - - if (efl_ui_focus_manager_root_set_static_delegate == null) - { - efl_ui_focus_manager_root_set_static_delegate = new efl_ui_focus_manager_root_set_delegate(root_set); - } - - if (methods.FirstOrDefault(m => m.Name == "SetRoot") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_set_static_delegate) }); - } - - if (efl_ui_focus_manager_move_static_delegate == null) - { - efl_ui_focus_manager_move_static_delegate = new efl_ui_focus_manager_move_delegate(move); - } - - if (methods.FirstOrDefault(m => m.Name == "Move") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_move_static_delegate) }); - } - - if (efl_ui_focus_manager_request_move_static_delegate == null) - { - efl_ui_focus_manager_request_move_static_delegate = new efl_ui_focus_manager_request_move_delegate(request_move); - } - - if (methods.FirstOrDefault(m => m.Name == "MoveRequest") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_move"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_move_static_delegate) }); - } - - if (efl_ui_focus_manager_request_subchild_static_delegate == null) - { - efl_ui_focus_manager_request_subchild_static_delegate = new efl_ui_focus_manager_request_subchild_delegate(request_subchild); - } - - if (methods.FirstOrDefault(m => m.Name == "RequestSubchild") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_request_subchild"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_request_subchild_static_delegate) }); - } - - if (efl_ui_focus_manager_fetch_static_delegate == null) - { - efl_ui_focus_manager_fetch_static_delegate = new efl_ui_focus_manager_fetch_delegate(fetch); - } - - if (methods.FirstOrDefault(m => m.Name == "Fetch") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_fetch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_fetch_static_delegate) }); - } - - if (efl_ui_focus_manager_logical_end_static_delegate == null) - { - efl_ui_focus_manager_logical_end_static_delegate = new efl_ui_focus_manager_logical_end_delegate(logical_end); - } - - if (methods.FirstOrDefault(m => m.Name == "LogicalEnd") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_logical_end"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_logical_end_static_delegate) }); - } - - if (efl_ui_focus_manager_reset_history_static_delegate == null) - { - efl_ui_focus_manager_reset_history_static_delegate = new efl_ui_focus_manager_reset_history_delegate(reset_history); - } - - if (methods.FirstOrDefault(m => m.Name == "ResetHistory") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_reset_history"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_reset_history_static_delegate) }); - } - - if (efl_ui_focus_manager_pop_history_stack_static_delegate == null) - { - efl_ui_focus_manager_pop_history_stack_static_delegate = new efl_ui_focus_manager_pop_history_stack_delegate(pop_history_stack); - } - - if (methods.FirstOrDefault(m => m.Name == "PopHistoryStack") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_pop_history_stack"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_pop_history_stack_static_delegate) }); - } - - if (efl_ui_focus_manager_setup_on_first_touch_static_delegate == null) - { - efl_ui_focus_manager_setup_on_first_touch_static_delegate = new efl_ui_focus_manager_setup_on_first_touch_delegate(setup_on_first_touch); - } - - if (methods.FirstOrDefault(m => m.Name == "SetupOnFirstTouch") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_setup_on_first_touch"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_setup_on_first_touch_static_delegate) }); - } - - if (efl_ui_focus_manager_dirty_logic_freeze_static_delegate == null) - { - efl_ui_focus_manager_dirty_logic_freeze_static_delegate = new efl_ui_focus_manager_dirty_logic_freeze_delegate(dirty_logic_freeze); - } - - if (methods.FirstOrDefault(m => m.Name == "FreezeDirtyLogic") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_freeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_freeze_static_delegate) }); - } - - if (efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate == null) - { - efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate = new efl_ui_focus_manager_dirty_logic_unfreeze_delegate(dirty_logic_unfreeze); - } - - if (methods.FirstOrDefault(m => m.Name == "DirtyLogicUnfreeze") != null) - { - descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_dirty_logic_unfreeze"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate) }); - } - - return descs; - } - /// Returns the Eo class for the native methods of this class. - /// The native class pointer. - public override IntPtr GetEflClass() - { - return Elm.IInterfaceScrollableConcrete.elm_interface_scrollable_mixin_get(); - } - - #pragma warning disable CA1707, CS1591, SA1300, SA1600 - - - private delegate void elm_interface_scrollable_gravity_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y); - - - public delegate void elm_interface_scrollable_gravity_get_api_delegate(System.IntPtr obj, out double x, out double y); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_gravity_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_gravity_get"); - - private static void gravity_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y) - { - Eina.Log.Debug("function elm_interface_scrollable_gravity_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - x = default(double); y = default(double); - try - { - ((IInterfaceScrollable)ws.Target).GetGravity(out x, out y); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_gravity_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - - private static elm_interface_scrollable_gravity_get_delegate elm_interface_scrollable_gravity_get_static_delegate; - - - private delegate void elm_interface_scrollable_gravity_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y); - - - public delegate void elm_interface_scrollable_gravity_set_api_delegate(System.IntPtr obj, double x, double y); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_gravity_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_gravity_set"); - - private static void gravity_set(System.IntPtr obj, System.IntPtr pd, double x, double y) - { - Eina.Log.Debug("function elm_interface_scrollable_gravity_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetGravity(x, y); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_gravity_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); - } - } - - private static elm_interface_scrollable_gravity_set_delegate elm_interface_scrollable_gravity_set_static_delegate; - - - private delegate void elm_interface_scrollable_bounce_allow_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - - - public delegate void elm_interface_scrollable_bounce_allow_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_bounce_allow_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_bounce_allow_get"); - - private static void bounce_allow_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) - { - Eina.Log.Debug("function elm_interface_scrollable_bounce_allow_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - horiz = default(bool); vert = default(bool); - try - { - ((IInterfaceScrollable)ws.Target).GetBounceAllow(out horiz, out vert); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_bounce_allow_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); - } - } - - private static elm_interface_scrollable_bounce_allow_get_delegate elm_interface_scrollable_bounce_allow_get_static_delegate; - - - private delegate void elm_interface_scrollable_bounce_allow_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - - - public delegate void elm_interface_scrollable_bounce_allow_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_bounce_allow_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_bounce_allow_set"); - - private static void bounce_allow_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) - { - Eina.Log.Debug("function elm_interface_scrollable_bounce_allow_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetBounceAllow(horiz, vert); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_bounce_allow_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); - } - } - - private static elm_interface_scrollable_bounce_allow_set_delegate elm_interface_scrollable_bounce_allow_set_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool elm_interface_scrollable_wheel_disabled_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool elm_interface_scrollable_wheel_disabled_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_wheel_disabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_wheel_disabled_get"); - - private static bool wheel_disabled_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function elm_interface_scrollable_wheel_disabled_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((IInterfaceScrollable)ws.Target).GetWheelDisabled(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return elm_interface_scrollable_wheel_disabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static elm_interface_scrollable_wheel_disabled_get_delegate elm_interface_scrollable_wheel_disabled_get_static_delegate; - - - private delegate void elm_interface_scrollable_wheel_disabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool disabled); - - - public delegate void elm_interface_scrollable_wheel_disabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool disabled); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_wheel_disabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_wheel_disabled_set"); - - private static void wheel_disabled_set(System.IntPtr obj, System.IntPtr pd, bool disabled) - { - Eina.Log.Debug("function elm_interface_scrollable_wheel_disabled_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetWheelDisabled(disabled); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_wheel_disabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), disabled); - } - } - - private static elm_interface_scrollable_wheel_disabled_set_delegate elm_interface_scrollable_wheel_disabled_set_static_delegate; - - - private delegate Efl.Ui.ScrollBlock elm_interface_scrollable_movement_block_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate Efl.Ui.ScrollBlock elm_interface_scrollable_movement_block_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_movement_block_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_movement_block_get"); - - private static Efl.Ui.ScrollBlock movement_block_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function elm_interface_scrollable_movement_block_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.ScrollBlock _ret_var = default(Efl.Ui.ScrollBlock); - try - { - _ret_var = ((IInterfaceScrollable)ws.Target).GetMovementBlock(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return elm_interface_scrollable_movement_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static elm_interface_scrollable_movement_block_get_delegate elm_interface_scrollable_movement_block_get_static_delegate; - - - private delegate void elm_interface_scrollable_movement_block_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block); - - - public delegate void elm_interface_scrollable_movement_block_set_api_delegate(System.IntPtr obj, Efl.Ui.ScrollBlock block); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_movement_block_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_movement_block_set"); - - private static void movement_block_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.ScrollBlock block) - { - Eina.Log.Debug("function elm_interface_scrollable_movement_block_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetMovementBlock(block); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_movement_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), block); - } - } - - private static elm_interface_scrollable_movement_block_set_delegate elm_interface_scrollable_movement_block_set_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool elm_interface_scrollable_momentum_animator_disabled_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool elm_interface_scrollable_momentum_animator_disabled_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_momentum_animator_disabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_momentum_animator_disabled_get"); - - private static bool momentum_animator_disabled_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function elm_interface_scrollable_momentum_animator_disabled_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((IInterfaceScrollable)ws.Target).GetMomentumAnimatorDisabled(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return elm_interface_scrollable_momentum_animator_disabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static elm_interface_scrollable_momentum_animator_disabled_get_delegate elm_interface_scrollable_momentum_animator_disabled_get_static_delegate; - - - private delegate void elm_interface_scrollable_momentum_animator_disabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool disabled); - - - public delegate void elm_interface_scrollable_momentum_animator_disabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool disabled); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_momentum_animator_disabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_momentum_animator_disabled_set"); - - private static void momentum_animator_disabled_set(System.IntPtr obj, System.IntPtr pd, bool disabled) - { - Eina.Log.Debug("function elm_interface_scrollable_momentum_animator_disabled_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetMomentumAnimatorDisabled(disabled); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_momentum_animator_disabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), disabled); - } - } - - private static elm_interface_scrollable_momentum_animator_disabled_set_delegate elm_interface_scrollable_momentum_animator_disabled_set_static_delegate; - - - private delegate void elm_interface_scrollable_policy_get_delegate(System.IntPtr obj, System.IntPtr pd, out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar); - - - public delegate void elm_interface_scrollable_policy_get_api_delegate(System.IntPtr obj, out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_policy_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_policy_get"); - - private static void policy_get(System.IntPtr obj, System.IntPtr pd, out Elm.Scroller.Policy hbar, out Elm.Scroller.Policy vbar) - { - Eina.Log.Debug("function elm_interface_scrollable_policy_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - hbar = default(Elm.Scroller.Policy); vbar = default(Elm.Scroller.Policy); - try - { - ((IInterfaceScrollable)ws.Target).GetPolicy(out hbar, out vbar); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_policy_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out hbar, out vbar); - } - } - - private static elm_interface_scrollable_policy_get_delegate elm_interface_scrollable_policy_get_static_delegate; - - - private delegate void elm_interface_scrollable_policy_set_delegate(System.IntPtr obj, System.IntPtr pd, Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar); - - - public delegate void elm_interface_scrollable_policy_set_api_delegate(System.IntPtr obj, Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_policy_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_policy_set"); - - private static void policy_set(System.IntPtr obj, System.IntPtr pd, Elm.Scroller.Policy hbar, Elm.Scroller.Policy vbar) - { - Eina.Log.Debug("function elm_interface_scrollable_policy_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetPolicy(hbar, vbar); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_policy_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar, vbar); - } - } - - private static elm_interface_scrollable_policy_set_delegate elm_interface_scrollable_policy_set_static_delegate; - - - private delegate void elm_interface_scrollable_content_region_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y, out int w, out int h); - - - public delegate void elm_interface_scrollable_content_region_get_api_delegate(System.IntPtr obj, out int x, out int y, out int w, out int h); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_region_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_region_get"); - - private static void content_region_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y, out int w, out int h) - { - Eina.Log.Debug("function elm_interface_scrollable_content_region_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - x = default(int); y = default(int); w = default(int); h = default(int); - try - { - ((IInterfaceScrollable)ws.Target).GetContentRegion(out x, out y, out w, out h); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_content_region_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y, out w, out h); - } - } - - private static elm_interface_scrollable_content_region_get_delegate elm_interface_scrollable_content_region_get_static_delegate; - - - private delegate void elm_interface_scrollable_content_region_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h); - - - public delegate void elm_interface_scrollable_content_region_set_api_delegate(System.IntPtr obj, int x, int y, int w, int h); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_region_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_region_set"); - - private static void content_region_set(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h) - { - Eina.Log.Debug("function elm_interface_scrollable_content_region_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetContentRegion(x, y, w, h); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_content_region_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h); - } - } - - private static elm_interface_scrollable_content_region_set_delegate elm_interface_scrollable_content_region_set_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool elm_interface_scrollable_content_events_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool elm_interface_scrollable_content_events_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_events_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_events_get"); - - private static bool content_events_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function elm_interface_scrollable_content_events_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((IInterfaceScrollable)ws.Target).GetContentEvents(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return elm_interface_scrollable_content_events_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static elm_interface_scrollable_content_events_get_delegate elm_interface_scrollable_content_events_get_static_delegate; - - - private delegate void elm_interface_scrollable_content_events_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool repeat_events); - - - public delegate void elm_interface_scrollable_content_events_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool repeat_events); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_events_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_events_set"); - - private static void content_events_set(System.IntPtr obj, System.IntPtr pd, bool repeat_events) - { - Eina.Log.Debug("function elm_interface_scrollable_content_events_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetContentEvents(repeat_events); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_content_events_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), repeat_events); - } - } - - private static elm_interface_scrollable_content_events_set_delegate elm_interface_scrollable_content_events_set_static_delegate; - - - private delegate void elm_interface_scrollable_page_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y); - - - public delegate void elm_interface_scrollable_page_size_get_api_delegate(System.IntPtr obj, out int x, out int y); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_size_get"); - - private static void page_size_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y) - { - Eina.Log.Debug("function elm_interface_scrollable_page_size_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - x = default(int); y = default(int); - try - { - ((IInterfaceScrollable)ws.Target).GetPageSize(out x, out y); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_page_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - - private static elm_interface_scrollable_page_size_get_delegate elm_interface_scrollable_page_size_get_static_delegate; - - - private delegate void elm_interface_scrollable_page_size_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y); - - - public delegate void elm_interface_scrollable_page_size_set_api_delegate(System.IntPtr obj, int x, int y); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_size_set"); - - private static void page_size_set(System.IntPtr obj, System.IntPtr pd, int x, int y) - { - Eina.Log.Debug("function elm_interface_scrollable_page_size_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetPageSize(x, y); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_page_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); - } - } - - private static elm_interface_scrollable_page_size_set_delegate elm_interface_scrollable_page_size_set_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool elm_interface_scrollable_bounce_animator_disabled_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool elm_interface_scrollable_bounce_animator_disabled_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_bounce_animator_disabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_bounce_animator_disabled_get"); - - private static bool bounce_animator_disabled_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function elm_interface_scrollable_bounce_animator_disabled_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((IInterfaceScrollable)ws.Target).GetBounceAnimatorDisabled(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return elm_interface_scrollable_bounce_animator_disabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static elm_interface_scrollable_bounce_animator_disabled_get_delegate elm_interface_scrollable_bounce_animator_disabled_get_static_delegate; - - - private delegate void elm_interface_scrollable_bounce_animator_disabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool disabled); - - - public delegate void elm_interface_scrollable_bounce_animator_disabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool disabled); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_bounce_animator_disabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_bounce_animator_disabled_set"); - - private static void bounce_animator_disabled_set(System.IntPtr obj, System.IntPtr pd, bool disabled) - { - Eina.Log.Debug("function elm_interface_scrollable_bounce_animator_disabled_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetBounceAnimatorDisabled(disabled); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_bounce_animator_disabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), disabled); - } - } - - private static elm_interface_scrollable_bounce_animator_disabled_set_delegate elm_interface_scrollable_bounce_animator_disabled_set_static_delegate; - - - private delegate void elm_interface_scrollable_page_scroll_limit_get_delegate(System.IntPtr obj, System.IntPtr pd, out int page_limit_h, out int page_limit_v); - - - public delegate void elm_interface_scrollable_page_scroll_limit_get_api_delegate(System.IntPtr obj, out int page_limit_h, out int page_limit_v); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_scroll_limit_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_scroll_limit_get"); - - private static void page_scroll_limit_get(System.IntPtr obj, System.IntPtr pd, out int page_limit_h, out int page_limit_v) - { - Eina.Log.Debug("function elm_interface_scrollable_page_scroll_limit_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - page_limit_h = default(int); page_limit_v = default(int); - try - { - ((IInterfaceScrollable)ws.Target).GetPageScrollLimit(out page_limit_h, out page_limit_v); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_page_scroll_limit_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out page_limit_h, out page_limit_v); - } - } - - private static elm_interface_scrollable_page_scroll_limit_get_delegate elm_interface_scrollable_page_scroll_limit_get_static_delegate; - - - private delegate void elm_interface_scrollable_page_scroll_limit_set_delegate(System.IntPtr obj, System.IntPtr pd, int page_limit_h, int page_limit_v); - - - public delegate void elm_interface_scrollable_page_scroll_limit_set_api_delegate(System.IntPtr obj, int page_limit_h, int page_limit_v); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_scroll_limit_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_scroll_limit_set"); - - private static void page_scroll_limit_set(System.IntPtr obj, System.IntPtr pd, int page_limit_h, int page_limit_v) - { - Eina.Log.Debug("function elm_interface_scrollable_page_scroll_limit_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetPageScrollLimit(page_limit_h, page_limit_v); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_page_scroll_limit_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), page_limit_h, page_limit_v); - } - } - - private static elm_interface_scrollable_page_scroll_limit_set_delegate elm_interface_scrollable_page_scroll_limit_set_static_delegate; - - - private delegate void elm_interface_scrollable_page_snap_allow_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - - - public delegate void elm_interface_scrollable_page_snap_allow_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool horiz, [MarshalAs(UnmanagedType.U1)] out bool vert); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_snap_allow_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_snap_allow_get"); - - private static void page_snap_allow_get(System.IntPtr obj, System.IntPtr pd, out bool horiz, out bool vert) - { - Eina.Log.Debug("function elm_interface_scrollable_page_snap_allow_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - horiz = default(bool); vert = default(bool); - try - { - ((IInterfaceScrollable)ws.Target).GetPageSnapAllow(out horiz, out vert); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_page_snap_allow_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out horiz, out vert); - } - } - - private static elm_interface_scrollable_page_snap_allow_get_delegate elm_interface_scrollable_page_snap_allow_get_static_delegate; - - - private delegate void elm_interface_scrollable_page_snap_allow_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - - - public delegate void elm_interface_scrollable_page_snap_allow_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool horiz, [MarshalAs(UnmanagedType.U1)] bool vert); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_snap_allow_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_snap_allow_set"); - - private static void page_snap_allow_set(System.IntPtr obj, System.IntPtr pd, bool horiz, bool vert) - { - Eina.Log.Debug("function elm_interface_scrollable_page_snap_allow_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetPageSnapAllow(horiz, vert); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_page_snap_allow_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), horiz, vert); - } - } - - private static elm_interface_scrollable_page_snap_allow_set_delegate elm_interface_scrollable_page_snap_allow_set_static_delegate; - - - private delegate void elm_interface_scrollable_paging_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v); - - - public delegate void elm_interface_scrollable_paging_get_api_delegate(System.IntPtr obj, out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_paging_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_paging_get"); - - private static void paging_get(System.IntPtr obj, System.IntPtr pd, out double pagerel_h, out double pagerel_v, out int pagesize_h, out int pagesize_v) - { - Eina.Log.Debug("function elm_interface_scrollable_paging_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - pagerel_h = default(double); pagerel_v = default(double); pagesize_h = default(int); pagesize_v = default(int); - try - { - ((IInterfaceScrollable)ws.Target).GetPaging(out pagerel_h, out pagerel_v, out pagesize_h, out pagesize_v); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_paging_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pagerel_h, out pagerel_v, out pagesize_h, out pagesize_v); - } - } - - private static elm_interface_scrollable_paging_get_delegate elm_interface_scrollable_paging_get_static_delegate; - - - private delegate void elm_interface_scrollable_paging_set_delegate(System.IntPtr obj, System.IntPtr pd, double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v); - - - public delegate void elm_interface_scrollable_paging_set_api_delegate(System.IntPtr obj, double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_paging_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_paging_set"); - - private static void paging_set(System.IntPtr obj, System.IntPtr pd, double pagerel_h, double pagerel_v, int pagesize_h, int pagesize_v) - { - Eina.Log.Debug("function elm_interface_scrollable_paging_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetPaging(pagerel_h, pagerel_v, pagesize_h, pagesize_v); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_paging_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pagerel_h, pagerel_v, pagesize_h, pagesize_v); - } - } - - private static elm_interface_scrollable_paging_set_delegate elm_interface_scrollable_paging_set_static_delegate; - - - private delegate Elm.Scroller.SingleDirection elm_interface_scrollable_single_direction_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate Elm.Scroller.SingleDirection elm_interface_scrollable_single_direction_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_single_direction_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_single_direction_get"); - - private static Elm.Scroller.SingleDirection single_direction_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function elm_interface_scrollable_single_direction_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Elm.Scroller.SingleDirection _ret_var = default(Elm.Scroller.SingleDirection); - try - { - _ret_var = ((IInterfaceScrollable)ws.Target).GetSingleDirection(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return elm_interface_scrollable_single_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static elm_interface_scrollable_single_direction_get_delegate elm_interface_scrollable_single_direction_get_static_delegate; - - - private delegate void elm_interface_scrollable_single_direction_set_delegate(System.IntPtr obj, System.IntPtr pd, Elm.Scroller.SingleDirection single_dir); - - - public delegate void elm_interface_scrollable_single_direction_set_api_delegate(System.IntPtr obj, Elm.Scroller.SingleDirection single_dir); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_single_direction_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_single_direction_set"); - - private static void single_direction_set(System.IntPtr obj, System.IntPtr pd, Elm.Scroller.SingleDirection single_dir) - { - Eina.Log.Debug("function elm_interface_scrollable_single_direction_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetSingleDirection(single_dir); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_single_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), single_dir); - } - } - - private static elm_interface_scrollable_single_direction_set_delegate elm_interface_scrollable_single_direction_set_static_delegate; - - - private delegate void elm_interface_scrollable_step_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y); - - - public delegate void elm_interface_scrollable_step_size_get_api_delegate(System.IntPtr obj, out int x, out int y); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_step_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_step_size_get"); - - private static void step_size_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y) - { - Eina.Log.Debug("function elm_interface_scrollable_step_size_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - x = default(int); y = default(int); - try - { - ((IInterfaceScrollable)ws.Target).GetStepSize(out x, out y); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_step_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - - private static elm_interface_scrollable_step_size_get_delegate elm_interface_scrollable_step_size_get_static_delegate; - - - private delegate void elm_interface_scrollable_step_size_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y); - - - public delegate void elm_interface_scrollable_step_size_set_api_delegate(System.IntPtr obj, int x, int y); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_step_size_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_step_size_set"); - - private static void step_size_set(System.IntPtr obj, System.IntPtr pd, int x, int y) - { - Eina.Log.Debug("function elm_interface_scrollable_step_size_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetStepSize(x, y); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_step_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); - } - } - - private static elm_interface_scrollable_step_size_set_delegate elm_interface_scrollable_step_size_set_static_delegate; - - - private delegate void elm_interface_scrollable_content_loop_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); - - - public delegate void elm_interface_scrollable_content_loop_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] out bool loop_h, [MarshalAs(UnmanagedType.U1)] out bool loop_v); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_loop_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_loop_get"); - - private static void content_loop_get(System.IntPtr obj, System.IntPtr pd, out bool loop_h, out bool loop_v) - { - Eina.Log.Debug("function elm_interface_scrollable_content_loop_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - loop_h = default(bool); loop_v = default(bool); - try - { - ((IInterfaceScrollable)ws.Target).GetContentLoop(out loop_h, out loop_v); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_content_loop_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out loop_h, out loop_v); - } - } - - private static elm_interface_scrollable_content_loop_get_delegate elm_interface_scrollable_content_loop_get_static_delegate; - - - private delegate void elm_interface_scrollable_content_loop_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); - - - public delegate void elm_interface_scrollable_content_loop_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool loop_h, [MarshalAs(UnmanagedType.U1)] bool loop_v); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_loop_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_loop_set"); - - private static void content_loop_set(System.IntPtr obj, System.IntPtr pd, bool loop_h, bool loop_v) - { - Eina.Log.Debug("function elm_interface_scrollable_content_loop_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetContentLoop(loop_h, loop_v); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_content_loop_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), loop_h, loop_v); - } - } - - private static elm_interface_scrollable_content_loop_set_delegate elm_interface_scrollable_content_loop_set_static_delegate; - - - private delegate void elm_interface_scrollable_scroll_up_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_up_cb); - - - public delegate void elm_interface_scrollable_scroll_up_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_up_cb); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_up_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_up_cb_set"); - - private static void scroll_up_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_up_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_scroll_up_cb_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetScrollUpCb(scroll_up_cb); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_scroll_up_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_up_cb); - } - } - - private static elm_interface_scrollable_scroll_up_cb_set_delegate elm_interface_scrollable_scroll_up_cb_set_static_delegate; - - - private delegate void elm_interface_scrollable_hbar_drag_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_drag_cb); - - - public delegate void elm_interface_scrollable_hbar_drag_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb hbar_drag_cb); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_hbar_drag_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_hbar_drag_cb_set"); - - private static void hbar_drag_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_drag_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_hbar_drag_cb_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetHbarDragCb(hbar_drag_cb); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_hbar_drag_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar_drag_cb); - } - } - - private static elm_interface_scrollable_hbar_drag_cb_set_delegate elm_interface_scrollable_hbar_drag_cb_set_static_delegate; - - - private delegate void elm_interface_scrollable_drag_start_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb drag_start_cb); - - - public delegate void elm_interface_scrollable_drag_start_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb drag_start_cb); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_drag_start_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_drag_start_cb_set"); - - private static void drag_start_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb drag_start_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_drag_start_cb_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetDragStartCb(drag_start_cb); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_drag_start_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), drag_start_cb); - } - } - - private static elm_interface_scrollable_drag_start_cb_set_delegate elm_interface_scrollable_drag_start_cb_set_static_delegate; - - - private delegate void elm_interface_scrollable_scroll_start_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_start_cb); - - - public delegate void elm_interface_scrollable_scroll_start_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_start_cb); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_start_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_start_cb_set"); - - private static void scroll_start_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_start_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_scroll_start_cb_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetScrollStartCb(scroll_start_cb); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_scroll_start_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_start_cb); - } - } - - private static elm_interface_scrollable_scroll_start_cb_set_delegate elm_interface_scrollable_scroll_start_cb_set_static_delegate; - - - private delegate void elm_interface_scrollable_freeze_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool freeze); - - - public delegate void elm_interface_scrollable_freeze_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool freeze); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_freeze_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_freeze_set"); - - private static void freeze_set(System.IntPtr obj, System.IntPtr pd, bool freeze) - { - Eina.Log.Debug("function elm_interface_scrollable_freeze_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetFreeze(freeze); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_freeze_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), freeze); - } - } - - private static elm_interface_scrollable_freeze_set_delegate elm_interface_scrollable_freeze_set_static_delegate; - - - private delegate void elm_interface_scrollable_content_viewport_resize_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableResizeCb viewport_resize_cb); - - - public delegate void elm_interface_scrollable_content_viewport_resize_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableResizeCb viewport_resize_cb); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_viewport_resize_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_viewport_resize_cb_set"); - - private static void content_viewport_resize_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableResizeCb viewport_resize_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_content_viewport_resize_cb_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetContentViewportResizeCb(viewport_resize_cb); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_content_viewport_resize_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport_resize_cb); - } - } - - private static elm_interface_scrollable_content_viewport_resize_cb_set_delegate elm_interface_scrollable_content_viewport_resize_cb_set_static_delegate; - - - private delegate void elm_interface_scrollable_scroll_left_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_left_cb); - - - public delegate void elm_interface_scrollable_scroll_left_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_left_cb); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_left_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_left_cb_set"); - - private static void scroll_left_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_left_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_scroll_left_cb_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetScrollLeftCb(scroll_left_cb); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_scroll_left_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_left_cb); - } - } - - private static elm_interface_scrollable_scroll_left_cb_set_delegate elm_interface_scrollable_scroll_left_cb_set_static_delegate; - - - private delegate void elm_interface_scrollable_vbar_press_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_press_cb); - - - public delegate void elm_interface_scrollable_vbar_press_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb vbar_press_cb); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_vbar_press_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_vbar_press_cb_set"); - - private static void vbar_press_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_press_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_vbar_press_cb_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetVbarPressCb(vbar_press_cb); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_vbar_press_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), vbar_press_cb); - } - } - - private static elm_interface_scrollable_vbar_press_cb_set_delegate elm_interface_scrollable_vbar_press_cb_set_static_delegate; - - - private delegate void elm_interface_scrollable_hbar_press_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_press_cb); - - - public delegate void elm_interface_scrollable_hbar_press_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb hbar_press_cb); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_hbar_press_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_hbar_press_cb_set"); - - private static void hbar_press_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_press_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_hbar_press_cb_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetHbarPressCb(hbar_press_cb); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_hbar_press_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar_press_cb); - } - } - - private static elm_interface_scrollable_hbar_press_cb_set_delegate elm_interface_scrollable_hbar_press_cb_set_static_delegate; - - - private delegate void elm_interface_scrollable_hbar_unpress_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_unpress_cb); - - - public delegate void elm_interface_scrollable_hbar_unpress_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb hbar_unpress_cb); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_hbar_unpress_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_hbar_unpress_cb_set"); - - private static void hbar_unpress_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb hbar_unpress_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_hbar_unpress_cb_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetHbarUnpressCb(hbar_unpress_cb); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_hbar_unpress_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hbar_unpress_cb); - } - } - - private static elm_interface_scrollable_hbar_unpress_cb_set_delegate elm_interface_scrollable_hbar_unpress_cb_set_static_delegate; - - - private delegate void elm_interface_scrollable_drag_stop_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb drag_stop_cb); - - - public delegate void elm_interface_scrollable_drag_stop_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb drag_stop_cb); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_drag_stop_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_drag_stop_cb_set"); - - private static void drag_stop_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb drag_stop_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_drag_stop_cb_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetDragStopCb(drag_stop_cb); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_drag_stop_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), drag_stop_cb); - } - } - - private static elm_interface_scrollable_drag_stop_cb_set_delegate elm_interface_scrollable_drag_stop_cb_set_static_delegate; - - - private delegate void elm_interface_scrollable_scroll_stop_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_stop_cb); - - - public delegate void elm_interface_scrollable_scroll_stop_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_stop_cb); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_stop_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_stop_cb_set"); - - private static void scroll_stop_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_stop_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_scroll_stop_cb_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetScrollStopCb(scroll_stop_cb); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_scroll_stop_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_stop_cb); - } - } - - private static elm_interface_scrollable_scroll_stop_cb_set_delegate elm_interface_scrollable_scroll_stop_cb_set_static_delegate; - - - private delegate void elm_interface_scrollable_extern_pan_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object pan); - - - public delegate void elm_interface_scrollable_extern_pan_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object pan); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_extern_pan_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_extern_pan_set"); - - private static void extern_pan_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object pan) - { - Eina.Log.Debug("function elm_interface_scrollable_extern_pan_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetExternPan(pan); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_extern_pan_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pan); - } - } - - private static elm_interface_scrollable_extern_pan_set_delegate elm_interface_scrollable_extern_pan_set_static_delegate; - - - private delegate void elm_interface_scrollable_page_change_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb page_change_cb); - - - public delegate void elm_interface_scrollable_page_change_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb page_change_cb); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_change_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_change_cb_set"); - - private static void page_change_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb page_change_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_page_change_cb_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetPageChangeCb(page_change_cb); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_page_change_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), page_change_cb); - } - } - - private static elm_interface_scrollable_page_change_cb_set_delegate elm_interface_scrollable_page_change_cb_set_static_delegate; - - - private delegate void elm_interface_scrollable_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool hold); - - - public delegate void elm_interface_scrollable_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool hold); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_hold_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_hold_set"); - - private static void hold_set(System.IntPtr obj, System.IntPtr pd, bool hold) - { - Eina.Log.Debug("function elm_interface_scrollable_hold_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetHold(hold); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), hold); - } - } - - private static elm_interface_scrollable_hold_set_delegate elm_interface_scrollable_hold_set_static_delegate; - - - private delegate void elm_interface_scrollable_animate_start_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb animate_start_cb); - - - public delegate void elm_interface_scrollable_animate_start_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb animate_start_cb); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_animate_start_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_animate_start_cb_set"); - - private static void animate_start_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb animate_start_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_animate_start_cb_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetAnimateStartCb(animate_start_cb); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_animate_start_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animate_start_cb); - } - } - - private static elm_interface_scrollable_animate_start_cb_set_delegate elm_interface_scrollable_animate_start_cb_set_static_delegate; - - - private delegate void elm_interface_scrollable_scroll_down_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_down_cb); - - - public delegate void elm_interface_scrollable_scroll_down_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_down_cb); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_down_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_down_cb_set"); - - private static void scroll_down_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_down_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_scroll_down_cb_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetScrollDownCb(scroll_down_cb); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_scroll_down_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_down_cb); - } - } - - private static elm_interface_scrollable_scroll_down_cb_set_delegate elm_interface_scrollable_scroll_down_cb_set_static_delegate; - - - private delegate void elm_interface_scrollable_page_relative_set_delegate(System.IntPtr obj, System.IntPtr pd, double h_pagerel, double v_pagerel); - - - public delegate void elm_interface_scrollable_page_relative_set_api_delegate(System.IntPtr obj, double h_pagerel, double v_pagerel); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_relative_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_relative_set"); - - private static void page_relative_set(System.IntPtr obj, System.IntPtr pd, double h_pagerel, double v_pagerel) - { - Eina.Log.Debug("function elm_interface_scrollable_page_relative_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetPageRelative(h_pagerel, v_pagerel); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_page_relative_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), h_pagerel, v_pagerel); - } - } - - private static elm_interface_scrollable_page_relative_set_delegate elm_interface_scrollable_page_relative_set_static_delegate; - - - private delegate void elm_interface_scrollable_scroll_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_cb); - - - public delegate void elm_interface_scrollable_scroll_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_cb); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_cb_set"); - - private static void scroll_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_scroll_cb_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetScrollCb(scroll_cb); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_scroll_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_cb); - } - } - - private static elm_interface_scrollable_scroll_cb_set_delegate elm_interface_scrollable_scroll_cb_set_static_delegate; - - - private delegate void elm_interface_scrollable_animate_stop_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb animate_stop_cb); - - - public delegate void elm_interface_scrollable_animate_stop_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb animate_stop_cb); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_animate_stop_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_animate_stop_cb_set"); - - private static void animate_stop_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb animate_stop_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_animate_stop_cb_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetAnimateStopCb(animate_stop_cb); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_animate_stop_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animate_stop_cb); - } - } - - private static elm_interface_scrollable_animate_stop_cb_set_delegate elm_interface_scrollable_animate_stop_cb_set_static_delegate; - - - private delegate void elm_interface_scrollable_content_min_limit_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableMinLimitCb min_limit_cb); - - - public delegate void elm_interface_scrollable_content_min_limit_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableMinLimitCb min_limit_cb); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_min_limit_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_min_limit_cb_set"); - - private static void content_min_limit_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableMinLimitCb min_limit_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_content_min_limit_cb_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetContentMinLimitCb(min_limit_cb); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_content_min_limit_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), min_limit_cb); - } - } - - private static elm_interface_scrollable_content_min_limit_cb_set_delegate elm_interface_scrollable_content_min_limit_cb_set_static_delegate; - - - private delegate void elm_interface_scrollable_scroll_right_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_right_cb); - - - public delegate void elm_interface_scrollable_scroll_right_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb scroll_right_cb); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_scroll_right_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_scroll_right_cb_set"); - - private static void scroll_right_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb scroll_right_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_scroll_right_cb_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetScrollRightCb(scroll_right_cb); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_scroll_right_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_right_cb); - } - } - - private static elm_interface_scrollable_scroll_right_cb_set_delegate elm_interface_scrollable_scroll_right_cb_set_static_delegate; - - - private delegate void elm_interface_scrollable_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object content); - - - public delegate void elm_interface_scrollable_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object content); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_set"); - - private static void scrollable_content_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object content) - { - Eina.Log.Debug("function elm_interface_scrollable_content_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetScrollableContent(content); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content); - } - } - - private static elm_interface_scrollable_content_set_delegate elm_interface_scrollable_content_set_static_delegate; - - - private delegate void elm_interface_scrollable_edge_left_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_left_cb); - - - public delegate void elm_interface_scrollable_edge_left_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb edge_left_cb); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_edge_left_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_edge_left_cb_set"); - - private static void edge_left_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_left_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_edge_left_cb_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetEdgeLeftCb(edge_left_cb); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_edge_left_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edge_left_cb); - } - } - - private static elm_interface_scrollable_edge_left_cb_set_delegate elm_interface_scrollable_edge_left_cb_set_static_delegate; - - - private delegate void elm_interface_scrollable_vbar_drag_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_drag_cb); - - - public delegate void elm_interface_scrollable_vbar_drag_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb vbar_drag_cb); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_vbar_drag_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_vbar_drag_cb_set"); - - private static void vbar_drag_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_drag_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_vbar_drag_cb_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetVbarDragCb(vbar_drag_cb); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_vbar_drag_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), vbar_drag_cb); - } - } - - private static elm_interface_scrollable_vbar_drag_cb_set_delegate elm_interface_scrollable_vbar_drag_cb_set_static_delegate; - - - private delegate void elm_interface_scrollable_vbar_unpress_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_unpress_cb); - - - public delegate void elm_interface_scrollable_vbar_unpress_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb vbar_unpress_cb); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_vbar_unpress_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_vbar_unpress_cb_set"); - - private static void vbar_unpress_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb vbar_unpress_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_vbar_unpress_cb_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetVbarUnpressCb(vbar_unpress_cb); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_vbar_unpress_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), vbar_unpress_cb); - } - } - - private static elm_interface_scrollable_vbar_unpress_cb_set_delegate elm_interface_scrollable_vbar_unpress_cb_set_static_delegate; - - - private delegate void elm_interface_scrollable_edge_bottom_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_bottom_cb); - - - public delegate void elm_interface_scrollable_edge_bottom_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb edge_bottom_cb); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_edge_bottom_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_edge_bottom_cb_set"); - - private static void edge_bottom_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_bottom_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_edge_bottom_cb_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetEdgeBottomCb(edge_bottom_cb); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_edge_bottom_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edge_bottom_cb); - } - } - - private static elm_interface_scrollable_edge_bottom_cb_set_delegate elm_interface_scrollable_edge_bottom_cb_set_static_delegate; - - - private delegate void elm_interface_scrollable_edge_right_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_right_cb); - - - public delegate void elm_interface_scrollable_edge_right_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb edge_right_cb); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_edge_right_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_edge_right_cb_set"); - - private static void edge_right_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_right_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_edge_right_cb_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetEdgeRightCb(edge_right_cb); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_edge_right_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edge_right_cb); - } - } - - private static elm_interface_scrollable_edge_right_cb_set_delegate elm_interface_scrollable_edge_right_cb_set_static_delegate; - - - private delegate void elm_interface_scrollable_edge_top_cb_set_delegate(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_top_cb); - - - public delegate void elm_interface_scrollable_edge_top_cb_set_api_delegate(System.IntPtr obj, ElmInterfaceScrollableCb edge_top_cb); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_edge_top_cb_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_edge_top_cb_set"); - - private static void edge_top_cb_set(System.IntPtr obj, System.IntPtr pd, ElmInterfaceScrollableCb edge_top_cb) - { - Eina.Log.Debug("function elm_interface_scrollable_edge_top_cb_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetEdgeTopCb(edge_top_cb); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_edge_top_cb_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edge_top_cb); - } - } - - private static elm_interface_scrollable_edge_top_cb_set_delegate elm_interface_scrollable_edge_top_cb_set_static_delegate; - - - private delegate void elm_interface_scrollable_objects_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object edje_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object hit_rectangle); - - - public delegate void elm_interface_scrollable_objects_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object edje_object, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Object hit_rectangle); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_objects_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_objects_set"); - - private static void objects_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object edje_object, Efl.Canvas.Object hit_rectangle) - { - Eina.Log.Debug("function elm_interface_scrollable_objects_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetObjects(edje_object, hit_rectangle); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_objects_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), edje_object, hit_rectangle); - } - } - - private static elm_interface_scrollable_objects_set_delegate elm_interface_scrollable_objects_set_static_delegate; - - - private delegate void elm_interface_scrollable_last_page_get_delegate(System.IntPtr obj, System.IntPtr pd, out int pagenumber_h, out int pagenumber_v); - - - public delegate void elm_interface_scrollable_last_page_get_api_delegate(System.IntPtr obj, out int pagenumber_h, out int pagenumber_v); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_last_page_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_last_page_get"); - - private static void last_page_get(System.IntPtr obj, System.IntPtr pd, out int pagenumber_h, out int pagenumber_v) - { - Eina.Log.Debug("function elm_interface_scrollable_last_page_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - pagenumber_h = default(int); pagenumber_v = default(int); - try - { - ((IInterfaceScrollable)ws.Target).GetLastPage(out pagenumber_h, out pagenumber_v); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_last_page_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pagenumber_h, out pagenumber_v); - } - } - - private static elm_interface_scrollable_last_page_get_delegate elm_interface_scrollable_last_page_get_static_delegate; - - - private delegate void elm_interface_scrollable_current_page_get_delegate(System.IntPtr obj, System.IntPtr pd, out int pagenumber_h, out int pagenumber_v); - - - public delegate void elm_interface_scrollable_current_page_get_api_delegate(System.IntPtr obj, out int pagenumber_h, out int pagenumber_v); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_current_page_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_current_page_get"); - - private static void current_page_get(System.IntPtr obj, System.IntPtr pd, out int pagenumber_h, out int pagenumber_v) - { - Eina.Log.Debug("function elm_interface_scrollable_current_page_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - pagenumber_h = default(int); pagenumber_v = default(int); - try - { - ((IInterfaceScrollable)ws.Target).GetCurrentPage(out pagenumber_h, out pagenumber_v); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_current_page_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pagenumber_h, out pagenumber_v); - } - } - - private static elm_interface_scrollable_current_page_get_delegate elm_interface_scrollable_current_page_get_static_delegate; - - - private delegate void elm_interface_scrollable_content_viewport_geometry_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y, out int w, out int h); - - - public delegate void elm_interface_scrollable_content_viewport_geometry_get_api_delegate(System.IntPtr obj, out int x, out int y, out int w, out int h); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_viewport_geometry_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_viewport_geometry_get"); - - private static void content_viewport_geometry_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y, out int w, out int h) - { - Eina.Log.Debug("function elm_interface_scrollable_content_viewport_geometry_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - x = default(int); y = default(int); w = default(int); h = default(int); - try - { - ((IInterfaceScrollable)ws.Target).GetContentViewportGeometry(out x, out y, out w, out h); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_content_viewport_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y, out w, out h); - } - } - - private static elm_interface_scrollable_content_viewport_geometry_get_delegate elm_interface_scrollable_content_viewport_geometry_get_static_delegate; - - - private delegate void elm_interface_scrollable_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd, out int w, out int h); - - - public delegate void elm_interface_scrollable_content_size_get_api_delegate(System.IntPtr obj, out int w, out int h); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_size_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_size_get"); - - private static void content_size_get(System.IntPtr obj, System.IntPtr pd, out int w, out int h) - { - Eina.Log.Debug("function elm_interface_scrollable_content_size_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - w = default(int); h = default(int); - try - { - ((IInterfaceScrollable)ws.Target).GetContentSize(out w, out h); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out w, out h); - } - } - - private static elm_interface_scrollable_content_size_get_delegate elm_interface_scrollable_content_size_get_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool elm_interface_scrollable_item_loop_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool elm_interface_scrollable_item_loop_enabled_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_item_loop_enabled_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_item_loop_enabled_get"); - - private static bool item_loop_enabled_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function elm_interface_scrollable_item_loop_enabled_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((IInterfaceScrollable)ws.Target).GetItemLoopEnabled(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return elm_interface_scrollable_item_loop_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static elm_interface_scrollable_item_loop_enabled_get_delegate elm_interface_scrollable_item_loop_enabled_get_static_delegate; - - - private delegate void elm_interface_scrollable_item_loop_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool enable); - - - public delegate void elm_interface_scrollable_item_loop_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool enable); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_item_loop_enabled_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_item_loop_enabled_set"); - - private static void item_loop_enabled_set(System.IntPtr obj, System.IntPtr pd, bool enable) - { - Eina.Log.Debug("function elm_interface_scrollable_item_loop_enabled_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetItemLoopEnabled(enable); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_item_loop_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), enable); - } - } - - private static elm_interface_scrollable_item_loop_enabled_set_delegate elm_interface_scrollable_item_loop_enabled_set_static_delegate; - - - private delegate void elm_interface_scrollable_content_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y, [MarshalAs(UnmanagedType.U1)] bool sig); - - - public delegate void elm_interface_scrollable_content_pos_set_api_delegate(System.IntPtr obj, int x, int y, [MarshalAs(UnmanagedType.U1)] bool sig); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_pos_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_pos_set"); - - private static void content_pos_set(System.IntPtr obj, System.IntPtr pd, int x, int y, bool sig) - { - Eina.Log.Debug("function elm_interface_scrollable_content_pos_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetContentPos(x, y, sig); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_content_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, sig); - } - } - - private static elm_interface_scrollable_content_pos_set_delegate elm_interface_scrollable_content_pos_set_static_delegate; - - - private delegate void elm_interface_scrollable_content_pos_get_delegate(System.IntPtr obj, System.IntPtr pd, out int x, out int y); - - - public delegate void elm_interface_scrollable_content_pos_get_api_delegate(System.IntPtr obj, out int x, out int y); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_pos_get_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_pos_get"); - - private static void content_pos_get(System.IntPtr obj, System.IntPtr pd, out int x, out int y) - { - Eina.Log.Debug("function elm_interface_scrollable_content_pos_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - x = default(int); y = default(int); - try - { - ((IInterfaceScrollable)ws.Target).GetContentPos(out x, out y); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_content_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y); - } - } - - private static elm_interface_scrollable_content_pos_get_delegate elm_interface_scrollable_content_pos_get_static_delegate; - - - private delegate void elm_interface_scrollable_page_show_delegate(System.IntPtr obj, System.IntPtr pd, int pagenumber_h, int pagenumber_v); - - - public delegate void elm_interface_scrollable_page_show_api_delegate(System.IntPtr obj, int pagenumber_h, int pagenumber_v); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_show_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_show"); - - private static void page_show(System.IntPtr obj, System.IntPtr pd, int pagenumber_h, int pagenumber_v) - { - Eina.Log.Debug("function elm_interface_scrollable_page_show was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).ShowPage(pagenumber_h, pagenumber_v); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_page_show_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pagenumber_h, pagenumber_v); - } - } - - private static elm_interface_scrollable_page_show_delegate elm_interface_scrollable_page_show_static_delegate; - - - private delegate void elm_interface_scrollable_region_bring_in_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h); - - - public delegate void elm_interface_scrollable_region_bring_in_api_delegate(System.IntPtr obj, int x, int y, int w, int h); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_region_bring_in_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_region_bring_in"); - - private static void region_bring_in(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h) - { - Eina.Log.Debug("function elm_interface_scrollable_region_bring_in was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).RegionBringIn(x, y, w, h); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_region_bring_in_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h); - } - } - - private static elm_interface_scrollable_region_bring_in_delegate elm_interface_scrollable_region_bring_in_static_delegate; - - - private delegate void elm_interface_scrollable_page_bring_in_delegate(System.IntPtr obj, System.IntPtr pd, int pagenumber_h, int pagenumber_v); - - - public delegate void elm_interface_scrollable_page_bring_in_api_delegate(System.IntPtr obj, int pagenumber_h, int pagenumber_v); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_page_bring_in_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_page_bring_in"); - - private static void page_bring_in(System.IntPtr obj, System.IntPtr pd, int pagenumber_h, int pagenumber_v) - { - Eina.Log.Debug("function elm_interface_scrollable_page_bring_in was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).PageBringIn(pagenumber_h, pagenumber_v); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_page_bring_in_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pagenumber_h, pagenumber_v); - } - } - - private static elm_interface_scrollable_page_bring_in_delegate elm_interface_scrollable_page_bring_in_static_delegate; - - - private delegate void elm_interface_scrollable_content_region_show_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h); - - - public delegate void elm_interface_scrollable_content_region_show_api_delegate(System.IntPtr obj, int x, int y, int w, int h); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_region_show_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_region_show"); - - private static void content_region_show(System.IntPtr obj, System.IntPtr pd, int x, int y, int w, int h) - { - Eina.Log.Debug("function elm_interface_scrollable_content_region_show was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).ShowContentRegion(x, y, w, h); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_content_region_show_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y, w, h); - } - } - - private static elm_interface_scrollable_content_region_show_delegate elm_interface_scrollable_content_region_show_static_delegate; - - - private delegate void elm_interface_scrollable_content_min_limit_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); - - - public delegate void elm_interface_scrollable_content_min_limit_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool w, [MarshalAs(UnmanagedType.U1)] bool h); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_content_min_limit_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_content_min_limit"); - - private static void content_min_limit(System.IntPtr obj, System.IntPtr pd, bool w, bool h) - { - Eina.Log.Debug("function elm_interface_scrollable_content_min_limit was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).ContentMinLimit(w, h); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_content_min_limit_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), w, h); - } - } - - private static elm_interface_scrollable_content_min_limit_delegate elm_interface_scrollable_content_min_limit_static_delegate; - - - private delegate void elm_interface_scrollable_wanted_region_set_delegate(System.IntPtr obj, System.IntPtr pd, int x, int y); - - - public delegate void elm_interface_scrollable_wanted_region_set_api_delegate(System.IntPtr obj, int x, int y); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_wanted_region_set_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_wanted_region_set"); - - private static void wanted_region_set(System.IntPtr obj, System.IntPtr pd, int x, int y) - { - Eina.Log.Debug("function elm_interface_scrollable_wanted_region_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetWantedRegion(x, y); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_wanted_region_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); - } - } - - private static elm_interface_scrollable_wanted_region_set_delegate elm_interface_scrollable_wanted_region_set_static_delegate; - - - private delegate void elm_interface_scrollable_custom_pan_pos_adjust_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr x, System.IntPtr y); - - - public delegate void elm_interface_scrollable_custom_pan_pos_adjust_api_delegate(System.IntPtr obj, System.IntPtr x, System.IntPtr y); - - public static Efl.Eo.FunctionWrapper elm_interface_scrollable_custom_pan_pos_adjust_ptr = new Efl.Eo.FunctionWrapper(Module, "elm_interface_scrollable_custom_pan_pos_adjust"); - - private static void custom_pan_pos_adjust(System.IntPtr obj, System.IntPtr pd, System.IntPtr x, System.IntPtr y) - { - Eina.Log.Debug("function elm_interface_scrollable_custom_pan_pos_adjust was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - var _in_x = Eina.PrimitiveConversion.PointerToManaged(x); - var _in_y = Eina.PrimitiveConversion.PointerToManaged(y); - - try - { - ((IInterfaceScrollable)ws.Target).CustomPanPosAdjust(_in_x, _in_y); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - elm_interface_scrollable_custom_pan_pos_adjust_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y); - } - } - - private static elm_interface_scrollable_custom_pan_pos_adjust_delegate elm_interface_scrollable_custom_pan_pos_adjust_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Ui.Focus.IManager efl_ui_widget_focus_manager_create_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - - public static Efl.Eo.FunctionWrapper efl_ui_widget_focus_manager_create_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_widget_focus_manager_create"); - - private static Efl.Ui.Focus.IManager focus_manager_create(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_widget_focus_manager_create was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try - { - _ret_var = ((IInterfaceScrollable)ws.Target).FocusManagerCreate(root); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_widget_focus_manager_create_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); - } - } - - private static efl_ui_widget_focus_manager_create_delegate efl_ui_widget_focus_manager_create_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_focus_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_get"); - - private static Efl.Ui.Focus.IObject manager_focus_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_focus_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try - { - _ret_var = ((IInterfaceScrollable)ws.Target).GetManagerFocus(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_focus_manager_focus_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_focus_manager_focus_get_delegate efl_ui_focus_manager_focus_get_static_delegate; - - - private delegate void efl_ui_focus_manager_focus_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); - - - public delegate void efl_ui_focus_manager_focus_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject focus); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_focus_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_focus_set"); - - private static void manager_focus_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject focus) - { - Eina.Log.Debug("function efl_ui_focus_manager_focus_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetManagerFocus(focus); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_focus_manager_focus_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), focus); - } - } - - private static efl_ui_focus_manager_focus_set_delegate efl_ui_focus_manager_focus_set_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Ui.Focus.IManager efl_ui_focus_manager_redirect_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_get"); - - private static Efl.Ui.Focus.IManager redirect_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_redirect_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.Focus.IManager _ret_var = default(Efl.Ui.Focus.IManager); - try - { - _ret_var = ((IInterfaceScrollable)ws.Target).GetRedirect(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_focus_manager_redirect_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_focus_manager_redirect_get_delegate efl_ui_focus_manager_redirect_get_static_delegate; - - - private delegate void efl_ui_focus_manager_redirect_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); - - - public delegate void efl_ui_focus_manager_redirect_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IManager redirect); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_redirect_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_redirect_set"); - - private static void redirect_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IManager redirect) - { - Eina.Log.Debug("function efl_ui_focus_manager_redirect_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetRedirect(redirect); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_focus_manager_redirect_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), redirect); - } - } - - private static efl_ui_focus_manager_redirect_set_delegate efl_ui_focus_manager_redirect_set_static_delegate; - - - private delegate System.IntPtr efl_ui_focus_manager_border_elements_get_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate System.IntPtr efl_ui_focus_manager_border_elements_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_border_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_border_elements_get"); - - private static System.IntPtr border_elements_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_border_elements_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Eina.Iterator _ret_var = default(Eina.Iterator); - try - { - _ret_var = ((IInterfaceScrollable)ws.Target).GetBorderElements(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var.Handle; - - } - else - { - return efl_ui_focus_manager_border_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_focus_manager_border_elements_get_delegate efl_ui_focus_manager_border_elements_get_static_delegate; - - - private delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport); - - - public delegate System.IntPtr efl_ui_focus_manager_viewport_elements_get_api_delegate(System.IntPtr obj, Eina.Rect.NativeStruct viewport); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_viewport_elements_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_viewport_elements_get"); - - private static System.IntPtr viewport_elements_get(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct viewport) - { - Eina.Log.Debug("function efl_ui_focus_manager_viewport_elements_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Eina.Rect _in_viewport = viewport; - Eina.Iterator _ret_var = default(Eina.Iterator); - try - { - _ret_var = ((IInterfaceScrollable)ws.Target).GetViewportElements(_in_viewport); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var.Handle; - - } - else - { - return efl_ui_focus_manager_viewport_elements_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), viewport); - } - } - - private static efl_ui_focus_manager_viewport_elements_get_delegate efl_ui_focus_manager_viewport_elements_get_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_delegate(System.IntPtr obj, System.IntPtr pd); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_root_get_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_get"); - - private static Efl.Ui.Focus.IObject root_get(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_get was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try - { - _ret_var = ((IInterfaceScrollable)ws.Target).GetRoot(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_focus_manager_root_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_focus_manager_root_get_delegate efl_ui_focus_manager_root_get_static_delegate; - - [return: MarshalAs(UnmanagedType.U1)] - private delegate bool efl_ui_focus_manager_root_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - - [return: MarshalAs(UnmanagedType.U1)] - public delegate bool efl_ui_focus_manager_root_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_root_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_root_set"); - - private static bool root_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_focus_manager_root_set was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - bool _ret_var = default(bool); - try - { - _ret_var = ((IInterfaceScrollable)ws.Target).SetRoot(root); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_focus_manager_root_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); - } - } - - private static efl_ui_focus_manager_root_set_delegate efl_ui_focus_manager_root_set_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_move"); - - private static Efl.Ui.Focus.IObject move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction) - { - Eina.Log.Debug("function efl_ui_focus_manager_move was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try - { - _ret_var = ((IInterfaceScrollable)ws.Target).Move(direction); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_focus_manager_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction); - } - } - - private static efl_ui_focus_manager_move_delegate efl_ui_focus_manager_move_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_move_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child, [MarshalAs(UnmanagedType.U1)] bool logical); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_move_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_move"); - - private static Efl.Ui.Focus.IObject request_move(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject child, bool logical) - { - Eina.Log.Debug("function efl_ui_focus_manager_request_move was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try - { - _ret_var = ((IInterfaceScrollable)ws.Target).MoveRequest(direction, child, logical); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_focus_manager_request_move_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, child, logical); - } - } - - private static efl_ui_focus_manager_request_move_delegate efl_ui_focus_manager_request_move_static_delegate; - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - private delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - - [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] - public delegate Efl.Ui.Focus.IObject efl_ui_focus_manager_request_subchild_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject root); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_request_subchild_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_request_subchild"); - - private static Efl.Ui.Focus.IObject request_subchild(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject root) - { - Eina.Log.Debug("function efl_ui_focus_manager_request_subchild was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.Focus.IObject _ret_var = default(Efl.Ui.Focus.IObject); - try - { - _ret_var = ((IInterfaceScrollable)ws.Target).RequestSubchild(root); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_focus_manager_request_subchild_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), root); - } - } - - private static efl_ui_focus_manager_request_subchild_delegate efl_ui_focus_manager_request_subchild_static_delegate; - - - private delegate System.IntPtr efl_ui_focus_manager_fetch_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); - - - public delegate System.IntPtr efl_ui_focus_manager_fetch_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject child); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_fetch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_fetch"); - - private static System.IntPtr fetch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.IObject child) - { - Eina.Log.Debug("function efl_ui_focus_manager_fetch was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.Focus.Relations _ret_var = default(Efl.Ui.Focus.Relations); - try - { - _ret_var = ((IInterfaceScrollable)ws.Target).Fetch(child); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return Eina.PrimitiveConversion.ManagedToPointerAlloc(_ret_var); - - } - else - { - return efl_ui_focus_manager_fetch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), child); - } - } - - private static efl_ui_focus_manager_fetch_delegate efl_ui_focus_manager_fetch_static_delegate; - - - private delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct efl_ui_focus_manager_logical_end_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_logical_end_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_logical_end"); - - private static Efl.Ui.Focus.ManagerLogicalEndDetail.NativeStruct logical_end(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_logical_end was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - Efl.Ui.Focus.ManagerLogicalEndDetail _ret_var = default(Efl.Ui.Focus.ManagerLogicalEndDetail); - try - { - _ret_var = ((IInterfaceScrollable)ws.Target).LogicalEnd(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - return _ret_var; - - } - else - { - return efl_ui_focus_manager_logical_end_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_focus_manager_logical_end_delegate efl_ui_focus_manager_logical_end_static_delegate; - - - private delegate void efl_ui_focus_manager_reset_history_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate void efl_ui_focus_manager_reset_history_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_reset_history_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_reset_history"); - - private static void reset_history(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_reset_history was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).ResetHistory(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_focus_manager_reset_history_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_focus_manager_reset_history_delegate efl_ui_focus_manager_reset_history_static_delegate; - - - private delegate void efl_ui_focus_manager_pop_history_stack_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate void efl_ui_focus_manager_pop_history_stack_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_pop_history_stack_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_pop_history_stack"); - - private static void pop_history_stack(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_pop_history_stack was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).PopHistoryStack(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_focus_manager_pop_history_stack_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_focus_manager_pop_history_stack_delegate efl_ui_focus_manager_pop_history_stack_static_delegate; - - - private delegate void efl_ui_focus_manager_setup_on_first_touch_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); - - - public delegate void efl_ui_focus_manager_setup_on_first_touch_api_delegate(System.IntPtr obj, Efl.Ui.Focus.Direction direction, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Ui.Focus.IObject entry); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_setup_on_first_touch_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_setup_on_first_touch"); - - private static void setup_on_first_touch(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Focus.Direction direction, Efl.Ui.Focus.IObject entry) - { - Eina.Log.Debug("function efl_ui_focus_manager_setup_on_first_touch was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).SetupOnFirstTouch(direction, entry); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_focus_manager_setup_on_first_touch_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), direction, entry); - } - } - - private static efl_ui_focus_manager_setup_on_first_touch_delegate efl_ui_focus_manager_setup_on_first_touch_static_delegate; - - - private delegate void efl_ui_focus_manager_dirty_logic_freeze_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate void efl_ui_focus_manager_dirty_logic_freeze_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_freeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_freeze"); - - private static void dirty_logic_freeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_freeze was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).FreezeDirtyLogic(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_focus_manager_dirty_logic_freeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_focus_manager_dirty_logic_freeze_delegate efl_ui_focus_manager_dirty_logic_freeze_static_delegate; - - - private delegate void efl_ui_focus_manager_dirty_logic_unfreeze_delegate(System.IntPtr obj, System.IntPtr pd); - - - public delegate void efl_ui_focus_manager_dirty_logic_unfreeze_api_delegate(System.IntPtr obj); - - public static Efl.Eo.FunctionWrapper efl_ui_focus_manager_dirty_logic_unfreeze_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_focus_manager_dirty_logic_unfreeze"); - - private static void dirty_logic_unfreeze(System.IntPtr obj, System.IntPtr pd) - { - Eina.Log.Debug("function efl_ui_focus_manager_dirty_logic_unfreeze was called"); - var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); - if (ws != null) - { - - try - { - ((IInterfaceScrollable)ws.Target).DirtyLogicUnfreeze(); - } - catch (Exception e) - { - Eina.Log.Warning($"Callback error: {e.ToString()}"); - Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); - } - - - } - else - { - efl_ui_focus_manager_dirty_logic_unfreeze_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); - } - } - - private static efl_ui_focus_manager_dirty_logic_unfreeze_delegate efl_ui_focus_manager_dirty_logic_unfreeze_static_delegate; - - #pragma warning restore CA1707, CS1591, SA1300, SA1600 - -} -} -} - -namespace Elm { - -namespace Scroller { - -/// Type that controls when scrollbars should appear. -/// See also . -[Efl.Eo.BindingEntity] -public enum Policy -{ -/// Show scrollbars as needed -Auto = 0, -/// Always show scrollbars -On = 1, -/// Never show scrollbars -Off = 2, -/// Sentinel value to indicate last enum field during iteration -Last = 3, -} - -} - -} - -namespace Elm { - -namespace Scroller { - -/// Type that controls how the content is scrolled. -/// See also . -[Efl.Eo.BindingEntity] -public enum SingleDirection -{ -/// Scroll every direction -None = 0, -/// Scroll single direction if the direction is certain -Soft = 1, -/// Scroll only single direction -Hard = 2, -/// Sentinel value to indicate last enum field during iteration -Last = 3, -} - -} - -} - diff --git a/internals/src/EflSharp/EflSharp/efl/iwrapper.cs b/internals/src/EflSharp/EflSharp/efl/iwrapper.cs old mode 100644 new mode 100755 index 09c82a7e8..6b7719e61 --- a/internals/src/EflSharp/EflSharp/efl/iwrapper.cs +++ b/internals/src/EflSharp/EflSharp/efl/iwrapper.cs @@ -569,11 +569,8 @@ public class Globals /// Creates a new wrapper for the given Eo id. /// - /// If the Eo was created from a non-generated class (i.e. C#-pure class), it returns - /// the C# instance handle stored in the Eo's private data. - /// - /// For generated-class Eo instance, we use reflection to get the correct C# type to re-wrap - /// it. + /// If the Eo have a WrapperSupervisor, it returns the C# instance handle stored in its + /// WrapperSupervisor. otherwise, we use reflection to get the correct C# type to re-wrap it. /// /// /// The Eo id to be wrapped. diff --git a/internals/src/EflSharp/EflSharp/efl/workaround.cs b/internals/src/EflSharp/EflSharp/efl/workaround.cs old mode 100644 new mode 100755 index 80c6bdc83..fdaa62127 --- a/internals/src/EflSharp/EflSharp/efl/workaround.cs +++ b/internals/src/EflSharp/EflSharp/efl/workaround.cs @@ -108,6 +108,88 @@ public struct EventDescription } }; +/// +/// A parameter passed in event callbacks holding extra event parameters. +/// This is the full event information passed to callbacks in C. +/// (Since EFL 1.22) +/// +[StructLayout(LayoutKind.Sequential)] +[Efl.Eo.BindingEntity] +public struct Event +{ + /// The object the callback was called on. + /// (Since EFL 1.22) + public Efl.Object Object; + + /// The event description. + /// (Since EFL 1.22) + public Efl.EventDescription Desc; + + /// Extra event information passed by the event caller. + /// Must be cast to the event type declared in the EO file. Keep in mind that: + /// 1) Objects are passed as a normal Eo*. Event subscribers can call functions on these objects. + /// 2) Structs, built-in types and containers are passed as const pointers, with one level of indirection. + /// (Since EFL 1.22) + public System.IntPtr Info; + + /// Constructor for Event. + public Event( + Efl.Object obj = default(Efl.Object), + Efl.EventDescription desc = default(Efl.EventDescription), + System.IntPtr info = default(System.IntPtr)) + { + this.Object = obj; + this.Desc = desc; + this.Info = info; + } + + /// Implicit conversion to the managed representation from a native pointer. + /// Native pointer to be converted. + public static implicit operator Event(IntPtr ptr) + { + var tmp = (Event.NativeStruct) Marshal.PtrToStructure(ptr, typeof(Event.NativeStruct)); + return tmp; + } + + /// Internal wrapper for struct Event. + [StructLayout(LayoutKind.Sequential)] + public struct NativeStruct + { + /// Internal wrapper for field Object + public System.IntPtr Object; + + /// Internal wrapper for field Desc + public System.IntPtr Desc; + + /// Internal wrapper for field Info + public System.IntPtr Info; + + /// Implicit conversion to the internal/marshalling representation. + /// Managed struct to be converted. + /// Native representation of the managed struct. + public static implicit operator Event.NativeStruct(Event externalStruct) + { + var internalStruct = new Event.NativeStruct(); + internalStruct.Object = externalStruct.Object?.NativeHandle ?? System.IntPtr.Zero; + internalStruct.Desc = Eina.PrimitiveConversion.ManagedToPointerAlloc(externalStruct.Desc); + internalStruct.Info = externalStruct.Info; + return internalStruct; + } + + /// Implicit conversion to the managed representation. + /// Native struct to be converted. + /// Managed representation of the native struct. + public static implicit operator Event(Event.NativeStruct internalStruct) + { + var externalStruct = new Event(); + externalStruct.Object = (Efl.Object) Efl.Eo.Globals.CreateWrapperFor(internalStruct.Object); + externalStruct.Desc = Eina.PrimitiveConversion.PointerToManaged(internalStruct.Desc); + externalStruct.Info = internalStruct.Info; + return externalStruct; + } + } +} + public delegate void EventCb(System.IntPtr data, ref Event.NativeStruct evt); public delegate void FreeWrapperSupervisorCb(System.IntPtr obj); -- 2.34.1