Class: RubyMotionQuery::Stylers::UIButtonStyler
- Inherits:
-
UIControlStyler
show all
- Defined in:
- motion/ruby_motion_query/stylers/ui_button_styler.rb
Instance Method Summary
(collapse)
#background_color, #background_color=, #background_image=, #bottom, #bottom=, #center, #center=, #center_x, #center_x=, #center_y, #center_y=, #centered=, #clips_to_bounds, #clips_to_bounds=, #content_mode, #content_mode=, #enabled, #enabled=, #frame, #frame=, #from_bottom, #from_bottom=, #from_right, #from_right=, #height, #height=, #hidden, #hidden=, #initialize, #left, #left=, #opaque, #opaque=, #padded=, #right, #right=, #rotation=, #scale=, #super_height, #super_width, #superview, #tag, #top, #top=, #view, #view=, #view_has_been_styled?, #width, #width=, #z_position, #z_position=
Instance Method Details
- (Object) background_image_highlighted=(value)
41
42
43
|
# File 'motion/ruby_motion_query/stylers/ui_button_styler.rb', line 41
def background_image_highlighted=(value)
@view.setBackgroundImage value, forState: UIControlStateHighlighted
end
|
- (Object) background_image_normal=(value)
37
38
39
|
# File 'motion/ruby_motion_query/stylers/ui_button_styler.rb', line 37
def background_image_normal=(value)
@view.setBackgroundImage value, forState: UIControlStateNormal
end
|
18
19
20
|
# File 'motion/ruby_motion_query/stylers/ui_button_styler.rb', line 18
def color
@view.titleColor
end
|
- (Object) color=(value)
15
16
17
|
# File 'motion/ruby_motion_query/stylers/ui_button_styler.rb', line 15
def color=(value)
@view.setTitleColor(value, forState: UIControlStateNormal)
end
|
13
|
# File 'motion/ruby_motion_query/stylers/ui_button_styler.rb', line 13
def font ; @view.titleLabel.font ; end
|
- (Object) font=(value)
12
|
# File 'motion/ruby_motion_query/stylers/ui_button_styler.rb', line 12
def font=(value) ; @view.titleLabel.font = value ; end
|
- (Object) image_highlighted=(value)
33
34
35
|
# File 'motion/ruby_motion_query/stylers/ui_button_styler.rb', line 33
def image_highlighted=(value)
@view.setImage value, forState: UIControlStateHighlighted
end
|
- (Object) image_normal=(value)
29
30
31
|
# File 'motion/ruby_motion_query/stylers/ui_button_styler.rb', line 29
def image_normal=(value)
@view.setImage value, forState: UIControlStateNormal
end
|
8
9
10
|
# File 'motion/ruby_motion_query/stylers/ui_button_styler.rb', line 8
def text
@view.title
end
|
- (Object) text=(value)
5
6
7
|
# File 'motion/ruby_motion_query/stylers/ui_button_styler.rb', line 5
def text=(value)
@view.setTitle(value, forState: UIControlStateNormal)
end
|
- (Object) tint_color
25
26
27
|
# File 'motion/ruby_motion_query/stylers/ui_button_styler.rb', line 25
def tint_color
@view.tintColor
end
|
- (Object) tint_color=(value)
22
23
24
|
# File 'motion/ruby_motion_query/stylers/ui_button_styler.rb', line 22
def tint_color=(value)
@view.tintColor = value
end
|