WidgetClass

Undocumented in source.

Constructors

this
this(GtkWidgetClass* gtkWidgetClass)

Sets our main struct and passes it to the parent class.

Members

Functions

bindTemplateCallbackFull
void bindTemplateCallbackFull(string callbackName, GCallback callbackSymbol)

Declares a @callback_symbol to handle @callback_name from the template XML defined for @widget_type. See gtk_builder_add_callback_symbol().

bindTemplateChildFull
void bindTemplateChildFull(string name, bool internalChild, ptrdiff_t structOffset)

Automatically assign an object declared in the class template XML to be set to a location on a freshly built instance’s private data, or alternatively accessible via gtk_widget_get_template_child().

findStyleProperty
ParamSpec findStyleProperty(string propertyName)

Finds a style property of a widget class by name.

getStruct
void* getStruct()

the main Gtk struct as a void*

getWidgetClassStruct
GtkWidgetClass* getWidgetClassStruct()

Get the main Gtk struct

installStyleProperty
void installStyleProperty(ParamSpec pspec)

Installs a style property on a widget class. The parser for the style property is determined by the value type of @pspec.

installStylePropertyParser
void installStylePropertyParser(ParamSpec pspec, GtkRcPropertyParser parser)

Installs a style property on a widget class.

listStyleProperties
ParamSpec[] listStyleProperties()

Returns all style properties of a widget class.

setAccessibleRole
void setAccessibleRole(AtkRole role)

Sets the default #AtkRole to be set on accessibles created for widgets of @widget_class. Accessibles may decide to not honor this setting if their role reporting is more refined. Calls to gtk_widget_class_set_accessible_type() will reset this value.

setAccessibleType
void setAccessibleType(GType type)

Sets the type to be used for creating accessibles for widgets of @widget_class. The given @type must be a subtype of the type used for accessibles of the parent class.

setConnectFunc
void setConnectFunc(GtkBuilderConnectFunc connectFunc, void* connectData, GDestroyNotify connectDataDestroy)

For use in lanuage bindings, this will override the default #GtkBuilderConnectFunc to be used when parsing GtkBuilder xml from this class’s template data.

setTemplate
void setTemplate(Bytes templateBytes)

This should be called at class initialization time to specify the GtkBuilder XML to be used to extend a widget.

setTemplateFromResource
void setTemplateFromResource(string resourceName)

A convenience function to call gtk_widget_class_set_template().

Variables

gtkWidgetClass
GtkWidgetClass* gtkWidgetClass;

the main Gtk struct

Meta