Skip to content

7E1AF59B

Marcel Härtel edited this page Aug 27, 2023 · 1 revision

ControlState Enumeration

These are the states a MonoGameControl or a InvalidationControl can have.

Remarks

InvalidationControl's don't have update events!

Definition

Namespace: MonoGame.Forms.NET
Assembly: MonoGame.Forms.NET (in MonoGame.Forms.NET.dll) Version: 3.2.0

C#

public enum ControlState

Members

StartUpdate 0 Triggers before the control starts a new update cycle.
EndUpdate 1 Triggers after the control ends a complete update cycle.
BeforeUpdate 2 Triggers before the control starts its regular update routine.
AfterUpdate 3 Triggers after the control ends its regular update routine.
BeforeComponentUpdate 4 Triggers before the components of a control starting their regular update routine.
AfterComponentUpdate 5 Triggers after the components of a control ending their regular update routine.
StartDraw 6 Triggers before the control starts a new draw cycle.
EndDraw 7 Triggers after the control ends a complete draw cycle.
BeforeDraw 8 Triggers before the control starts its regular draw routine.
AfterDraw 9 Triggers after the control ends its regular draw routine.
BeforeComponentDraw 10 Triggers before the components of a control starting their regular draw routine.
AfterComponentDraw 11 Triggers after the components of a control ending their regular draw routine.

See Also

Reference

MonoGame.Forms.NET Namespace

Clone this wiki locally