Package org.javagi.gtk.types
Class TemplateTypes
java.lang.Object
org.javagi.gtk.types.TemplateTypes
This class contains functionality to register a Java class as a Gtk
composite template class.
To register a Java class as a "regular" GObject class, see
Types.register(Class)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
This will callregisterTemplate(Class)
whencls
is aWidget.class
withGtkTemplate
annotation, andTypes.register(Class)
for all other (GObject-derived) classes.
-
Constructor Details
-
TemplateTypes
public TemplateTypes()
-
-
Method Details
-
register
This will callregisterTemplate(Class)
whencls
is aWidget.class
withGtkTemplate
annotation, andTypes.register(Class)
for all other (GObject-derived) classes.- Parameters:
cls
- the class to register as a new GType- Returns:
- the new GType
-