Class: RubyMotionQuery::Stylers::UISwitchStyler

Inherits:
UIControlStyler show all
Defined in:
motion/ruby_motion_query/stylers/ui_switch_styler.rb

Instance Method Summary (collapse)

Methods inherited from UIViewStyler

#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=

Constructor Details

This class inherits a constructor from RubyMotionQuery::Stylers::UIViewStyler

Instance Method Details

- (Object) on



6
# File 'motion/ruby_motion_query/stylers/ui_switch_styler.rb', line 6

def on ; @view.isOn ; end

- (Object) on=(value)



5
# File 'motion/ruby_motion_query/stylers/ui_switch_styler.rb', line 5

def on=(value) ; @view.setOn(value) ; end