Skip to content

Full Interface Supportย #110

@mjakeman

Description

@mjakeman

While trying to implement TreeSelection, I ran into an issue where I needed to get a GObject of some (theoretically) unknown type and return it as an interface. We should make Try/WrapPointerAs support returning interfaces as well as objects.

After #102, I think interfaces are the only "big thing" left in terms of type integration before we've covered most of the GObject type system. Let's use this to track interface support.

To Do:

  • Support interface properties (GInterface propertiesย #104)
  • Support interfaces in Try/WrapPointerAs
  • Allow user to implement GInterfaces for their subclasses
    • This will need to be done during type registration for GObject to recognise it

Future:

  • Allow the user to export custom C# interfaces as GInterfaces?
    • Would be similar to object registration
  • Prefix interfaces with I for consistency
    • Would be done alongside the generator rewrite

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions