Class GLArea
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class GLArea : Widget, IObject, INotifyPropertyChanged, IDisposable, Accessible, Buildable, ConstraintTarget, IHandle, GTypeProvider
- Inheritance
-
GLArea
- Implements
- Inherited Members
Constructors
GLArea()
public GLArea()
GLArea(params ConstructArgument[])
protected GLArea(params ConstructArgument[] constructArguments)
Parameters
constructArguments
ConstructArgument[]
GLArea(IntPtr, bool)
protected GLArea(IntPtr ptr, bool ownedRef)
Parameters
Fields
AllowedApisPropertyDefinition
public static readonly Property<GLAPI, GLArea> AllowedApisPropertyDefinition
Field Value
ApiPropertyDefinition
public static readonly Property<GLAPI, GLArea> ApiPropertyDefinition
Field Value
AutoRenderPropertyDefinition
public static readonly Property<bool, GLArea> AutoRenderPropertyDefinition
Field Value
ContextPropertyDefinition
public static readonly Property<GLContext?, GLArea> ContextPropertyDefinition
Field Value
CreateContextSignal
Signal Descriptor for OnCreateContext.
public static readonly ReturningSignal<GLArea, GLContext> CreateContextSignal
Field Value
HasDepthBufferPropertyDefinition
public static readonly Property<bool, GLArea> HasDepthBufferPropertyDefinition
Field Value
HasStencilBufferPropertyDefinition
public static readonly Property<bool, GLArea> HasStencilBufferPropertyDefinition
Field Value
RenderSignal
Signal Descriptor for OnRender.
public static readonly ReturningSignal<GLArea, GLArea.RenderSignalArgs, bool> RenderSignal
Field Value
ResizeSignal
Signal Descriptor for OnResize.
public static readonly Signal<GLArea, GLArea.ResizeSignalArgs> ResizeSignal
Field Value
UseEsPropertyDefinition
public static readonly Property<bool, GLArea> UseEsPropertyDefinition
Field Value
Properties
AccessibleRole
public AccessibleRole AccessibleRole { get; set; }
Property Value
AllowedApis
public GLAPI AllowedApis { get; set; }
Property Value
Api
public GLAPI Api { get; }
Property Value
AutoRender
public bool AutoRender { get; set; }
Property Value
Context
public GLContext? Context { get; }
Property Value
HasDepthBuffer
public bool HasDepthBuffer { get; set; }
Property Value
HasStencilBuffer
public bool HasStencilBuffer { get; set; }
Property Value
UseEs
public bool UseEs { get; set; }
Property Value
Methods
Announce(string, AccessibleAnnouncementPriority)
[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)
Parameters
message
stringpriority
AccessibleAnnouncementPriority
AttachBuffers()
public void AttachBuffers()
GetAccessibleParent()
[Version("4.10")]
public Accessible? GetAccessibleParent()
Returns
GetAccessibleRole()
public AccessibleRole GetAccessibleRole()
Returns
GetAllowedApis()
[Version("4.12")]
public GLAPI GetAllowedApis()
Returns
GetApi()
[Version("4.12")]
public GLAPI GetApi()
Returns
GetAtContext()
[Version("4.10")]
public ATContext GetAtContext()
Returns
GetAutoRender()
public bool GetAutoRender()
Returns
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
Returns
GetBuildableId()
public string? GetBuildableId()
Returns
GetContext()
public GLContext? GetContext()
Returns
GetError()
public Error? GetError()
Returns
GetFirstAccessibleChild()
[Version("4.10")]
public Accessible? GetFirstAccessibleChild()
Returns
GetGType()
public static Type GetGType()
Returns
GetHasDepthBuffer()
public bool GetHasDepthBuffer()
Returns
GetHasStencilBuffer()
public bool GetHasStencilBuffer()
Returns
GetNextAccessibleSibling()
[Version("4.10")]
public Accessible? GetNextAccessibleSibling()
Returns
GetPlatformState(AccessiblePlatformState)
[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)
Parameters
state
AccessiblePlatformState
Returns
GetRequiredVersion(out int, out int)
public void GetRequiredVersion(out int major, out int minor)
Parameters
GetUseEs()
public bool GetUseEs()
Returns
MakeCurrent()
public void MakeCurrent()
New()
public static GLArea New()
Returns
QueueRender()
public void QueueRender()
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
AccessiblenextSibling
Accessible
SetAllowedApis(GLAPI)
[Version("4.12")]
public void SetAllowedApis(GLAPI apis)
Parameters
apis
GLAPI
SetAutoRender(bool)
public void SetAutoRender(bool autoRender)
Parameters
autoRender
bool
SetError(Error?)
public void SetError(Error? error)
Parameters
error
Error
SetHasDepthBuffer(bool)
public void SetHasDepthBuffer(bool hasDepthBuffer)
Parameters
hasDepthBuffer
bool
SetHasStencilBuffer(bool)
public void SetHasStencilBuffer(bool hasStencilBuffer)
Parameters
hasStencilBuffer
bool
SetRequiredVersion(int, int)
public void SetRequiredVersion(int major, int minor)
Parameters
SetUseEs(bool)
public void SetUseEs(bool useEs)
Parameters
useEs
bool
UpdateNextAccessibleSibling(Accessible?)
[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)
Parameters
newSibling
Accessible
Events
OnCreateContext
public event ReturningSignalHandler<GLArea, GLContext> OnCreateContext
Event Type
OnRender
public event ReturningSignalHandler<GLArea, GLArea.RenderSignalArgs, bool> OnRender
Event Type
OnResize
public event SignalHandler<GLArea, GLArea.ResizeSignalArgs> OnResize