orion-wm/src/packages.scm

189 lines
4.7 KiB
Scheme
Raw Normal View History

2003-03-27 20:40:16 -05:00
;; *** utils *********************************************************
(define-structure utils
(export mdisplay assq/false flatten
select* spawn* with-lock
2003-04-01 08:24:30 -05:00
make-sync-point sync-point-release sync-point-wait
2003-03-27 20:40:16 -05:00
create-options free-options
get-option-value get-option set-option! get-options
2003-03-29 20:50:06 -05:00
((define-options-spec) :syntax) options-spec-union
2003-04-10 21:35:32 -04:00
get-options-diff
2003-03-27 20:40:16 -05:00
string->keys string->key key:keycode key:modifiers
reparent-to-root window-path
window-viewable?
window-focused?
window-contains-focus?
take-focus delete-window
window-exists?
move-resize-window*
root-rectangle window-rectangle clip-rectangle
draw-shadow-rectangle
2003-04-03 14:34:12 -05:00
fill-rectangle*
2003-03-27 20:40:16 -05:00
invalidate-window
text-center-pos
2003-04-01 08:24:30 -05:00
window-level
point-in-rectangle?
2003-04-15 12:08:38 -04:00
set-wm-state! get-wm-state ((wm-state) :syntax)
2003-04-25 08:56:09 -04:00
send-configuration
2003-03-27 20:40:16 -05:00
maximize-window maximal-size/hints
2003-04-10 21:35:32 -04:00
size-window desired-size/hints desired-position/hints
2003-04-15 12:08:38 -04:00
install-colormaps uninstall-colormaps
2003-04-22 11:45:26 -04:00
now at-time-rv after-time-rv
with-prevent-events)
2003-03-27 20:40:16 -05:00
(open scheme i/o list-lib define-record-types finite-types enum-sets
2003-04-15 12:08:38 -04:00
threads locks placeholders rendezvous rendezvous-channels
signals handle scsh
2003-03-27 20:40:16 -05:00
rx-syntax field-reader-package
xlib)
(files utils))
(define-structure dragging
(export install-dragging-control)
2003-04-15 12:08:38 -04:00
(open scheme define-record-types threads list-lib
2003-03-27 20:40:16 -05:00
rendezvous-channels rendezvous
xlib
utils)
(files drag-window))
(define-structure titlebar
(export create-titlebar destroy-titlebar titlebar? titlebar:window
map-titlebar unmap-titlebar move-resize-titlebar
2003-04-25 08:56:09 -04:00
set-titlebar-state! set-titlebar-title! set-titlebar-title+state!)
2003-03-27 20:40:16 -05:00
(open scheme define-record-types threads list-lib
rendezvous-channels rendezvous
xlib
2003-04-15 12:08:38 -04:00
utils button)
2003-03-27 20:40:16 -05:00
(files titlebar))
2003-04-03 14:34:12 -05:00
(define-structure prompt
(export prompt)
(open scheme list-lib rendezvous-channels
xlib
utils)
(files prompt))
2003-04-15 12:08:38 -04:00
(define-structure button
(export create-button destroy-button
map-button unmap-button
move-resize-button)
(open scheme list-lib rendezvous-channels
define-record-types
xlib
utils)
(files button))
2003-03-27 20:40:16 -05:00
;; *** key-grab ******************************************************
(define-structure key-grab
(export grab-shortcut)
(open scheme define-record-types enum-sets weak
threads list-lib
rendezvous-channels rendezvous locks
xlib utils)
(files key-grab))
;; *** manager *******************************************************
(define-structure manager
2003-04-01 08:24:30 -05:00
(export wm? wm:type wm:dpy wm:window wm:colormap wm:options wm:out-channel
wm:internal-out-channel
2003-03-27 20:40:16 -05:00
(manager-type :syntax) manager-types manager-type-name
create-wm destroy-wm
wm-clients wm-current-client
wm-manage-window wm-unmanage-window wm-select-client
2003-04-22 11:45:26 -04:00
wm-configure-window
2003-03-27 20:40:16 -05:00
client? client:window client:client-window
client:data set-client:data!
2003-04-03 14:34:12 -05:00
client-name find-window-by-name get-all-window-names
2003-04-10 21:35:32 -04:00
client-replace-window
client-of-window)
2003-03-27 20:40:16 -05:00
(open scheme threads list-lib locks
xlib
define-record-types
finite-types
rendezvous-channels
rendezvous
utils key-grab)
(files manager))
;; *** move manager **************************************************
(define-structure move-wm
(export create-move-wm)
(open scheme list-lib define-record-types
threads rendezvous-channels rendezvous
xlib
manager key-grab
utils dragging titlebar)
(files move-wm
move-wm-resizer))
;; *** split manager *************************************************
(define-structure split-wm
2003-04-01 08:24:30 -05:00
(export create-split-wm split-wm?)
2003-03-27 20:40:16 -05:00
(open scheme list-lib define-record-types
2003-04-01 08:24:30 -05:00
threads rendezvous-channels rendezvous placeholders
2003-03-27 20:40:16 -05:00
xlib
manager
2003-04-03 14:34:12 -05:00
utils key-grab)
2003-03-29 20:50:06 -05:00
(files split-wm))
2003-03-27 20:40:16 -05:00
;; *** switch manager ************************************************
(define-structure switch-wm
(export create-switch-wm)
(open scheme list-lib define-record-types
threads rendezvous-channels rendezvous
xlib
manager titlebar dragging
utils key-grab)
(files switch-wm))
;; *** main package **************************************************
2003-04-03 14:34:12 -05:00
(define-structure scsh-things
(export ((run) :syntax))
(open scsh))
2003-04-10 21:35:32 -04:00
(define-structure config
(export backup-layout
restore-layout
load-configuration)
(open scheme list-lib
scsh xlib
utils manager root-manager)
(files config))
2003-03-27 20:40:16 -05:00
(define-structure root-manager
2003-04-10 21:35:32 -04:00
(export root-wm? create-root-wm
wait-for-root-wm
root-wm:dpy root-wm:initial-manager root-wm:options
get-manager-by-window
create-new-manager
root-wm-manage-window)
2003-04-03 14:34:12 -05:00
(open scheme list-lib scsh-things
2003-04-10 21:35:32 -04:00
define-record-types threads
2003-03-27 20:40:16 -05:00
xlib
rendezvous rendezvous-channels
2003-03-29 20:50:06 -05:00
utils key-grab
2003-03-27 20:40:16 -05:00
manager
move-wm split-wm switch-wm
2003-04-03 14:34:12 -05:00
prompt)
2003-03-27 20:40:16 -05:00
(files root-manager))
(define-structure main
(export start)
2003-04-16 11:03:38 -04:00
(open scsh scheme threads handle
2003-03-27 20:40:16 -05:00
xlib
2003-04-10 21:35:32 -04:00
manager root-manager config
2003-03-27 20:40:16 -05:00
utils)
(files main))