parent
9c3925b721
commit
b909c2a042
|
@ -68,7 +68,7 @@
|
||||||
x))
|
x))
|
||||||
command))))
|
command))))
|
||||||
|
|
||||||
(import-lambda-definition %set-wm-command (Xdisplay Xwindow command)
|
(import-lambda-definition %set-wm-command! (Xdisplay Xwindow command)
|
||||||
"scx_Set_Wm_Command")
|
"scx_Set_Wm_Command")
|
||||||
|
|
||||||
;; get-text-property returns the property specified by atom of the
|
;; get-text-property returns the property specified by atom of the
|
||||||
|
@ -215,7 +215,7 @@
|
||||||
;; XGetTransientForHint.
|
;; XGetTransientForHint.
|
||||||
|
|
||||||
(define (transient-for window)
|
(define (transient-for window)
|
||||||
(make-window (%transient-for (display-Xdisplay (display-window window))
|
(make-window (%transient-for (display-Xdisplay (window-display window))
|
||||||
(window-Xwindow window))
|
(window-Xwindow window))
|
||||||
(window-display window)
|
(window-display window)
|
||||||
#f))
|
#f))
|
||||||
|
@ -228,7 +228,7 @@
|
||||||
;; XSetTransientForHint.
|
;; XSetTransientForHint.
|
||||||
|
|
||||||
(define (set-transient-for! window property-window)
|
(define (set-transient-for! window property-window)
|
||||||
(%set-transient-for (display-Xdisplay (window-display window))
|
(%set-transient-for! (display-Xdisplay (window-display window))
|
||||||
(window-Xwindow window)
|
(window-Xwindow window)
|
||||||
(window-Xwindow property-window)))
|
(window-Xwindow property-window)))
|
||||||
|
|
||||||
|
@ -289,7 +289,7 @@
|
||||||
(window-Xwindow window)
|
(window-Xwindow window)
|
||||||
alist)))
|
alist)))
|
||||||
|
|
||||||
(import-lambda-definition %set-wm-normal-hints (Xdisplay Xwindow alist)
|
(import-lambda-definition %set-wm-normal-hints! (Xdisplay Xwindow alist)
|
||||||
"scx_Set_Wm_Normal_Hints")
|
"scx_Set_Wm_Normal_Hints")
|
||||||
|
|
||||||
;; icon-sizes returns the icon sizes specified by a window manager as
|
;; icon-sizes returns the icon sizes specified by a window manager as
|
||||||
|
|
|
@ -111,14 +111,14 @@
|
||||||
;; do-blue). See XStoreColors.
|
;; do-blue). See XStoreColors.
|
||||||
|
|
||||||
(define (store-color colormap pixel color . flags)
|
(define (store-color colormap pixel color . flags)
|
||||||
(%set-color-cell (display-Xdisplay (colormap-display colormap))
|
(%store-color (display-Xdisplay (colormap-display colormap))
|
||||||
(colormap-Xcolormap colormap)
|
(colormap-Xcolormap colormap)
|
||||||
(pixel-Xpixel pixel) (color-Xcolor color)
|
(pixel-Xpixel pixel) (color-Xcolor color)
|
||||||
(if (null? flags)
|
(if (null? flags)
|
||||||
'(do-red do-green do-blue)
|
'(do-red do-green do-blue)
|
||||||
(car flags))))
|
(car flags))))
|
||||||
|
|
||||||
(import-lambda-definition %set-color-cells (Xdisplay Xcolormap Xpixel Xcolor
|
(import-lambda-definition %store-color (Xdisplay Xcolormap Xpixel Xcolor
|
||||||
flags)
|
flags)
|
||||||
"scx_Store_Color")
|
"scx_Store_Color")
|
||||||
|
|
||||||
|
|
|
@ -131,9 +131,9 @@
|
||||||
(if (or (< i min)
|
(if (or (< i min)
|
||||||
(> i max))
|
(> i max))
|
||||||
(error (string-append s
|
(error (string-append s
|
||||||
(integer->string min)
|
(number->string min)
|
||||||
" and "
|
" and "
|
||||||
(integer->string max)
|
(number->string max)
|
||||||
"; given")
|
"; given")
|
||||||
index)))))
|
index)))))
|
||||||
(if (and (= 0 min1) (= 0 max1))
|
(if (and (= 0 min1) (= 0 max1))
|
||||||
|
|
|
@ -115,7 +115,7 @@
|
||||||
(window-Xwindow window)
|
(window-Xwindow window)
|
||||||
key mod (symbol? key)))
|
key mod (symbol? key)))
|
||||||
|
|
||||||
(import-lambda-definition %ungrag-key (Xdisplay Xwindow key mod
|
(import-lambda-definition %ungrab-key (Xdisplay Xwindow key mod
|
||||||
flag)
|
flag)
|
||||||
"scx_Ungrab_Key")
|
"scx_Ungrab_Key")
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
(drawable-Xobject src-drawable)
|
(drawable-Xobject src-drawable)
|
||||||
(gcontext-Xgcontext gcontext)
|
(gcontext-Xgcontext gcontext)
|
||||||
plane
|
plane
|
||||||
src-x srx-y width height
|
src-x src-y width height
|
||||||
(drawable-Xobject dst-drawable)
|
(drawable-Xobject dst-drawable)
|
||||||
dst-x dst-y))
|
dst-x dst-y))
|
||||||
|
|
||||||
|
|
|
@ -32,13 +32,13 @@
|
||||||
;; and then does a bitmap-format XPutImage of the data into it. See
|
;; and then does a bitmap-format XPutImage of the data into it. See
|
||||||
;; XCreatePixmapFromBitmapData.
|
;; XCreatePixmapFromBitmapData.
|
||||||
|
|
||||||
(define (create-pixmap-from-bitmap-data win data widht height
|
(define (create-pixmap-from-bitmap-data window data width height
|
||||||
foregrnd backgrnd depth)
|
foregrnd backgrnd depth)
|
||||||
(let* ((display (window-display window))
|
(let* ((display (window-display window))
|
||||||
(pixmap (create-pixmap-from-bitmap-data (display-Xdisplay display)
|
(pixmap (create-pixmap-from-bitmap-data (display-Xdisplay display)
|
||||||
(window-Xwindow window)
|
(window-Xwindow window)
|
||||||
data widht height foregrnd
|
data width height foregrnd
|
||||||
backgrd depth)))
|
backgrnd depth)))
|
||||||
(make-pixmap pixmap display #t)))
|
(make-pixmap pixmap display #t)))
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
"scx_Create_Pixmap_From_Bitmap_Data")
|
"scx_Create_Pixmap_From_Bitmap_Data")
|
||||||
|
|
||||||
;; read-bitmap-file reads the bitmap data from the file, creates a new
|
;; read-bitmap-file reads the bitmap data from the file, creates a new
|
||||||
;; pixmap and returns a list of five elements (pixmap widht heigth
|
;; pixmap and returns a list of five elements (pixmap width heigth
|
||||||
;; x-hot y-hot). if x-hot and y-hot are not defined in the file then
|
;; x-hot y-hot). if x-hot and y-hot are not defined in the file then
|
||||||
;; they are set to -1,-1. See XReadBitmapFile;
|
;; they are set to -1,-1. See XReadBitmapFile;
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@
|
||||||
(xy-hot (cond
|
(xy-hot (cond
|
||||||
((null? hotspot) (cons -1 -1))
|
((null? hotspot) (cons -1 -1))
|
||||||
(else (car hotspot)))))
|
(else (car hotspot)))))
|
||||||
(%write-bitmap-file dpy filename pixmap widht height
|
(%write-bitmap-file dpy filename pixmap width height
|
||||||
(car xy-hot) (cdr xy-hot))))
|
(car xy-hot) (cdr xy-hot))))
|
||||||
|
|
||||||
(import-lambda-definition %write-bitmap-file (Xdisplay file Xpixmap w h x y)
|
(import-lambda-definition %write-bitmap-file (Xdisplay file Xpixmap w h x y)
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
; --- RETURN: atom
|
; --- RETURN: atom
|
||||||
|
|
||||||
(define (intern-atom display name)
|
(define (intern-atom display name)
|
||||||
(make-atom (%intern_atom (display-Xdisplay display)
|
(make-atom (%intern-atom (display-Xdisplay display)
|
||||||
(if (symbol? name)
|
(if (symbol? name)
|
||||||
(symbol->string name)
|
(symbol->string name)
|
||||||
name))))
|
name))))
|
||||||
|
@ -125,7 +125,7 @@
|
||||||
; --- RETURN -> "void"
|
; --- RETURN -> "void"
|
||||||
|
|
||||||
(define (convert-selection selection target property requestor-window time)
|
(define (convert-selection selection target property requestor-window time)
|
||||||
(%convert-selection (display-Xdisplay (window-display requestor-windw))
|
(%convert-selection (display-Xdisplay (window-display requestor-window))
|
||||||
(atom-Xatom selection)
|
(atom-Xatom selection)
|
||||||
(atom-Xatom target)
|
(atom-Xatom target)
|
||||||
(if (eq? 'none property)
|
(if (eq? 'none property)
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
;; XRectInRegion.
|
;; XRectInRegion.
|
||||||
|
|
||||||
(define (rectangle-in-region? region rectangle)
|
(define (rectangle-in-region? region rectangle)
|
||||||
(case (%rectanlge-in-region? (region-Xregion region)
|
(case (%rectangle-in-region? (region-Xregion region)
|
||||||
(car rectangle) (cadr rectangle)
|
(car rectangle) (cadr rectangle)
|
||||||
(caddr rectangle) (cadddr rectangle))
|
(caddr rectangle) (cadddr rectangle))
|
||||||
((0) #f)
|
((0) #f)
|
||||||
|
@ -126,7 +126,7 @@
|
||||||
(%offset-region! (region-Xregion region)
|
(%offset-region! (region-Xregion region)
|
||||||
dx dy))
|
dx dy))
|
||||||
|
|
||||||
(import-lambda-definition %offset-region (Xregion dx dy)
|
(import-lambda-definition %offset-region! (Xregion dx dy)
|
||||||
"scx_Offset_Region")
|
"scx_Offset_Region")
|
||||||
|
|
||||||
;; shrink-region! reduces the specified region by specified
|
;; shrink-region! reduces the specified region by specified
|
||||||
|
|
|
@ -102,7 +102,7 @@
|
||||||
(define (extents-intern id)
|
(define (extents-intern id)
|
||||||
(lambda (font text . format)
|
(lambda (font text . format)
|
||||||
(let ((format (if (null? format) '1-byte (car format))))
|
(let ((format (if (null? format) '1-byte (car format))))
|
||||||
(%extents (font-Xfontstruct font)
|
(%extents-text (font-Xfontstruct font)
|
||||||
(text->internal-text text format)
|
(text->internal-text text format)
|
||||||
(get-format-id format)
|
(get-format-id format)
|
||||||
id))))
|
id))))
|
||||||
|
|
|
@ -66,7 +66,9 @@
|
||||||
(define-structure xlib-graphics xlib-graphics-interface
|
(define-structure xlib-graphics xlib-graphics-interface
|
||||||
(open scheme
|
(open scheme
|
||||||
external-calls
|
external-calls
|
||||||
xlib-types)
|
xlib-types
|
||||||
|
list-lib ;; for fold-right
|
||||||
|
)
|
||||||
(files graphics))
|
(files graphics))
|
||||||
|
|
||||||
(define-structure xlib-event xlib-event-interface
|
(define-structure xlib-event xlib-event-interface
|
||||||
|
@ -80,7 +82,9 @@
|
||||||
(open scheme
|
(open scheme
|
||||||
signals ;; for error
|
signals ;; for error
|
||||||
external-calls
|
external-calls
|
||||||
xlib-types)
|
xlib-types
|
||||||
|
bitwise ;; for bitwise-and, arithmetix-shift
|
||||||
|
)
|
||||||
(files font))
|
(files font))
|
||||||
|
|
||||||
(define-structure xlib-text xlib-text-interface
|
(define-structure xlib-text xlib-text-interface
|
||||||
|
@ -107,6 +111,7 @@
|
||||||
(open scheme
|
(open scheme
|
||||||
external-calls
|
external-calls
|
||||||
xlib-types
|
xlib-types
|
||||||
|
signals ;; for error
|
||||||
)
|
)
|
||||||
(files wm))
|
(files wm))
|
||||||
|
|
||||||
|
@ -115,6 +120,7 @@
|
||||||
external-calls
|
external-calls
|
||||||
xlib-types
|
xlib-types
|
||||||
xlib-display ;; for check-screen-number
|
xlib-display ;; for check-screen-number
|
||||||
|
signals ;; for error
|
||||||
)
|
)
|
||||||
(files client))
|
(files client))
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,9 @@
|
||||||
general-tables
|
general-tables
|
||||||
primitives
|
primitives
|
||||||
define-record-types
|
define-record-types
|
||||||
external-calls)
|
external-calls
|
||||||
|
byte-vectors ;; for color-type.scm
|
||||||
|
)
|
||||||
(files helper
|
(files helper
|
||||||
display-type
|
display-type
|
||||||
color-type
|
color-type
|
||||||
|
|
Loading…
Reference in New Issue