See: https://developer.gnome.org/gtk3/3.2/GtkImage.html
gtk :: GtkImage :: defaultinit
gtk :: GtkImage :: pixel_size
gtk :: GtkImage :: pixel_size=
core :: Pointer :: address_is_null
Is the address behind this Object at NULL?core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
gtk :: GtkMisc :: defaultinit
gtk :: GtkWidget :: defaultinit
gtk :: GtkImage :: defaultinit
core :: Pointer :: defaultinit
core :: Object :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: output_class_name
Display class name on stdout (debug only).gtk :: GtkImage :: pixel_size
gtk :: GtkImage :: pixel_size=
gtk :: GtkWidget :: sensitive=
Sets the sensitivity of a widget. sensitive -> the user can interact with it.gtk :: GtkMisc :: set_alignment
gtk :: GtkMisc :: set_padding
gtk :: GtkWidget :: set_size_request
Set the minimum dimension of this widgetgtk :: GtkWidget :: signal_connect
# A widget displaying an image
# See: https://developer.gnome.org/gtk3/3.2/GtkImage.html
extern class GtkImage `{GtkImage *`}
super GtkMisc
# Create a GtkImage
new `{
return (GtkImage*)gtk_image_new();
`}
# Create a GtkImage with text
new file(filename: String) import String.to_cstring `{
return (GtkImage*)gtk_image_new_from_file(String_to_cstring(filename));
`}
fun pixel_size: Int `{
return gtk_image_get_pixel_size(self);
`}
fun pixel_size=(size: Int) `{
gtk_image_set_pixel_size(self, size);
`}
fun clear `{
gtk_image_clear(self);
`}
end
lib/gtk/v3_4/gtk_core.nit:720,1--746,3