Skip to content

class BaseEvent internal ​

A UI input event used in Hokusai::Painter

.name(name) internal ​

Sets the name of this event kind

Arguments ​

  • name - event name (String)

#add_evented_styles(value) internal ​

adds evented styles to this block

Arguments ​

  • value - a Hokusai::Block

#add_capture(value) internal ​

capture a block

Arguments ​

  • value - a Hokusai::Block

#stopped internal ​

Has the event stopped propagation?

Returns ​

Returns boolean

#stop public ​

Stop the event from bubbling

Returns ​

Returns nothing

#captures internal ​

All captures for this event

Returns ​

Returns Array(Hokusai::Block)

#matches(value) internal ​

Does the event match the provided Hokusai::Block template?

Arguments ​

  • value - a Hokusai::Block

Returns ​

Returns boolean

#bubble internal ​

Emit the event to all captured blocks,

stopping if any of the blocks stop propagation