Module: Motion::Xray
- Defined in:
- lib/motion-xray/xray.rb,
lib/motion-xray/version.rb,
lib/motion-xray/xray_dummy.rb,
lib/motion-xray/xray_plugin.rb,
lib/motion-xray/xray_editors.rb,
lib/motion-xray/views/xray_dpad.rb,
lib/motion-xray/xray_typewriter.rb,
lib/motion-xray/plugins/ui_plugin.rb,
lib/motion-xray/views/xray_window.rb,
lib/motion-xray/views/xray_headers.rb,
lib/motion-xray/views/xray_toolbar.rb,
lib/motion-xray/plugins/save_ui_plugin.rb,
lib/motion-xray/views/xray_lock_button.rb,
lib/motion-xray/views/xray_scroll_view.rb,
lib/motion-xray/views/xray_color_swatch.rb,
lib/motion-xray/views/xray_gradient_view.rb,
lib/motion-xray/z_editors/xray_frame_editor.rb,
lib/motion-xray/z_editors/xray_boolean_editor.rb
Defined Under Namespace
Classes: BooleanEditor, Editor, FrameEditor, Plugin, PluginToolbar, PropertyEditor, SaveUIPlugin, UIPlugin, XrayColorSliders, XrayColorSwatch, XrayDpad, XrayGradientView, XrayHeaderBackground, XrayHeaderLabel, XrayLockButton, XrayScrollView, XraySectionHeader, XraySelectedToolbarItem, XrayToolbar, XrayToolbarItem, XrayTriangleSwatch, XrayTypewriterView, XrayWindow
Constant Summary
collapse
- Version =
'1.0.8'
Class Method Summary
collapse
Class Method Details
.app_bounds ⇒ Object
44
45
46
|
# File 'lib/motion-xray/xray.rb', line 44
def app_bounds
UIScreen.mainScreen.bounds
end
|
.app_shared ⇒ Object
40
41
42
|
# File 'lib/motion-xray/xray.rb', line 40
def app_shared
UIApplication.sharedApplication
end
|
.controller ⇒ Object
20
21
22
|
# File 'lib/motion-xray/xray.rb', line 20
def controller
@xray_controller ||= XrayViewController.new
end
|
.cool_down ⇒ Object
32
33
34
|
# File 'lib/motion-xray/xray.rb', line 32
def cool_down
Xray.ui.cool_down
end
|
.dummy ⇒ Object
3
4
5
6
7
|
# File 'lib/motion-xray/xray_dummy.rb', line 3
def dummy
view.userInteractionEnabled = true
view.userInteractionEnabled?
view.isUserInteractionEnabled
end
|
.fire_up ⇒ Object
28
29
30
|
# File 'lib/motion-xray/xray.rb', line 28
def fire_up
Xray.ui.fire_up
end
|
.plugins ⇒ Object
48
49
50
|
# File 'lib/motion-xray/xray.rb', line 48
def plugins
@plugins ||= []
end
|
.register(plugin) ⇒ Object
52
53
54
|
# File 'lib/motion-xray/xray.rb', line 52
def register(plugin)
Xray.plugins << plugin
end
|
.toggle ⇒ Object
24
25
26
|
# File 'lib/motion-xray/xray.rb', line 24
def toggle
Xray.ui.toggle
end
|
.ui ⇒ Object
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/motion-xray/xray.rb', line 4
def ui
unless @xray_ui
@xray_ui ||= UI.new
[LogPlugin, AccessibilityPlugin, UIPlugin].each do |plugin_class|
unless Xray.plugins.any? { |plugin| plugin_class === plugin }
Xray.plugins.unshift(plugin_class.new)
end
end
end
return @xray_ui
end
|
.window ⇒ Object
36
37
38
|
# File 'lib/motion-xray/xray.rb', line 36
def window
UIApplication.sharedApplication.keyWindow || UIApplication.sharedApplication.windows[0]
end
|