Libraries:Gtk:Gio:GIOExtensionPoint
Types
T
Constants
Nil : T
Functions
Implement(extension_point_name @ Std.String.T, type @ Gtk.GObject.Type.T, extension_name @ Std.String.T, priority @ Std.Integer.SmallT) : Gtk.Gio.GIOExtension.T
Registers type as extension for the extension point with name extension_point_name.
If type has already been registered as an extension for this extension point, the existing Gtk.Gio.GIOExtension.T object is returned.
extension_point_name | the name of the extension point |
type | the GType to register as extension |
extension_name | the name for the extension |
priority | the priority for the extension |
Returns | a Gtk.Gio.GIOExtension.T object for GType. [transfer none] |
Lookup(name @ Std.String.T) : Gtk.Gio.GIOExtensionPoint.T
Looks up an existing extension point.
name | the name of the extension point |
Returns | the T, or NULL if there is no registered extension point with the given name. [transfer none] |
Register(name @ Std.String.T) : Gtk.Gio.GIOExtensionPoint.T
Registers an extension point.
name | The name of the extension point |
Returns | the new T. This object is owned by GIO and should not be freed. [transfer none] |
Methods
:"="(_ @ T, _ @ T)
:GetExtensionByName(self @ T, name @ Std.String.T) : Gtk.Gio.GIOExtension.T
Finds a Gtk.Gio.GIOExtension.T for an extension point by name.
extension_point | a T |
name | the name of the extension to get |
Returns | the Gtk.Gio.GIOExtension.T for extension_point that has the given name, or NULL if there is no extension with that name. [transfer none] |
:GetExtensions(self @ T) : Std.Object.T
Gets a list of all extensions that implement this extension point. The list is sorted by priority, beginning with the highest priority.
extension_point | a T |
Returns | a GList of Gtk.Gio.GIOExtension.Ts. The list is owned by GIO and should not be modified. [element-type GIOExtension][transfer none] |
:GetRequiredType(self @ T) : Gtk.GObject.Type.T
Gets the required type for extension_point.
extension_point | a T |
Returns | the GType that all implementations must have, or G_TYPE_INVALID if the extension point has no required type |
:SetRequiredType(self @ T, type @ Gtk.GObject.Type.T) : Std.Object.T
Sets the required type for extension_point to type. All implementations must henceforth have this type.