Class Ui::WxWidgets::Widgets::ConsoleNewCommandEvent
In: ui/wx/widgets/console.rb
Parent: Wx::CommandEvent

Methods

line   new  

Constants

EVT_NEW_COMMAND = Wx::EvtHandler.register_class(self, nil, 'evt_new_command', 1)   Create a new unique constant identifier, associate this class with events of that identifier, and create a shortcut ‘evt_new_command’ method for setting up this handler.

Public Class methods

[Source]

    # File ui/wx/widgets/console.rb, line 31
31:         def initialize(console, line)
32:           # The constant id is the arg to super
33:           super(EVT_NEW_COMMAND)
34:           # client_data should be used to store any information associated
35:           # with the event.
36:           self.client_data = { :line => line  }
37:           self.id = console.get_id
38:         end

Public Instance methods

[Source]

    # File ui/wx/widgets/console.rb, line 40
40:         def line
41:           client_data[:line]
42:         end

[Validate]