Class: MotionKit::NSWindowLayout

Inherits:
WindowLayout show all
Defined in:
lib/motion-kit-osx/layouts/nswindow_frame.rb,
lib/motion-kit-osx/layouts/nswindow_layout.rb

Instance Attribute Summary

Attributes inherited from BaseLayout

#parent

Instance Method Summary collapse

Methods inherited from WindowLayout

#add_child, #all, #default_root, #get, #last, #nth, #reapply!, #remove, #remove_child, #window

Methods inherited from TreeLayout

#add, #all, #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

#frame(value, autosave_name = nil) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/motion-kit-osx/layouts/nswindow_frame.rb', line 6

def frame(value, autosave_name=nil)
  retval = target.setFrame(value, display: true)
  if autosave_name
    target.setFrameAutosaveName(autosave_name)
  end
  return retval
end