3623753c1d
Summary: As discussed in T7204: - Eo Interfaces/mixins -> C# Interfaces with concrete class implementations - Eo Regular/Abstracts -> Proper C# classes - Added some new generators and helper methods. - Refactored the class generator, splitting into helper methods Eo handles now are stored only in the "root" class in any given inheritance tree (generally, Efl.Object), and accessible to each child. Methods also are defined in a single place instead of repeatedly generated in everyfile, reducing the size of the generated .dll from 30MB to around 4.5MB. Mixins are generated as C# interfaces but any regular class it inherits from is lost, as we can't have interfaces inheriting from regular classes. This will be dealt with in a later commit. Summary of API Changes: - Merged Inherit/Concrete classes. (These suffixes disappear from regular classes). - Interface still have implementations with 'Concrete' suffix for when they are returned from methods. - Removed 'I' from interface names. - Removed interfaces for regular/abstract Eo classes. - Concrete classes for interfaces/mixins hold the event argument struct. - Removed '_' from classes, enums, structs, etc, as indicated in C# naming conventions. - Namespaces are now Camel.Cased. - Renamed IWrapper's raw_handle/raw_klass to NativeHandle/NativeClass Also renamed the test classes as after the namespace change, the test namespace Test can conflict with the helper Test namespace. (And use more meaningful names than Test.Testing...) Also Fixes T7336 by removing a deprecated example and adding efl_loop_timer_example to build system. Fixes T7451 by hiding the class_get DllImports and renaming the IWrapper fields. The native handlers are used in the manual binding. Still need to work: - As there are still some events names clashing (e.g. Efl.Ui.Bg with "resize" from Efl.Gfx.Entity and Efl.Gfx.Image), Events are currently declared on the interface and implemented "namespaced" in the classes, requiring the cast to the interface to access the event. - The Mixin Conundrum. Mixin inheritance will be dealt in a future commit. Depends on D7260 Reviewers: segfaultxavi, vitor.sousa, felipealmeida, Jaehyun_Cho Reviewed By: vitor.sousa Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7451, T7336 Differential Revision: https://phab.enlightenment.org/D7262 |
||
---|---|---|
.. | ||
filters | ||
resources | ||
shooter | ||
.gitignore | ||
Makefile.examples | ||
README | ||
aspect.edc | ||
evas-3d-aabb.c | ||
evas-3d-blending.c | ||
evas-3d-colorpick.c | ||
evas-3d-cube-rotate.c | ||
evas-3d-cube.c | ||
evas-3d-cube2.c | ||
evas-3d-eet.c | ||
evas-3d-fog.c | ||
evas-3d-frustum.c | ||
evas-3d-hull.c | ||
evas-3d-md2.c | ||
evas-3d-mmap-set.c | ||
evas-3d-obj.c | ||
evas-3d-parallax-occlusion.c | ||
evas-3d-pick.c | ||
evas-3d-ply.c | ||
evas-3d-proxy.c | ||
evas-3d-shadows.c | ||
evas-3d-static-lod.c | ||
evas-aspect-hints.c | ||
evas-box.c | ||
evas-buffer-simple.c | ||
evas-common.h | ||
evas-event-filter.c | ||
evas-events.c | ||
evas-gl.c | ||
evas-hints.c | ||
evas-images.c | ||
evas-images2.c | ||
evas-images3.c | ||
evas-images4.c | ||
evas-images5.c | ||
evas-init-shutdown.c | ||
evas-map-aa-eo.c | ||
evas-map-aa.c | ||
evas-map-utils-eo.c | ||
evas-map-utils.c | ||
evas-multi-touch.c | ||
evas-multiseat-events.c | ||
evas-object-manipulation-eo.c | ||
evas-object-manipulation.c | ||
evas-smart-interface.c | ||
evas-smart-object.c | ||
evas-stacking.c | ||
evas-table.c | ||
evas-text.c | ||
evas-textblock-obstacles.c | ||
evas-transparent.c | ||
evas-vg-batman.c | ||
evas-vg-simple.c | ||
evas_cxx_rectangle.cc | ||
evas_mono_box.cs | ||
evas_mono_image.cs | ||
evas_mono_image2.cs | ||
evas_mono_rectangle.cs | ||
evas_mono_table.cs | ||
evas_mono_text.cs | ||
meson.build |
README
Evas Examples ------------- This directory contains various examples for learning how to use Evas. The list below groups them topically. Examples labeled "Introduction" are more extensively commented to explain basic concepts and are good points to start from in learning more advanced topics. == Basic Evas == evas-init-shutdown.c - Introduction to Evas evas-buffer-simple.c - Using the Evas buffer engine evas-transparent.c - Introduction to Ecore-Evas evas-object-manipulation.c - Introduction to object manipulation == Event Handling == evas-events.c - Introduction to callbacks evas-event-filter.c - evas-multiseat-events.c - Multi-seat events evas-multi-touch.c - Multi-touch == Text objects == evas-text.c - Introduction to text objects evas-textblock-obstacles.c - Textblock obstacles == Image Objects == evas-images.c - Introduction to image objects evas-images2.c - Handling events for image objects evas-images3.c - Saving data for image objects evas-images4.c - Rotating and flipping image objects evas-images5.c - Using the newer APIs == Smart Objects == evas-smart-interface.c - Introduction to smart interfaces evas-smart-object.c - Customizing smart interfaces == Scene Layout and Management == evas-hints.c - Setting hints on objects evas-aspect-hints.c - Aspect control evas-box.c - Box based layout of objects evas-stacking.c - Object stacking and layers evas-table.c - Introduction to table objects == Maps == evas-map-utils.c - Introduction to map utilities evas-map-aa.c - Maps and anti-aliasing == Eo API == evas-object-manipulation-eo.c - Eo API evas-map-utils-eo.c - Eo API evas-map-aa-eo.c - Eo API == 2D Vector Graphics == evas-vg-simple.c - Introduction to vector graphics evas-vg-batman.c - Animated vector graphics == 3D Graphics - Basics == evas-gl.c - Introduction to GL in Evas evas-3d-cube.c - Introduction to meshes for 3D objects evas-3d-cube-rotate.c - Introduction to events for 3D objects evas-3d-proxy.c - Introduction to textures for 3D objects evas-3d-shadows.c - Introduction to lighting and anti-aliasing == 3D Graphics - File formats == evas-3d-eet.c - eet file format evas-3d-md2.c - md2 file format evas-3d-obj.c - obj file format evas-3d-ply.c - ply file format evas-3d-mmap-set.c - Import meshes from various file formats == 3D Graphics - Advanced Topics == evas-3d-aabb.c - Axis aligned bounding boxes evas-3d-blending.c - Blending modes evas-3d-pick.c - Picking nodes and meshes by screen coordinates evas-3d-colorpick.c - Picking nodes and meshes by color evas-3d-cube2.c - Animation evas-3d-fog.c - Fog effect evas-3d-static-lod.c - Static LOD techniques evas-3d-frustum.c - Frustrum culling evas-3d-hull.c - Convex hull models and comparison with Blender evas-3d-parallax-occlusion.c - Parallax occlusion shading and texture animation