module Oid::Components::MouseWheel::Helper

Defined in:

Instance Method Summary

Instance Method Detail

def add_component_mouse_wheel : Entitas::Entity #

Add a Oid::Components::MouseWheel to the entity. Returns self to allow chainables

entity.add_component_mouse_wheel

def add_component_mouse_wheel(**args) : Entitas::Entity #

Add a Oid::Components::MouseWheel to the entity. Returns self to allow chainables

entity.add_component_mouse_wheel

def add_mouse_wheel(move : Float64) : Entitas::Entity #

Add a Oid::Components::MouseWheel to the entity. Returns self to allow chainables

entity.add_mouse_wheel(1)

def del_component_mouse_wheel : Entitas::Entity #

Delete Oid::Components::MouseWheel from the entity. Returns self to allow chainables

entity.del_mouse_wheel
entity.mouse_wheel # => nil

def del_mouse_wheel : Entitas::Entity #

Delete Oid::Components::MouseWheel from the entity. Returns self to allow chainables

entity.del_mouse_wheel
entity.mouse_wheel # => nil

def get_component_mouse_wheel : Oid::Components::MouseWheel #

Will return the component that is a Oid::Components::MouseWheel or raise


def has_component_mouse_wheel? : Bool #

Will return true if the entity has an component Oid::Components::MouseWheel or false if it does not


def has_mouse_wheel? : Bool #

Will return true if the entity has an component Oid::Components::MouseWheel or false if it does not


def mouse_wheel : Oid::Components::MouseWheel #

Will return the component that is a Oid::Components::MouseWheel or raise


def mouse_wheel? : Bool #

Alias. See #has_mouse_wheel?


def remove_component_mouse_wheel #

Append. Alias for #del_component_mouse_wheel


def remove_mouse_wheel #

Append. Alias for #del_mouse_wheel


def replace_component_mouse_wheel(component : Oid::Components::MouseWheel) #

Append. Alias for #replace_mouse_wheel


def replace_component_mouse_wheel(**args) #

Will replace the current component with the new one generated from the provided arguments

entity.replace_mouse_wheel
entity.get_mouse_wheel # => (new_comp)

def replace_mouse_wheel(move : Float64) #

Will replace the current component with the new one generated from the provided arguments

entity.replace_mouse_wheel(value: 1)
entity.get_mouse_wheel # => (new_comp)

or

entity.replace_mouse_wheel(1)
entity.get_mouse_wheel # => (new_comp)

def replace_mouse_wheel(component : Oid::Components::MouseWheel) #

Will replace the current component with the new one provided

entity.replace_component_mouse_wheel(new_comp)
entity.get_mouse_wheel # => (new_comp)