Class: Wx::SF::ShapeChildDropEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/wx/shapes/events.rb

Overview

Class encapsulates Wx::SF shape child drop event.

Instance Method Summary collapse

Constructor Details

#initialize(evt_type = Wx::EVT_NULL, id = 0) ⇒ ShapeChildDropEvent

Constructor

Parameters:

  • evt_type (Integer) (defaults to: Wx::EVT_NULL)
  • id (Integer) (defaults to: 0)


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_shapeWx::SF::Shape? Also known as: child_shape

Get child shape object from the event object.

Returns:



357
358
359
# File 'lib/wx/shapes/events.rb', line 357

def get_child_shape
  @child
end

#get_shapeWx::SF::Shape? Also known as: shape

Get a shape object from the event object.

Returns:



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

Parameters:



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.

Parameters:



336
337
338
# File 'lib/wx/shapes/events.rb', line 336

def set_shape(shape)
  @shape = shape
end