lib/sugarcube/symbol.rb in sugarcube-0.13.7 vs lib/sugarcube/symbol.rb in sugarcube-0.14.0

- old
+ new

@@ -62,10 +62,13 @@ attr_accessor :image_cameradevice attr_accessor :image_quality attr_accessor :ca_timingfunctions + attr_accessor :cg_linecapstyles + attr_accessor :cg_linejoinstyles + attr_accessor :gesture_recognizer_states end @devices = { iphone: UIUserInterfaceIdiomPhone, @@ -413,10 +416,22 @@ ease_in_out: KCAMediaTimingFunctionEaseInEaseOut, ease_in_ease_out: KCAMediaTimingFunctionEaseInEaseOut, default: KCAMediaTimingFunctionDefault, } + @cg_linecapstyles = { + butt: KCGLineCapButt, + round: KCGLineCapRound, + square: KCGLineCapSquare, + } + + @cg_linejoinstyles = { + miter: KCGLineJoinMiter, + round: KCGLineJoinRound, + bevel: KCGLineJoinBevel, + } + @gesture_recognizer_states = { possible: UIGestureRecognizerStatePossible, began: UIGestureRecognizerStateBegan, changed: UIGestureRecognizerStateChanged, ended: UIGestureRecognizerStateEnded, @@ -580,9 +595,19 @@ def catimingfunction look_in(Symbol.ca_timingfunctions) end alias catiming catimingfunction + + def cglinecap + look_in(Symbol.cg_linecapstyles) + end + alias cglinecapstyle cglinecap + + def cglinejoin + look_in(Symbol.cg_linejoinstyles) + end + alias cglinejoinstyle cglinejoin def uigesturerecognizerstate look_in(Symbol.gesture_recognizer_states) end alias uigesturestate uigesturerecognizerstate