Class: Wx::Size

Inherits:
Object
  • Object
show all
Includes:
FIRM::Serializable
Defined in:
lib/wx/shapes/wx.rb,
lib/wx/shapes/serialize/wx.rb

Instance Method Summary collapse

Instance Method Details

#to_real_pointWx::RealPoint Also known as: to_real

Returns this size as a Wx::RealPoint.

Returns:



31
32
33
# File 'lib/wx/shapes/wx.rb', line 31

def to_real_point
  Wx::RealPoint.new(self.width.to_f, self.height.to_f)
end