abstract struct SF::Event::SensorEvent

Overview

Sensor event parameters (see SensorChanged)

Direct Known Subclasses

Defined in:

window/obj.cr

Constructors

Instance Method Summary

Instance methods inherited from struct SF::Event

initialize initialize

Constructor methods inherited from struct SF::Event

new new

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def dup : SensorEvent #
Description copied from struct Value

Returns a shallow copy of this object.

Because Value is a value type, this method returns self, which already involves a shallow copy of this object because value types are passed by value.


[View source]
def type : Sensor::Type #

Type of the sensor


[View source]
def type=(type : Sensor::Type) #

[View source]
def x : Float32 #

Current value of the sensor on X axis


[View source]
def x=(x : Number) #

[View source]
def y : Float32 #

Current value of the sensor on Y axis


[View source]
def y=(y : Number) #

[View source]
def z : Float32 #

Current value of the sensor on Z axis


[View source]
def z=(z : Number) #

[View source]