Table of Contents

Class Image

Namespace
Gtk.Internal
Assembly
Gtk-4.0.dll
public class Image
Inheritance
Image
Inherited Members

Methods

Clear(IntPtr)

Calls native method gtk_image_clear.

public static extern void Clear(IntPtr image)

Parameters

image IntPtr

Transfer ownership: None Nullable: False

GetGType()

Calls native function gtk_image_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetGicon(IntPtr)

Calls native method gtk_image_get_gicon.

public static extern IntPtr GetGicon(IntPtr image)

Parameters

image IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetIconName(IntPtr)

Calls native method gtk_image_get_icon_name.

public static extern NullableUtf8StringUnownedHandle GetIconName(IntPtr image)

Parameters

image IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetIconSize(IntPtr)

Calls native method gtk_image_get_icon_size.

public static extern IconSize GetIconSize(IntPtr image)

Parameters

image IntPtr

Transfer ownership: None Nullable: False

Returns

IconSize

Transfer ownership: None Nullable: False

GetPaintable(IntPtr)

Calls native method gtk_image_get_paintable.

public static extern IntPtr GetPaintable(IntPtr image)

Parameters

image IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetPixelSize(IntPtr)

Calls native method gtk_image_get_pixel_size.

public static extern int GetPixelSize(IntPtr image)

Parameters

image IntPtr

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetStorageType(IntPtr)

Calls native method gtk_image_get_storage_type.

public static extern ImageType GetStorageType(IntPtr image)

Parameters

image IntPtr

Transfer ownership: None Nullable: False

Returns

ImageType

Transfer ownership: None Nullable: False

New()

Calls native constructor gtk_image_new.

public static extern IntPtr New()

Returns

IntPtr

Transfer ownership: None Nullable: False

NewFromFile(NonNullablePlatformStringHandle)

Calls native constructor gtk_image_new_from_file.

public static extern IntPtr NewFromFile(NonNullablePlatformStringHandle filename)

Parameters

filename NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

NewFromGicon(IntPtr)

Calls native constructor gtk_image_new_from_gicon.

public static extern IntPtr NewFromGicon(IntPtr icon)

Parameters

icon IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

NewFromIconName(NullableUtf8StringHandle)

Calls native constructor gtk_image_new_from_icon_name.

public static extern IntPtr NewFromIconName(NullableUtf8StringHandle iconName)

Parameters

iconName NullableUtf8StringHandle

Transfer ownership: None Nullable: True

Returns

IntPtr

Transfer ownership: None Nullable: False

NewFromPaintable(IntPtr)

Calls native constructor gtk_image_new_from_paintable.

public static extern IntPtr NewFromPaintable(IntPtr paintable)

Parameters

paintable IntPtr

Transfer ownership: None Nullable: True

Returns

IntPtr

Transfer ownership: None Nullable: False

NewFromPixbuf(IntPtr)

Calls native constructor gtk_image_new_from_pixbuf.

public static extern IntPtr NewFromPixbuf(IntPtr pixbuf)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: True

Returns

IntPtr

Transfer ownership: None Nullable: False

NewFromResource(NonNullableUtf8StringHandle)

Calls native constructor gtk_image_new_from_resource.

public static extern IntPtr NewFromResource(NonNullableUtf8StringHandle resourcePath)

Parameters

resourcePath NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

SetFromFile(IntPtr, NullablePlatformStringHandle)

Calls native method gtk_image_set_from_file.

public static extern void SetFromFile(IntPtr image, NullablePlatformStringHandle filename)

Parameters

image IntPtr

Transfer ownership: None Nullable: False

filename NullablePlatformStringHandle

Transfer ownership: None Nullable: True

SetFromGicon(IntPtr, IntPtr)

Calls native method gtk_image_set_from_gicon.

public static extern void SetFromGicon(IntPtr image, IntPtr icon)

Parameters

image IntPtr

Transfer ownership: None Nullable: False

icon IntPtr

Transfer ownership: None Nullable: False

SetFromIconName(IntPtr, NullableUtf8StringHandle)

Calls native method gtk_image_set_from_icon_name.

public static extern void SetFromIconName(IntPtr image, NullableUtf8StringHandle iconName)

Parameters

image IntPtr

Transfer ownership: None Nullable: False

iconName NullableUtf8StringHandle

Transfer ownership: None Nullable: True

SetFromPaintable(IntPtr, IntPtr)

Calls native method gtk_image_set_from_paintable.

public static extern void SetFromPaintable(IntPtr image, IntPtr paintable)

Parameters

image IntPtr

Transfer ownership: None Nullable: False

paintable IntPtr

Transfer ownership: None Nullable: True

SetFromPixbuf(IntPtr, IntPtr)

Calls native method gtk_image_set_from_pixbuf.

public static extern void SetFromPixbuf(IntPtr image, IntPtr pixbuf)

Parameters

image IntPtr

Transfer ownership: None Nullable: False

pixbuf IntPtr

Transfer ownership: None Nullable: True

SetFromResource(IntPtr, NullableUtf8StringHandle)

Calls native method gtk_image_set_from_resource.

public static extern void SetFromResource(IntPtr image, NullableUtf8StringHandle resourcePath)

Parameters

image IntPtr

Transfer ownership: None Nullable: False

resourcePath NullableUtf8StringHandle

Transfer ownership: None Nullable: True

SetIconSize(IntPtr, IconSize)

Calls native method gtk_image_set_icon_size.

public static extern void SetIconSize(IntPtr image, IconSize iconSize)

Parameters

image IntPtr

Transfer ownership: None Nullable: False

iconSize IconSize

Transfer ownership: None Nullable: False

SetPixelSize(IntPtr, int)

Calls native method gtk_image_set_pixel_size.

public static extern void SetPixelSize(IntPtr image, int pixelSize)

Parameters

image IntPtr

Transfer ownership: None Nullable: False

pixelSize int

Transfer ownership: None Nullable: False