Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcelhollerbach/0a185d16bbdfb848d7e35799cb6c99dc to your computer and use it in GitHub Desktop.
Save marcelhollerbach/0a185d16bbdfb848d7e35799cb6c99dc to your computer and use it in GitHub Desktop.
Mixin-Solution.md
==
#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