mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 12:06:37 +00:00
33 lines
955 B
C#
33 lines
955 B
C#
namespace MonoGame.Extended.NuclexGui.Controls
|
|
{
|
|
/// <summary>Control used to represent the desktop</summary>
|
|
public class GuiDesktopControl : GuiControl
|
|
{
|
|
/// <summary>Initializes a new control</summary>
|
|
public GuiDesktopControl()
|
|
{
|
|
}
|
|
|
|
/// <summary>True if the mouse is currently hovering over a GUI element</summary>
|
|
public bool IsMouseOverGui
|
|
{
|
|
get
|
|
{
|
|
if (MouseOverControl == null)
|
|
return false;
|
|
return !ReferenceEquals(MouseOverControl, this);
|
|
}
|
|
}
|
|
|
|
/// <summary>Whether the GUI holds ownership of the input devices</summary>
|
|
public bool IsInputCaptured
|
|
{
|
|
get
|
|
{
|
|
if (ActivatedControl == null)
|
|
return false;
|
|
return !ReferenceEquals(ActivatedControl, this);
|
|
}
|
|
}
|
|
}
|
|
} |