Class Picture
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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
NullablePlatformStringHandleTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
NullableUtf8StringHandleTransfer 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
IntPtrTransfer ownership: None Nullable: False
alternativeText
NullableUtf8StringHandleTransfer 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
IntPtrTransfer ownership: None Nullable: False
canShrink
boolTransfer 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
IntPtrTransfer ownership: None Nullable: False
contentFit
ContentFitTransfer 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
IntPtrTransfer ownership: None Nullable: False
file
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
filename
NullablePlatformStringHandleTransfer 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
IntPtrTransfer ownership: None Nullable: False
keepAspectRatio
boolTransfer 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
IntPtrTransfer ownership: None Nullable: False
paintable
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
pixbuf
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
resourcePath
NullableUtf8StringHandleTransfer ownership: None Nullable: True