efl/src/examples/evas
Lauro Moura 3623753c1d csharp: Change to new class API.
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
2018-11-29 21:29:48 -02:00
..
filters
resources
shooter evas3d: update examples to constructor change 2018-02-15 13:11:00 -05:00
.gitignore
Makefile.examples
README
aspect.edc
evas-3d-aabb.c Efl.Gfx.Entity (from Efl.Gfx) 2018-04-24 09:03:32 -07:00
evas-3d-blending.c Efl.Gfx.Entity (from Efl.Gfx) 2018-04-24 09:03:32 -07:00
evas-3d-colorpick.c Efl.Gfx.Entity (from Efl.Gfx) 2018-04-24 09:03:32 -07:00
evas-3d-cube-rotate.c Efl.Gfx.Entity (from Efl.Gfx) 2018-04-24 09:03:32 -07:00
evas-3d-cube.c Efl.Gfx.Entity (from Efl.Gfx) 2018-04-24 09:03:32 -07:00
evas-3d-cube2.c Efl.Gfx.Entity (from Efl.Gfx) 2018-04-24 09:03:32 -07:00
evas-3d-eet.c Efl.Gfx.Entity (from Efl.Gfx) 2018-04-24 09:03:32 -07:00
evas-3d-fog.c Efl.Gfx.Entity (from Efl.Gfx) 2018-04-24 09:03:32 -07:00
evas-3d-frustum.c evas3d: use a type setter function with finalize instead of a custom constructor 2018-02-12 16:47:41 -05:00
evas-3d-hull.c Efl.Gfx.Entity (from Efl.Gfx) 2018-04-24 09:03:32 -07:00
evas-3d-md2.c Efl.Gfx.Entity (from Efl.Gfx) 2018-04-24 09:03:32 -07:00
evas-3d-mmap-set.c Efl.Gfx.Entity (from Efl.Gfx) 2018-04-24 09:03:32 -07:00
evas-3d-obj.c Efl.Gfx.Entity (from Efl.Gfx) 2018-04-24 09:03:32 -07:00
evas-3d-parallax-occlusion.c Efl.Gfx.Entity (from Efl.Gfx) 2018-04-24 09:03:32 -07:00
evas-3d-pick.c Efl.Gfx.Entity (from Efl.Gfx) 2018-04-24 09:03:32 -07:00
evas-3d-ply.c Efl.Gfx.Entity (from Efl.Gfx) 2018-04-24 09:03:32 -07:00
evas-3d-proxy.c Efl.Gfx.Entity (from Efl.Gfx) 2018-04-24 09:03:32 -07:00
evas-3d-shadows.c Efl.Gfx.Entity (from Efl.Gfx) 2018-04-24 09:03:32 -07:00
evas-3d-static-lod.c Efl.Gfx.Entity (from Efl.Gfx) 2018-04-24 09:03:32 -07:00
evas-aspect-hints.c
evas-box.c
evas-buffer-simple.c
evas-common.h
evas-event-filter.c Efl.Canvas.Scene (from Efl.Canvas) 2018-04-24 09:03:23 -07:00
evas-events.c
evas-gl.c evas gl: update example code for better user understanding. 2018-05-29 11:27:15 +09:00
evas-hints.c efl: Use Eina.Size2D for size hint combined min 2017-09-18 16:33:33 +09:00
evas-images.c
evas-images2.c
evas-images3.c
evas-images4.c
evas-images5.c efl: Merge Flipable and Orientation 2018-01-18 17:29:28 +09:00
evas-init-shutdown.c docs: Fix typos in API reference doc and comments. 2018-08-31 17:45:31 +09:00
evas-map-aa-eo.c
evas-map-aa.c
evas-map-utils-eo.c efl: fix some warnings in examples 2018-07-20 10:36:38 -04:00
evas-map-utils.c
evas-multi-touch.c
evas-multiseat-events.c Efl.Canvas.Scene (from Efl.Canvas) 2018-04-24 09:03:23 -07:00
evas-object-manipulation-eo.c Efl.Gfx.Image* (From Efl.Image*) 2018-04-24 09:03:40 -07:00
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 examples/evas: do not attempt to free animator on window delete 2018-07-18 15:31:00 +09:00
evas-vg-simple.c evas: parent need to exist to create a vg object. 2018-04-04 16:31:09 -07:00
evas_cxx_rectangle.cc
evas_mono_box.cs csharp: Change to new class API. 2018-11-29 21:29:48 -02:00
evas_mono_image.cs csharp: Change to new class API. 2018-11-29 21:29:48 -02:00
evas_mono_image2.cs csharp: Change to new class API. 2018-11-29 21:29:48 -02:00
evas_mono_rectangle.cs csharp: Change to new class API. 2018-11-29 21:29:48 -02:00
evas_mono_table.cs csharp: Change to new class API. 2018-11-29 21:29:48 -02:00
evas_mono_text.cs csharp: Change to new class API. 2018-11-29 21:29:48 -02:00
meson.build here comes meson 2018-10-02 17:22:50 +02:00

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