Class: UIView
Instance Method Summary collapse
- #append(view_or_constant, style = nil, opts = {}, &block) ⇒ Object
- #append!(view_or_constant, style = nil, opts = {}, &block) ⇒ Object
- #apply_style(style_name) ⇒ Object
- #build(view, style = nil, opts = {}, &block) ⇒ Object
- #build!(view, style = nil, opts = {}, &block) ⇒ Object
- #color ⇒ Object
- #create(view_or_constant, style = nil, opts = {}, &block) ⇒ Object
- #create!(view_or_constant, style = nil, opts = {}, &block) ⇒ Object
- #font ⇒ Object
- #image ⇒ Object
- #off(*events) ⇒ Object
- #on(event, args = {}, &block) ⇒ Object
- #on_load ⇒ Object
- #on_styled ⇒ Object
- #prepend(view_or_constant, style = nil, opts = {}, &block) ⇒ Object
- #prepend!(view_or_constant, style = nil, opts = {}, &block) ⇒ Object
- #reapply_styles ⇒ Object
-
#rmq_build ⇒ Object
You can use either rmq_build or on_load, not both.
-
#rmq_style_applied ⇒ Object
You can user either rmq_style_applied or on_styled, not both.
- #style(&block) ⇒ Object
- #stylesheet ⇒ Object
- #stylesheet=(value) ⇒ Object
Instance Method Details
#append(view_or_constant, style = nil, opts = {}, &block) ⇒ Object
23 24 25 |
# File 'lib/project/ext/ui_view.rb', line 23 def append(view_or_constant, style=nil, opts = {}, &block) rmq(self).append(view_or_constant, style, opts, &block) end |
#append!(view_or_constant, style = nil, opts = {}, &block) ⇒ Object
26 27 28 |
# File 'lib/project/ext/ui_view.rb', line 26 def append!(view_or_constant, style=nil, opts = {}, &block) rmq(self).append!(view_or_constant, style, opts, &block) end |
#apply_style(style_name) ⇒ Object
59 60 61 |
# File 'lib/project/ext/ui_view.rb', line 59 def apply_style(style_name) rmq(self).apply_style(style_name) end |
#build(view, style = nil, opts = {}, &block) ⇒ Object
44 45 46 |
# File 'lib/project/ext/ui_view.rb', line 44 def build(view, style = nil, opts = {}, &block) rmq(self).build(view, style, opts, &block) end |
#build!(view, style = nil, opts = {}, &block) ⇒ Object
47 48 49 |
# File 'lib/project/ext/ui_view.rb', line 47 def build!(view, style = nil, opts = {}, &block) rmq(self).build!(view, style, opts, &block) end |
#color ⇒ Object
71 72 73 |
# File 'lib/project/ext/ui_view.rb', line 71 def color rmq.color end |
#create(view_or_constant, style = nil, opts = {}, &block) ⇒ Object
37 38 39 |
# File 'lib/project/ext/ui_view.rb', line 37 def create(view_or_constant, style=nil, opts = {}, &block) rmq(self).create(view_or_constant, style, opts, &block) end |
#create!(view_or_constant, style = nil, opts = {}, &block) ⇒ Object
40 41 42 |
# File 'lib/project/ext/ui_view.rb', line 40 def create!(view_or_constant, style=nil, opts = {}, &block) rmq(self).create!(view_or_constant, style, opts, &block) end |
#font ⇒ Object
75 76 77 |
# File 'lib/project/ext/ui_view.rb', line 75 def font rmq.font end |
#image ⇒ Object
79 80 81 |
# File 'lib/project/ext/ui_view.rb', line 79 def image rmq.image end |
#off(*events) ⇒ Object
55 56 57 |
# File 'lib/project/ext/ui_view.rb', line 55 def off(*events) rmq(self).off(*events) end |
#on(event, args = {}, &block) ⇒ Object
51 52 53 |
# File 'lib/project/ext/ui_view.rb', line 51 def on(event, args = {}, &block) rmq(self).on(event, args, &block) end |
#on_load ⇒ Object
10 11 |
# File 'lib/project/ext/ui_view.rb', line 10 def on_load end |
#on_styled ⇒ Object
13 14 |
# File 'lib/project/ext/ui_view.rb', line 13 def on_styled end |
#prepend(view_or_constant, style = nil, opts = {}, &block) ⇒ Object
30 31 32 |
# File 'lib/project/ext/ui_view.rb', line 30 def prepend(view_or_constant, style=nil, opts = {}, &block) rmq(self).prepend(view_or_constant, style, opts, &block) end |
#prepend!(view_or_constant, style = nil, opts = {}, &block) ⇒ Object
33 34 35 |
# File 'lib/project/ext/ui_view.rb', line 33 def prepend!(view_or_constant, style=nil, opts = {}, &block) rmq(self).prepend!(view_or_constant, style, opts, &block) end |
#reapply_styles ⇒ Object
63 64 65 |
# File 'lib/project/ext/ui_view.rb', line 63 def reapply_styles rmq(self).reapply_styles end |
#rmq_build ⇒ Object
You can use either rmq_build or on_load, not both. If you have both, on_load will be ignored, you can however call it from rmq_build. They are the same, on_load follows the ProMotion style and is recommended.
6 7 8 |
# File 'lib/project/ext/ui_view.rb', line 6 def rmq_build on_load end |
#rmq_style_applied ⇒ Object
You can user either rmq_style_applied or on_styled, not both. If you have both on_styled will be ignored, you can however call it from rmq_style_applied. They are the same, on_styled follows the Promotion style and is recommended.
19 20 21 |
# File 'lib/project/ext/ui_view.rb', line 19 def rmq_style_applied on_styled end |
#style(&block) ⇒ Object
67 68 69 |
# File 'lib/project/ext/ui_view.rb', line 67 def style(&block) rmq(self).style(&block) end |
#stylesheet ⇒ Object
83 84 85 |
# File 'lib/project/ext/ui_view.rb', line 83 def stylesheet rmq.stylesheet end |
#stylesheet=(value) ⇒ Object
87 88 89 |
# File 'lib/project/ext/ui_view.rb', line 87 def stylesheet=(value) rmq.stylesheet = value end |