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 26
        def initialize(console, line)
          # The constant id is the arg to super
          super(EVT_NEW_COMMAND)
          # client_data should be used to store any information associated
          # with the event.
          self.client_data = { :line => line  }
          self.id = console.get_id
        end

Public Instance methods

[Source]

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

[Validate]