Class: Wx::HyperlinkEvent
- Inherits:
-
CommandEvent
- Object
- Object
- Event
- CommandEvent
- Wx::HyperlinkEvent
- Defined in:
- lib/wx/doc/gen/hyperlink_event.rb
Overview
This event class is used for the events generated by HyperlinkCtrl.
Events using this class
The following event-handler methods redirect the events to member method or handler blocks for HyperlinkEvent events. Event handler methods:
-
EvtHandler#evt_hyperlink(id, meth = nil, &block): User clicked on a hyperlink.
Category: Events
Instance Method Summary collapse
-
#get_url ⇒ String
(also: #url)
Returns the URL of the hyperlink where the user has just clicked.
-
#initialize(generator, id, url) ⇒ Wx::HyperlinkEvent
constructor
The constructor is not normally used by the user code.
-
#set_url(url) ⇒ void
(also: #url=)
Sets the URL associated with the event.
Methods inherited from CommandEvent
#client_data, #client_data=, #get_client_data, #get_client_object, #get_int, #get_selection, #get_string, #is_checked, #is_selection, #set_client_data, #set_client_object, #set_extra_long, #set_int, #set_string
Methods inherited from Event
#clone, #get_event_category, #get_event_object, #get_event_type, #get_id, #get_skipped, #get_timestamp, #is_command_event, #resume_propagation, #set_event_object, #set_event_type, #set_id, #set_timestamp, #should_propagate, #skip, #stop_propagation
Methods inherited from Object
#clone, #dup, #is_same_as, #un_share
Constructor Details
#initialize(generator, id, url) ⇒ Wx::HyperlinkEvent
The constructor is not normally used by the user code.
28 |
# File 'lib/wx/doc/gen/hyperlink_event.rb', line 28 def initialize(generator, id, url) end |
Instance Method Details
#get_url ⇒ String Also known as: url
Returns the URL of the hyperlink where the user has just clicked.
32 |
# File 'lib/wx/doc/gen/hyperlink_event.rb', line 32 def get_url; end |
#set_url(url) ⇒ void Also known as: url=
This method returns an undefined value.
Sets the URL associated with the event.
38 |
# File 'lib/wx/doc/gen/hyperlink_event.rb', line 38 def set_url(url) end |