Class: Wx::SF::ShapeHandleEvent
- Inherits:
-
Event
- Object
- Event
- Wx::SF::ShapeHandleEvent
- Defined in:
- lib/wx/shapes/events.rb
Overview
Class encapsulates Wx::SF shape handle related event.
Instance Method Summary collapse
-
#get_handle ⇒ Wx::SF::Shape::Handle
(also: #handle)
Get shape handle.
-
#get_shape ⇒ Wx::SF::Shape?
(also: #shape)
Get a shape object from the event object.
-
#initialize(evt_type = Wx::EVT_NULL, id = 0) ⇒ ShapeHandleEvent
constructor
Constructor.
-
#set_handle(handle) ⇒ Object
(also: #handle=)
Set dragged shape handle.
-
#set_shape(shape) ⇒ Object
(also: #shape=)
Insert a shape object to the event object.
Constructor Details
#initialize(evt_type = Wx::EVT_NULL, id = 0) ⇒ ShapeHandleEvent
Constructor
169 170 171 172 173 |
# File 'lib/wx/shapes/events.rb', line 169 def initialize(evt_type = Wx::EVT_NULL, id = 0) super(evt_type, id.to_i) @shape = nil @handle = nil end |
Instance Method Details
#get_handle ⇒ Wx::SF::Shape::Handle Also known as: handle
Get shape handle
198 199 200 |
# File 'lib/wx/shapes/events.rb', line 198 def get_handle @handle end |
#get_shape ⇒ Wx::SF::Shape? Also known as: shape
Get a shape object from the event object.
184 185 186 |
# File 'lib/wx/shapes/events.rb', line 184 def get_shape @shape end |
#set_handle(handle) ⇒ Object Also known as: handle=
Set dragged shape handle
191 192 193 |
# File 'lib/wx/shapes/events.rb', line 191 def set_handle(handle) @handle = handle end |
#set_shape(shape) ⇒ Object Also known as: shape=
Insert a shape object to the event object.
177 178 179 |
# File 'lib/wx/shapes/events.rb', line 177 def set_shape(shape) @shape = shape end |