Class: UIView

Inherits:
Object show all
Defined in:
lib/project/ext/ui_view.rb

Instance Method Summary collapse

Instance Method Details

#append(view_or_constant, style = nil, opts = {}) ⇒ Object



22
23
24
# File 'lib/project/ext/ui_view.rb', line 22

def append(view_or_constant, style=nil, opts = {})
  rmq(self).append(view_or_constant, style, opts)
end

#append!(view_or_constant, style = nil, opts = {}) ⇒ Object



25
26
27
# File 'lib/project/ext/ui_view.rb', line 25

def append!(view_or_constant, style=nil, opts = {})
  rmq(self).append!(view_or_constant, style, opts)
end

#apply_style(style_name) ⇒ Object



58
59
60
# File 'lib/project/ext/ui_view.rb', line 58

def apply_style(style_name)
  rmq(self).apply_style(style_name)
end

#build(view, style = nil, opts = {}) ⇒ Object



43
44
45
# File 'lib/project/ext/ui_view.rb', line 43

def build(view, style = nil, opts = {})
  rmq(self).build(view, style, opts)
end

#build!(view, style = nil, opts = {}) ⇒ Object



46
47
48
# File 'lib/project/ext/ui_view.rb', line 46

def build!(view, style = nil, opts = {})
  rmq(self).build!(view, style, opts)
end

#colorObject



70
71
72
# File 'lib/project/ext/ui_view.rb', line 70

def color
  rmq.color
end

#create(view_or_constant, style = nil, opts = {}) ⇒ Object



36
37
38
# File 'lib/project/ext/ui_view.rb', line 36

def create(view_or_constant, style=nil, opts = {})
  rmq(self).create(view_or_constant, style, opts)
end

#create!(view_or_constant, style = nil, opts = {}) ⇒ Object



39
40
41
# File 'lib/project/ext/ui_view.rb', line 39

def create!(view_or_constant, style=nil, opts = {})
  rmq(self).create!(view_or_constant, style, opts)
end

#fontObject



74
75
76
# File 'lib/project/ext/ui_view.rb', line 74

def font
  rmq.font
end

#imageObject



78
79
80
# File 'lib/project/ext/ui_view.rb', line 78

def image
  rmq.image
end

#off(*events) ⇒ Object



54
55
56
# File 'lib/project/ext/ui_view.rb', line 54

def off(*events)
  rmq(self).off(*events)
end

#on(event, args = {}, &block) ⇒ Object



50
51
52
# File 'lib/project/ext/ui_view.rb', line 50

def on(event, args = {}, &block)
  rmq(self).on(event, args, &block)
end

#on_loadObject



9
10
# File 'lib/project/ext/ui_view.rb', line 9

def on_load
end

#on_styledObject



12
13
# File 'lib/project/ext/ui_view.rb', line 12

def on_styled
end

#prepend(view_or_constant, style = nil, opts = {}) ⇒ Object



29
30
31
# File 'lib/project/ext/ui_view.rb', line 29

def prepend(view_or_constant, style=nil, opts = {})
  rmq(self).prepend(view_or_constant, style, opts)
end

#prepend!(view_or_constant, style = nil, opts = {}) ⇒ Object



32
33
34
# File 'lib/project/ext/ui_view.rb', line 32

def prepend!(view_or_constant, style=nil, opts = {})
  rmq(self).prepend!(view_or_constant, style, opts)
end

#reapply_stylesObject



62
63
64
# File 'lib/project/ext/ui_view.rb', line 62

def reapply_styles
  rmq(self).reapply_styles
end

#rmq_buildObject

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.



5
6
7
# File 'lib/project/ext/ui_view.rb', line 5

def rmq_build
  on_load
end

#rmq_style_appliedObject

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.



18
19
20
# File 'lib/project/ext/ui_view.rb', line 18

def rmq_style_applied
  on_styled
end

#style(&block) ⇒ Object



66
67
68
# File 'lib/project/ext/ui_view.rb', line 66

def style(&block)
  rmq(self).style(&block)
end

#stylesheetObject



82
83
84
# File 'lib/project/ext/ui_view.rb', line 82

def stylesheet
  rmq.stylesheet
end

#stylesheet=(value) ⇒ Object



86
87
88
# File 'lib/project/ext/ui_view.rb', line 86

def stylesheet=(value)
  rmq.stylesheet = value
end