Module: SugarCube::CGRectExtensions::ClassMethods
- Defined in:
- lib/sugarcube/core_graphics.rb
Instance Method Summary collapse
Instance Method Details
#empty ⇒ Object
6 7 8 |
# File 'lib/sugarcube/core_graphics.rb', line 6 def empty SugarCube::CoreGraphics::Rect(CGRectZero) end |
#from_hash(hash) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/sugarcube/core_graphics.rb', line 18 def from_hash(hash) ret = Pointer.new(CGRect.type) if CGRectMakeWithDictionaryRepresentation(hash, ret) ret[0] else nil end end |
#infinite ⇒ Object
14 15 16 |
# File 'lib/sugarcube/core_graphics.rb', line 14 def infinite SugarCube::CoreGraphics::Rect([0, 0], CGSize.infinite) end |
#null ⇒ Object
10 11 12 |
# File 'lib/sugarcube/core_graphics.rb', line 10 def null SugarCube::CoreGraphics::Rect(CGRectNull) end |