Created
October 30, 2018 12:56
-
-
Save marcelhollerbach/0a185d16bbdfb848d7e35799cb6c99dc to your computer and use it in GitHub Desktop.
Mixin-Solution.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
== | |
#using the mixins | |
Foo.Bar : Efl.Ui.Focus.Object { | |
} | |
== | |
#what the generation is creating | |
Efl.Ui.Focus.Object : DynamicObject { | |
public Efl.Object parent { | |
set { | |
} | |
} | |
public override TryInvokeMember(...) { | |
if (function-is-in-mixin) { | |
// execute function on mixin | |
// efl_super in the mixins class however has to call back to c# now. This is achived via the efl_class_new() call where the class after the mixin is again a c# implemented class | |
} else { | |
// call function on the element itself. | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment