Got rid of the ridiculous scx- prefix

This commit is contained in:
eknauel 2003-10-27 10:06:25 +00:00
parent 9ef4af2017
commit 3b66e8fcbe
4 changed files with 276 additions and 263 deletions

View File

@ -9,8 +9,8 @@
(define *font-size* 36.0)
(define (fontset->list-of-patterns fs)
(let ((count (scx-xft-fontset-count fs))
(ref (lambda (x) (scx-xft-fontset-ref fs x))))
(let ((count (xft-fontset-count fs))
(ref (lambda (x) (xft-fontset-ref fs x))))
(unfold
(lambda (x) (equal? count x))
ref
@ -20,35 +20,35 @@
(define (list-all-fonts display screen)
(let ((p (make-xft-pattern))
(os (make-xft-objectset)))
(scx-xft-objectset-add os (xft-pattern-object family))
(let ((fs (scx-xft-list-fonts-pattern-objects display screen p os)))
(xft-objectset-add os (xft-pattern-object family))
(let ((fs (xft-list-fonts-pattern-objects display screen p os)))
(fontset->list-of-patterns fs))))
(define (family-name-of-font font)
(call-with-values
(lambda ()
(scx-xft-pattern-get (xft-font-pattern font) (xft-pattern-object family) 0))
(xft-pattern-get (xft-font-pattern font) (xft-pattern-object family) 0))
(lambda (code name)
(if (scx-xft-result-match? code)
(if (xft-result-match? code)
name "unknown font name"))))
(define (draw-font-name xft-draw xft-color-fg xft-color-bg font)
(scx-xft-draw-rect xft-draw xft-color-bg 0 0 400 200)
(scx-xft-draw-string-8bit xft-draw xft-color-fg font 10 65 (family-name-of-font font)))
(define (draw-font-name draw color-fg color-bg font)
(xft-draw-rect draw color-bg 0 0 400 200)
(xft-draw-string-8bit draw color-fg font 10 65 (family-name-of-font font)))
(define (open-font dpy screen pattern)
(call-with-values
(lambda ()
(let ((copy (scx-xft-pattern-duplicate pattern)))
(scx-xft-pattern-add copy (xft-pattern-object size) *font-size* #f)
(scx-xft-font-match dpy screen copy)))
(let ((copy (xft-pattern-duplicate pattern)))
(xft-pattern-add copy (xft-pattern-object size) *font-size* #f)
(xft-font-match dpy screen copy)))
(lambda (result pattern)
(cond
((and (scx-xft-result-match? result)
(scx-xft-font-open-pattern dpy pattern))
((and (xft-result-match? result)
(xft-font-open-pattern dpy pattern))
=> (lambda (font) font))
(else
(scx-xft-pattern-print pattern)
(xft-pattern-print pattern)
(error "Could not open font!"))))))
(define (font-demo)
@ -69,9 +69,9 @@
(make-gc-value-alist (background white)
(foreground black))))
(visual (screen:default-visual screen))
(xft-draw (scx-xft-draw-create dpy win visual cm))
(xft-black (scx-xft-color-alloc-name dpy visual cm "black"))
(xft-white (scx-xft-color-alloc-name dpy visual cm "white"))
(xft-draw (make-xft-draw dpy win visual cm))
(xft-black (xft-color-alloc-name dpy visual cm "black"))
(xft-white (xft-color-alloc-name dpy visual cm "white"))
(standard-font (open-font dpy screen (make-xft-pattern))))
(set-window-colormap! dpy win cm)

View File

@ -6,51 +6,40 @@
(define-interface xft-interface
(export
xft-pattern?
make-xft-pattern
xft-pattern-duplicate
xft-pattern-get
xft-pattern-add
xft-font?
xft-font-pattern
xft-color?
xft-objectset?
xft-fontset?
make-xft-pattern
scx-xft-pattern-duplicate
scx-xft-font-match
scx-xft-font-open-pattern
scx-xft-font-open-name
scx-xft-font-open-xlfd
scx-xft-draw-create
scx-xft-draw-create-bitmap
make-xft-objectset
scx-xft-pattern-get
scx-xft-pattern-add
scx-xft-draw-create
scx-xft-draw-create-bitmap
scx-xft-draw-change
scx-xft-text-extents-8bit
scx-xft-draw-string-8bit
scx-xft-draw-rect
scx-xft-draw-set-clip
scx-xft-objectset-add
scx-xft-list-fonts-pattern-objects
scx-xft-version-major
scx-xft-version-minor
scx-xft-fontset-add
scx-xft-color-alloc-name
scx-xft-pattern-print
scx-xft-fontset-print
scx-xft-fontset-count
scx-xft-fontset-ref
scx-xft-default-has-render?
scx-xft-default-substitute
;; Xft version 2
scx-xft-draw-display
scx-xft-draw-drawable
scx-xft-draw-colormap
scx-xft-draw-visual
xft-font-ascent
xft-font-descent
xft-font-height
xft-font-max-advance-width
scx-xft-result-match?
scx-xft-result-no-match?
scx-xft-result-type-mismatch?
scx-xft-result-no-id?
xft-fontset?
make-xft-fontset
xft-fontset-count
xft-fontset-ref
xft-fontset-add
xft-objectset?
make-xft-objectset
xft-objectset-add
xft-draw?
make-xft-draw
make-xft-draw-bitmap
xft-draw-display
xft-draw-drawable
xft-draw-colormap
xft-draw-visual
xft-draw-change
xft-color?
xft-color-alloc-name
xft-color-alloc-value
(xft-pattern-object :syntax)
xft-pattern-object?
@ -61,7 +50,7 @@
xft-weight?
xft-weight-elements
xft-weight-name
(xft-slant :syntax)
xft-slant?
xft-slant-elements
@ -75,30 +64,55 @@
(xft-rgba :syntax)
xft-rgba?
xft-rgba-elements
xft-rgba-name))
xft-rgba-name
xft-font-match
xft-font-open-pattern
xft-font-open-name
xft-font-open-xlfd
xft-list-fonts-pattern-objects
xft-text-extents-8bit
xft-draw-string-8bit
xft-draw-rect
xft-draw-set-clip
xft-fontset-print
xft-pattern-print
xft-default-has-render?
xft-default-substitute
xft-version-major
xft-version-minor
xft-result-match?
xft-result-no-match?
xft-result-type-mismatch?
xft-result-no-id?))
(define-interface xrender-interface
(export
xglyphinfo?
scx-xglyphinfo-width
scx-xglyphinfo-height
scx-xglyphinfo-x
scx-xglyphinfo-y
scx-xglyphinfo-xOff
scx-xglyphinfo-yOff
set-scx-xglyphinfo-width!
set-scx-xglyphinfo-height!
set-scx-xglyphinfo-x!
set-scx-xglyphinfo-y!
set-scx-xglyphinfo-xOff!
set-scx-xglyphinfo-yOff!
xglyphinfo-width
xglyphinfo-height
xglyphinfo-x
xglyphinfo-y
xglyphinfo-xOff
xglyphinfo-yOff
set-xglyphinfo-width!
set-xglyphinfo-height!
set-xglyphinfo-x!
set-xglyphinfo-y!
set-xglyphinfo-xOff!
set-xglyphinfo-yOff!
xrendercolor?
scx-xrendercolor-red
scx-xrendercolor-green
scx-xrendercolor-blue
scx-xrendercolor-alpha
set-scx-xrendercolor-red!
set-scx-xrendercolor-green!
set-scx-xrendercolor-blue!
set-scx-xrendercolor-alpha!))
xrendercolor-red
xrendercolor-green
xrendercolor-blue
xrendercolor-alpha
set-xrendercolor-red!
set-xrendercolor-green!
set-xrendercolor-blue!
set-xrendercolor-alpha!))

View File

@ -23,7 +23,7 @@
(define-exported-binding "xft-draw" :xft-draw)
(define-record-type xft-color :xft-color
(make-xft-color c-pointer display visual colormap)
(make-xft-color-internal c-pointer display visual colormap)
xft-color?
(c-pointer xft-color-c-pointer)
(display xft-color-display set-xft-color-display!)
@ -177,25 +177,25 @@
;;; add finalizers
(define (make-xft-pattern)
(let ((xft-pattern (scx-xft-pattern-create)))
(add-finalizer! xft-pattern scx-xft-pattern-destroy)
xft-pattern))
(let ((pattern (xft-pattern-create)))
(add-finalizer! pattern xft-pattern-destroy)
pattern))
(define (scx-xft-pattern-duplicate xft-pattern)
(let ((copy (scx-xft-pattern-duplicate-internal xft-pattern)))
(add-finalizer! copy scx-xft-pattern-destroy)
(define (xft-pattern-duplicate pattern)
(let ((copy (xft-pattern-duplicate-internal pattern)))
(add-finalizer! copy xft-pattern-destroy)
copy))
(define (scx-xft-pattern-get pattern object id)
(define (xft-pattern-get pattern object id)
(let ((object-id (xft-pattern-object-id object)))
(call-with-values
(lambda ()
(apply values
(scx-xft-pattern-get-internal pattern object-id id)))
(xft-pattern-get-internal pattern object-id id)))
(lambda (code value)
(values code
(cond
((not (scx-xft-result-match? code))
((not (xft-result-match? code))
#f)
((equal? object (xft-pattern-object weight))
(xft-weight-id->xft-weight value))
@ -207,10 +207,10 @@
(xft-rgba-id->xft-rgba value))
(else value)))))))
(define (scx-xft-pattern-add pattern object value append?)
(define (xft-pattern-add pattern object value append?)
(let* ((object-id (xft-pattern-object-id object))
(call (lambda (value)
(scx-xft-pattern-add-internal
(xft-pattern-add-internal
pattern object-id value append?))))
(cond
((equal? object (xft-pattern-object weight))
@ -223,163 +223,162 @@
(call (xft-rgba-id value)))
(else (call value)))))
(define (scx-xft-font-match display screen xft-pattern)
(define (xft-font-match display screen pattern)
(call-with-values
(lambda ()
(let ((screen-number (screen:number screen)))
(apply values
(scx-xft-font-match-internal display screen-number xft-pattern))))
(lambda (result xft-pattern)
(add-finalizer! xft-pattern scx-xft-pattern-destroy)
(values result xft-pattern))))
(xft-font-match-internal display screen-number pattern))))
(lambda (result pattern)
(add-finalizer! pattern xft-pattern-destroy)
(values result pattern))))
(define (scx-xft-font-close font)
(scx-xft-font-close (xft-font-display font) font))
(define (xft-font-close font)
(xft-font-close (xft-font-display font) font))
(define (scx-xft-font-open-pattern display pattern)
(let ((font (scx-xft-font-open-pattern-internal display pattern)))
(if font (add-finalizer! font scx-xft-font-close))
(define (xft-font-open-pattern display pattern)
(let ((font (xft-font-open-pattern-internal display pattern)))
(if font (add-finalizer! font xft-font-close))
font))
(define (scx-xft-font-open-name display screen name)
(define (xft-font-open-name display screen name)
(let* ((screen-number (screen:number screen))
(font (scx-xft-font-open-name-internal display screen-number name)))
(if font (add-finalizer! font scx-xft-font-close))
(font (xft-font-open-name-internal display screen-number name)))
(if font (add-finalizer! font xft-font-close))
font))
(define (scx-xft-font-open-xlfd display screen name)
(define (xft-font-open-xlfd display screen name)
(let* ((screen-numer (screen:number screen))
(font (scx-xft-font-open-xlfd-internal display screen-numer name)))
(if font (add-finalizer! font scx-xft-font-close))
(font (xft-font-open-xlfd-internal display screen-numer name)))
(if font (add-finalizer! font xft-font-close))
font))
(define (scx-xft-draw-create display drawable visual colormap)
(let ((xft-draw (scx-xft-draw-create-internal display drawable visual colormap)))
(add-finalizer! xft-draw scx-xft-draw-destroy)
xft-draw))
(define (make-xft-draw display drawable visual colormap)
(let ((draw (xft-draw-create-internal display drawable visual colormap)))
(add-finalizer! draw xft-draw-destroy)
draw))
(define (scx-xft-draw-create-bitmap display drawable)
(let ((xft-draw (scx-xft-draw-create-bitmap-internal display drawable)))
(add-finalizer! xft-draw scx-xft-draw-destroy)
xft-draw))
(define (make-xft-draw-bitmap display drawable)
(let ((draw (xft-draw-create-bitmap-internal display drawable)))
(add-finalizer! draw xft-draw-destroy)
draw))
(define (make-xft-objectset)
(let ((xft-objectset (scx-xft-objectset-create)))
(add-finalizer! xft-objectset scx-xft-objectset-destroy)
xft-objectset))
(let ((objectset (xft-objectset-create)))
(add-finalizer! objectset xft-objectset-destroy)
objectset))
(define (scx-xft-objectset-add xft-objectset xft-pattern-object)
(scx-xft-objectset-add-internal
xft-objectset (xft-pattern-object-id xft-pattern-object)))
(define (xft-objectset-add objectset pattern-object)
(xft-objectset-add-internal
objectset (xft-pattern-object-id pattern-object)))
(define (scx-xft-draw-display xft-draw)
(let ((display (scx-xft-draw-display-internal xft-draw)))
(define (xft-draw-display draw)
(let ((display (xft-draw-display-internal draw)))
(if display
display
(error "XftDrawDisplay() unavailable in this version of Xft"))))
(define (scx-xft-draw-drawable xft-draw)
(let ((drawable (scx-xft-draw-drawable-internal xft-draw)))
(define (xft-draw-drawable draw)
(let ((drawable (xft-draw-drawable-internal draw)))
(if drawable
drawable
(error "XftDrawDrawable() unavailable in this version of Xft"))))
(define (scx-xft-draw-colormap xft-draw)
(let ((colormap (scx-xft-draw-colormap-internal xft-draw)))
(define (xft-draw-colormap draw)
(let ((colormap (xft-draw-colormap-internal draw)))
(if colormap
colormap
(error "XftDrawColormap() unavailable in this version of Xft"))))
(define (scx-xft-draw-visual xft-draw)
(let ((visual (scx-xft-draw-visual-internal xft-draw)))
(define (xft-draw-visual draw)
(let ((visual (xft-draw-visual-internal draw)))
(if visual
visual
(error "XftDrawVisual() unavailable in this version of Xft"))))
(define (scx-xft-list-fonts-pattern-objects display screen xft-pattern xft-objectset)
(define (xft-list-fonts-pattern-objects display screen pattern objectset)
(let* ((screen-number (screen:number screen))
(fontset (scx-xft-list-fonts-pattern-objects-internal
display screen-number xft-pattern xft-objectset)))
(add-finalizer! fontset scx-xft-fontset-destroy)
(fontset (xft-list-fonts-pattern-objects-internal
display screen-number pattern objectset)))
(add-finalizer! fontset xft-fontset-destroy)
fontset))
(define (make-xft-fontset)
(let ((fontset (scx-xft-fontset-create)))
(let ((fontset (xft-fontset-create)))
(set-xft-fontset-patterns! fontset '())
(add-finalizer! fontset scx-xft-fontset-create)
(add-finalizer! fontset xft-fontset-create)
fontset))
(define (scx-xft-fontset-add xft-fontset xft-pattern)
(define (xft-fontset-add fontset pattern)
(set-xft-fontset-patterns!
xft-fontset (lset-adjoin eq? xft-pattern (xft-fontset-patterns xft-fontset)))
(scx-xft-fontset-add-internal xft-fontset xft-pattern))
fontset (lset-adjoin eq? pattern (xft-fontset-patterns fontset)))
(xft-fontset-add-internal fontset pattern))
(define (scx-xft-color-alloc-name display visual colormap name)
(define (xft-color-alloc-name display visual colormap name)
(call-with-values
(lambda ()
(apply values
(scx-xft-color-alloc-name-internal display visual colormap name)))
(lambda (success? xft-color)
(xft-color-alloc-name-internal display visual colormap name)))
(lambda (success? color)
(if success?
(begin
(set-xft-color-display! xft-color display)
(set-xft-color-visual! xft-color visual)
(set-xft-color-colormap! xft-color colormap)
(add-finalizer! xft-color xft-color-finalizer)
xft-color)
(set-xft-color-display! color display)
(set-xft-color-visual! color visual)
(set-xft-color-colormap! color colormap)
(add-finalizer! color xft-color-finalizer)
color)
;;; FIXME: raise error
#f))))
(define (scx-xft-color-alloc-value display visual colormap xrendercolor)
(define (xft-color-alloc-value display visual colormap xrendercolor)
(call-with-values
(lambda ()
(apply values
(scx-xft-color-alloc-value-internal display visual colormap xrendercolor)))
(lambda (success? xft-color)
(set-xft-color-display! xft-color display)
(set-xft-color-visual! xft-color visual)
(set-xft-color-colormap! xft-color colormap)
(add-finalizer! xft-color xft-color-finalizer)
xft-color)))
(xft-color-alloc-value-internal display visual colormap xrendercolor)))
(lambda (success? color)
(set-xft-color-display! color display)
(set-xft-color-visual! color visual)
(set-xft-color-colormap! color colormap)
(add-finalizer! color xft-color-finalizer)
color)))
(define (xft-color-finalizer xft-color)
(scx-xft-color-free (xft-color-display xft-color)
(xft-color-visual xft-color)
(xft-color-colormap xft-color)
xft-color))
(define (xft-color-finalizer color)
(xft-color-free (xft-color-display color)
(xft-color-visual color)
(xft-color-colormap color)
color))
(define (scx-xft-default-substitute display screen pattern)
(scx-xft-default-substitute-internal
display (screen:number screen) pattern))
(define (xft-default-substitute display screen pattern)
(xft-default-substitute-internal display (screen:number screen) pattern))
;;; import values from C code
(define scx-xft-version-major
(define xft-version-major
(shared-binding-ref
(lookup-imported-binding "scx-xft-version-major")))
(define scx-xft-version-minor
(define xft-version-minor
(shared-binding-ref
(lookup-imported-binding "scx-xft-version-minor")))
(define scx-xft-result-match?
(define xft-result-match?
(let ((code (shared-binding-ref
(lookup-imported-binding "scx-xft-result-match"))))
(lambda (value)
(equal? value code))))
(define scx-xft-result-no-match?
(define xft-result-no-match?
(let ((code (shared-binding-ref
(lookup-imported-binding "scx-xft-result-no-match"))))
(lambda (value)
(equal? value code))))
(define scx-xft-result-type-mismatch?
(define xft-result-type-mismatch?
(let ((code (shared-binding-ref
(lookup-imported-binding "scx-xft-result-type-mismatch"))))
(lambda (value)
(equal? value code))))
(define scx-xft-result-no-id?
(define xft-result-no-id?
(let ((code (shared-binding-ref
(lookup-imported-binding "scx-xft-result-no-id"))))
(lambda (value)
@ -387,170 +386,170 @@
;;; import functions from C code
(import-lambda-definition scx-xft-pattern-create
(import-lambda-definition xft-pattern-create
()
"scx_XftPatternCreate")
(import-lambda-definition scx-xft-pattern-destroy
(import-lambda-definition xft-pattern-destroy
()
"scx_XftPatternDestroy")
(import-lambda-definition scx-xft-pattern-duplicate-internal
(xft-pattern)
(import-lambda-definition xft-pattern-duplicate-internal
(pattern)
"scx_XftPatternDuplicate")
(import-lambda-definition scx-xft-pattern-get-internal
(xft-pattern object id)
(import-lambda-definition xft-pattern-get-internal
(pattern object id)
"scx_XftPatternGet")
(import-lambda-definition scx-xft-pattern-add-internal
(xft-pattern object value append?)
(import-lambda-definition xft-pattern-add-internal
(pattern object value append?)
"scx_XftPatternAdd")
(import-lambda-definition scx-xft-font-match-internal
(display screen-number xft-pattern)
(import-lambda-definition xft-font-match-internal
(display screen-number pattern)
"scx_XftFontMatch")
(import-lambda-definition scx-xft-font-open-pattern-internal
(display xft-pattern)
(import-lambda-definition xft-font-open-pattern-internal
(display pattern)
"scx_XftFontOpenPattern")
(import-lambda-definition scx-xft-font-open-name-internal
(import-lambda-definition xft-font-open-name-internal
(display screen-number name)
"scx_XftFontOpenName")
(import-lambda-definition scx-xft-font-open-xlfd-internal
(import-lambda-definition xft-font-open-xlfd-internal
(display screen-number xlfd-name)
"scx_XftFontOpenXlfd")
(import-lambda-definition scx-xft-font-close-internal
(display xft-font)
(import-lambda-definition xft-font-close-internal
(display font)
"scx_XftFontClose")
(import-lambda-definition scx-xft-draw-create-internal
(import-lambda-definition xft-draw-create-internal
(display drawable visual colormap)
"scx_XftDrawCreate")
(import-lambda-definition scx-xft-draw-create-bitmap-internal
(import-lambda-definition xft-draw-create-bitmap-internal
(display drawable)
"scx_XftDrawCreateBitmap")
(import-lambda-definition scx-xft-draw-change
(xft-draw drawable)
(import-lambda-definition xft-draw-change
(draw drawable)
"scx_XftDrawChange")
(import-lambda-definition scx-xft-draw-display-internal
(xft-draw)
(import-lambda-definition xft-draw-display-internal
(draw)
"scx_XftDrawDisplay")
(import-lambda-definition scx-xft-draw-drawable-internal
(xft-draw)
(import-lambda-definition xft-draw-drawable-internal
(draw)
"scx_XftDrawDrawable")
(import-lambda-definition scx-xft-draw-colormap-internal
(xft-draw)
(import-lambda-definition xft-draw-colormap-internal
(draw)
"scx_XftDrawColormap")
(import-lambda-definition scx-xft-draw-visual-internal
(xft-draw)
(import-lambda-definition xft-draw-visual-internal
(draw)
"scx_XftDrawVisual")
(import-lambda-definition scx-xft-draw-destroy
(xft-draw)
(import-lambda-definition xft-draw-destroy
(draw)
"scx_XftDrawDestroy")
(import-lambda-definition scx-xft-text-extents-8bit
(display xft-font string)
(import-lambda-definition xft-text-extents-8bit
(display font string)
"scx_XftTextExtents8")
(import-lambda-definition scx-xft-draw-string-8bit
(xft-draw xft-color xft-font x y string)
(import-lambda-definition xft-draw-string-8bit
(draw color font x y string)
"scx_XftDrawString8")
(import-lambda-definition scx-xft-draw-rect
(xft-draw xft-color x y w h)
(import-lambda-definition xft-draw-rect
(draw color x y w h)
"scx_XftDrawRect")
(import-lambda-definition scx-xft-draw-set-clip
(xft-draw region)
(import-lambda-definition xft-draw-set-clip
(draw region)
"scx_XftDrawSetClip")
(import-lambda-definition scx-xft-objectset-create
(import-lambda-definition xft-objectset-create
()
"scx_XftObjectSetCreate")
(import-lambda-definition scx-xft-objectset-destroy
(xft-objectset)
(import-lambda-definition xft-objectset-destroy
(objectset)
"scx_XftObjectSetDestroy")
(import-lambda-definition scx-xft-objectset-add-internal
(xft-objectset object)
(import-lambda-definition xft-objectset-add-internal
(objectset object)
"scx_XftObjectSetAdd")
(import-lambda-definition scx-xft-list-fonts-pattern-objects-internal
(display screen-number xft-pattern xft-objectset)
(import-lambda-definition xft-list-fonts-pattern-objects-internal
(display screen-number pattern objectset)
"scx_XftListFontsPatternObjects")
(import-lambda-definition scx-xft-fontset-create
(import-lambda-definition xft-fontset-create
()
"scx_XftFontSetCreate")
(import-lambda-definition scx-xft-fontset-destroy
(xft-fontset)
(import-lambda-definition xft-fontset-destroy
(fontset)
"scx_XftFontSetDestroy")
(import-lambda-definition scx-xft-fontset-add-internal
(xft-fontset xft-pattern)
(import-lambda-definition xft-fontset-add-internal
(fontset pattern)
"scx_XftFontSetAdd")
(import-lambda-definition scx-xft-color-alloc-name-internal
(import-lambda-definition xft-color-alloc-name-internal
(display visual colormap name)
"scx_XftColorAllocName")
(import-lambda-definition scx-xft-color-alloc-value-internal
(import-lambda-definition xft-color-alloc-value-internal
(display visual colormap xrendercolor)
"scx_XftColorAllocValue")
(import-lambda-definition scx-xft-color-free
(display visual colormap xft-color)
(import-lambda-definition xft-color-free
(display visual colormap color)
"scx_XftColorFree")
(import-lambda-definition scx-xft-pattern-print
(xft-pattern)
(import-lambda-definition xft-pattern-print
(pattern)
"scx_XftPatternPrint")
(import-lambda-definition scx-xft-fontset-print
(xft-fontset)
(import-lambda-definition xft-fontset-print
(fontset)
"scx_XftFontSetPrint")
(import-lambda-definition scx-xft-default-has-render?
(import-lambda-definition xft-default-has-render?
(display)
"scx_XftDefaultHasRender")
(import-lambda-definition scx-xft-default-substitute-internal
(import-lambda-definition xft-default-substitute-internal
(display screen-number pattern)
"scx_XftDefaultSubstitute")
(import-lambda-definition scx-xft-xft-font-ascent
(xft-font)
(import-lambda-definition xft-font-ascent
(font)
"scx_xftfont_ascent_get")
(import-lambda-definition scx-xft-xft-font-descent
(xft-font)
(import-lambda-definition xft-font-descent
(font)
"scx_xftfont_descent_get")
(import-lambda-definition scx-xft-xft-font-height
(xft-font)
(import-lambda-definition xft-font-height
(font)
"scx_xftfont_height_get")
(import-lambda-definition scx-xft-xft-font-max-advance-width
(xft-font)
(import-lambda-definition xft-font-max-advance-width
(font)
"scx_xftfont_max_advance_width_get")
(import-lambda-definition scx-xft-fontset-count
(xft-fontset)
(import-lambda-definition xft-fontset-count
(fontset)
"scx_xftfontset_count_get")
(import-lambda-definition scx-xft-fontset-ref
(xft-fontset index)
(import-lambda-definition xft-fontset-ref
(fontset index)
"scx_xftfontset_pattern_ref")

View File

@ -13,84 +13,84 @@
;; XGlyphInfo
(import-lambda-definition scx-xglyphinfo-width
(import-lambda-definition xglyphinfo-width
(xglyphinfo)
"scx_xglyphinfo_width_get")
(import-lambda-definition scx-xglyphinfo-height
(import-lambda-definition xglyphinfo-height
(xglyphinfo)
"scx_xglyphinfo_height_get")
(import-lambda-definition scx-xglyphinfo-x
(import-lambda-definition xglyphinfo-x
(xglyphinfo)
"scx_xglyphinfo_x_get")
(import-lambda-definition scx-xglyphinfo-y
(import-lambda-definition xglyphinfo-y
(xglyphinfo)
"scx_xglyphinfo_y_get")
(import-lambda-definition scx-xglyphinfo-xOff
(import-lambda-definition xglyphinfo-xOff
(xglyphinfo)
"scx_xglyphinfo_xOff_get")
(import-lambda-definition scx-xglyphinfo-yOff
(import-lambda-definition xglyphinfo-yOff
(xglyphinfo)
"scx_xglyphinfo_yOff_get")
(import-lambda-definition set-scx-xglyphinfo-width!
(import-lambda-definition set-xglyphinfo-width!
(xglyphinfo new-value)
"scx_xglyphinfo_width_set")
(import-lambda-definition set-scx-xglyphinfo-height!
(import-lambda-definition set-xglyphinfo-height!
(xglyphinfo new-value)
"scx_xglyphinfo_height_set")
(import-lambda-definition set-scx-xglyphinfo-x!
(import-lambda-definition set-xglyphinfo-x!
(xglyphinfo new-value)
"scx_xglyphinfo_x_set")
(import-lambda-definition set-scx-xglyphinfo-y!
(import-lambda-definition set-xglyphinfo-y!
(xglyphinfo new-value)
"scx_xglyphinfo_y_set")
(import-lambda-definition set-scx-xglyphinfo-xOff!
(import-lambda-definition set-xglyphinfo-xOff!
(xglyphinfo new-value)
"scx_xglyphinfo_xOff_set")
(import-lambda-definition set-scx-xglyphinfo-yOff!
(import-lambda-definition set-xglyphinfo-yOff!
(xglyphinfo new-value)
"scx_xglyphinfo_yOff_set")
;; XRenderColor
(import-lambda-definition scx-xrendercolor-red
(import-lambda-definition xrendercolor-red
(xrendercolor)
"scx_xrendercolor_red_get")
(import-lambda-definition scx-xrendercolor-green
(import-lambda-definition xrendercolor-green
(xrendercolor)
"scx_xrendercolor_green_get")
(import-lambda-definition scx-xrendercolor-blue
(import-lambda-definition xrendercolor-blue
(xrendercolor)
"scx_xrendercolor_blue_get")
(import-lambda-definition scx-xrendercolor-alpha
(import-lambda-definition xrendercolor-alpha
(xrendercolor)
"scx_xrendercolor_alpha_get")
(import-lambda-definition set-scx-xrendercolor-red!
(import-lambda-definition set-xrendercolor-red!
(xrendercolor new-value)
"scx_xrendercolor_red_set")
(import-lambda-definition set-scx-xrendercolor-green!
(import-lambda-definition set-xrendercolor-green!
(xrendercolor new-value)
"scx_xrendercolor_green_set")
(import-lambda-definition set-scx-xrendercolor-blue!
(import-lambda-definition set-xrendercolor-blue!
(xrendercolor new-value)
"scx_xrendercolor_blue_set")
(import-lambda-definition set-scx-xrendercolor-alpha!
(import-lambda-definition set-xrendercolor-alpha!
(xrendercolor new-value)
"scx_xrendercolor_alpha_set")