Table of Contents

Class Picture

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

Methods

GetAlternativeText(IntPtr)

Calls native method gtk_picture_get_alternative_text.

public static extern NullableUtf8StringUnownedHandle GetAlternativeText(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetCanShrink(IntPtr)

Calls native method gtk_picture_get_can_shrink.

public static extern bool GetCanShrink(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetContentFit(IntPtr)

Calls native method gtk_picture_get_content_fit. Version: 4.8

[Version("4.8")]
public static extern ContentFit GetContentFit(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

ContentFit

Transfer ownership: None Nullable: False

GetFile(IntPtr)

Calls native method gtk_picture_get_file.

public static extern IntPtr GetFile(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetGType()

Calls native function gtk_picture_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetKeepAspectRatio(IntPtr)

Calls native method gtk_picture_get_keep_aspect_ratio.

public static extern bool GetKeepAspectRatio(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetPaintable(IntPtr)

Calls native method gtk_picture_get_paintable.

public static extern IntPtr GetPaintable(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

New()

Calls native constructor gtk_picture_new.

public static extern IntPtr New()

Returns

IntPtr

Transfer ownership: None Nullable: False

NewForFile(IntPtr)

Calls native constructor gtk_picture_new_for_file.

public static extern IntPtr NewForFile(IntPtr file)

Parameters

file IntPtr

Transfer ownership: None Nullable: True

Returns

IntPtr

Transfer ownership: None Nullable: False

NewForFilename(NullablePlatformStringHandle)

Calls native constructor gtk_picture_new_for_filename.

public static extern IntPtr NewForFilename(NullablePlatformStringHandle filename)

Parameters

filename NullablePlatformStringHandle

Transfer ownership: None Nullable: True

Returns

IntPtr

Transfer ownership: None Nullable: False

NewForPaintable(IntPtr)

Calls native constructor gtk_picture_new_for_paintable.

public static extern IntPtr NewForPaintable(IntPtr paintable)

Parameters

paintable IntPtr

Transfer ownership: None Nullable: True

Returns

IntPtr

Transfer ownership: None Nullable: False

NewForPixbuf(IntPtr)

Calls native constructor gtk_picture_new_for_pixbuf.

public static extern IntPtr NewForPixbuf(IntPtr pixbuf)

Parameters

pixbuf IntPtr

Transfer ownership: None Nullable: True

Returns

IntPtr

Transfer ownership: None Nullable: False

NewForResource(NullableUtf8StringHandle)

Calls native constructor gtk_picture_new_for_resource.

public static extern IntPtr NewForResource(NullableUtf8StringHandle resourcePath)

Parameters

resourcePath NullableUtf8StringHandle

Transfer ownership: None Nullable: True

Returns

IntPtr

Transfer ownership: None Nullable: False

SetAlternativeText(IntPtr, NullableUtf8StringHandle)

Calls native method gtk_picture_set_alternative_text.

public static extern void SetAlternativeText(IntPtr self, NullableUtf8StringHandle alternativeText)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

alternativeText NullableUtf8StringHandle

Transfer ownership: None Nullable: True

SetCanShrink(IntPtr, bool)

Calls native method gtk_picture_set_can_shrink.

public static extern void SetCanShrink(IntPtr self, bool canShrink)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

canShrink bool

Transfer ownership: None Nullable: False

SetContentFit(IntPtr, ContentFit)

Calls native method gtk_picture_set_content_fit. Version: 4.8

[Version("4.8")]
public static extern void SetContentFit(IntPtr self, ContentFit contentFit)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

contentFit ContentFit

Transfer ownership: None Nullable: False

SetFile(IntPtr, IntPtr)

Calls native method gtk_picture_set_file.

public static extern void SetFile(IntPtr self, IntPtr file)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

file IntPtr

Transfer ownership: None Nullable: True

SetFilename(IntPtr, NullablePlatformStringHandle)

Calls native method gtk_picture_set_filename.

public static extern void SetFilename(IntPtr self, NullablePlatformStringHandle filename)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

filename NullablePlatformStringHandle

Transfer ownership: None Nullable: True

SetKeepAspectRatio(IntPtr, bool)

Calls native method gtk_picture_set_keep_aspect_ratio.

public static extern void SetKeepAspectRatio(IntPtr self, bool keepAspectRatio)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

keepAspectRatio bool

Transfer ownership: None Nullable: False

SetPaintable(IntPtr, IntPtr)

Calls native method gtk_picture_set_paintable.

public static extern void SetPaintable(IntPtr self, IntPtr paintable)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

paintable IntPtr

Transfer ownership: None Nullable: True

SetPixbuf(IntPtr, IntPtr)

Calls native method gtk_picture_set_pixbuf.

public static extern void SetPixbuf(IntPtr self, IntPtr pixbuf)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

pixbuf IntPtr

Transfer ownership: None Nullable: True

SetResource(IntPtr, NullableUtf8StringHandle)

Calls native method gtk_picture_set_resource.

public static extern void SetResource(IntPtr self, NullableUtf8StringHandle resourcePath)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

resourcePath NullableUtf8StringHandle

Transfer ownership: None Nullable: True