-
Notifications
You must be signed in to change notification settings - Fork 0
/
text-item.lisp
43 lines (34 loc) · 1.06 KB
/
text-item.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
;; -*- mode: Lisp; Syntax: Common-Lisp; Package: cells; -*-
#|
Celtk -- Cells, Tcl, and Tk
Copyright (C) 2006 by Kenneth Tilton
This library is free software; you can redistribute it and/or
modify it under the terms of the Lisp Lesser GNU Public License
(http://opensource.franz.com/preamble.html), known as the LLGPL.
This library is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the Lisp Lesser GNU Public License for more details.
|#
(in-package :celtk)
(deftk text-item (tkfontified item)
()
(:tk-spec text
(tk-fill -fill)
-activefill
-disabledfill
-stipple
-activestipple
-disabledstipple
-state
-tags
;; -- special ---
-anchor
(tkfont -font)
(tk-justify -justify)
-text
-underline
-width)
(:default-initargs
:l-coords '(0 0) ;; the p-offset will positon the text
:coords-tweak (c_? (eko (nil "coords tweak" self)
(list 0 0 #+not (- (* (tk-scaling .tkw) (^tkfont-ascent))))))))