Candide.CandideUI.MouseUiInputSystem
Type JSONpublic class in Candide.CandideUI
Type metadata
- Assembly
Romestead - Namespace
Candide.CandideUI - Base type
System.Object - Hash
689FD92BF1853666DBB96D0469EEA88F74AEB2DEC3FB90FE287F71594D0D93D2
Relationships
Base type
System.Object
Fields
| Name | Visibility | Signature |
|---|---|---|
CurrentHoveredElements# | public | public System.Collections.Generic.HashSet<Candide.CandideUI.CandideUiElement> CurrentHoveredElements |
DoubleClickIntervalInMs# | public | public System.Int32 DoubleClickIntervalInMs |
DoubleClickRadius# | public | public System.Int32 DoubleClickRadius |
EnteredElements# | private | private System.Collections.Generic.HashSet<Candide.CandideUI.CandideUiElement> EnteredElements |
LastFrameHoveredElements# | private | private System.Collections.Generic.HashSet<Candide.CandideUI.CandideUiElement> LastFrameHoveredElements |
LeftElements# | private | private System.Collections.Generic.HashSet<Candide.CandideUI.CandideUiElement> LeftElements |
MousePressMove# | private | private System.EventHandler<Microsoft.Xna.Framework.Vector2> MousePressMove |
MousePressRelease# | private | private System.EventHandler MousePressRelease |
MousePrimaryPressed# | private | private System.EventHandler<Microsoft.Xna.Framework.Vector2> MousePrimaryPressed |
MouseSecondaryPressed# | private | private System.EventHandler<Microsoft.Xna.Framework.Vector2> MouseSecondaryPressed |
SearchQueue# | private | private System.Collections.Generic.Queue<Candide.CandideUI.CandideUiElement> SearchQueue |
SoftLockMouseLeft# | public | public System.Boolean SoftLockMouseLeft |
SoftLockMouseRight# | public | public System.Boolean SoftLockMouseRight |
_clickStartedPosition# | private | private Microsoft.Xna.Framework.Vector2 _clickStartedPosition |
_draggedElement# | private | private Candide.CandideUI.CandideUiElement _draggedElement |
_draggedElementStartOffset# | private | private Microsoft.Xna.Framework.Vector2 _draggedElementStartOffset |
_hasAppliedInputFocus# | private | private System.Boolean _hasAppliedInputFocus |
_lastTouchDown# | private | private System.DateTime _lastTouchDown |
_mousePosition# | private | private Microsoft.Xna.Framework.Vector2 _mousePosition |
_mousePressStarted# | private | private System.Boolean _mousePressStarted |
Properties
| Name | Visibility | Signature |
|---|---|---|
DraggedElement# | public | public Candide.CandideUI.CandideUiElement DraggedElement |
IsAltDown# | public | public System.Boolean IsAltDown |
IsControlDown# | public | public System.Boolean IsControlDown |
IsShiftDown# | public | public System.Boolean IsShiftDown |
MouseWindowPosition# | public | public Microsoft.Xna.Framework.Vector2 MouseWindowPosition |
Events
| Name | Visibility | Signature |
|---|---|---|
MousePressMove# | public | public System.EventHandler<Microsoft.Xna.Framework.Vector2> MousePressMove |
MousePressRelease# | public | public System.EventHandler MousePressRelease |
MousePrimaryPressed# | public | public System.EventHandler<Microsoft.Xna.Framework.Vector2> MousePrimaryPressed |
MouseSecondaryPressed# | public | public System.EventHandler<Microsoft.Xna.Framework.Vector2> MouseSecondaryPressed |
Methods
Draw
#
public System.Void Draw(Candide.CandideUI.UiRenderContext renderContext)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
EF1E24A6369872F597327762F84CF0DE9C909EBCD047E7422CBED0C082F8E9E1 - Body hash
8A6F127E0053EB13AFDA0F394E4CD706376ECB1E15358DC72521A636A4B8AD55 - IL size1
Called by
OnInputFocused
#
public System.Void OnInputFocused(Candide.CandideUI.Input.IInputFocusable element)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
404D90EA86A2B67BAA73EE26FA6C09D73623452215B1538E301A1691E67CDE2A - Body hash
ADBB230D6C39614D421F7B9B1F599555C8AA885B4E6CC9D24B8F3E1BF9746015 - IL size141
Referenced calls
CandideCreator.Shared.Helpers.WarningHelper::Warning(System.String)Candide.CandideUI.MouseUiInputSystem::OnStopInputFocused()Candide.CandideUI.Input.IInputFocusable::get_GetFocusableType()System.Collections.Generic.HashSet<System.String>::Add(!0)System.ArgumentOutOfRangeException::.ctor()Candide.CandideUI.MouseUiInputSystem::OnKeyboardInputOnCharPressed(KeyboardInput.CharacterEventArgs, Microsoft.Xna.Framework.Input.KeyboardState)KeyboardInput.CharEnteredHandler::.ctor(System.Object, System.IntPtr)Candide.Terminal.KeyboardInput::add_CharPressed(KeyboardInput.CharEnteredHandler)Candide.CandideUI.MouseUiInputSystem::OnKeyboardInputOnKeyPressed(KeyboardInput.KeyEventArgs, Microsoft.Xna.Framework.Input.KeyboardState)KeyboardInput.KeyEventHandler::.ctor(System.Object, System.IntPtr)Candide.Terminal.KeyboardInput::add_KeyPressed(KeyboardInput.KeyEventHandler)MonoGame.IMEHelper.IMEHandler::StartTextComposition()
String literals
MouseUiInputSystem: Has applied Input Focused but we had already applied it before.MouseUiInputSystem
OnKeyboardInputOnCharPressed
#
private System.Void OnKeyboardInputOnCharPressed(KeyboardInput.CharacterEventArgs e, Microsoft.Xna.Framework.Input.KeyboardState kd)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
7AE42FB75E39E79DC809D0E79C3EA49DC0EF07E1E633A720DF47DF9078AF104E - Body hash
D4721931DA811F718C7CDCDDA3670281E3D4CE84A55ED2DA725D4E13F883DEC6 - IL size35
Referenced calls
Candide.CandideUI.CandideUiSystem::get_InputFocusableElement()CandideCreator.Shared.Helpers.WarningHelper::Warning(System.String)KeyboardInput.CharacterEventArgs::get_Character()Candide.CandideUI.Input.IInputFocusable::OnChar(System.Char)
Called by
String literals
Focusable element was null
OnKeyboardInputOnKeyPressed
#
private System.Void OnKeyboardInputOnKeyPressed(KeyboardInput.KeyEventArgs e, Microsoft.Xna.Framework.Input.KeyboardState kd)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
5BED2597A56100CED85066001B3738DA52FA5048BD13E770E763B235572B0711 - Body hash
81D67CB1EEF74A6D2167EAF34975ACDB3A90B1F7D48D0EEA679E5EBEC3C1481B - IL size35
Referenced calls
Candide.CandideUI.CandideUiSystem::get_InputFocusableElement()CandideCreator.Shared.Helpers.WarningHelper::Warning(System.String)KeyboardInput.KeyEventArgs::get_KeyCode()Candide.CandideUI.Input.IInputFocusable::OnKeyDown(Microsoft.Xna.Framework.Input.Keys)
Called by
String literals
Focusable element was null
OnStopInputFocused
#
public System.Void OnStopInputFocused()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
8319F63063ECD1E64CD747112DAC5D95EE9618064C509F4961F67E8906A1D458 - Body hash
CC7ECAAFB645AAF44B1B71045EE9FE99D0BC4EFF97AFE1E81DDBEF7500190A00 - IL size105
Referenced calls
System.Collections.Generic.HashSet<System.String>::Remove(!0)Candide.CandideUI.MouseUiInputSystem::OnKeyboardInputOnCharPressed(KeyboardInput.CharacterEventArgs, Microsoft.Xna.Framework.Input.KeyboardState)KeyboardInput.CharEnteredHandler::.ctor(System.Object, System.IntPtr)Candide.Terminal.KeyboardInput::remove_CharPressed(KeyboardInput.CharEnteredHandler)Candide.CandideUI.MouseUiInputSystem::OnKeyboardInputOnKeyPressed(KeyboardInput.KeyEventArgs, Microsoft.Xna.Framework.Input.KeyboardState)KeyboardInput.KeyEventHandler::.ctor(System.Object, System.IntPtr)Candide.Terminal.KeyboardInput::remove_KeyPressed(KeyboardInput.KeyEventHandler)MonoGame.IMEHelper.IMEHandler::StopTextComposition()
String literals
MouseUiInputSystem
PreUpdate
#
public System.Void PreUpdate()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
4A2E50A3C026013DAC803796AAEA1119C99D5E5DC076BA381AB63C3929D4D8C4 - Body hash
2A1F41E6836E14D0123FD699D07028C2D41461FC227B0DFC364CE08F87E6FCFD - IL size36
Referenced calls
Reset
#
public System.Void Reset()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
7ACE3C956FAB5073C67DA35E00BF6C8412A98AFB74CBED52706A6C6C8BC0622E - Body hash
4B9BCC9007B822F4C638CF7AB956779C88C05A9F662720885F28A8E51EB17242 - IL size21
Referenced calls
System.Collections.Generic.HashSet<Candide.CandideUI.CandideUiElement>::Clear()
StopDrag
#
private System.Void StopDrag()
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
87F3206816AA68BF29D262B0CDE149C278D782F403362EA8438F12D171164FCB - Body hash
08FC6D2A04A8CD75BCB033B47CFCDA3C607946AC001E06AB1BE066FF72255A7A - IL size17
Referenced calls
Update
#
public System.Void Update()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
D6D78EEAC57C293E913C99B6B7C6054715ED3BAD6A2950F0A73A725B9E2BBC90 - Body hash
CDD2D0002CCFD2A4FC2AFE65035A6F317A1E4209356EF6261C810A11036DFD94 - IL size1362
Referenced calls
Candide.CandideUI.MouseUiInputSystem::get_MouseWindowPosition()Candide.CandideUI.Helpers.MouseUiFunctions::FindElementsWithMouseInside(Candide.CandideUI.CandideUiContainerMultipleItems, Microsoft.Xna.Framework.Vector2, System.Collections.Generic.Queue<Candide.CandideUI.CandideUiElement>, System.Collections.Generic.HashSet<Candide.CandideUI.CandideUiElement>)System.Collections.Generic.HashSet<Candide.CandideUI.CandideUiElement>::Clear()System.Collections.Generic.HashSet<Candide.CandideUI.CandideUiElement>::UnionWith(System.Collections.Generic.IEnumerable<!0>)System.Collections.Generic.HashSet<Candide.CandideUI.CandideUiElement>::ExceptWith(System.Collections.Generic.IEnumerable<!0>)System.Collections.Generic.HashSet<Candide.CandideUI.CandideUiElement>::GetEnumerator()HashSet.Enumerator<Candide.CandideUI.CandideUiElement>::get_Current()Candide.CandideUI.CandideUiElement::OnMouseEnter()HashSet.Enumerator<Candide.CandideUI.CandideUiElement>::MoveNext()System.IDisposable::Dispose()Candide.CandideUI.CandideUiElement::OnMouseLeave()Candide.Input.InputManager::Held(Candide.Input.MouseButtons)Microsoft.Xna.Framework.Vector2::op_Subtraction(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Microsoft.Xna.Framework.Vector2::get_Zero()Microsoft.Xna.Framework.Vector2::op_Inequality(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)System.EventHandler<Microsoft.Xna.Framework.Vector2>::Invoke(System.Object, !0)Candide.CandideUI.CandideUiElement::get_Enabled()Candide.CandideUI.CandideUiElement::get_InteractionBounds()Candide.CandideUI.CandideUiElement::get_Transform()Candide.CandideUI.Transform::Apply(Microsoft.Xna.Framework.Vector2)Microsoft.Xna.Framework.Rectangle::Contains(Microsoft.Xna.Framework.Vector2)Candide.CandideUI.CandideUiElement::OnMouseDragStart()Candide.CandideUI.CandideUiElement::get_Left()Candide.CandideUI.CandideUiElement::get_Top()Microsoft.Xna.Framework.Vector2::.ctor(System.Single, System.Single)Candide.Input.InputManager::Released(Candide.Input.MouseButtons)Candide.CandideUI.MouseUiInputSystem::StopDrag()System.EventHandler::Invoke(System.Object, System.EventArgs)Candide.CandideUI.CandideUiElement::OnMouseFullClick()Candide.Input.InputManager::Pressed(Candide.Input.MouseButtons)System.DateTime::get_Now()System.DateTime::op_Subtraction(System.DateTime, System.DateTime)
UpdateDraggedElement
#
private System.Void UpdateDraggedElement()
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticTrue
- VirtualFalse
- Hash
D31EFAB4BEB3E73710CD01C6837586BB064795D30FC95C6213572ED67CF39C2B - Body hash
79D47C88E3C598CCBE8F4534B8EA2F44DB8F6D8B2A196050F5CF6F5FB3CA847E - IL size360
Referenced calls
Candide.CandideUI.CandideUiElement::get_IsDraggable()Candide.CandideUI.CandideUiElement::get_Desktop()Candide.CandideUI.MouseUiInputSystem::StopDrag()Candide.CandideUI.MouseUiInputSystem::get_MouseWindowPosition()Microsoft.Xna.Framework.Vector2::op_Subtraction(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Microsoft.Xna.Framework.Vector2::op_Addition(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Candide.CandideUI.CandideUiElement::get_Left()Candide.CandideUI.CandideUiElement::get_Top()Candide.CandideUI.CandideUiElement::get_DragDirection()System.Enum::HasFlag(System.Enum)Candide.CandideUI.CandideUiElement::get_Bounds()System.MathF::Round(System.Single)Candide.CandideUI.CandideUiElement::set_Left(System.Int32)Candide.CandideUI.CandideUiElement::set_Top(System.Int32)