Class: Wx::SF::ShapeChildDropEvent
- Inherits:
-
Event
- Object
- Event
- Wx::SF::ShapeChildDropEvent
- Defined in:
- lib/wx/shapes/events.rb
Overview
Class encapsulates Wx::SF shape child drop event.
Instance Method Summary collapse
-
#get_child_shape ⇒ Wx::SF::Shape?
(also: #child_shape)
Get child shape object from the event object.
-
#get_shape ⇒ Wx::SF::Shape?
(also: #shape)
Get a shape object from the event object.
-
#initialize(evt_type = Wx::EVT_NULL, id = 0) ⇒ ShapeChildDropEvent
constructor
Constructor.
-
#set_child_shape(child) ⇒ Object
(also: #child_shape=)
Set dropped child shape.
-
#set_shape(shape) ⇒ Object
(also: #shape=)
Insert a shape object to the event object.
Constructor Details
#initialize(evt_type = Wx::EVT_NULL, id = 0) ⇒ ShapeChildDropEvent
Constructor
328 329 330 331 332 |
# File 'lib/wx/shapes/events.rb', line 328 def initialize(evt_type = Wx::EVT_NULL, id = 0) super(evt_type, id.to_i) @shape = nil @child = nil end |
Instance Method Details
#get_child_shape ⇒ Wx::SF::Shape? Also known as: child_shape
Get child shape object from the event object.
357 358 359 |
# File 'lib/wx/shapes/events.rb', line 357 def get_child_shape @child end |
#get_shape ⇒ Wx::SF::Shape? Also known as: shape
Get a shape object from the event object.
343 344 345 |
# File 'lib/wx/shapes/events.rb', line 343 def get_shape @shape end |
#set_child_shape(child) ⇒ Object Also known as: child_shape=
Set dropped child shape
350 351 352 |
# File 'lib/wx/shapes/events.rb', line 350 def set_child_shape(child) @child = child end |
#set_shape(shape) ⇒ Object Also known as: shape=
Insert a shape object to the event object.
336 337 338 |
# File 'lib/wx/shapes/events.rb', line 336 def set_shape(shape) @shape = shape end |