Class: Symbol
- Defined in:
- lib/ios/sugarcube-ui/symbol.rb,
lib/osx/sugarcube-ui/symbol.rb,
lib/all/sugarcube-unholy/ivar.rb,
lib/ios/sugarcube-color/symbol.rb,
lib/osx/sugarcube-color/symbol.rb,
lib/ios/sugarcube-constants/symbol.rb,
lib/osx/sugarcube-constants/symbol.rb,
lib/cocoa/sugarcube-awesome/awesome_exts.rb
Overview
Adds constant lookups to the Symbol class. These methods are prefixed with ‘ns` to make their intent clear, and to provide a little bit of “namespacing”
# alignment
:left.nsalignment => NSLeftTextAlignment
# nscolors
:black.nscolor => NSColor.blackColor
You can extend the defaults by adding entries:
Symbol.css_colors[:my_color] = 0x123456
:my_color.nscolor => NSColor
Class Attribute Summary collapse
-
.catimingfunction ⇒ Object
readonly
Returns the value of attribute catimingfunction.
-
.catimingfunction__deprecated ⇒ Object
readonly
Returns the value of attribute catimingfunction__deprecated.
-
.cglinecap ⇒ Object
readonly
Returns the value of attribute cglinecap.
-
.cglinejoin ⇒ Object
readonly
Returns the value of attribute cglinejoin.
-
.css_colors ⇒ Object
readonly
Returns the value of attribute css_colors.
-
.css_colors_cache ⇒ Object
readonly
Returns the value of attribute css_colors_cache.
-
.nsautoresizingmask ⇒ Object
readonly
Returns the value of attribute nsautoresizingmask.
-
.nsbezelstyle ⇒ Object
readonly
Returns the value of attribute nsbezelstyle.
-
.nsbuttontype ⇒ Object
readonly
Returns the value of attribute nsbuttontype.
-
.nscolors ⇒ Object
readonly
Returns the value of attribute nscolors.
-
.nsdatestyle ⇒ Object
readonly
Returns the value of attribute nsdatestyle.
-
.nsfocusringtype ⇒ Object
readonly
Returns the value of attribute nsfocusringtype.
-
.nsfont ⇒ Object
readonly
Returns the value of attribute nsfont.
-
.nsfontsize ⇒ Object
readonly
Returns the value of attribute nsfontsize.
-
.nslinebreakmode ⇒ Object
readonly
Returns the value of attribute nslinebreakmode.
-
.nsnumberstyle ⇒ Object
readonly
Returns the value of attribute nsnumberstyle.
-
.nsnumberstyle__deprecated ⇒ Object
readonly
Returns the value of attribute nsnumberstyle__deprecated.
-
.nstextalignment ⇒ Object
readonly
Returns the value of attribute nstextalignment.
-
.presentationstyle ⇒ Object
readonly
Returns the value of attribute presentationstyle.
-
.transitionstyle ⇒ Object
readonly
Returns the value of attribute transitionstyle.
-
.uiactionstyle ⇒ Object
readonly
Returns the value of attribute uiactionstyle.
-
.uiactivityindicatorstyle ⇒ Object
readonly
Returns the value of attribute uiactivityindicatorstyle.
-
.uiactivityindicatorstyle__deprecated ⇒ Object
readonly
Returns the value of attribute uiactivityindicatorstyle__deprecated.
-
.uialertactionstyle ⇒ Object
readonly
Returns the value of attribute uialertactionstyle.
-
.uialertcontrollerstyle ⇒ Object
readonly
Returns the value of attribute uialertcontrollerstyle.
-
.uialertstyle ⇒ Object
readonly
Returns the value of attribute uialertstyle.
-
.uianimationcurve ⇒ Object
readonly
Returns the value of attribute uianimationcurve.
-
.uianimationoption ⇒ Object
readonly
Returns the value of attribute uianimationoption.
-
.uiautoresizemask ⇒ Object
readonly
Returns the value of attribute uiautoresizemask.
-
.uiautoresizemask__deprecated ⇒ Object
readonly
Returns the value of attribute uiautoresizemask__deprecated.
-
.uibarbuttonitem ⇒ Object
readonly
Returns the value of attribute uibarbuttonitem.
-
.uibarbuttonitem__deprecated ⇒ Object
readonly
Returns the value of attribute uibarbuttonitem__deprecated.
-
.uibarbuttonstyle ⇒ Object
readonly
Returns the value of attribute uibarbuttonstyle.
-
.uibarmetrics ⇒ Object
readonly
Returns the value of attribute uibarmetrics.
-
.uibaselineadjustment ⇒ Object
readonly
Returns the value of attribute uibaselineadjustment.
-
.uibaselineadjustment__deprecated ⇒ Object
readonly
Returns the value of attribute uibaselineadjustment__deprecated.
-
.uibordertype ⇒ Object
readonly
Returns the value of attribute uibordertype.
-
.uibuttontype ⇒ Object
readonly
Returns the value of attribute uibuttontype.
-
.uicolors ⇒ Object
readonly
Returns the value of attribute uicolors.
-
.uicolors__deprecated ⇒ Object
readonly
Returns the value of attribute uicolors__deprecated.
-
.uicontentmode ⇒ Object
readonly
Returns the value of attribute uicontentmode.
-
.uicontentmode__deprecated ⇒ Object
readonly
Returns the value of attribute uicontentmode__deprecated.
-
.uicontrolevent ⇒ Object
readonly
Returns the value of attribute uicontrolevent.
-
.uicontrolevent__deprecated ⇒ Object
readonly
Returns the value of attribute uicontrolevent__deprecated.
-
.uicontrolstate ⇒ Object
readonly
Returns the value of attribute uicontrolstate.
-
.uidatepickermode ⇒ Object
readonly
Returns the value of attribute uidatepickermode.
-
.uidatepickermode__deprecated ⇒ Object
readonly
Returns the value of attribute uidatepickermode__deprecated.
-
.uidevice ⇒ Object
readonly
Returns the value of attribute uidevice.
-
.uideviceorientation ⇒ Object
readonly
Returns the value of attribute uideviceorientation.
-
.uifont ⇒ Object
readonly
Returns the value of attribute uifont.
-
.uifontsize ⇒ Object
readonly
Returns the value of attribute uifontsize.
-
.uigesturerecognizerstate ⇒ Object
readonly
Returns the value of attribute uigesturerecognizerstate.
-
.uiimagecamera ⇒ Object
readonly
Returns the value of attribute uiimagecamera.
-
.uiimagecapture ⇒ Object
readonly
Returns the value of attribute uiimagecapture.
-
.uiimagequality ⇒ Object
readonly
Returns the value of attribute uiimagequality.
-
.uiimagesource ⇒ Object
readonly
Returns the value of attribute uiimagesource.
-
.uiinterfacemask ⇒ Object
readonly
Returns the value of attribute uiinterfacemask.
-
.uiinterfaceorientation ⇒ Object
readonly
Returns the value of attribute uiinterfaceorientation.
-
.uikeyboardtype ⇒ Object
readonly
Returns the value of attribute uikeyboardtype.
-
.uikeyboardtype__deprecated ⇒ Object
readonly
Returns the value of attribute uikeyboardtype__deprecated.
-
.uirectedge ⇒ Object
readonly
Returns the value of attribute uirectedge.
-
.uireturnkey ⇒ Object
readonly
Returns the value of attribute uireturnkey.
-
.uireturnkey__deprecated ⇒ Object
readonly
Returns the value of attribute uireturnkey__deprecated.
-
.uisegmentedstyle ⇒ Object
readonly
Returns the value of attribute uisegmentedstyle.
-
.uistatusbarstyle ⇒ Object
readonly
Returns the value of attribute uistatusbarstyle.
-
.uitabbarsystemitem ⇒ Object
readonly
Returns the value of attribute uitabbarsystemitem.
-
.uitablecellaccessorytype ⇒ Object
readonly
Returns the value of attribute uitablecellaccessorytype.
-
.uitablecellaccessorytype__deprecated ⇒ Object
readonly
Returns the value of attribute uitablecellaccessorytype__deprecated.
-
.uitablecellselectionstyle ⇒ Object
readonly
Returns the value of attribute uitablecellselectionstyle.
-
.uitablecellseparatorstyle ⇒ Object
readonly
Returns the value of attribute uitablecellseparatorstyle.
-
.uitablecellseparatorstyle__deprecated ⇒ Object
readonly
Returns the value of attribute uitablecellseparatorstyle__deprecated.
-
.uitablecellstyle ⇒ Object
readonly
Returns the value of attribute uitablecellstyle.
-
.uitablerowanimation ⇒ Object
readonly
Returns the value of attribute uitablerowanimation.
-
.uitablestyle ⇒ Object
readonly
Returns the value of attribute uitablestyle.
-
.uitextalignment ⇒ Object
readonly
Returns the value of attribute uitextalignment.
Instance Method Summary collapse
- #awesome_icon(options = {}) ⇒ Object
- #catimingfunction ⇒ Object (also: #catiming)
- #cgcolor(alpha = nil) ⇒ Object
- #cglinecap ⇒ Object (also: #cglinecapstyle)
- #cglinejoin ⇒ Object (also: #cglinejoinstyle)
- #cvar ⇒ Object
- #ivar ⇒ Object
- #nsautoresizingmask ⇒ Object (also: #nsautoresizemask)
- #nsbezelstyle ⇒ Object
- #nsbuttontype ⇒ Object
- #nscolor(alpha = nil) ⇒ Object
- #nsdatestyle ⇒ Object (also: #nsdateformatterstyle)
- #nsfocusringtype ⇒ Object
- #nsfont(size = nil) ⇒ Object
- #nsfontsize ⇒ Object
- #nslinebreakmode ⇒ Object (also: #nslinebreak)
- #nsnumberstyle ⇒ Object (also: #nsnumberformatterstyle)
- #nstextalignment ⇒ Object (also: #nsalignment)
- #presentationstyle ⇒ Object
- #setter ⇒ Object
- #skcolor(alpha = nil) ⇒ Object
- #transitionstyle ⇒ Object
- #uiactionstyle ⇒ Object (also: #uiactionsheetstyle)
- #uiactivityindicatorstyle ⇒ Object (also: #uiactivityindicatorviewstyle)
- #uialertactionstyle ⇒ Object
- #uialertcontrollerstyle ⇒ Object
- #uialertstyle ⇒ Object (also: #uialertviewstyle)
- #uianimationcurve ⇒ Object (also: #uiviewanimationcurve)
- #uianimationoption ⇒ Object (also: #uiviewanimationoption)
- #uiautoresizemask ⇒ Object (also: #uiviewautoresizing, #uiautoresizingmask, #uiautoresize)
- #uibarbuttonitem ⇒ Object
- #uibarbuttonstyle ⇒ Object
- #uibarmetrics ⇒ Object
- #uibaselineadjustment ⇒ Object (also: #uibaseline)
- #uibordertype ⇒ Object (also: #uiborderstyle)
- #uibuttontype ⇒ Object
- #uicolor(alpha = nil) ⇒ Object
- #uicontentmode ⇒ Object (also: #uiviewcontentmode)
- #uicontrolevent ⇒ Object
- #uicontrolstate ⇒ Object (also: #uistate)
- #uidatepickermode ⇒ Object
- #uidevice ⇒ Object
- #uideviceorientation ⇒ Object
- #uifont(size = nil) ⇒ Object
- #uifontsize ⇒ Object
- #uigesturerecognizerstate ⇒ Object (also: #uigesturestate)
- #uiimagecamera ⇒ Object (also: #uiimagecameradevice, #uiimagedevice)
- #uiimagecapture ⇒ Object (also: #uiimagecapturemode)
- #uiimagequality ⇒ Object (also: #uiimagequalitytype)
- #uiimagesource ⇒ Object (also: #uiimagesourcetype)
- #uiinterfacemask ⇒ Object
- #uiinterfaceorientation ⇒ Object (also: #uiorientation)
- #uikeyboardtype ⇒ Object
- #uilinebreakmode ⇒ Object
- #uirectedge ⇒ Object
- #uireturnkey ⇒ Object
- #uisegmentedstyle ⇒ Object (also: #uisegmentedcontrolstyle)
- #uistatusbarstyle ⇒ Object
- #uitabbarsystemitem ⇒ Object (also: #uitabbaritem)
- #uitablecellaccessorytype ⇒ Object (also: #uitablecellaccessory, #uitableviewcellaccessorytype)
- #uitablecellselectionstyle ⇒ Object (also: #uitableviewcellselectionstyle)
- #uitablecellseparatorstyle ⇒ Object
- #uitablecellstyle ⇒ Object (also: #uitableviewcellstyle)
- #uitablerowanimation ⇒ Object (also: #uitableviewrowanimation)
- #uitablestyle ⇒ Object (also: #uitableviewstyle)
- #uitextalignment ⇒ Object (also: #uialignment)
Class Attribute Details
.catimingfunction ⇒ Object (readonly)
Returns the value of attribute catimingfunction.
325 326 327 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 325 def catimingfunction @catimingfunction end |
.catimingfunction__deprecated ⇒ Object (readonly)
Returns the value of attribute catimingfunction__deprecated.
326 327 328 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 326 def catimingfunction__deprecated @catimingfunction__deprecated end |
.cglinecap ⇒ Object (readonly)
Returns the value of attribute cglinecap.
328 329 330 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 328 def cglinecap @cglinecap end |
.cglinejoin ⇒ Object (readonly)
Returns the value of attribute cglinejoin.
329 330 331 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 329 def cglinejoin @cglinejoin end |
.css_colors ⇒ Object (readonly)
Returns the value of attribute css_colors.
5 6 7 |
# File 'lib/ios/sugarcube-color/symbol.rb', line 5 def css_colors @css_colors end |
.css_colors_cache ⇒ Object (readonly)
Returns the value of attribute css_colors_cache.
6 7 8 |
# File 'lib/ios/sugarcube-color/symbol.rb', line 6 def css_colors_cache @css_colors_cache end |
.nsautoresizingmask ⇒ Object (readonly)
Returns the value of attribute nsautoresizingmask.
72 73 74 |
# File 'lib/osx/sugarcube-constants/symbol.rb', line 72 def nsautoresizingmask @nsautoresizingmask end |
.nsbezelstyle ⇒ Object (readonly)
Returns the value of attribute nsbezelstyle.
77 78 79 |
# File 'lib/osx/sugarcube-constants/symbol.rb', line 77 def nsbezelstyle @nsbezelstyle end |
.nsbuttontype ⇒ Object (readonly)
Returns the value of attribute nsbuttontype.
76 77 78 |
# File 'lib/osx/sugarcube-constants/symbol.rb', line 76 def @nsbuttontype end |
.nscolors ⇒ Object (readonly)
Returns the value of attribute nscolors.
3 4 5 |
# File 'lib/osx/sugarcube-color/symbol.rb', line 3 def nscolors @nscolors end |
.nsdatestyle ⇒ Object (readonly)
Returns the value of attribute nsdatestyle.
277 278 279 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 277 def nsdatestyle @nsdatestyle end |
.nsfocusringtype ⇒ Object (readonly)
Returns the value of attribute nsfocusringtype.
78 79 80 |
# File 'lib/osx/sugarcube-constants/symbol.rb', line 78 def nsfocusringtype @nsfocusringtype end |
.nsfont ⇒ Object (readonly)
Returns the value of attribute nsfont.
48 49 50 |
# File 'lib/osx/sugarcube-ui/symbol.rb', line 48 def nsfont @nsfont end |
.nsfontsize ⇒ Object (readonly)
Returns the value of attribute nsfontsize.
49 50 51 |
# File 'lib/osx/sugarcube-ui/symbol.rb', line 49 def nsfontsize @nsfontsize end |
.nslinebreakmode ⇒ Object (readonly)
Returns the value of attribute nslinebreakmode.
273 274 275 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 273 def nslinebreakmode @nslinebreakmode end |
.nsnumberstyle ⇒ Object (readonly)
Returns the value of attribute nsnumberstyle.
278 279 280 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 278 def nsnumberstyle @nsnumberstyle end |
.nsnumberstyle__deprecated ⇒ Object (readonly)
Returns the value of attribute nsnumberstyle__deprecated.
279 280 281 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 279 def nsnumberstyle__deprecated @nsnumberstyle__deprecated end |
.nstextalignment ⇒ Object (readonly)
Returns the value of attribute nstextalignment.
272 273 274 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 272 def nstextalignment @nstextalignment end |
.presentationstyle ⇒ Object (readonly)
Returns the value of attribute presentationstyle.
311 312 313 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 311 def presentationstyle @presentationstyle end |
.transitionstyle ⇒ Object (readonly)
Returns the value of attribute transitionstyle.
312 313 314 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 312 def transitionstyle @transitionstyle end |
.uiactionstyle ⇒ Object (readonly)
Returns the value of attribute uiactionstyle.
315 316 317 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 315 def uiactionstyle @uiactionstyle end |
.uiactivityindicatorstyle ⇒ Object (readonly)
Returns the value of attribute uiactivityindicatorstyle.
292 293 294 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 292 def @uiactivityindicatorstyle end |
.uiactivityindicatorstyle__deprecated ⇒ Object (readonly)
Returns the value of attribute uiactivityindicatorstyle__deprecated.
293 294 295 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 293 def @uiactivityindicatorstyle__deprecated end |
.uialertactionstyle ⇒ Object (readonly)
Returns the value of attribute uialertactionstyle.
318 319 320 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 318 def uialertactionstyle @uialertactionstyle end |
.uialertcontrollerstyle ⇒ Object (readonly)
Returns the value of attribute uialertcontrollerstyle.
317 318 319 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 317 def uialertcontrollerstyle @uialertcontrollerstyle end |
.uialertstyle ⇒ Object (readonly)
Returns the value of attribute uialertstyle.
314 315 316 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 314 def uialertstyle @uialertstyle end |
.uianimationcurve ⇒ Object (readonly)
Returns the value of attribute uianimationcurve.
299 300 301 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 299 def uianimationcurve @uianimationcurve end |
.uianimationoption ⇒ Object (readonly)
Returns the value of attribute uianimationoption.
300 301 302 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 300 def uianimationoption @uianimationoption end |
.uiautoresizemask ⇒ Object (readonly)
Returns the value of attribute uiautoresizemask.
264 265 266 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 264 def uiautoresizemask @uiautoresizemask end |
.uiautoresizemask__deprecated ⇒ Object (readonly)
Returns the value of attribute uiautoresizemask__deprecated.
265 266 267 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 265 def uiautoresizemask__deprecated @uiautoresizemask__deprecated end |
.uibarbuttonitem ⇒ Object (readonly)
Returns the value of attribute uibarbuttonitem.
283 284 285 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 283 def @uibarbuttonitem end |
.uibarbuttonitem__deprecated ⇒ Object (readonly)
Returns the value of attribute uibarbuttonitem__deprecated.
284 285 286 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 284 def @uibarbuttonitem__deprecated end |
.uibarbuttonstyle ⇒ Object (readonly)
Returns the value of attribute uibarbuttonstyle.
285 286 287 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 285 def @uibarbuttonstyle end |
.uibarmetrics ⇒ Object (readonly)
Returns the value of attribute uibarmetrics.
282 283 284 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 282 def @uibarmetrics end |
.uibaselineadjustment ⇒ Object (readonly)
Returns the value of attribute uibaselineadjustment.
275 276 277 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 275 def uibaselineadjustment @uibaselineadjustment end |
.uibaselineadjustment__deprecated ⇒ Object (readonly)
Returns the value of attribute uibaselineadjustment__deprecated.
274 275 276 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 274 def uibaselineadjustment__deprecated @uibaselineadjustment__deprecated end |
.uibordertype ⇒ Object (readonly)
Returns the value of attribute uibordertype.
276 277 278 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 276 def uibordertype @uibordertype end |
.uibuttontype ⇒ Object (readonly)
Returns the value of attribute uibuttontype.
288 289 290 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 288 def @uibuttontype end |
.uicolors ⇒ Object (readonly)
Returns the value of attribute uicolors.
3 4 5 |
# File 'lib/ios/sugarcube-color/symbol.rb', line 3 def uicolors @uicolors end |
.uicolors__deprecated ⇒ Object (readonly)
Returns the value of attribute uicolors__deprecated.
4 5 6 |
# File 'lib/ios/sugarcube-color/symbol.rb', line 4 def uicolors__deprecated @uicolors__deprecated end |
.uicontentmode ⇒ Object (readonly)
Returns the value of attribute uicontentmode.
297 298 299 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 297 def uicontentmode @uicontentmode end |
.uicontentmode__deprecated ⇒ Object (readonly)
Returns the value of attribute uicontentmode__deprecated.
298 299 300 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 298 def uicontentmode__deprecated @uicontentmode__deprecated end |
.uicontrolevent ⇒ Object (readonly)
Returns the value of attribute uicontrolevent.
290 291 292 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 290 def uicontrolevent @uicontrolevent end |
.uicontrolevent__deprecated ⇒ Object (readonly)
Returns the value of attribute uicontrolevent__deprecated.
291 292 293 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 291 def uicontrolevent__deprecated @uicontrolevent__deprecated end |
.uicontrolstate ⇒ Object (readonly)
Returns the value of attribute uicontrolstate.
289 290 291 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 289 def uicontrolstate @uicontrolstate end |
.uidatepickermode ⇒ Object (readonly)
Returns the value of attribute uidatepickermode.
295 296 297 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 295 def uidatepickermode @uidatepickermode end |
.uidatepickermode__deprecated ⇒ Object (readonly)
Returns the value of attribute uidatepickermode__deprecated.
296 297 298 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 296 def uidatepickermode__deprecated @uidatepickermode__deprecated end |
.uidevice ⇒ Object (readonly)
Returns the value of attribute uidevice.
260 261 262 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 260 def uidevice @uidevice end |
.uideviceorientation ⇒ Object (readonly)
Returns the value of attribute uideviceorientation.
261 262 263 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 261 def uideviceorientation @uideviceorientation end |
.uifont ⇒ Object (readonly)
Returns the value of attribute uifont.
48 49 50 |
# File 'lib/ios/sugarcube-ui/symbol.rb', line 48 def uifont @uifont end |
.uifontsize ⇒ Object (readonly)
Returns the value of attribute uifontsize.
49 50 51 |
# File 'lib/ios/sugarcube-ui/symbol.rb', line 49 def uifontsize @uifontsize end |
.uigesturerecognizerstate ⇒ Object (readonly)
Returns the value of attribute uigesturerecognizerstate.
331 332 333 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 331 def uigesturerecognizerstate @uigesturerecognizerstate end |
.uiimagecamera ⇒ Object (readonly)
Returns the value of attribute uiimagecamera.
322 323 324 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 322 def uiimagecamera @uiimagecamera end |
.uiimagecapture ⇒ Object (readonly)
Returns the value of attribute uiimagecapture.
321 322 323 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 321 def uiimagecapture @uiimagecapture end |
.uiimagequality ⇒ Object (readonly)
Returns the value of attribute uiimagequality.
323 324 325 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 323 def uiimagequality @uiimagequality end |
.uiimagesource ⇒ Object (readonly)
Returns the value of attribute uiimagesource.
320 321 322 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 320 def uiimagesource @uiimagesource end |
.uiinterfacemask ⇒ Object (readonly)
Returns the value of attribute uiinterfacemask.
263 264 265 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 263 def uiinterfacemask @uiinterfacemask end |
.uiinterfaceorientation ⇒ Object (readonly)
Returns the value of attribute uiinterfaceorientation.
262 263 264 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 262 def uiinterfaceorientation @uiinterfaceorientation end |
.uikeyboardtype ⇒ Object (readonly)
Returns the value of attribute uikeyboardtype.
269 270 271 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 269 def uikeyboardtype @uikeyboardtype end |
.uikeyboardtype__deprecated ⇒ Object (readonly)
Returns the value of attribute uikeyboardtype__deprecated.
270 271 272 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 270 def uikeyboardtype__deprecated @uikeyboardtype__deprecated end |
.uirectedge ⇒ Object (readonly)
Returns the value of attribute uirectedge.
333 334 335 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 333 def uirectedge @uirectedge end |
.uireturnkey ⇒ Object (readonly)
Returns the value of attribute uireturnkey.
267 268 269 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 267 def uireturnkey @uireturnkey end |
.uireturnkey__deprecated ⇒ Object (readonly)
Returns the value of attribute uireturnkey__deprecated.
268 269 270 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 268 def uireturnkey__deprecated @uireturnkey__deprecated end |
.uisegmentedstyle ⇒ Object (readonly)
Returns the value of attribute uisegmentedstyle.
294 295 296 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 294 def uisegmentedstyle @uisegmentedstyle end |
.uistatusbarstyle ⇒ Object (readonly)
Returns the value of attribute uistatusbarstyle.
281 282 283 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 281 def @uistatusbarstyle end |
.uitabbarsystemitem ⇒ Object (readonly)
Returns the value of attribute uitabbarsystemitem.
286 287 288 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 286 def @uitabbarsystemitem end |
.uitablecellaccessorytype ⇒ Object (readonly)
Returns the value of attribute uitablecellaccessorytype.
305 306 307 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 305 def uitablecellaccessorytype @uitablecellaccessorytype end |
.uitablecellaccessorytype__deprecated ⇒ Object (readonly)
Returns the value of attribute uitablecellaccessorytype__deprecated.
306 307 308 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 306 def uitablecellaccessorytype__deprecated @uitablecellaccessorytype__deprecated end |
.uitablecellselectionstyle ⇒ Object (readonly)
Returns the value of attribute uitablecellselectionstyle.
307 308 309 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 307 def uitablecellselectionstyle @uitablecellselectionstyle end |
.uitablecellseparatorstyle ⇒ Object (readonly)
Returns the value of attribute uitablecellseparatorstyle.
308 309 310 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 308 def uitablecellseparatorstyle @uitablecellseparatorstyle end |
.uitablecellseparatorstyle__deprecated ⇒ Object (readonly)
Returns the value of attribute uitablecellseparatorstyle__deprecated.
309 310 311 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 309 def uitablecellseparatorstyle__deprecated @uitablecellseparatorstyle__deprecated end |
.uitablecellstyle ⇒ Object (readonly)
Returns the value of attribute uitablecellstyle.
304 305 306 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 304 def uitablecellstyle @uitablecellstyle end |
.uitablerowanimation ⇒ Object (readonly)
Returns the value of attribute uitablerowanimation.
303 304 305 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 303 def uitablerowanimation @uitablerowanimation end |
.uitablestyle ⇒ Object (readonly)
Returns the value of attribute uitablestyle.
302 303 304 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 302 def uitablestyle @uitablestyle end |
.uitextalignment ⇒ Object (readonly)
Returns the value of attribute uitextalignment.
271 272 273 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 271 def uitextalignment @uitextalignment end |
Instance Method Details
#awesome_icon(options = {}) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/cocoa/sugarcube-awesome/awesome_exts.rb', line 3 def awesome_icon(={}) raise "the MotionAwesome gem is required to use sugarcube-awesome" unless defined? MotionAwesome text = MotionAwesome.hex_for_icon( MotionAwesome.xform_icon(self) ) if .key?(:size) font_size = [:size] font_size = font_size.uifontsize if font_size.respond_to?(:uifontsize) else font_size = UIFont.systemFontSize end awesome_attrs = {NSFontAttributeName => MotionAwesome.font(font_size)} if .key?(:color) awesome_attrs[NSForegroundColorAttributeName] = [:color].uicolor end NSAttributedString.alloc.initWithString(text, attributes: awesome_attrs ) end |
#catimingfunction ⇒ Object Also known as: catiming
233 234 235 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 233 def catimingfunction SugarCube.look_in(self, Symbol.catimingfunction, Symbol.catimingfunction__deprecated) end |
#cgcolor(alpha = nil) ⇒ Object
36 37 38 |
# File 'lib/ios/sugarcube-color/symbol.rb', line 36 def cgcolor(alpha=nil) uicolor(alpha).CGColor end |
#cglinecap ⇒ Object Also known as: cglinecapstyle
238 239 240 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 238 def cglinecap SugarCube.look_in(self, Symbol.cglinecap) end |
#cglinejoin ⇒ Object Also known as: cglinejoinstyle
243 244 245 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 243 def cglinejoin SugarCube.look_in(self, Symbol.cglinejoin) end |
#cvar ⇒ Object
12 13 14 |
# File 'lib/all/sugarcube-unholy/ivar.rb', line 12 def cvar self.to_s.cvar end |
#ivar ⇒ Object
4 5 6 |
# File 'lib/all/sugarcube-unholy/ivar.rb', line 4 def ivar self.to_s.ivar end |
#nsautoresizingmask ⇒ Object Also known as: nsautoresizemask
19 20 21 |
# File 'lib/osx/sugarcube-constants/symbol.rb', line 19 def nsautoresizingmask SugarCube.look_in(self, Symbol.nsautoresizingmask) end |
#nsbezelstyle ⇒ Object
43 44 45 |
# File 'lib/osx/sugarcube-constants/symbol.rb', line 43 def nsbezelstyle SugarCube.look_in(self, Symbol.nsbezelstyle) end |
#nsbuttontype ⇒ Object
39 40 41 |
# File 'lib/osx/sugarcube-constants/symbol.rb', line 39 def SugarCube.look_in(self, Symbol.) end |
#nscolor(alpha = nil) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/osx/sugarcube-color/symbol.rb', line 8 def nscolor(alpha=nil) if Symbol.css_colors_cache.has_key? self color = Symbol.css_colors_cache[self] elsif Symbol.nscolors.has_key? self # system colors color = NSColor.send(SugarCube.look_in(self, Symbol.nscolors)) else # css colors color = SugarCube.look_in(self, Symbol.css_colors).nscolor Symbol.css_colors_cache[self] = color end if alpha color = color.colorWithAlphaComponent(alpha.to_f) end color end |
#nsdatestyle ⇒ Object Also known as: nsdateformatterstyle
82 83 84 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 82 def nsdatestyle SugarCube.look_in(self, Symbol.nsdatestyle) end |
#nsfocusringtype ⇒ Object
47 48 49 |
# File 'lib/osx/sugarcube-constants/symbol.rb', line 47 def nsfocusringtype SugarCube.look_in(self, Symbol.nsfocusringtype) end |
#nsfont(size = nil) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/osx/sugarcube-ui/symbol.rb', line 17 def nsfont(size=nil) size ||= NSFont.systemFontSize # system fonts if Symbol.nsfont.has_key? self font = SugarCube.look_in(self, Symbol.nsfont) if size.is_a?(Symbol) size = size.nsfontsize end if font.is_a?(Symbol) return NSFont.send(font, size) else return font.nsfont(size) end else if size.is_a?(Symbol) size = size.nsfontsize end return NSFont.systemFontOfSize(size) end end |
#nsfontsize ⇒ Object
39 40 41 42 43 44 45 |
# File 'lib/osx/sugarcube-ui/symbol.rb', line 39 def nsfontsize size = SugarCube.look_in(self, Symbol.nsfontsize) if size.is_a?(Symbol) return NSFont.send(size) end return size.to_f end |
#nslinebreakmode ⇒ Object Also known as: nslinebreak
67 68 69 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 67 def nslinebreakmode SugarCube.look_in(self, Symbol.nslinebreakmode) end |
#nsnumberstyle ⇒ Object Also known as: nsnumberformatterstyle
87 88 89 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 87 def nsnumberstyle SugarCube.look_in(self, Symbol.nsnumberstyle, Symbol.nsnumberstyle__deprecated) end |
#nstextalignment ⇒ Object Also known as: nsalignment
57 58 59 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 57 def nstextalignment SugarCube.look_in(self, Symbol.nstextalignment) end |
#presentationstyle ⇒ Object
186 187 188 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 186 def presentationstyle SugarCube.look_in(self, Symbol.presentationstyle) end |
#setter ⇒ Object
8 9 10 |
# File 'lib/all/sugarcube-unholy/ivar.rb', line 8 def setter self.to_s.setter end |
#skcolor(alpha = nil) ⇒ Object
40 41 42 |
# File 'lib/ios/sugarcube-color/symbol.rb', line 40 def skcolor(alpha=nil) uicolor(alpha) end |
#transitionstyle ⇒ Object
190 191 192 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 190 def transitionstyle SugarCube.look_in(self, Symbol.transitionstyle) end |
#uiactionstyle ⇒ Object Also known as: uiactionsheetstyle
199 200 201 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 199 def uiactionstyle SugarCube.look_in(self, Symbol.uiactionstyle) end |
#uiactivityindicatorstyle ⇒ Object Also known as: uiactivityindicatorviewstyle
127 128 129 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 127 def SugarCube.look_in(self, Symbol., Symbol.) end |
#uialertactionstyle ⇒ Object
208 209 210 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 208 def uialertactionstyle SugarCube.look_in(self, Symbol.uialertactionstyle) end |
#uialertcontrollerstyle ⇒ Object
204 205 206 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 204 def uialertcontrollerstyle SugarCube.look_in(self, Symbol.uialertcontrollerstyle) end |
#uialertstyle ⇒ Object Also known as: uialertviewstyle
194 195 196 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 194 def uialertstyle SugarCube.look_in(self, Symbol.uialertstyle) end |
#uianimationcurve ⇒ Object Also known as: uiviewanimationcurve
146 147 148 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 146 def uianimationcurve SugarCube.look_in(self, Symbol.uianimationcurve) end |
#uianimationoption ⇒ Object Also known as: uiviewanimationoption
151 152 153 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 151 def uianimationoption SugarCube.look_in(self, Symbol.uianimationoption) end |
#uiautoresizemask ⇒ Object Also known as: uiviewautoresizing, uiautoresizingmask, uiautoresize
36 37 38 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 36 def uiautoresizemask SugarCube.look_in(self, Symbol.uiautoresizemask, Symbol.uiautoresizemask__deprecated) end |
#uibarbuttonitem ⇒ Object
100 101 102 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 100 def SugarCube.look_in(self, Symbol., Symbol.) end |
#uibarbuttonstyle ⇒ Object
104 105 106 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 104 def SugarCube.look_in(self, Symbol.) end |
#uibarmetrics ⇒ Object
96 97 98 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 96 def SugarCube.look_in(self, Symbol.) end |
#uibaselineadjustment ⇒ Object Also known as: uibaseline
72 73 74 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 72 def uibaselineadjustment SugarCube.look_in(self, Symbol.uibaselineadjustment, Symbol.uibaselineadjustment__deprecated) end |
#uibordertype ⇒ Object Also known as: uiborderstyle
77 78 79 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 77 def uibordertype SugarCube.look_in(self, Symbol.uibordertype) end |
#uibuttontype ⇒ Object
113 114 115 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 113 def SugarCube.look_in(self, Symbol.) end |
#uicolor(alpha = nil) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/ios/sugarcube-color/symbol.rb', line 9 def uicolor(alpha=nil) if Symbol.uicolors.has_key?(self) || Symbol.uicolors__deprecated.has_key?(self) # iOS colors color = UIColor.send(SugarCube.look_in(self, Symbol.uicolors, Symbol.uicolors__deprecated)) if alpha color = color.colorWithAlphaComponent(alpha.to_f) end elsif Symbol.css_colors_cache.has_key? self color = Symbol.css_colors_cache[self] elsif Symbol.uicolors.has_key? self # system colors color = UIColor.send(SugarCube.look_in(self, Symbol.uicolors, Symbol.uicolors__deprecated)) Symbol.css_colors_cache[self] = color else # css colors color = SugarCube.look_in(self, Symbol.css_colors).uicolor Symbol.css_colors_cache[self] = color end if alpha color = color.colorWithAlphaComponent(alpha.to_f) end color end |
#uicontentmode ⇒ Object Also known as: uiviewcontentmode
141 142 143 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 141 def uicontentmode SugarCube.look_in(self, Symbol.uicontentmode, Symbol.uicontentmode__deprecated) end |
#uicontrolevent ⇒ Object
123 124 125 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 123 def uicontrolevent SugarCube.look_in(self, Symbol.uicontrolevent, Symbol.uicontrolevent__deprecated) end |
#uicontrolstate ⇒ Object Also known as: uistate
117 118 119 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 117 def uicontrolstate SugarCube.look_in(self, Symbol.uicontrolstate) end |
#uidatepickermode ⇒ Object
137 138 139 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 137 def uidatepickermode SugarCube.look_in(self, Symbol.uidatepickermode, Symbol.uidatepickermode__deprecated) end |
#uidevice ⇒ Object
19 20 21 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 19 def uidevice SugarCube.look_in(self, Symbol.uidevice) end |
#uideviceorientation ⇒ Object
23 24 25 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 23 def uideviceorientation SugarCube.look_in(self, Symbol.uideviceorientation) end |
#uifont(size = nil) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/ios/sugarcube-ui/symbol.rb', line 17 def uifont(size=nil) size ||= UIFont.systemFontSize # system fonts if Symbol.uifont.has_key? self font = SugarCube.look_in(self, Symbol.uifont) if size.is_a?(Symbol) size = size.uifontsize end if font.is_a?(Symbol) return UIFont.send(font, size) else return font.uifont(size) end else if size.is_a?(Symbol) size = size.uifontsize end return UIFont.systemFontOfSize(size) end end |
#uifontsize ⇒ Object
39 40 41 42 43 44 45 |
# File 'lib/ios/sugarcube-ui/symbol.rb', line 39 def uifontsize size = SugarCube.look_in(self, Symbol.uifontsize) if size.is_a?(Symbol) return UIFont.send(size) end return size.to_f end |
#uigesturerecognizerstate ⇒ Object Also known as: uigesturestate
248 249 250 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 248 def uigesturerecognizerstate SugarCube.look_in(self, Symbol.uigesturerecognizerstate) end |
#uiimagecamera ⇒ Object Also known as: uiimagecameradevice, uiimagedevice
222 223 224 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 222 def uiimagecamera SugarCube.look_in(self, Symbol.uiimagecamera) end |
#uiimagecapture ⇒ Object Also known as: uiimagecapturemode
217 218 219 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 217 def uiimagecapture SugarCube.look_in(self, Symbol.uiimagecapture) end |
#uiimagequality ⇒ Object Also known as: uiimagequalitytype
228 229 230 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 228 def uiimagequality SugarCube.look_in(self, Symbol.uiimagequality) end |
#uiimagesource ⇒ Object Also known as: uiimagesourcetype
212 213 214 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 212 def uiimagesource SugarCube.look_in(self, Symbol.uiimagesource) end |
#uiinterfacemask ⇒ Object
32 33 34 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 32 def uiinterfacemask SugarCube.look_in(self, Symbol.uiinterfacemask) end |
#uiinterfaceorientation ⇒ Object Also known as: uiorientation
27 28 29 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 27 def uiinterfaceorientation SugarCube.look_in(self, Symbol.uiinterfaceorientation) end |
#uikeyboardtype ⇒ Object
47 48 49 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 47 def uikeyboardtype SugarCube.look_in(self, Symbol.uikeyboardtype, Symbol.uikeyboardtype__deprecated) end |
#uilinebreakmode ⇒ Object
62 63 64 65 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 62 def uilinebreakmode SugarCube.log('uilinebreakmode is deprecated. Use nslinebreakmode instead.') SugarCube.look_in(self, Symbol.nslinebreakmode) end |
#uirectedge ⇒ Object
252 253 254 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 252 def uirectedge SugarCube.look_in(self, Symbol.uirectedge) end |
#uireturnkey ⇒ Object
43 44 45 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 43 def uireturnkey SugarCube.look_in(self, Symbol.uireturnkey, Symbol.uireturnkey__deprecated) end |
#uisegmentedstyle ⇒ Object Also known as: uisegmentedcontrolstyle
132 133 134 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 132 def uisegmentedstyle SugarCube.look_in(self, Symbol.uisegmentedstyle) end |
#uistatusbarstyle ⇒ Object
92 93 94 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 92 def SugarCube.look_in(self, Symbol.) end |
#uitabbarsystemitem ⇒ Object Also known as: uitabbaritem
108 109 110 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 108 def SugarCube.look_in(self, Symbol.) end |
#uitablecellaccessorytype ⇒ Object Also known as: uitablecellaccessory, uitableviewcellaccessorytype
171 172 173 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 171 def uitablecellaccessorytype SugarCube.look_in(self, Symbol.uitablecellaccessorytype, Symbol.uitablecellaccessorytype__deprecated) end |
#uitablecellselectionstyle ⇒ Object Also known as: uitableviewcellselectionstyle
177 178 179 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 177 def uitablecellselectionstyle SugarCube.look_in(self, Symbol.uitablecellselectionstyle) end |
#uitablecellseparatorstyle ⇒ Object
182 183 184 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 182 def uitablecellseparatorstyle SugarCube.look_in(self, Symbol.uitablecellseparatorstyle, Symbol.uitablecellseparatorstyle__deprecated) end |
#uitablecellstyle ⇒ Object Also known as: uitableviewcellstyle
166 167 168 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 166 def uitablecellstyle SugarCube.look_in(self, Symbol.uitablecellstyle) end |
#uitablerowanimation ⇒ Object Also known as: uitableviewrowanimation
161 162 163 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 161 def uitablerowanimation SugarCube.look_in(self, Symbol.uitablerowanimation) end |
#uitablestyle ⇒ Object Also known as: uitableviewstyle
156 157 158 |
# File 'lib/ios/sugarcube-constants/symbol.rb', line 156 def uitablestyle SugarCube.look_in(self, Symbol.uitablestyle) end |