Class GLArea
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class GLArea : Widget, Accessible, Buildable, ConstraintTarget, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
GLArea
- Implements
- Inherited Members
Constructors
GLArea(params ConstructArgument[])
public GLArea(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
GLArea(GLAreaHandle)
public GLArea(GLAreaHandle handle)
Parameters
handleGLAreaHandle
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
messagestringpriorityAccessibleAnnouncementPriority
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
stateAccessiblePlatformState
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
propertyAccessibleProperty
ResetRelation(AccessibleRelation)
public void ResetRelation(AccessibleRelation relation)
Parameters
relationAccessibleRelation
ResetState(AccessibleState)
public void ResetState(AccessibleState state)
Parameters
stateAccessibleState
SetAccessibleParent(Accessible?, Accessible?)
[Version("4.10")]
public void SetAccessibleParent(Accessible? parent, Accessible? nextSibling)
Parameters
parentAccessiblenextSiblingAccessible
SetAllowedApis(GLAPI)
[Version("4.12")]
public void SetAllowedApis(GLAPI apis)
Parameters
apisGLAPI
SetAutoRender(bool)
public void SetAutoRender(bool autoRender)
Parameters
autoRenderbool
SetError(Error?)
public void SetError(Error? error)
Parameters
errorError
SetHasDepthBuffer(bool)
public void SetHasDepthBuffer(bool hasDepthBuffer)
Parameters
hasDepthBufferbool
SetHasStencilBuffer(bool)
public void SetHasStencilBuffer(bool hasStencilBuffer)
Parameters
hasStencilBufferbool
SetRequiredVersion(int, int)
public void SetRequiredVersion(int major, int minor)
Parameters
SetUseEs(bool)
public void SetUseEs(bool useEs)
Parameters
useEsbool
UpdateNextAccessibleSibling(Accessible?)
[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)
Parameters
newSiblingAccessible
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