# ------------------------------------------------------------------------------

AMS
AMS::Plugins
AMS::Examples
AMS::Test

# ------------------------------------------------------------------------------

AMS::Lib

extension
basename
path
require(file)
require_all
require_library(file)
require_libraries
load(file)
load_all
load_library(file)
load_libraries
loaded_files
file_loaded(file)
file_loaded?(file)

# ------------------------------------------------------------------------------

AMS::System

windows?
mac?
linux?
windows_version

# ------------------------------------------------------------------------------

AMS::Object

boolean?
bool?

# ------------------------------------------------------------------------------

AMS::Window

valid?(hwnd)
foreground?(hwnd)
active?(hwnd)
has_menubar?(hwnd)
child?(parent, hwnd)
visible?(hwnd)
maximized?(hwnd)
minimized?(hwnd)
restored?(hwnd)
get_desktop
get_foreground
get_active
class_name(hwnd)
process_id(hwnd)
pid(hwnd)
thread_id(hwnd)
tid(hwnd)
get_parent(hwnd)
get_caption(hwnd)
get_menubar(hwnd)
rect(hwnd, mode = 1)
origin(hwnd, mode = 1)
size(hwnd)
width(hwnd)
height(hwnd)
client_rect(hwnd, mode = 1)
client_origin(hwnd, mode = 1)
client_size(hwnd)
client_width(hwnd)
client_height(hwnd)
set_foreground(hwnd)
set_active(hwnd)
set_parent(hwnd, parent)
set_caption(hwnd, text)
set_menubar(hwnd, hmenu)
remove_menubar(hwnd)
show(hwnd, state = true)
maximize(hwnd)
minimize(hwnd)
restore(hwnd)
move(hwnd, x, y, width, height)
refresh(hwnd)
close(hwnd)
end_task(hwnd)

# ------------------------------------------------------------------------------

AMS::Sketchup

process_id
pid
thread_id
tid
module_handle
hmod
main_window
menubar
toolbar_containers
statusbar
scenesbar
viewport
active?
find_main_window(cur_pid = Object::Process.pid)
find_child_windows
window_by_caption(text)
get_toolbars(find = true)
get_visible_toolbars(find = true)
show_toolbars(state = true)
get_dialogs(find = true)
get_visible_dialogs(find = true)
show_dialogs(state = true)
ignore_dialog(hwnd)
include_dialog(hwnd)
close_toolbars
close_dialogs
refresh
close
end_task
activate_observers
deactivate_observers
observers_active?
add_observer(obj)
remove_observer(obj)

# ------------------------------------------------------------------------------

AMS::Sketchup::MainWindow

hwnd
handle
class_name
caption
caption=(text)
foreground?
active?
maximized?
minimized?
restored?
fullscreen?
set_foreground
set_active
maximize
minimize
restore
set_fullscreen(state = true, mode = 2)
move(x = 400, y = 400, width = 800, height = 600)

# ------------------------------------------------------------------------------

AMS::Sketchup::Menubar

hmenu
handle
set(state = true)
set?
remove_for_time(time = 60)
show(state)
visible?

# ------------------------------------------------------------------------------

AMS::Sketchup::Viewport

hwnd
handle
rect
origin
size
width
height
center
corners
set_client_edge(state = true)
client_edge_set?
repaint

# ------------------------------------------------------------------------------

AMS::Sketchup::ToolbarContainers

hwnds
handles
adjust_rect(bar = 5, state = true, refresh = true)
show(bar = 6, state = true, refresh = true)
clear(bar = 5, refresh = true)
visible?(bar = 6)
filled?(bar = 6)
empty?(bar = 6)

# ------------------------------------------------------------------------------

AMS::Sketchup::Statusbar

hwnd
handle
show(state = true, refresh = true)
visible?

# ------------------------------------------------------------------------------

AMS::Sketchup::Scenesbar

hwnd
handle
show(state = true, refresh = true)
visible?
filled?
empty?

# ------------------------------------------------------------------------------

AMS::InputProc

select_tool(tool, opt1 = true, opt2 = false, opt3 = false)
deselect_tool(tool)
selected_tool

# ------------------------------------------------------------------------------

AMS::Keyboard

key_state(vk)
key(vk)
key_down?(vk)
key_up?(vk)
keys_down?(*keys)
keys_up?(*keys)
keyboard_state

# ------------------------------------------------------------------------------

AMS::Screen

width
height
resolution

# ------------------------------------------------------------------------------

AMS::Cursor

show(state)
visible?
get_pos(mode = 1)
set_pos(mode = 1)
get_clip_rect(mode = 1)
set_clip_rect(rect, mode = 1)
clip_to_main_window
clip_to_viewport
main_window_target?
viewport_target?

# ------------------------------------------------------------------------------

AMS::RayUtil

deepray_t1(point, vector, nchg = false)
deepray_t2(ents, point, vector, nchg = false)
deepray_t3(ents, point, vector, nchg = false)
raytest_t1(ents, point, vector, nchg = false)
raytest_t2(ents, point, vector, nchg = false)

# ------------------------------------------------------------------------------

AMS::MultiLineText

initialize(x = 10, y = 10, intro = "")
lines
limit
limit=(lim)
set_intro(text = "")
write
writeln
clear
remove

# ------------------------------------------------------------------------------

AMS::Translate

initialize(toolname = nil, dir = nil)
get(key, *si)
get_all

# ------------------------------------------------------------------------------

AMS::InputProc::Tool

hk_activate
hk_deactivate
hk_onKeyDown(key, val)
hk_onKeyUp(key, val)
hk_onKeyExtended(key, val)
hk_onMouseMove(x,y)
hk_onLButtonDown(x,y)
hk_onLButtonUp(x,y)
hk_onLButtonDoubleClick(x,y)
hk_onRButtonDown(x,y)
hk_onRButtonUp(x,y)
hk_onRButtonDoubleClick(x,y)
hk_onMButtonDown(x,y)
hk_onMButtonUp(x,y)
hk_onMButtonDoubleClick(x,y)
hk_onXButtonDown(x,y)
hk_onXButtonUp(x,y)
hk_onXButtonDoubleClick(x,y)
hk_onMouseWheelRotate(x,y, dir)
hk_onMouseWheelTilt(x,y, dir)

# ------------------------------------------------------------------------------

AMS::Sketchup::Observer

swo_activate
swo_deactivate
swo_mw_onCaptionChanged(text)
swo_mw_onSwitchFullscreen(state)
swo_mw_onMaximize
swo_mw_onMinimize
swo_mw_onRestore
swo_mw_onActivate
swo_mw_onDeactivate
swo_mw_onEnterSizeMove
swo_mw_onExitSizeMove
swo_mw_onSizeMove(x1,y1, x2,y2)
swo_mw_onKeyDown(key, val)
swo_mw_onKeyUp(key, val)
swo_mb_onSetRemove(state)
swo_mb_onVisibilityChanged(state)
swo_vp_onSetRemoveClientEdge(state)
swo_vp_onSize(w,h)
swo_vp_onMouseEnter
swo_vp_onMouseLeave
swo_vp_onRepaint
swo_tbc_onVisibilityChanged(bar, state)
swo_scb_onVisibilityChanged(state)
swo_stb_onVisibilityChanged(state)

# ------------------------------------------------------------------------------
