Module: SugarCube::CGSizeExtensions::ClassMethods
- Defined in:
- lib/sugarcube/core_graphics.rb
Instance Method Summary collapse
Instance Method Details
#from_hash(hash) ⇒ Object
178 179 180 181 182 183 184 185 |
# File 'lib/sugarcube/core_graphics.rb', line 178 def from_hash(hash) ret = Pointer.new(CGSize.type) if CGSizeMakeWithDictionaryRepresentation(hash, ret) ret[0] else nil end end |
#infinite ⇒ Object
173 174 175 176 |
# File 'lib/sugarcube/core_graphics.rb', line 173 def infinite infinity = CGRect.null[0][0] SugarCube::CoreGraphics::Size(infinity, infinity) end |