Class: Symbol

Inherits:
Object show all
Defined in:
lib/sugarcube-unholy/ivar.rb,
lib/sugarcube-color/symbol.rb,
lib/sugarcube-uikit/symbol.rb,
lib/sugarcube-constants/symbol.rb,
lib/sugarcube-awesome/awesome_exts.rb

Overview

Adds some UI classes to the Symbol class. These methods are prefixed with ui to make their intent clear, and to provide a little bit of "namespacing"

# alignment
:left.uialignment => UITextAlignmentLeft

# uicolors
:black.uicolor => UIColor.blackColor

:darkturquoise.uicolor => UIColor.blackColor

You can extend the defaults by adding entries:

Symbol.css_colors[:my_color] = 0x123456

:my_color.uicolor => UIColor

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Class Attribute Details

.catimingfunctionObject (readonly)

Returns the value of attribute catimingfunction.



274
275
276
# File 'lib/sugarcube-constants/symbol.rb', line 274

def catimingfunction
  @catimingfunction
end

.catimingfunction__deprecatedObject (readonly)

Returns the value of attribute catimingfunction__deprecated.



275
276
277
# File 'lib/sugarcube-constants/symbol.rb', line 275

def catimingfunction__deprecated
  @catimingfunction__deprecated
end

.cglinecapObject (readonly)

Returns the value of attribute cglinecap.



277
278
279
# File 'lib/sugarcube-constants/symbol.rb', line 277

def cglinecap
  @cglinecap
end

.cglinejoinObject (readonly)

Returns the value of attribute cglinejoin.



278
279
280
# File 'lib/sugarcube-constants/symbol.rb', line 278

def cglinejoin
  @cglinejoin
end

.css_colorsObject (readonly)

Returns the value of attribute css_colors.



5
6
7
# File 'lib/sugarcube-color/symbol.rb', line 5

def css_colors
  @css_colors
end

.css_colors_cacheObject (readonly)

Returns the value of attribute css_colors_cache.



6
7
8
# File 'lib/sugarcube-color/symbol.rb', line 6

def css_colors_cache
  @css_colors_cache
end

.nsdatestyleObject (readonly)

Returns the value of attribute nsdatestyle.



234
235
236
# File 'lib/sugarcube-constants/symbol.rb', line 234

def nsdatestyle
  @nsdatestyle
end

.nsnumberstyleObject (readonly)

Returns the value of attribute nsnumberstyle.



235
236
237
# File 'lib/sugarcube-constants/symbol.rb', line 235

def nsnumberstyle
  @nsnumberstyle
end

.nsnumberstyle__deprecatedObject (readonly)

Returns the value of attribute nsnumberstyle__deprecated.



236
237
238
# File 'lib/sugarcube-constants/symbol.rb', line 236

def nsnumberstyle__deprecated
  @nsnumberstyle__deprecated
end

.uiactionstyleObject (readonly)

Returns the value of attribute uiactionstyle.



267
268
269
# File 'lib/sugarcube-constants/symbol.rb', line 267

def uiactionstyle
  @uiactionstyle
end

.uiactivityindicatorstyleObject (readonly)

Returns the value of attribute uiactivityindicatorstyle.



248
249
250
# File 'lib/sugarcube-constants/symbol.rb', line 248

def uiactivityindicatorstyle
  @uiactivityindicatorstyle
end

.uiactivityindicatorstyle__deprecatedObject (readonly)

Returns the value of attribute uiactivityindicatorstyle__deprecated.



249
250
251
# File 'lib/sugarcube-constants/symbol.rb', line 249

def uiactivityindicatorstyle__deprecated
  @uiactivityindicatorstyle__deprecated
end

.uialertstyleObject (readonly)

Returns the value of attribute uialertstyle.



266
267
268
# File 'lib/sugarcube-constants/symbol.rb', line 266

def uialertstyle
  @uialertstyle
end

.uianimationcurveObject (readonly)

Returns the value of attribute uianimationcurve.



255
256
257
# File 'lib/sugarcube-constants/symbol.rb', line 255

def uianimationcurve
  @uianimationcurve
end

.uiautoresizemaskObject (readonly)

Returns the value of attribute uiautoresizemask.



222
223
224
# File 'lib/sugarcube-constants/symbol.rb', line 222

def uiautoresizemask
  @uiautoresizemask
end

.uiautoresizemask__deprecatedObject (readonly)

Returns the value of attribute uiautoresizemask__deprecated.



223
224
225
# File 'lib/sugarcube-constants/symbol.rb', line 223

def uiautoresizemask__deprecated
  @uiautoresizemask__deprecated
end

.uibarbuttonitemObject (readonly)

Returns the value of attribute uibarbuttonitem.



240
241
242
# File 'lib/sugarcube-constants/symbol.rb', line 240

def uibarbuttonitem
  @uibarbuttonitem
end

.uibarbuttonitem__deprecatedObject (readonly)

Returns the value of attribute uibarbuttonitem__deprecated.



241
242
243
# File 'lib/sugarcube-constants/symbol.rb', line 241

def uibarbuttonitem__deprecated
  @uibarbuttonitem__deprecated
end

.uibarbuttonstyleObject (readonly)

Returns the value of attribute uibarbuttonstyle.



242
243
244
# File 'lib/sugarcube-constants/symbol.rb', line 242

def uibarbuttonstyle
  @uibarbuttonstyle
end

.uibarmetricsObject (readonly)

Returns the value of attribute uibarmetrics.



239
240
241
# File 'lib/sugarcube-constants/symbol.rb', line 239

def uibarmetrics
  @uibarmetrics
end

.uibaselineadjustmentObject (readonly)

Returns the value of attribute uibaselineadjustment.



232
233
234
# File 'lib/sugarcube-constants/symbol.rb', line 232

def uibaselineadjustment
  @uibaselineadjustment
end

.uibordertypeObject (readonly)

Returns the value of attribute uibordertype.



233
234
235
# File 'lib/sugarcube-constants/symbol.rb', line 233

def uibordertype
  @uibordertype
end

.uibuttontypeObject (readonly)

Returns the value of attribute uibuttontype.



244
245
246
# File 'lib/sugarcube-constants/symbol.rb', line 244

def uibuttontype
  @uibuttontype
end

.uicolorsObject (readonly)

Returns the value of attribute uicolors.



3
4
5
# File 'lib/sugarcube-color/symbol.rb', line 3

def uicolors
  @uicolors
end

.uicolors__deprecatedObject (readonly)

Returns the value of attribute uicolors__deprecated.



4
5
6
# File 'lib/sugarcube-color/symbol.rb', line 4

def uicolors__deprecated
  @uicolors__deprecated
end

.uicontentmodeObject (readonly)

Returns the value of attribute uicontentmode.



253
254
255
# File 'lib/sugarcube-constants/symbol.rb', line 253

def uicontentmode
  @uicontentmode
end

.uicontentmode__deprecatedObject (readonly)

Returns the value of attribute uicontentmode__deprecated.



254
255
256
# File 'lib/sugarcube-constants/symbol.rb', line 254

def uicontentmode__deprecated
  @uicontentmode__deprecated
end

.uicontroleventObject (readonly)

Returns the value of attribute uicontrolevent.



246
247
248
# File 'lib/sugarcube-constants/symbol.rb', line 246

def uicontrolevent
  @uicontrolevent
end

.uicontrolevent__deprecatedObject (readonly)

Returns the value of attribute uicontrolevent__deprecated.



247
248
249
# File 'lib/sugarcube-constants/symbol.rb', line 247

def uicontrolevent__deprecated
  @uicontrolevent__deprecated
end

.uicontrolstateObject (readonly)

Returns the value of attribute uicontrolstate.



245
246
247
# File 'lib/sugarcube-constants/symbol.rb', line 245

def uicontrolstate
  @uicontrolstate
end

.uidatepickermodeObject (readonly)

Returns the value of attribute uidatepickermode.



251
252
253
# File 'lib/sugarcube-constants/symbol.rb', line 251

def uidatepickermode
  @uidatepickermode
end

.uidatepickermode__deprecatedObject (readonly)

Returns the value of attribute uidatepickermode__deprecated.



252
253
254
# File 'lib/sugarcube-constants/symbol.rb', line 252

def uidatepickermode__deprecated
  @uidatepickermode__deprecated
end

.uideviceObject (readonly)

Returns the value of attribute uidevice.



218
219
220
# File 'lib/sugarcube-constants/symbol.rb', line 218

def uidevice
  @uidevice
end

.uideviceorientationObject (readonly)

Returns the value of attribute uideviceorientation.



219
220
221
# File 'lib/sugarcube-constants/symbol.rb', line 219

def uideviceorientation
  @uideviceorientation
end

.uifontObject (readonly)

Returns the value of attribute uifont.



48
49
50
# File 'lib/sugarcube-uikit/symbol.rb', line 48

def uifont
  @uifont
end

.uifontsizeObject (readonly)

Returns the value of attribute uifontsize.



49
50
51
# File 'lib/sugarcube-uikit/symbol.rb', line 49

def uifontsize
  @uifontsize
end

.uigesturerecognizerstateObject (readonly)

Returns the value of attribute uigesturerecognizerstate.



280
281
282
# File 'lib/sugarcube-constants/symbol.rb', line 280

def uigesturerecognizerstate
  @uigesturerecognizerstate
end

.uiimagecameraObject (readonly)

Returns the value of attribute uiimagecamera.



271
272
273
# File 'lib/sugarcube-constants/symbol.rb', line 271

def uiimagecamera
  @uiimagecamera
end

.uiimagecaptureObject (readonly)

Returns the value of attribute uiimagecapture.



270
271
272
# File 'lib/sugarcube-constants/symbol.rb', line 270

def uiimagecapture
  @uiimagecapture
end

.uiimagequalityObject (readonly)

Returns the value of attribute uiimagequality.



272
273
274
# File 'lib/sugarcube-constants/symbol.rb', line 272

def uiimagequality
  @uiimagequality
end

.uiimagesourceObject (readonly)

Returns the value of attribute uiimagesource.



269
270
271
# File 'lib/sugarcube-constants/symbol.rb', line 269

def uiimagesource
  @uiimagesource
end

.uiinterfacemaskObject (readonly)

Returns the value of attribute uiinterfacemask.



221
222
223
# File 'lib/sugarcube-constants/symbol.rb', line 221

def uiinterfacemask
  @uiinterfacemask
end

.uiinterfaceorientationObject (readonly)

Returns the value of attribute uiinterfaceorientation.



220
221
222
# File 'lib/sugarcube-constants/symbol.rb', line 220

def uiinterfaceorientation
  @uiinterfaceorientation
end

.uikeyboardtypeObject (readonly)

Returns the value of attribute uikeyboardtype.



227
228
229
# File 'lib/sugarcube-constants/symbol.rb', line 227

def uikeyboardtype
  @uikeyboardtype
end

.uikeyboardtype__deprecatedObject (readonly)

Returns the value of attribute uikeyboardtype__deprecated.



228
229
230
# File 'lib/sugarcube-constants/symbol.rb', line 228

def uikeyboardtype__deprecated
  @uikeyboardtype__deprecated
end

.uilinebreakmodeObject (readonly)

Returns the value of attribute uilinebreakmode.



230
231
232
# File 'lib/sugarcube-constants/symbol.rb', line 230

def uilinebreakmode
  @uilinebreakmode
end

.uilinebreakmode__deprecatedObject (readonly)

Returns the value of attribute uilinebreakmode__deprecated.



231
232
233
# File 'lib/sugarcube-constants/symbol.rb', line 231

def uilinebreakmode__deprecated
  @uilinebreakmode__deprecated
end

.uireturnkeyObject (readonly)

Returns the value of attribute uireturnkey.



225
226
227
# File 'lib/sugarcube-constants/symbol.rb', line 225

def uireturnkey
  @uireturnkey
end

.uireturnkey__deprecatedObject (readonly)

Returns the value of attribute uireturnkey__deprecated.



226
227
228
# File 'lib/sugarcube-constants/symbol.rb', line 226

def uireturnkey__deprecated
  @uireturnkey__deprecated
end

.uisegmentedstyleObject (readonly)

Returns the value of attribute uisegmentedstyle.



250
251
252
# File 'lib/sugarcube-constants/symbol.rb', line 250

def uisegmentedstyle
  @uisegmentedstyle
end

.uistatusbarstyleObject (readonly)

Returns the value of attribute uistatusbarstyle.



238
239
240
# File 'lib/sugarcube-constants/symbol.rb', line 238

def uistatusbarstyle
  @uistatusbarstyle
end

.uitablecellaccessorytypeObject (readonly)

Returns the value of attribute uitablecellaccessorytype.



260
261
262
# File 'lib/sugarcube-constants/symbol.rb', line 260

def uitablecellaccessorytype
  @uitablecellaccessorytype
end

.uitablecellaccessorytype__deprecatedObject (readonly)

Returns the value of attribute uitablecellaccessorytype__deprecated.



261
262
263
# File 'lib/sugarcube-constants/symbol.rb', line 261

def uitablecellaccessorytype__deprecated
  @uitablecellaccessorytype__deprecated
end

.uitablecellselectionstyleObject (readonly)

Returns the value of attribute uitablecellselectionstyle.



262
263
264
# File 'lib/sugarcube-constants/symbol.rb', line 262

def uitablecellselectionstyle
  @uitablecellselectionstyle
end

.uitablecellseparatorstyleObject (readonly)

Returns the value of attribute uitablecellseparatorstyle.



263
264
265
# File 'lib/sugarcube-constants/symbol.rb', line 263

def uitablecellseparatorstyle
  @uitablecellseparatorstyle
end

.uitablecellseparatorstyle__deprecatedObject (readonly)

Returns the value of attribute uitablecellseparatorstyle__deprecated.



264
265
266
# File 'lib/sugarcube-constants/symbol.rb', line 264

def uitablecellseparatorstyle__deprecated
  @uitablecellseparatorstyle__deprecated
end

.uitablecellstyleObject (readonly)

Returns the value of attribute uitablecellstyle.



259
260
261
# File 'lib/sugarcube-constants/symbol.rb', line 259

def uitablecellstyle
  @uitablecellstyle
end

.uitablerowanimationObject (readonly)

Returns the value of attribute uitablerowanimation.



258
259
260
# File 'lib/sugarcube-constants/symbol.rb', line 258

def uitablerowanimation
  @uitablerowanimation
end

.uitablestyleObject (readonly)

Returns the value of attribute uitablestyle.



257
258
259
# File 'lib/sugarcube-constants/symbol.rb', line 257

def uitablestyle
  @uitablestyle
end

.uitextalignmentObject (readonly)

Returns the value of attribute uitextalignment.



229
230
231
# File 'lib/sugarcube-constants/symbol.rb', line 229

def uitextalignment
  @uitextalignment
end

Class Method Details

.action_sheet_stylesObject



174
175
176
177
# File 'lib/sugarcube-legacy/symbol.rb', line 174

def action_sheet_styles
  SugarCube::Legacy.log("Symbol.action_sheet_styles[] is deprecated. Use Symbol.uiactionstyle[] instead.")
  uiactionstyle
end

.activityindicator_stylesObject



114
115
116
117
# File 'lib/sugarcube-legacy/symbol.rb', line 114

def activityindicator_styles
  SugarCube::Legacy.log("Symbol.activityindicator_styles[] is deprecated. Use Symbol.uiactivityindicatorstyle[] instead.")
  uiactivityindicatorstyle
end

.alert_view_stylesObject



169
170
171
172
# File 'lib/sugarcube-legacy/symbol.rb', line 169

def alert_view_styles
  SugarCube::Legacy.log("Symbol.alert_view_styles[] is deprecated. Use Symbol.uialertstyle[] instead.")
  uialertstyle
end

.autoresizemasksObject



24
25
26
27
# File 'lib/sugarcube-legacy/symbol.rb', line 24

def autoresizemasks
  SugarCube::Legacy.log("Symbol.autoresizemasks[] is deprecated. Use Symbol.uiautoresizemask[] instead.")
  uiautoresizemask
end

.barbuttonitemsObject



89
90
91
92
# File 'lib/sugarcube-legacy/symbol.rb', line 89

def barbuttonitems
  SugarCube::Legacy.log("Symbol.barbuttonitems[] is deprecated. Use Symbol.uibarbuttonitem[] instead.")
  uibarbuttonitem
end

.barbuttonstylesObject



94
95
96
97
# File 'lib/sugarcube-legacy/symbol.rb', line 94

def barbuttonstyles
  SugarCube::Legacy.log("Symbol.barbuttonstyles[] is deprecated. Use Symbol.uibarbuttonstyle[] instead.")
  uibarbuttonstyle
end

.barmetricsObject



84
85
86
87
# File 'lib/sugarcube-legacy/symbol.rb', line 84

def barmetrics
  SugarCube::Legacy.log("Symbol.barmetrics[] is deprecated. Use Symbol.uibarmetrics[] instead.")
  uibarmetrics
end

.baselineadjustmentsObject



49
50
51
52
# File 'lib/sugarcube-legacy/symbol.rb', line 49

def baselineadjustments
  SugarCube::Legacy.log("Symbol.baselineadjustments[] is deprecated. Use Symbol.uibaselineadjustment[] instead.")
  uibaselineadjustment
end

.border_typesObject



54
55
56
57
# File 'lib/sugarcube-legacy/symbol.rb', line 54

def border_types
  SugarCube::Legacy.log("Symbol.border_types[] is deprecated. Use Symbol.uibordertype[] instead.")
  uibordertype
end

.buttontypesObject



99
100
101
102
# File 'lib/sugarcube-legacy/symbol.rb', line 99

def buttontypes
  SugarCube::Legacy.log("Symbol.buttontypes[] is deprecated. Use Symbol.uibuttontype[] instead.")
  uibuttontype
end

.ca_timingfunctionsObject



199
200
201
202
# File 'lib/sugarcube-legacy/symbol.rb', line 199

def ca_timingfunctions
  SugarCube::Legacy.log("Symbol.ca_timingfunctions[] is deprecated. Use Symbol.catimingfunction[] instead.")
  catimingfunction
end

.cg_linecapstylesObject



204
205
206
207
# File 'lib/sugarcube-legacy/symbol.rb', line 204

def cg_linecapstyles
  SugarCube::Legacy.log("Symbol.cg_linecapstyles[] is deprecated. Use Symbol.cglinecap[] instead.")
  cglinecap
end

.cg_linejoinstylesObject



209
210
211
212
# File 'lib/sugarcube-legacy/symbol.rb', line 209

def cg_linejoinstyles
  SugarCube::Legacy.log("Symbol.cg_linejoinstyles[] is deprecated. Use Symbol.cglinejoin[] instead.")
  cglinejoin
end

.control_eventsObject



109
110
111
112
# File 'lib/sugarcube-legacy/symbol.rb', line 109

def control_events
  SugarCube::Legacy.log("Symbol.control_events[] is deprecated. Use Symbol.uicontrolevent[] instead.")
  uicontrolevent
end

.control_statesObject



104
105
106
107
# File 'lib/sugarcube-legacy/symbol.rb', line 104

def control_states
  SugarCube::Legacy.log("Symbol.control_states[] is deprecated. Use Symbol.uicontrolstate[] instead.")
  uicontrolstate
end

.date_stylesObject



59
60
61
62
# File 'lib/sugarcube-legacy/symbol.rb', line 59

def date_styles
  SugarCube::Legacy.log("Symbol.date_styles[] is deprecated. Use Symbol.nsdatestyle[] instead.")
  nsdatestyle
end

.datepicker_modesObject



124
125
126
127
# File 'lib/sugarcube-legacy/symbol.rb', line 124

def datepicker_modes
  SugarCube::Legacy.log("Symbol.datepicker_modes[] is deprecated. Use Symbol.uidatepickermode[] instead.")
  uidatepickermode
end

.device_orientationsObject



9
10
11
12
# File 'lib/sugarcube-legacy/symbol.rb', line 9

def device_orientations
  SugarCube::Legacy.log("Symbol.device_orientations[] is deprecated. Use Symbol.uideviceorientation[] instead.")
  uideviceorientation
end

.devicesObject



4
5
6
7
# File 'lib/sugarcube-legacy/symbol.rb', line 4

def devices
  SugarCube::Legacy.log("Symbol.devices[] is deprecated. Use Symbol.uidevice[] instead.")
  uidevice
end

.font_sizesObject



74
75
76
77
# File 'lib/sugarcube-legacy/symbol.rb', line 74

def font_sizes
  SugarCube::Legacy.log("Symbol.font_sizes[] is deprecated. Use Symbol.uifontsize[] instead.")
  uifontsize
end

.gesture_recognizer_statesObject



214
215
216
217
# File 'lib/sugarcube-legacy/symbol.rb', line 214

def gesture_recognizer_states
  SugarCube::Legacy.log("Symbol.gesture_recognizer_states[] is deprecated. Use Symbol.uigesturerecognizerstate[] instead.")
  uigesturerecognizerstate
end

.image_cameradeviceObject



189
190
191
192
# File 'lib/sugarcube-legacy/symbol.rb', line 189

def image_cameradevice
  SugarCube::Legacy.log("Symbol.image_cameradevice[] is deprecated. Use Symbol.uiimagecamera[] instead.")
  uiimagecamera
end

.image_capturemodeObject



184
185
186
187
# File 'lib/sugarcube-legacy/symbol.rb', line 184

def image_capturemode
  SugarCube::Legacy.log("Symbol.image_capturemode[] is deprecated. Use Symbol.uiimagecapture[] instead.")
  uiimagecapture
end

.image_qualityObject



194
195
196
197
# File 'lib/sugarcube-legacy/symbol.rb', line 194

def image_quality
  SugarCube::Legacy.log("Symbol.image_quality[] is deprecated. Use Symbol.uiimagequality[] instead.")
  uiimagequality
end

.image_sourcetypesObject



179
180
181
182
# File 'lib/sugarcube-legacy/symbol.rb', line 179

def image_sourcetypes
  SugarCube::Legacy.log("Symbol.image_sourcetypes[] is deprecated. Use Symbol.uiimagesource[] instead.")
  uiimagesource
end

.interface_masksObject



19
20
21
22
# File 'lib/sugarcube-legacy/symbol.rb', line 19

def interface_masks
  SugarCube::Legacy.log("Symbol.interface_masks[] is deprecated. Use Symbol.uiinterfacemask[] instead.")
  uiinterfacemask
end

.interface_orientationsObject



14
15
16
17
# File 'lib/sugarcube-legacy/symbol.rb', line 14

def interface_orientations
  SugarCube::Legacy.log("Symbol.interface_orientations[] is deprecated. Use Symbol.uiinterfaceorientation[] instead.")
  uiinterfaceorientation
end

.keyboardtypesObject



34
35
36
37
# File 'lib/sugarcube-legacy/symbol.rb', line 34

def keyboardtypes
  SugarCube::Legacy.log("Symbol.keyboardtypes[] is deprecated. Use Symbol.uikeyboardtype[] instead.")
  uikeyboardtype
end

.linebreakmodesObject



44
45
46
47
# File 'lib/sugarcube-legacy/symbol.rb', line 44

def linebreakmodes
  SugarCube::Legacy.log("Symbol.linebreakmodes[] is deprecated. Use Symbol.uilinebreakmode[] instead.")
  uilinebreakmode
end

.number_stylesObject



64
65
66
67
# File 'lib/sugarcube-legacy/symbol.rb', line 64

def number_styles
  SugarCube::Legacy.log("Symbol.number_styles[] is deprecated. Use Symbol.nsnumberstyle[] instead.")
  nsnumberstyle
end

.returnkeysObject



29
30
31
32
# File 'lib/sugarcube-legacy/symbol.rb', line 29

def returnkeys
  SugarCube::Legacy.log("Symbol.returnkeys[] is deprecated. Use Symbol.uireturnkey[] instead.")
  uireturnkey
end

.segmented_stylesObject



119
120
121
122
# File 'lib/sugarcube-legacy/symbol.rb', line 119

def segmented_styles
  SugarCube::Legacy.log("Symbol.segmented_styles[] is deprecated. Use Symbol.uisegmentedstyle[] instead.")
  uisegmentedstyle
end

.statusbar_stylesObject



79
80
81
82
# File 'lib/sugarcube-legacy/symbol.rb', line 79

def statusbar_styles
  SugarCube::Legacy.log("Symbol.statusbar_styles[] is deprecated. Use Symbol.uistatusbarstyle[] instead.")
  uistatusbarstyle
end

.system_fontsObject



69
70
71
72
# File 'lib/sugarcube-legacy/symbol.rb', line 69

def system_fonts
  SugarCube::Legacy.log("Symbol.system_fonts[] is deprecated. Use Symbol.uifont[] instead.")
  uifont
end

.tableview_cellaccessorytypeObject



154
155
156
157
# File 'lib/sugarcube-legacy/symbol.rb', line 154

def tableview_cellaccessorytype
  SugarCube::Legacy.log("Symbol.tableview_cellaccessorytype[] is deprecated. Use Symbol.uitablecellaccessorytype[] instead.")
  uitablecellaccessorytype
end

.tableview_cellselectionstyleObject



159
160
161
162
# File 'lib/sugarcube-legacy/symbol.rb', line 159

def tableview_cellselectionstyle
  SugarCube::Legacy.log("Symbol.tableview_cellselectionstyle[] is deprecated. Use Symbol.uitablecellselectionstyle[] instead.")
  uitablecellselectionstyle
end

.tableview_cellseparatorstyleObject



164
165
166
167
# File 'lib/sugarcube-legacy/symbol.rb', line 164

def tableview_cellseparatorstyle
  SugarCube::Legacy.log("Symbol.tableview_cellseparatorstyle[] is deprecated. Use Symbol.uitablecellseparatorstyle[] instead.")
  uitablecellseparatorstyle
end

.tableview_cellstylesObject



149
150
151
152
# File 'lib/sugarcube-legacy/symbol.rb', line 149

def tableview_cellstyles
  SugarCube::Legacy.log("Symbol.tableview_cellstyles[] is deprecated. Use Symbol.uitablecellstyle[] instead.")
  uitablecellstyle
end

.tableview_rowanimationObject



144
145
146
147
# File 'lib/sugarcube-legacy/symbol.rb', line 144

def tableview_rowanimation
  SugarCube::Legacy.log("Symbol.tableview_rowanimation[] is deprecated. Use Symbol.uitablerowanimation[] instead.")
  uitablerowanimation
end

.tableview_stylesObject



139
140
141
142
# File 'lib/sugarcube-legacy/symbol.rb', line 139

def tableview_styles
  SugarCube::Legacy.log("Symbol.tableview_styles[] is deprecated. Use Symbol.uitablestyle[] instead.")
  uitablestyle
end

.textalignmentsObject



39
40
41
42
# File 'lib/sugarcube-legacy/symbol.rb', line 39

def textalignments
  SugarCube::Legacy.log("Symbol.textalignments[] is deprecated. Use Symbol.uitextalignment[] instead.")
  uitextalignment
end

.uiview_animation_curveObject



134
135
136
137
# File 'lib/sugarcube-legacy/symbol.rb', line 134

def uiview_animation_curve
  SugarCube::Legacy.log("Symbol.uiview_animation_curve[] is deprecated. Use Symbol.uianimationcurve[] instead.")
  uianimationcurve
end

.uiview_content_modesObject



129
130
131
132
# File 'lib/sugarcube-legacy/symbol.rb', line 129

def uiview_content_modes
  SugarCube::Legacy.log("Symbol.uiview_content_modes[] is deprecated. Use Symbol.uicontentmode[] instead.")
  uicontentmode
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/sugarcube-awesome/awesome_exts.rb', line 3

def awesome_icon(options={})
  raise "the MotionAwesome gem is required to use sugarcube-awesome" unless defined? MotionAwesome
  text = MotionAwesome.hex_for_icon( MotionAwesome.xform_icon(self) )

  if options.key?(:size)
    font_size = options[: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 options.key?(:color)
    awesome_attrs[NSForegroundColorAttributeName] = options[:color].uicolor
  end

  NSAttributedString.alloc.initWithString(text, attributes: awesome_attrs )
end

#catimingfunctionObject Also known as: catiming



197
198
199
# File 'lib/sugarcube-constants/symbol.rb', line 197

def catimingfunction
  SugarCube.look_in(self, Symbol.catimingfunction, Symbol.catimingfunction__deprecated)
end

#cglinecapObject Also known as: cglinecapstyle



202
203
204
# File 'lib/sugarcube-constants/symbol.rb', line 202

def cglinecap
  SugarCube.look_in(self, Symbol.cglinecap)
end

#cglinejoinObject Also known as: cglinejoinstyle



207
208
209
# File 'lib/sugarcube-constants/symbol.rb', line 207

def cglinejoin
  SugarCube.look_in(self, Symbol.cglinejoin)
end

#cvarObject



12
13
14
# File 'lib/sugarcube-unholy/ivar.rb', line 12

def cvar
  self.to_s.cvar
end

#ivarObject



4
5
6
# File 'lib/sugarcube-unholy/ivar.rb', line 4

def ivar
  self.to_s.ivar
end

#nsdatestyleObject Also known as: nsdateformatterstyle



72
73
74
# File 'lib/sugarcube-constants/symbol.rb', line 72

def nsdatestyle
  SugarCube.look_in(self, Symbol.nsdatestyle)
end

#nsnumberstyleObject Also known as: nsnumberformatterstyle



77
78
79
# File 'lib/sugarcube-constants/symbol.rb', line 77

def nsnumberstyle
  SugarCube.look_in(self, Symbol.nsnumberstyle, Symbol.nsnumberstyle__deprecated)
end

#setterObject



8
9
10
# File 'lib/sugarcube-unholy/ivar.rb', line 8

def setter
  self.to_s.setter
end

#uiactionstyleObject Also known as: uiactionsheetstyle



171
172
173
# File 'lib/sugarcube-constants/symbol.rb', line 171

def uiactionstyle
  SugarCube.look_in(self, Symbol.uiactionstyle)
end

#uiactivityindicatorstyleObject Also known as: uiactivityindicatorviewstyle



112
113
114
# File 'lib/sugarcube-constants/symbol.rb', line 112

def uiactivityindicatorstyle
  SugarCube.look_in(self, Symbol.uiactivityindicatorstyle, Symbol.uiactivityindicatorstyle__deprecated)
end

#uialertstyleObject Also known as: uialertviewstyle



166
167
168
# File 'lib/sugarcube-constants/symbol.rb', line 166

def uialertstyle
  SugarCube.look_in(self, Symbol.uialertstyle)
end

#uianimationcurveObject Also known as: uiviewanimationcurve



131
132
133
# File 'lib/sugarcube-constants/symbol.rb', line 131

def uianimationcurve
  SugarCube.look_in(self, Symbol.uianimationcurve)
end

#uiautoresizemaskObject Also known as: uiviewautoresizing, uiautoresizingmask, uiautoresize



38
39
40
# File 'lib/sugarcube-constants/symbol.rb', line 38

def uiautoresizemask
  SugarCube.look_in(self, Symbol.uiautoresizemask, Symbol.uiautoresizemask__deprecated)
end

#uibarbuttonitemObject



90
91
92
# File 'lib/sugarcube-constants/symbol.rb', line 90

def uibarbuttonitem
  SugarCube.look_in(self, Symbol.uibarbuttonitem, Symbol.uibarbuttonitem__deprecated)
end

#uibarbuttonstyleObject



94
95
96
# File 'lib/sugarcube-constants/symbol.rb', line 94

def uibarbuttonstyle
  SugarCube.look_in(self, Symbol.uibarbuttonstyle)
end

#uibarmetricsObject



86
87
88
# File 'lib/sugarcube-constants/symbol.rb', line 86

def uibarmetrics
  SugarCube.look_in(self, Symbol.uibarmetrics)
end

#uibaselineadjustmentObject Also known as: uibaseline



62
63
64
# File 'lib/sugarcube-constants/symbol.rb', line 62

def uibaselineadjustment
  SugarCube.look_in(self, Symbol.uibaselineadjustment)
end

#uibordertypeObject Also known as: uiborderstyle



67
68
69
# File 'lib/sugarcube-constants/symbol.rb', line 67

def uibordertype
  SugarCube.look_in(self, Symbol.uibordertype)
end

#uibuttontypeObject



98
99
100
# File 'lib/sugarcube-constants/symbol.rb', line 98

def uibuttontype
  SugarCube.look_in(self, Symbol.uibuttontype)
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
# File 'lib/sugarcube-color/symbol.rb', line 9

def uicolor(alpha=nil)
  if Symbol.uicolors.has_key? self
    # iOS colors
    color = UIColor.send(SugarCube.look_in(self, Symbol.uicolors, Symbol.uicolors__deprecated))

    if not alpha.nil?
      color = color.colorWithAlphaComponent(alpha.to_f)
    end
  elsif Symbol.css_colors_cache.has_key? self
    color = Symbol.css_colors_cache[self]
  else
    # css colors
    color = SugarCube.look_in(self, Symbol.css_colors).uicolor
    Symbol.css_colors_cache[self] = color
  end

  if alpha
    color = color.uicolor(alpha)
  end

  color
end

#uicontentmodeObject Also known as: uiviewcontentmode



126
127
128
# File 'lib/sugarcube-constants/symbol.rb', line 126

def uicontentmode
  SugarCube.look_in(self, Symbol.uicontentmode, Symbol.uicontentmode__deprecated)
end

#uicontroleventObject



108
109
110
# File 'lib/sugarcube-constants/symbol.rb', line 108

def uicontrolevent
  SugarCube.look_in(self, Symbol.uicontrolevent, Symbol.uicontrolevent__deprecated)
end

#uicontrolstateObject Also known as: uistate



102
103
104
# File 'lib/sugarcube-constants/symbol.rb', line 102

def uicontrolstate
  SugarCube.look_in(self, Symbol.uicontrolstate)
end

#uidatepickermodeObject



122
123
124
# File 'lib/sugarcube-constants/symbol.rb', line 122

def uidatepickermode
  SugarCube.look_in(self, Symbol.uidatepickermode, Symbol.uidatepickermode__deprecated)
end

#uideviceObject



21
22
23
# File 'lib/sugarcube-constants/symbol.rb', line 21

def uidevice
  SugarCube.look_in(self, Symbol.uidevice)
end

#uideviceorientationObject



25
26
27
# File 'lib/sugarcube-constants/symbol.rb', line 25

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/sugarcube-uikit/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

#uifontsizeObject



39
40
41
42
43
44
45
# File 'lib/sugarcube-uikit/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

#uigesturerecognizerstateObject Also known as: uigesturestate



212
213
214
# File 'lib/sugarcube-constants/symbol.rb', line 212

def uigesturerecognizerstate
  SugarCube.look_in(self, Symbol.uigesturerecognizerstate)
end

#uiimagecameraObject Also known as: uiimagecameradevice, uiimagedevice



186
187
188
# File 'lib/sugarcube-constants/symbol.rb', line 186

def uiimagecamera
  SugarCube.look_in(self, Symbol.uiimagecamera)
end

#uiimagecaptureObject Also known as: uiimagecapturemode



181
182
183
# File 'lib/sugarcube-constants/symbol.rb', line 181

def uiimagecapture
  SugarCube.look_in(self, Symbol.uiimagecapture)
end

#uiimagequalityObject Also known as: uiimagequalitytype



192
193
194
# File 'lib/sugarcube-constants/symbol.rb', line 192

def uiimagequality
  SugarCube.look_in(self, Symbol.uiimagequality)
end

#uiimagesourceObject Also known as: uiimagesourcetype



176
177
178
# File 'lib/sugarcube-constants/symbol.rb', line 176

def uiimagesource
  SugarCube.look_in(self, Symbol.uiimagesource)
end

#uiinterfacemaskObject



34
35
36
# File 'lib/sugarcube-constants/symbol.rb', line 34

def uiinterfacemask
  SugarCube.look_in(self, Symbol.uiinterfacemask)
end

#uiinterfaceorientationObject Also known as: uiorientation



29
30
31
# File 'lib/sugarcube-constants/symbol.rb', line 29

def uiinterfaceorientation
  SugarCube.look_in(self, Symbol.uiinterfaceorientation)
end

#uikeyboardtypeObject



49
50
51
# File 'lib/sugarcube-constants/symbol.rb', line 49

def uikeyboardtype
  SugarCube.look_in(self, Symbol.uikeyboardtype, Symbol.uikeyboardtype__deprecated)
end

#uilinebreakmodeObject



58
59
60
# File 'lib/sugarcube-constants/symbol.rb', line 58

def uilinebreakmode
  SugarCube.look_in(self, Symbol.uilinebreakmode, Symbol.uilinebreakmode__deprecated)
end

#uireturnkeyObject



45
46
47
# File 'lib/sugarcube-constants/symbol.rb', line 45

def uireturnkey
  SugarCube.look_in(self, Symbol.uireturnkey, Symbol.uireturnkey__deprecated)
end

#uisegmentedstyleObject Also known as: uisegmentedcontrolstyle



117
118
119
# File 'lib/sugarcube-constants/symbol.rb', line 117

def uisegmentedstyle
  SugarCube.look_in(self, Symbol.uisegmentedstyle)
end

#uistatusbarstyleObject



82
83
84
# File 'lib/sugarcube-constants/symbol.rb', line 82

def uistatusbarstyle
  SugarCube.look_in(self, Symbol.uistatusbarstyle)
end

#uitablecellaccessorytypeObject Also known as: uitablecellaccessory, uitableviewcellaccessorytype



151
152
153
# File 'lib/sugarcube-constants/symbol.rb', line 151

def uitablecellaccessorytype
  SugarCube.look_in(self, Symbol.uitablecellaccessorytype, Symbol.uitablecellaccessorytype__deprecated)
end

#uitablecellselectionstyleObject Also known as: uitableviewcellselectionstyle



157
158
159
# File 'lib/sugarcube-constants/symbol.rb', line 157

def uitablecellselectionstyle
  SugarCube.look_in(self, Symbol.uitablecellselectionstyle)
end

#uitablecellseparatorstyleObject



162
163
164
# File 'lib/sugarcube-constants/symbol.rb', line 162

def uitablecellseparatorstyle
  SugarCube.look_in(self, Symbol.uitablecellseparatorstyle, Symbol.uitablecellseparatorstyle__deprecated)
end

#uitablecellstyleObject Also known as: uitableviewcellstyle



146
147
148
# File 'lib/sugarcube-constants/symbol.rb', line 146

def uitablecellstyle
  SugarCube.look_in(self, Symbol.uitablecellstyle)
end

#uitablerowanimationObject Also known as: uitableviewrowanimation



141
142
143
# File 'lib/sugarcube-constants/symbol.rb', line 141

def uitablerowanimation
  SugarCube.look_in(self, Symbol.uitablerowanimation)
end

#uitablestyleObject Also known as: uitableviewstyle



136
137
138
# File 'lib/sugarcube-constants/symbol.rb', line 136

def uitablestyle
  SugarCube.look_in(self, Symbol.uitablestyle)
end

#uitextalignmentObject Also known as: uialignment



53
54
55
# File 'lib/sugarcube-constants/symbol.rb', line 53

def uitextalignment
  SugarCube.look_in(self, Symbol.uitextalignment)
end