Class: Wx::EvtHandler::EventType

Inherits:
Struct
  • Object
show all
Defined in:
lib/wx/classes/evthandler.rb

Overview

EventType is an internal class that’s used to set up event handlers and mappings.

  • ‘name’ is the name of the event handler method in ruby

  • ‘arity’ is the number of id arguments that method should accept

  • ‘const’ is the Wx EventType constant that identifies the event

  • ‘evt_class’ is the WxRuby event class which is passed to the event

    handler block
    

NB: Some event types currently pass a Wx::Event into the event handler block; when the appropriate classes are added to wxRuby, the binding can be updated here.

Instance Attribute Summary collapse

Instance Attribute Details

#arityObject

Returns the value of attribute arity

Returns:

  • (Object)

    the current value of arity



16
17
18
# File 'lib/wx/classes/evthandler.rb', line 16

def arity
  @arity
end

#constObject

Returns the value of attribute const

Returns:

  • (Object)

    the current value of const



16
17
18
# File 'lib/wx/classes/evthandler.rb', line 16

def const
  @const
end

#evt_classObject

Returns the value of attribute evt_class

Returns:

  • (Object)

    the current value of evt_class



16
17
18
# File 'lib/wx/classes/evthandler.rb', line 16

def evt_class
  @evt_class
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



16
17
18
# File 'lib/wx/classes/evthandler.rb', line 16

def name
  @name
end