Module
Levent_method
Home
In: locana/l_event.rb

These methods are added to the Levent and Hash classes to provide method access to elements of the Levent and Hash. The purpose is to keep the Hash and Levent objects consistent because every Locana event can receive either nil, an Levent, or a Hash as its parameter.

Methods

alt_key, ctrl_key, keychar, keycode, meta_key, shift_key, value, x, y,
Public Instance methods
keychar() src

Calls Levent.keychar(self[:keycode]). This is provided to make keychar() available to the Hash since the Hash can be provided to Locana events.

keycode() src

Returns self[:keycode].

x() src

Returns self[:x]. The screen relative x pixel position of the mouse during the event. Only supported for on_mouse related events and the on_move event.

y() src

Returns self[:y]. The screen relative y pixel position of the mouse during the event. Only supported for on_mouse related events and the on_move event.

value() src

Returns self[:value].

shift_key() src

Returns self[:shift_key]. This will be true only if the shift key was pressed during the event.

alt_key() src

Returns self[:alt_key]. This will be true only if the alt key was pressed during the event.

ctrl_key() src

Returns self[:ctrl_key]. This will be true only if the ctrl key was pressed during the event.

meta_key() src

Returns self[:meta_key]. This will be true only if the meta key was pressed during the event.


Seva Software


Thank you for taking the time to visit this web page. I trust you found the information contained in this page useful.
Please email any questions, concerns, or issues with this web site to webmaster@sevasoftware.com.
Please remember Seva Software when your company would benefit from an experienced database architect and software engineer.

http://www.arunadb.org http://www.locana.org http://www.ruby-lang.org http://www.coolwell.org http://www.sevasoftware.com