InputEventMouse

Base input event type for mouse events.

Stores general mouse events information.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

getButtonMask
long getButtonMask()
getGlobalPosition
Vector2 getGlobalPosition()
getPosition
Vector2 getPosition()
opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(InputEventMouse other)
opEquals
bool opEquals(typeof(null) n)
setButtonMask
void setButtonMask(long button_mask)
setGlobalPosition
void setGlobalPosition(Vector2 global_position)
setPosition
void setPosition(Vector2 position)
toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

buttonMask
long buttonMask [@property getter]
long buttonMask [@property setter]

The mouse button mask identifier, one of or a bitwise combination of the buttonlist button masks.

globalPosition
Vector2 globalPosition [@property getter]
Vector2 globalPosition [@property setter]

The global mouse position relative to the current Viewport when used in Control._guiInput, otherwise is at 0,0.

position
Vector2 position [@property getter]
Vector2 position [@property setter]

The local mouse position relative to the Viewport. If used in Control._guiInput, the position is relative to the current Control which is under the mouse.

Static functions

_new
InputEventMouse _new()

Construct a new instance of InputEventMouse. Note: use memnew!InputEventMouse instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(ToRef) as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta