Class: Cocoa::CGPoint
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Cocoa::CGPoint
- Defined in:
- lib/cocoa/structs/NSPoint.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ CGPoint
constructor
A new instance of CGPoint.
Constructor Details
#initialize(*args) ⇒ CGPoint
Returns a new instance of CGPoint.
3 4 5 6 7 8 9 10 11 |
# File 'lib/cocoa/structs/NSPoint.rb', line 3 def initialize *args = args.first if .is_a? Hash self[:x] = [:x] self[:y] = [:y] else super *args end end |