Widget


Description:

[ CCode ( construct_function = "gtk_widget_new" , has_new_function = false ) ]
public Widget (...)

This is a convenience function for creating a widget and setting its properties in one go.

For example you might write: `gtk_widget_new (GTK_TYPE_LABEL, "label", "Hello World", "xalign", 0.0, NULL)` to create a left-aligned label. Equivalent to @new, but returns a widget so you don’t have to cast the object yourself.

Parameters:

...

value of first property, followed by more properties, null-terminated

first_property_name

name of first property to set

type

type ID of the widget to create

Returns:

a new Widget of type widget_type




2022 vala-language.org