Table of Contents

Class PageSetup

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

Methods

Copy(IntPtr)

Calls native method gtk_page_setup_copy.

public static extern IntPtr Copy(IntPtr other)

Parameters

other IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

GetBottomMargin(IntPtr, Unit)

Calls native method gtk_page_setup_get_bottom_margin.

public static extern double GetBottomMargin(IntPtr setup, Unit unit)

Parameters

setup IntPtr

Transfer ownership: None Nullable: False

unit Unit

Transfer ownership: None Nullable: False

Returns

double

Transfer ownership: None Nullable: False

GetGType()

Calls native function gtk_page_setup_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetLeftMargin(IntPtr, Unit)

Calls native method gtk_page_setup_get_left_margin.

public static extern double GetLeftMargin(IntPtr setup, Unit unit)

Parameters

setup IntPtr

Transfer ownership: None Nullable: False

unit Unit

Transfer ownership: None Nullable: False

Returns

double

Transfer ownership: None Nullable: False

GetOrientation(IntPtr)

Calls native method gtk_page_setup_get_orientation.

public static extern PageOrientation GetOrientation(IntPtr setup)

Parameters

setup IntPtr

Transfer ownership: None Nullable: False

Returns

PageOrientation

Transfer ownership: None Nullable: False

GetPageHeight(IntPtr, Unit)

Calls native method gtk_page_setup_get_page_height.

public static extern double GetPageHeight(IntPtr setup, Unit unit)

Parameters

setup IntPtr

Transfer ownership: None Nullable: False

unit Unit

Transfer ownership: None Nullable: False

Returns

double

Transfer ownership: None Nullable: False

GetPageWidth(IntPtr, Unit)

Calls native method gtk_page_setup_get_page_width.

public static extern double GetPageWidth(IntPtr setup, Unit unit)

Parameters

setup IntPtr

Transfer ownership: None Nullable: False

unit Unit

Transfer ownership: None Nullable: False

Returns

double

Transfer ownership: None Nullable: False

GetPaperHeight(IntPtr, Unit)

Calls native method gtk_page_setup_get_paper_height.

public static extern double GetPaperHeight(IntPtr setup, Unit unit)

Parameters

setup IntPtr

Transfer ownership: None Nullable: False

unit Unit

Transfer ownership: None Nullable: False

Returns

double

Transfer ownership: None Nullable: False

GetPaperSize(IntPtr)

Calls native method gtk_page_setup_get_paper_size.

public static extern PaperSizeUnownedHandle GetPaperSize(IntPtr setup)

Parameters

setup IntPtr

Transfer ownership: None Nullable: False

Returns

PaperSizeUnownedHandle

Transfer ownership: None Nullable: False

GetPaperWidth(IntPtr, Unit)

Calls native method gtk_page_setup_get_paper_width.

public static extern double GetPaperWidth(IntPtr setup, Unit unit)

Parameters

setup IntPtr

Transfer ownership: None Nullable: False

unit Unit

Transfer ownership: None Nullable: False

Returns

double

Transfer ownership: None Nullable: False

GetRightMargin(IntPtr, Unit)

Calls native method gtk_page_setup_get_right_margin.

public static extern double GetRightMargin(IntPtr setup, Unit unit)

Parameters

setup IntPtr

Transfer ownership: None Nullable: False

unit Unit

Transfer ownership: None Nullable: False

Returns

double

Transfer ownership: None Nullable: False

GetTopMargin(IntPtr, Unit)

Calls native method gtk_page_setup_get_top_margin.

public static extern double GetTopMargin(IntPtr setup, Unit unit)

Parameters

setup IntPtr

Transfer ownership: None Nullable: False

unit Unit

Transfer ownership: None Nullable: False

Returns

double

Transfer ownership: None Nullable: False

LoadFile(IntPtr, NonNullablePlatformStringHandle, out ErrorOwnedHandle)

Calls native method gtk_page_setup_load_file.

public static extern bool LoadFile(IntPtr setup, NonNullablePlatformStringHandle fileName, out ErrorOwnedHandle error)

Parameters

setup IntPtr

Transfer ownership: None Nullable: False

fileName NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

LoadKeyFile(IntPtr, KeyFileHandle, NullableUtf8StringHandle, out ErrorOwnedHandle)

Calls native method gtk_page_setup_load_key_file.

public static extern bool LoadKeyFile(IntPtr setup, KeyFileHandle keyFile, NullableUtf8StringHandle groupName, out ErrorOwnedHandle error)

Parameters

setup IntPtr

Transfer ownership: None Nullable: False

keyFile KeyFileHandle

Transfer ownership: None Nullable: False

groupName NullableUtf8StringHandle

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

New()

Calls native constructor gtk_page_setup_new.

public static extern IntPtr New()

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewFromFile(NonNullablePlatformStringHandle, out ErrorOwnedHandle)

Calls native constructor gtk_page_setup_new_from_file.

public static extern IntPtr NewFromFile(NonNullablePlatformStringHandle fileName, out ErrorOwnedHandle error)

Parameters

fileName NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewFromGvariant(VariantHandle)

Calls native constructor gtk_page_setup_new_from_gvariant.

public static extern IntPtr NewFromGvariant(VariantHandle variant)

Parameters

variant VariantHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewFromKeyFile(KeyFileHandle, NullableUtf8StringHandle, out ErrorOwnedHandle)

Calls native constructor gtk_page_setup_new_from_key_file.

public static extern IntPtr NewFromKeyFile(KeyFileHandle keyFile, NullableUtf8StringHandle groupName, out ErrorOwnedHandle error)

Parameters

keyFile KeyFileHandle

Transfer ownership: None Nullable: False

groupName NullableUtf8StringHandle

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

SetBottomMargin(IntPtr, double, Unit)

Calls native method gtk_page_setup_set_bottom_margin.

public static extern void SetBottomMargin(IntPtr setup, double margin, Unit unit)

Parameters

setup IntPtr

Transfer ownership: None Nullable: False

margin double

Transfer ownership: None Nullable: False

unit Unit

Transfer ownership: None Nullable: False

SetLeftMargin(IntPtr, double, Unit)

Calls native method gtk_page_setup_set_left_margin.

public static extern void SetLeftMargin(IntPtr setup, double margin, Unit unit)

Parameters

setup IntPtr

Transfer ownership: None Nullable: False

margin double

Transfer ownership: None Nullable: False

unit Unit

Transfer ownership: None Nullable: False

SetOrientation(IntPtr, PageOrientation)

Calls native method gtk_page_setup_set_orientation.

public static extern void SetOrientation(IntPtr setup, PageOrientation orientation)

Parameters

setup IntPtr

Transfer ownership: None Nullable: False

orientation PageOrientation

Transfer ownership: None Nullable: False

SetPaperSize(IntPtr, PaperSizeHandle)

Calls native method gtk_page_setup_set_paper_size.

public static extern void SetPaperSize(IntPtr setup, PaperSizeHandle size)

Parameters

setup IntPtr

Transfer ownership: None Nullable: False

size PaperSizeHandle

Transfer ownership: None Nullable: False

SetPaperSizeAndDefaultMargins(IntPtr, PaperSizeHandle)

Calls native method gtk_page_setup_set_paper_size_and_default_margins.

public static extern void SetPaperSizeAndDefaultMargins(IntPtr setup, PaperSizeHandle size)

Parameters

setup IntPtr

Transfer ownership: None Nullable: False

size PaperSizeHandle

Transfer ownership: None Nullable: False

SetRightMargin(IntPtr, double, Unit)

Calls native method gtk_page_setup_set_right_margin.

public static extern void SetRightMargin(IntPtr setup, double margin, Unit unit)

Parameters

setup IntPtr

Transfer ownership: None Nullable: False

margin double

Transfer ownership: None Nullable: False

unit Unit

Transfer ownership: None Nullable: False

SetTopMargin(IntPtr, double, Unit)

Calls native method gtk_page_setup_set_top_margin.

public static extern void SetTopMargin(IntPtr setup, double margin, Unit unit)

Parameters

setup IntPtr

Transfer ownership: None Nullable: False

margin double

Transfer ownership: None Nullable: False

unit Unit

Transfer ownership: None Nullable: False

ToFile(IntPtr, NonNullablePlatformStringHandle, out ErrorOwnedHandle)

Calls native method gtk_page_setup_to_file.

public static extern bool ToFile(IntPtr setup, NonNullablePlatformStringHandle fileName, out ErrorOwnedHandle error)

Parameters

setup IntPtr

Transfer ownership: None Nullable: False

fileName NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

ToGvariant(IntPtr)

Calls native method gtk_page_setup_to_gvariant.

public static extern VariantUnownedHandle ToGvariant(IntPtr setup)

Parameters

setup IntPtr

Transfer ownership: None Nullable: False

Returns

VariantUnownedHandle

Transfer ownership: None Nullable: False

ToKeyFile(IntPtr, KeyFileHandle, NullableUtf8StringHandle)

Calls native method gtk_page_setup_to_key_file.

public static extern void ToKeyFile(IntPtr setup, KeyFileHandle keyFile, NullableUtf8StringHandle groupName)

Parameters

setup IntPtr

Transfer ownership: None Nullable: False

keyFile KeyFileHandle

Transfer ownership: None Nullable: False

groupName NullableUtf8StringHandle

Transfer ownership: None Nullable: True