lib/osx/sugarcube-constants/symbol.rb in sugarcube-2.0.1 vs lib/osx/sugarcube-constants/symbol.rb in sugarcube-2.0.2
- old
+ new
@@ -46,10 +46,15 @@
def nsfocusringtype
SugarCube.look_in(self, Symbol.nsfocusringtype)
end
+ def nslinebreakmode
+ SugarCube.look_in(self, Symbol.nslinebreakmode)
+ end
+ alias nslinebreak nslinebreakmode
+
def catimingfunction
SugarCube.look_in(self, Symbol.catimingfunction)
end
alias catiming catimingfunction
@@ -69,10 +74,11 @@
attr :nsdatestyle
attr :nsnumberstyle
attr :nsbuttontype
attr :nsbezelstyle
attr :nsfocusringtype
+ attr :nslinebreakmode
attr :catimingfunction
attr :cglinecap
attr :cglinejoin
end
@@ -158,9 +164,26 @@
@nsfocusringtype = {
default: NSFocusRingTypeDefault,
none: NSFocusRingTypeNone,
exterior: NSFocusRingTypeExterior,
+ }
+
+ @nslinebreakmode = {
+ word_wrapping: NSLineBreakByWordWrapping,
+ word_wrap: NSLineBreakByWordWrapping,
+ word: NSLineBreakByWordWrapping,
+ char_wrapping: NSLineBreakByCharWrapping,
+ char_wrap: NSLineBreakByCharWrapping,
+ char: NSLineBreakByCharWrapping,
+ clipping: NSLineBreakByClipping,
+ clip: NSLineBreakByClipping,
+ truncating_head: NSLineBreakByTruncatingHead,
+ head: NSLineBreakByTruncatingHead,
+ truncating_tail: NSLineBreakByTruncatingTail,
+ tail: NSLineBreakByTruncatingTail,
+ truncating_middle: NSLineBreakByTruncatingMiddle,
+ middle: NSLineBreakByTruncatingMiddle
}
@catimingfunction = {
linear: KCAMediaTimingFunctionLinear,
ease_in: KCAMediaTimingFunctionEaseIn,