Class: MotionKit::UIButtonLayout

Inherits:
UIViewLayout show all
Defined in:
lib/motion-kit-ios/layouts/uibutton_layout.rb

Instance Attribute Summary

Attributes inherited from BaseLayout

#parent

Instance Method Summary collapse

Methods inherited from UIViewLayout

#_calculate_frame, #above, #after, #autoresizing_mask, #before, #below, #bottom, #center, #center_x, #center_y, #constraints, #frame, #from_bottom, #from_bottom_left, #from_bottom_right, #from_center, #from_left, #from_right, #from_top, #from_top_left, #from_top_right, #gradient, #height, #origin, #relative_to, #right, #size, #width, #x, #y

Methods inherited from Layout

#add_child, #constraints, #default_root, #reapply!, #remove_child

Methods inherited from TreeLayout

#add, #all, #build, #built?, #call_style_method, #create, #create_default_root_context, #first, #get, #initial, #last, #nth, #reapply, #reapply!, #remove, #root, #view, view

Methods inherited from BaseLayout

#add_deferred_block, #apply, #apply_with_context, #apply_with_target, #context, #deferred, #deferred_blocks, delegate_method_fix, #initialize, #ipad?, #iphone35?, #iphone4?, #iphone?, method_added, #method_missing, #orientation?, overridden_methods, override_start, override_stop, overrides, #retina?, #run_deferred, #set_layout, #target, #v

Methods included from BaseLayoutClassMethods

#layout_for, #memoize, #new_child, #target_klasses, #targets

Constructor Details

This class inherits a constructor from MotionKit::BaseLayout

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class MotionKit::BaseLayout

Instance Method Details

#background_image(value, state: state) ⇒ Object



35
36
37
# File 'lib/motion-kit-ios/layouts/uibutton_layout.rb', line 35

def background_image(value)
  background_image(value, state: UIControlStateNormal)
end

#image(value, state: state) ⇒ Object



43
44
45
# File 'lib/motion-kit-ios/layouts/uibutton_layout.rb', line 43

def image(value)
  image(value, state: UIControlStateNormal)
end

#title(value, state: state) ⇒ Object



7
8
9
# File 'lib/motion-kit-ios/layouts/uibutton_layout.rb', line 7

def title(value)
  title(value, state: UIControlStateNormal)
end

#title_color(value, state: state) ⇒ Object



19
20
21
# File 'lib/motion-kit-ios/layouts/uibutton_layout.rb', line 19

def title_color(value)
  title_color(value, state: UIControlStateNormal)
end

#title_shadow_color(value, state: state) ⇒ Object



27
28
29
# File 'lib/motion-kit-ios/layouts/uibutton_layout.rb', line 27

def title_shadow_color(value)
  title_shadow_color(value, state: UIControlStateNormal)
end