Class ImGuiGLControl
- Assembly
- OpenEphys.EphysVisualization.Design.dll
Provides a WinForms control that hosts a Dear ImGui context drawn with OpenGL, raising Render once per paint between the frame's start and its drawing.
public class ImGuiGLControl : GLControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IContainerControl, IGLContext, INativeContext, IDisposable
- Inheritance
-
GLControlImGuiGLControl
- Implements
-
IGLContextINativeContext
- Inherited Members
-
GLControl.PerformContextUpdate()GLControl.SwapBuffers()GLControl.MakeCurrent()GLControl.HasValidContextGLControl.CreateParamsGLControl.IsIdleGLControl.ContextGLControl.AspectRatioGLControl.VSyncGLControl.GraphicsModeGLControl.WindowInfo
Remarks
Each ImGuiGLControl owns its ImGui context and makes it current around its own frames and messages, so several can live in one process. The control repaints once per display refresh while Paced is set.
Constructors
- ImGuiGLControl()
Initializes a new instance of the ImGuiGLControl class.
Properties
- Paced
Gets or sets a value indicating whether the control repaints once per display refresh, which it does by default.
- RefreshRate
Gets the refresh rate, in Hz, of the monitor the control is on.
Methods
- IsInputKey(Keys)
Determines whether the specified key is a regular input key or a special key that requires preprocessing.
- OnHandleCreated(EventArgs)
Raises the HandleCreated event.
- OnHandleDestroyed(EventArgs)
Raises the HandleDestroyed event.
- OnPaint(PaintEventArgs)
Raises the System.Windows.Forms.Control.Paint event.
- OnRender(EventArgs)
Raises the Render event.
- ProcessCmdKey(ref Message, Keys)
Processes a command key.
- WndProc(ref Message)
Processes Windows messages.
Events
- Render
Occurs once per frame, with this control's ImGui context current, for the handler to draw with ImGui.