Table of Contents

Class GraphicsOffload

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class GraphicsOffload : Widget, Accessible, Buildable, ConstraintTarget, NativeObject, IDisposable, GTypeProvider, InstanceFactory
Inheritance
GraphicsOffload
Implements
Inherited Members

Constructors

GraphicsOffload(params ConstructArgument[])

[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public GraphicsOffload(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

GraphicsOffload(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected GraphicsOffload(CreationData data)

Parameters

data CreationData

GraphicsOffload(GraphicsOffloadHandle)

protected GraphicsOffload(GraphicsOffloadHandle handle)

Parameters

handle GraphicsOffloadHandle

Fields

BlackBackgroundPropertyDefinition

public static readonly Property<bool, GraphicsOffload> BlackBackgroundPropertyDefinition

Field Value

Property<bool, GraphicsOffload>

ChildPropertyDefinition

public static readonly Property<Widget?, GraphicsOffload> ChildPropertyDefinition

Field Value

Property<Widget, GraphicsOffload>

EnabledPropertyDefinition

public static readonly Property<GraphicsOffloadEnabled, GraphicsOffload> EnabledPropertyDefinition

Field Value

Property<GraphicsOffloadEnabled, GraphicsOffload>

Properties

AccessibleRole

public AccessibleRole AccessibleRole { get; set; }

Property Value

AccessibleRole

BlackBackground

public bool BlackBackground { get; set; }

Property Value

bool

Child

public Widget? Child { get; set; }

Property Value

Widget

Enabled

public GraphicsOffloadEnabled Enabled { get; set; }

Property Value

GraphicsOffloadEnabled

Methods

Announce(string, AccessibleAnnouncementPriority)

[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)

Parameters

message string
priority AccessibleAnnouncementPriority

GetAccessibleParent()

[Version("4.10")]
public Accessible? GetAccessibleParent()

Returns

Accessible

GetAccessibleRole()

public AccessibleRole GetAccessibleRole()

Returns

AccessibleRole

GetAtContext()

[Version("4.10")]
public ATContext GetAtContext()

Returns

ATContext

GetBlackBackground()

[Version("4.16")]
public bool GetBlackBackground()

Returns

bool

GetBounds(out int, out int, out int, out int)

[Version("4.10")]
public bool GetBounds(out int x, out int y, out int width, out int height)

Parameters

x int
y int
width int
height int

Returns

bool

GetBuildableId()

public string? GetBuildableId()

Returns

string

GetChild()

[Version("4.14")]
public Widget? GetChild()

Returns

Widget

GetEnabled()

[Version("4.14")]
public GraphicsOffloadEnabled GetEnabled()

Returns

GraphicsOffloadEnabled

GetFirstAccessibleChild()

[Version("4.10")]
public Accessible? GetFirstAccessibleChild()

Returns

Accessible

GetGType()

public static Type GetGType()

Returns

Type

GetNextAccessibleSibling()

[Version("4.10")]
public Accessible? GetNextAccessibleSibling()

Returns

Accessible

GetPlatformState(AccessiblePlatformState)

[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)

Parameters

state AccessiblePlatformState

Returns

bool

New(Widget?)

[Version("4.14")]
public static GraphicsOffload New(Widget? child)

Parameters

child Widget

Returns

GraphicsOffload

NewFromPointer(nint, bool)

Creates a new managed GraphicsOffload instance for a given pointer.

public static GraphicsOffload NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

GraphicsOffload

NewWithProperties(ConstructArgument[])

Creates a new GraphicsOffload and sets the properties specified by the construct arguments.

public static GraphicsOffload NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

GraphicsOffload

ResetProperty(AccessibleProperty)

public void ResetProperty(AccessibleProperty property)

Parameters

property AccessibleProperty

ResetRelation(AccessibleRelation)

public void ResetRelation(AccessibleRelation relation)

Parameters

relation AccessibleRelation

ResetState(AccessibleState)

public void ResetState(AccessibleState state)

Parameters

state AccessibleState

SetAccessibleParent(Accessible?, Accessible?)

[Version("4.10")]
public void SetAccessibleParent(Accessible? parent, Accessible? nextSibling)

Parameters

parent Accessible
nextSibling Accessible

SetBlackBackground(bool)

[Version("4.16")]
public void SetBlackBackground(bool value)

Parameters

value bool

SetChild(Widget?)

[Version("4.14")]
public void SetChild(Widget? child)

Parameters

child Widget

SetEnabled(GraphicsOffloadEnabled)

[Version("4.14")]
public void SetEnabled(GraphicsOffloadEnabled enabled)

Parameters

enabled GraphicsOffloadEnabled

UpdateNextAccessibleSibling(Accessible?)

[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)

Parameters

newSibling Accessible

UpdatePlatformState(AccessiblePlatformState)

[Version("4.18")]
public void UpdatePlatformState(AccessiblePlatformState state)

Parameters

state AccessiblePlatformState