Pratt 1.5.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.exrc +61 -0
- data/.gitignore +4 -0
- data/History.txt +6 -0
- data/Manifest.txt +46 -0
- data/Pratt.gemspec +351 -0
- data/README.txt +66 -0
- data/Rakefile +85 -0
- data/TODO +54 -0
- data/VERSION +1 -0
- data/bin/pratt.rb +13 -0
- data/config.rb +34 -0
- data/lib/pratt.rb +527 -0
- data/lib/pratt/array.rb +11 -0
- data/lib/pratt/string.rb +18 -0
- data/models/app.rb +40 -0
- data/models/customer.rb +24 -0
- data/models/payment.rb +22 -0
- data/models/pratt.rb +19 -0
- data/models/project.rb +82 -0
- data/models/whence.rb +70 -0
- data/pkgs/tile-0.8.2.tar.gz +0 -0
- data/pkgs/tile-0.8.2/ANNOUNCE.txt +95 -0
- data/pkgs/tile-0.8.2/ChangeLog +4651 -0
- data/pkgs/tile-0.8.2/Makefile +250 -0
- data/pkgs/tile-0.8.2/Makefile.in +250 -0
- data/pkgs/tile-0.8.2/README.txt +86 -0
- data/pkgs/tile-0.8.2/aclocal.m4 +2 -0
- data/pkgs/tile-0.8.2/altTheme.o +0 -0
- data/pkgs/tile-0.8.2/blink.o +0 -0
- data/pkgs/tile-0.8.2/button.o +0 -0
- data/pkgs/tile-0.8.2/cache.o +0 -0
- data/pkgs/tile-0.8.2/clamTheme.o +0 -0
- data/pkgs/tile-0.8.2/classicTheme.o +0 -0
- data/pkgs/tile-0.8.2/config.log +1330 -0
- data/pkgs/tile-0.8.2/config.status +795 -0
- data/pkgs/tile-0.8.2/configure +15248 -0
- data/pkgs/tile-0.8.2/configure.in +89 -0
- data/pkgs/tile-0.8.2/demos/autocomplete.tcl +59 -0
- data/pkgs/tile-0.8.2/demos/demo.tcl +870 -0
- data/pkgs/tile-0.8.2/demos/dirbrowser.tcl +167 -0
- data/pkgs/tile-0.8.2/demos/dlgtest.tcl +97 -0
- data/pkgs/tile-0.8.2/demos/iconlib.tcl +110 -0
- data/pkgs/tile-0.8.2/demos/repeater.tcl +117 -0
- data/pkgs/tile-0.8.2/demos/toolbutton.tcl +101 -0
- data/pkgs/tile-0.8.2/doc/Geometry.3 +230 -0
- data/pkgs/tile-0.8.2/doc/INDEX.MAP +153 -0
- data/pkgs/tile-0.8.2/doc/Makefile +36 -0
- data/pkgs/tile-0.8.2/doc/TILE.XML +45 -0
- data/pkgs/tile-0.8.2/doc/Theme.3 +34 -0
- data/pkgs/tile-0.8.2/doc/button.n +75 -0
- data/pkgs/tile-0.8.2/doc/checkbutton.n +61 -0
- data/pkgs/tile-0.8.2/doc/combobox.n +98 -0
- data/pkgs/tile-0.8.2/doc/converting.txt +97 -0
- data/pkgs/tile-0.8.2/doc/dialog.n +122 -0
- data/pkgs/tile-0.8.2/doc/entry.n +438 -0
- data/pkgs/tile-0.8.2/doc/frame.n +43 -0
- data/pkgs/tile-0.8.2/doc/html/Geometry.html +304 -0
- data/pkgs/tile-0.8.2/doc/html/Theme.html +48 -0
- data/pkgs/tile-0.8.2/doc/html/button.html +120 -0
- data/pkgs/tile-0.8.2/doc/html/category-index.html +18 -0
- data/pkgs/tile-0.8.2/doc/html/checkbutton.html +94 -0
- data/pkgs/tile-0.8.2/doc/html/combobox.html +164 -0
- data/pkgs/tile-0.8.2/doc/html/converting.txt +97 -0
- data/pkgs/tile-0.8.2/doc/html/dialog.html +159 -0
- data/pkgs/tile-0.8.2/doc/html/entry.html +613 -0
- data/pkgs/tile-0.8.2/doc/html/frame.html +76 -0
- data/pkgs/tile-0.8.2/doc/html/image.html +100 -0
- data/pkgs/tile-0.8.2/doc/html/index.html +25 -0
- data/pkgs/tile-0.8.2/doc/html/keyword-index.html +228 -0
- data/pkgs/tile-0.8.2/doc/html/label.html +133 -0
- data/pkgs/tile-0.8.2/doc/html/labelframe.html +91 -0
- data/pkgs/tile-0.8.2/doc/html/manpage.css +212 -0
- data/pkgs/tile-0.8.2/doc/html/menubutton.html +63 -0
- data/pkgs/tile-0.8.2/doc/html/notebook.html +280 -0
- data/pkgs/tile-0.8.2/doc/html/paned.html +149 -0
- data/pkgs/tile-0.8.2/doc/html/progressbar.html +138 -0
- data/pkgs/tile-0.8.2/doc/html/radiobutton.html +89 -0
- data/pkgs/tile-0.8.2/doc/html/scrollbar.html +221 -0
- data/pkgs/tile-0.8.2/doc/html/separator.html +48 -0
- data/pkgs/tile-0.8.2/doc/html/sizegrip.html +62 -0
- data/pkgs/tile-0.8.2/doc/html/style.html +172 -0
- data/pkgs/tile-0.8.2/doc/html/tile-intro.html +164 -0
- data/pkgs/tile-0.8.2/doc/html/treeview.html +634 -0
- data/pkgs/tile-0.8.2/doc/html/widget.html +342 -0
- data/pkgs/tile-0.8.2/doc/image.n +81 -0
- data/pkgs/tile-0.8.2/doc/internals.txt +409 -0
- data/pkgs/tile-0.8.2/doc/label.n +75 -0
- data/pkgs/tile-0.8.2/doc/labelframe.n +64 -0
- data/pkgs/tile-0.8.2/doc/man.macros +239 -0
- data/pkgs/tile-0.8.2/doc/menubutton.n +41 -0
- data/pkgs/tile-0.8.2/doc/notebook.n +188 -0
- data/pkgs/tile-0.8.2/doc/paned.n +95 -0
- data/pkgs/tile-0.8.2/doc/progressbar.n +79 -0
- data/pkgs/tile-0.8.2/doc/radiobutton.n +57 -0
- data/pkgs/tile-0.8.2/doc/scrollbar.n +160 -0
- data/pkgs/tile-0.8.2/doc/separator.n +30 -0
- data/pkgs/tile-0.8.2/doc/sizegrip.n +53 -0
- data/pkgs/tile-0.8.2/doc/style.n +119 -0
- data/pkgs/tile-0.8.2/doc/tile-intro.n +165 -0
- data/pkgs/tile-0.8.2/doc/tmml.options +4 -0
- data/pkgs/tile-0.8.2/doc/treeview.n +415 -0
- data/pkgs/tile-0.8.2/doc/widget.n +227 -0
- data/pkgs/tile-0.8.2/doc/xml/Geometry.tmml +379 -0
- data/pkgs/tile-0.8.2/doc/xml/INDEX.MAP +153 -0
- data/pkgs/tile-0.8.2/doc/xml/Theme.tmml +63 -0
- data/pkgs/tile-0.8.2/doc/xml/button.tmml +134 -0
- data/pkgs/tile-0.8.2/doc/xml/checkbutton.tmml +119 -0
- data/pkgs/tile-0.8.2/doc/xml/combobox.tmml +184 -0
- data/pkgs/tile-0.8.2/doc/xml/dialog.tmml +195 -0
- data/pkgs/tile-0.8.2/doc/xml/entry.tmml +630 -0
- data/pkgs/tile-0.8.2/doc/xml/frame.tmml +98 -0
- data/pkgs/tile-0.8.2/doc/xml/image.tmml +101 -0
- data/pkgs/tile-0.8.2/doc/xml/label.tmml +154 -0
- data/pkgs/tile-0.8.2/doc/xml/labelframe.tmml +116 -0
- data/pkgs/tile-0.8.2/doc/xml/menubutton.tmml +80 -0
- data/pkgs/tile-0.8.2/doc/xml/notebook.tmml +306 -0
- data/pkgs/tile-0.8.2/doc/xml/paned.tmml +154 -0
- data/pkgs/tile-0.8.2/doc/xml/progressbar.tmml +151 -0
- data/pkgs/tile-0.8.2/doc/xml/radiobutton.tmml +109 -0
- data/pkgs/tile-0.8.2/doc/xml/scrollbar.tmml +233 -0
- data/pkgs/tile-0.8.2/doc/xml/separator.tmml +59 -0
- data/pkgs/tile-0.8.2/doc/xml/sizegrip.tmml +82 -0
- data/pkgs/tile-0.8.2/doc/xml/style.tmml +171 -0
- data/pkgs/tile-0.8.2/doc/xml/tile-intro.tmml +192 -0
- data/pkgs/tile-0.8.2/doc/xml/treeview.tmml +604 -0
- data/pkgs/tile-0.8.2/doc/xml/widget.tmml +372 -0
- data/pkgs/tile-0.8.2/entry.o +0 -0
- data/pkgs/tile-0.8.2/frame.o +0 -0
- data/pkgs/tile-0.8.2/generic/Makefile.in +221 -0
- data/pkgs/tile-0.8.2/generic/TODO +493 -0
- data/pkgs/tile-0.8.2/generic/altTheme.c +1172 -0
- data/pkgs/tile-0.8.2/generic/blink.c +168 -0
- data/pkgs/tile-0.8.2/generic/button.c +858 -0
- data/pkgs/tile-0.8.2/generic/cache.c +354 -0
- data/pkgs/tile-0.8.2/generic/clamTheme.c +974 -0
- data/pkgs/tile-0.8.2/generic/classicTheme.c +518 -0
- data/pkgs/tile-0.8.2/generic/configure +10334 -0
- data/pkgs/tile-0.8.2/generic/configure.in +100 -0
- data/pkgs/tile-0.8.2/generic/entry.c +1922 -0
- data/pkgs/tile-0.8.2/generic/frame.c +648 -0
- data/pkgs/tile-0.8.2/generic/gunk.h +44 -0
- data/pkgs/tile-0.8.2/generic/image.c +416 -0
- data/pkgs/tile-0.8.2/generic/label.c +663 -0
- data/pkgs/tile-0.8.2/generic/layout.c +1215 -0
- data/pkgs/tile-0.8.2/generic/manager.c +554 -0
- data/pkgs/tile-0.8.2/generic/manager.h +91 -0
- data/pkgs/tile-0.8.2/generic/notebook.c +1380 -0
- data/pkgs/tile-0.8.2/generic/paned.c +958 -0
- data/pkgs/tile-0.8.2/generic/pkgIndex.tcl.in +7 -0
- data/pkgs/tile-0.8.2/generic/progress.c +549 -0
- data/pkgs/tile-0.8.2/generic/scale.c +526 -0
- data/pkgs/tile-0.8.2/generic/scroll.c +253 -0
- data/pkgs/tile-0.8.2/generic/scrollbar.c +346 -0
- data/pkgs/tile-0.8.2/generic/separator.c +132 -0
- data/pkgs/tile-0.8.2/generic/square.c +306 -0
- data/pkgs/tile-0.8.2/generic/tagset.c +147 -0
- data/pkgs/tile-0.8.2/generic/tile.c +296 -0
- data/pkgs/tile-0.8.2/generic/tkElements.c +1280 -0
- data/pkgs/tile-0.8.2/generic/tkTheme.c +1708 -0
- data/pkgs/tile-0.8.2/generic/tkTheme.h +419 -0
- data/pkgs/tile-0.8.2/generic/tkThemeInt.h +45 -0
- data/pkgs/tile-0.8.2/generic/tkstate.c +268 -0
- data/pkgs/tile-0.8.2/generic/trace.c +145 -0
- data/pkgs/tile-0.8.2/generic/track.c +174 -0
- data/pkgs/tile-0.8.2/generic/treeview.c +3211 -0
- data/pkgs/tile-0.8.2/generic/ttk.decls +154 -0
- data/pkgs/tile-0.8.2/generic/ttkDecls.h +340 -0
- data/pkgs/tile-0.8.2/generic/ttkStubInit.c +61 -0
- data/pkgs/tile-0.8.2/generic/ttkStubLib.c +70 -0
- data/pkgs/tile-0.8.2/generic/widget.c +785 -0
- data/pkgs/tile-0.8.2/generic/widget.h +263 -0
- data/pkgs/tile-0.8.2/image.o +0 -0
- data/pkgs/tile-0.8.2/label.o +0 -0
- data/pkgs/tile-0.8.2/layout.o +0 -0
- data/pkgs/tile-0.8.2/library/altTheme.tcl +101 -0
- data/pkgs/tile-0.8.2/library/aquaTheme.tcl +62 -0
- data/pkgs/tile-0.8.2/library/button.tcl +85 -0
- data/pkgs/tile-0.8.2/library/clamTheme.tcl +139 -0
- data/pkgs/tile-0.8.2/library/classicTheme.tcl +108 -0
- data/pkgs/tile-0.8.2/library/combobox.tcl +439 -0
- data/pkgs/tile-0.8.2/library/cursors.tcl +36 -0
- data/pkgs/tile-0.8.2/library/defaults.tcl +118 -0
- data/pkgs/tile-0.8.2/library/dialog.tcl +274 -0
- data/pkgs/tile-0.8.2/library/entry.tcl +580 -0
- data/pkgs/tile-0.8.2/library/fonts.tcl +153 -0
- data/pkgs/tile-0.8.2/library/icons.tcl +105 -0
- data/pkgs/tile-0.8.2/library/keynav.tcl +192 -0
- data/pkgs/tile-0.8.2/library/menubutton.tcl +171 -0
- data/pkgs/tile-0.8.2/library/notebook.tcl +193 -0
- data/pkgs/tile-0.8.2/library/paned.tcl +87 -0
- data/pkgs/tile-0.8.2/library/progress.tcl +51 -0
- data/pkgs/tile-0.8.2/library/scale.tcl +54 -0
- data/pkgs/tile-0.8.2/library/scrollbar.tcl +125 -0
- data/pkgs/tile-0.8.2/library/sizegrip.tcl +77 -0
- data/pkgs/tile-0.8.2/library/tile.tcl +211 -0
- data/pkgs/tile-0.8.2/library/treeview.tcl +382 -0
- data/pkgs/tile-0.8.2/library/utils.tcl +254 -0
- data/pkgs/tile-0.8.2/library/winTheme.tcl +77 -0
- data/pkgs/tile-0.8.2/library/xpTheme.tcl +63 -0
- data/pkgs/tile-0.8.2/libtile0.8.2.so +0 -0
- data/pkgs/tile-0.8.2/libttkstub.a +0 -0
- data/pkgs/tile-0.8.2/license.terms +24 -0
- data/pkgs/tile-0.8.2/macosx/aquaTheme.c +1076 -0
- data/pkgs/tile-0.8.2/manager.o +0 -0
- data/pkgs/tile-0.8.2/notebook.o +0 -0
- data/pkgs/tile-0.8.2/paned.o +0 -0
- data/pkgs/tile-0.8.2/pkgIndex.tcl +3 -0
- data/pkgs/tile-0.8.2/progress.o +0 -0
- data/pkgs/tile-0.8.2/scale.o +0 -0
- data/pkgs/tile-0.8.2/scroll.o +0 -0
- data/pkgs/tile-0.8.2/scrollbar.o +0 -0
- data/pkgs/tile-0.8.2/separator.o +0 -0
- data/pkgs/tile-0.8.2/tagset.o +0 -0
- data/pkgs/tile-0.8.2/tclconfig/install-sh +119 -0
- data/pkgs/tile-0.8.2/tclconfig/tcl.m4 +4069 -0
- data/pkgs/tile-0.8.2/tclconfig/teax.m4 +109 -0
- data/pkgs/tile-0.8.2/tests/all.tcl +18 -0
- data/pkgs/tile-0.8.2/tests/bwidget.test +103 -0
- data/pkgs/tile-0.8.2/tests/cbtest.tcl +125 -0
- data/pkgs/tile-0.8.2/tests/combobox.test +51 -0
- data/pkgs/tile-0.8.2/tests/compound.tcl +92 -0
- data/pkgs/tile-0.8.2/tests/entry.test +285 -0
- data/pkgs/tile-0.8.2/tests/entrytest.tcl +78 -0
- data/pkgs/tile-0.8.2/tests/image.test +94 -0
- data/pkgs/tile-0.8.2/tests/labelframe.tcl +41 -0
- data/pkgs/tile-0.8.2/tests/labelframe.test +137 -0
- data/pkgs/tile-0.8.2/tests/layout.test +33 -0
- data/pkgs/tile-0.8.2/tests/misc.test +35 -0
- data/pkgs/tile-0.8.2/tests/nbtest.tcl +66 -0
- data/pkgs/tile-0.8.2/tests/notebook.test +500 -0
- data/pkgs/tile-0.8.2/tests/paned.test +298 -0
- data/pkgs/tile-0.8.2/tests/progress.test +92 -0
- data/pkgs/tile-0.8.2/tests/pwtest.tcl +90 -0
- data/pkgs/tile-0.8.2/tests/sbtest.tcl +79 -0
- data/pkgs/tile-0.8.2/tests/scrollbar.test +77 -0
- data/pkgs/tile-0.8.2/tests/sgtest.tcl +52 -0
- data/pkgs/tile-0.8.2/tests/testutils.tcl +20 -0
- data/pkgs/tile-0.8.2/tests/tile.test +674 -0
- data/pkgs/tile-0.8.2/tests/treetags.test +78 -0
- data/pkgs/tile-0.8.2/tests/treeview.test +563 -0
- data/pkgs/tile-0.8.2/tests/tvtest.tcl +332 -0
- data/pkgs/tile-0.8.2/tests/validate.test +278 -0
- data/pkgs/tile-0.8.2/tile.o +0 -0
- data/pkgs/tile-0.8.2/tkElements.o +0 -0
- data/pkgs/tile-0.8.2/tkTheme.o +0 -0
- data/pkgs/tile-0.8.2/tkstate.o +0 -0
- data/pkgs/tile-0.8.2/tools/genStubs.tcl +861 -0
- data/pkgs/tile-0.8.2/trace.o +0 -0
- data/pkgs/tile-0.8.2/track.o +0 -0
- data/pkgs/tile-0.8.2/treeview.o +0 -0
- data/pkgs/tile-0.8.2/ttkStubInit.o +0 -0
- data/pkgs/tile-0.8.2/ttkStubLib.o +0 -0
- data/pkgs/tile-0.8.2/widget.o +0 -0
- data/pkgs/tile-0.8.2/win/Tile.dsp +261 -0
- data/pkgs/tile-0.8.2/win/makefile.vc +527 -0
- data/pkgs/tile-0.8.2/win/monitor.c +164 -0
- data/pkgs/tile-0.8.2/win/nmakehlp.c +483 -0
- data/pkgs/tile-0.8.2/win/rules.vc +512 -0
- data/pkgs/tile-0.8.2/win/tile.rc +40 -0
- data/pkgs/tile-0.8.2/win/winTheme.c +734 -0
- data/pkgs/tile-0.8.2/win/xpTheme.c +1029 -0
- data/spec/app_spec.rb +48 -0
- data/spec/customer_spec.rb +31 -0
- data/spec/fixtures/graph.expectation +18 -0
- data/spec/payment_spec.rb +19 -0
- data/spec/pratt_spec.rb +148 -0
- data/spec/project_spec.rb +163 -0
- data/spec/rcov.opts +0 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +21 -0
- data/spec/whence_spec.rb +54 -0
- data/tasks/pratt.rb +84 -0
- data/templates/model.eruby +12 -0
- data/templates/spec.eruby +8 -0
- data/views/env.rb +22 -0
- data/views/graph.eruby +20 -0
- data/views/invoice.eruby +148 -0
- data/views/main.rb +92 -0
- data/views/pid.eruby +3 -0
- data/views/pop.rb +94 -0
- data/views/pop2.rb +75 -0
- data/views/raw.eruby +11 -0
- metadata +390 -0
@@ -0,0 +1,227 @@
|
|
1
|
+
'\"
|
2
|
+
'\" Copyright (c) 2004 Joe English
|
3
|
+
'\" widget.n,v 1.15 2007/12/12 15:55:15 jenglish Exp
|
4
|
+
'\"
|
5
|
+
.so man.macros
|
6
|
+
.TH widget n 0.2 tile "Tile Widget Set"
|
7
|
+
.BS
|
8
|
+
.SH NAME
|
9
|
+
widget \- Standard options and commands supported by Tile widgets
|
10
|
+
.BE
|
11
|
+
.SH DESCRIPTION
|
12
|
+
This manual describes common widget options and commands.
|
13
|
+
.SH "STANDARD OPTIONS"
|
14
|
+
The following options are supported by all Tile widgets:
|
15
|
+
.OP \-class (N/A) (N/A)
|
16
|
+
Specifies the window class.
|
17
|
+
The class is used when querying the option database
|
18
|
+
for the window's other options, to determine the default
|
19
|
+
bindtags for the window, and to select the widget's default
|
20
|
+
layout and style.
|
21
|
+
This is a read-only option:
|
22
|
+
it may only be specified when the window is created,
|
23
|
+
and may not be changed with the \fBconfigure\fR widget command.
|
24
|
+
.OP \-cursor cursor Cursor
|
25
|
+
Specifies the mouse cursor to be used for the widget.
|
26
|
+
See \fBTk_GetCursor\fR and \fIcursors(n)\fR in the Tk reference manual
|
27
|
+
for the legal values.
|
28
|
+
If set to the empty string (the default),
|
29
|
+
the cursor is inherited from the parent widget.
|
30
|
+
.OP \-takefocus takeFocus TakeFocus
|
31
|
+
Determines whether the window accepts the focus during keyboard traversal.
|
32
|
+
Either \fB0\fR, \fB1\fR, a command prefix (to which the widget path
|
33
|
+
is appended, and which should return \fB0\fR or \fB1\fR),
|
34
|
+
or the empty string.
|
35
|
+
See \fIoptions(n)\fR in the Tk reference manual for the full description.
|
36
|
+
.OP \-style style Style
|
37
|
+
May be used to specify a custom widget style.
|
38
|
+
.SH "SCROLLABLE WIDGET OPTIONS"
|
39
|
+
The following options are supported by widgets that
|
40
|
+
are controllable by a scrollbar.
|
41
|
+
See \fIscrollbar(n)\fR for more information
|
42
|
+
.OP \-xscrollcommand xScrollCommand ScrollCommand
|
43
|
+
A command prefix, used to communicate with horizontal scrollbars.
|
44
|
+
.RS
|
45
|
+
When the view in the widget's window changes, the widget will
|
46
|
+
generate a Tcl command by concatenating the scroll command and
|
47
|
+
two numbers.
|
48
|
+
Each of the numbers is a fraction between 0 and 1 indicating
|
49
|
+
a position in the document; 0 indicates the beginning,
|
50
|
+
and 1 indicates the end.
|
51
|
+
The first fraction indicates the first information in the widget
|
52
|
+
that is visible in the window, and the second fraction indicates
|
53
|
+
the information just after the last portion that is visible.
|
54
|
+
.PP
|
55
|
+
Typically the \fBxScrollCommand\fR option consists of the path name
|
56
|
+
of a \fBscrollbar\fR widget followed by ``set'', e.g. ``.x.scrollbar set''.
|
57
|
+
This will cause the scrollbar to be updated whenever the view in the
|
58
|
+
window changes.
|
59
|
+
.PP
|
60
|
+
If this option is set to the empty string (the default),
|
61
|
+
then no command will be executed.
|
62
|
+
.RE
|
63
|
+
.OP \-yscrollcommand yScrollCommand ScrollCommand
|
64
|
+
A command prefix, used to communicate with vertical scrollbars.
|
65
|
+
See the description of \fB\-xscrollcommand\fR above for details.
|
66
|
+
.SH "LABEL OPTIONS"
|
67
|
+
The following options are supported by labels, buttons,
|
68
|
+
and other button-like widgets:
|
69
|
+
.OP \-text text Text
|
70
|
+
Specifies a text string to be displayed inside the widget
|
71
|
+
(unless overridden by \fB\-textvariable\fR).
|
72
|
+
.OP \-textvariable textVariable Variable
|
73
|
+
Specifies the name of variable whose value will be used
|
74
|
+
in place of the \fB\-text\fR resource.
|
75
|
+
.OP \-underline underline Underline
|
76
|
+
If set, specifies the integer index (0-based) of a character to underline
|
77
|
+
in the text string.
|
78
|
+
The underlined character is used for mnemonic activation
|
79
|
+
(see \fIkeynav(n)\fR).
|
80
|
+
.OP \-image image Image
|
81
|
+
Specifies an image to display.
|
82
|
+
This is a list of 1 or more elements.
|
83
|
+
The first element is the default image name.
|
84
|
+
The rest of the list is a sequence of \fIstatespec / value\fR pairs
|
85
|
+
as per \fBstyle map\fR, specifying different images to use when
|
86
|
+
the widget is in a particular state or combination of states.
|
87
|
+
All images in the list should have the same size.
|
88
|
+
.OP \-compound compound Compound
|
89
|
+
Specifies how to display the image relative to the text,
|
90
|
+
in the case both \fB\-text\fR and \fB\-image\fR are present.
|
91
|
+
Valid values are:
|
92
|
+
.RS
|
93
|
+
.IP text
|
94
|
+
Display text only.
|
95
|
+
.IP image
|
96
|
+
Display image only.
|
97
|
+
.IP center
|
98
|
+
Display text centered on top of image.
|
99
|
+
.IP top
|
100
|
+
.IP bottom
|
101
|
+
.IP left
|
102
|
+
.IP right
|
103
|
+
Display image above, below, left of, or right of the text, respectively.
|
104
|
+
.IP none
|
105
|
+
The default; display the image if present, otherwise the text.
|
106
|
+
.RE
|
107
|
+
.OP \-width width Width
|
108
|
+
If greater than zero, specifies how much space, in character widths,
|
109
|
+
to allocate for the text label.
|
110
|
+
If less than zero, specifies a minimum width.
|
111
|
+
If zero or unspecified, the natural width of the text label is used.
|
112
|
+
|
113
|
+
.SH "COMPATIBILITY OPTIONS"
|
114
|
+
.OP \-state state State
|
115
|
+
May be set to \fBnormal\fR or \fBdisabled\fR
|
116
|
+
to control the \fBdisabled\fR state bit.
|
117
|
+
This is a write-only option:
|
118
|
+
setting it changes the widget state,
|
119
|
+
but the \fBstate\fR widget command
|
120
|
+
does not affect the \fB\-state\fR option.
|
121
|
+
|
122
|
+
.SH COMMANDS
|
123
|
+
.TP
|
124
|
+
\fIpathName \fBcget\fR \fIoption\fR
|
125
|
+
Returns the current value of the configuration option given
|
126
|
+
by \fIoption\fR.
|
127
|
+
.TP
|
128
|
+
\fIpathName \fBconfigure\fR ?\fIoption\fR? ?\fIvalue option value ...\fR?
|
129
|
+
Query or modify the configuration options of the widget.
|
130
|
+
If one or more \fIoption\-value\fR pairs are specified,
|
131
|
+
then the command modifies the given widget option(s)
|
132
|
+
to have the given value(s);
|
133
|
+
in this case the command returns an empty string.
|
134
|
+
If \fIoption\fR is specified with no \fIvalue\fR,
|
135
|
+
then the command returns a list describing the named option:
|
136
|
+
the elements of the list are the
|
137
|
+
option name, database name, database class, default value,
|
138
|
+
and current value.
|
139
|
+
.\" Note: Tile widgets don't use TK_OPTION_SYNONYM.
|
140
|
+
If no \fIoption\fR is specified, returns a list describing all of
|
141
|
+
the available options for \fIpathName\fR.
|
142
|
+
.TP
|
143
|
+
\fIpathName \fBinstate\fR \fIstatespec\fR ?\fIscript\fR?
|
144
|
+
Test the widget's state.
|
145
|
+
If \fIscript\fR is not specified, returns 1 if
|
146
|
+
the widget state matches \fIstatespec\fR and 0 otherwise.
|
147
|
+
If \fIscript\fR is specified, equivalent to
|
148
|
+
.CS
|
149
|
+
if {[\fIpathName\fR instate \fIstateSpec\fR]} \fIscript\fR
|
150
|
+
.CE
|
151
|
+
.TP
|
152
|
+
\fIpathName \fBstate\fR ?\fIstateSpec\fR?
|
153
|
+
Modify or inquire widget state.
|
154
|
+
If \fIstateSpec\fR is present, sets the widget state:
|
155
|
+
for each flag in \fIstateSpec\fR, sets the corresponding flag
|
156
|
+
or clears it if prefixed by an exclamation point.
|
157
|
+
.RS
|
158
|
+
Returns a new state spec indicating which flags were changed:
|
159
|
+
.CS
|
160
|
+
set changes [\fIpathName \fRstate \fIspec\fR] ;
|
161
|
+
\fIpathName \fRstate $changes
|
162
|
+
.CE
|
163
|
+
will restore \fIpathName\fR to the original state.
|
164
|
+
If \fIstateSpec\fR is not specified,
|
165
|
+
returns a list of the currently-enabled state flags.
|
166
|
+
.RE
|
167
|
+
.SH "WIDGET STATES"
|
168
|
+
The widget state is a bitmap of independent state flags.
|
169
|
+
Widget state flags include:
|
170
|
+
.TP
|
171
|
+
\fBactive\fR
|
172
|
+
The mouse cursor is over the widget
|
173
|
+
and pressing a mouse button will cause some action to occur.
|
174
|
+
(aka "prelight" (Gnome), "hot" (Windows), "hover").
|
175
|
+
.TP
|
176
|
+
\fBdisabled\fR
|
177
|
+
Widget is disabled under program control
|
178
|
+
(aka "unavailable", "inactive")
|
179
|
+
.TP
|
180
|
+
\fBfocus\fR
|
181
|
+
Widget has keyboard focus
|
182
|
+
.TP
|
183
|
+
\fBpressed\fR
|
184
|
+
Widget is being pressed (aka "armed" in Motif).
|
185
|
+
.TP
|
186
|
+
\fBselected\fR
|
187
|
+
"On", "true", or "current" for things like checkbuttons and radiobuttons.
|
188
|
+
.TP
|
189
|
+
\fBbackground\fR
|
190
|
+
Windows and the Mac have a notion of an "active" or foreground window.
|
191
|
+
The \fBbackground\fR state is set for widgets in a background window,
|
192
|
+
and cleared for those in the foreground window.
|
193
|
+
.TP
|
194
|
+
\fBreadonly\fR
|
195
|
+
Widget should not allow user modification.
|
196
|
+
.TP
|
197
|
+
\fBalternate\fR
|
198
|
+
A widget-specific alternate display format.
|
199
|
+
For example, used for checkbuttons and radiobuttons
|
200
|
+
in the "tristate" or "mixed" state,
|
201
|
+
and for buttons with \fB-default active\fR.
|
202
|
+
.TP
|
203
|
+
\fBinvalid\fR
|
204
|
+
The widget's value is invalid.
|
205
|
+
(Potential uses: scale widget value out of bounds,
|
206
|
+
entry widget value failed validation.)
|
207
|
+
.PP
|
208
|
+
A \fIstate specification\fR or \fIstateSpec\fR is a list
|
209
|
+
of state names, optionally prefixed with an exclamation point (!)
|
210
|
+
indicating that the bit is off.
|
211
|
+
.SH EXAMPLES
|
212
|
+
.CS
|
213
|
+
set b [ttk::button .b]
|
214
|
+
|
215
|
+
# Disable the widget:
|
216
|
+
$b state disabled
|
217
|
+
|
218
|
+
# Invoke the widget only if it is currently pressed and enabled:
|
219
|
+
$b instate {pressed !disabled} { .b invoke }
|
220
|
+
|
221
|
+
# Reenable widget:
|
222
|
+
$b state !disabled
|
223
|
+
.CE
|
224
|
+
.SH "SEE ALSO"
|
225
|
+
tile-intro(n), style(n)
|
226
|
+
.SH KEYWORDS
|
227
|
+
state, configure, option
|
@@ -0,0 +1,379 @@
|
|
1
|
+
<manpage cat="fun" id="Geometry" title="Geometry" version="0.2">
|
2
|
+
<!-- This file was automatically generated. DO NOT EDIT (yet)! -->
|
3
|
+
<!--
|
4
|
+
Copyright (c) 2004 Joe English
|
5
|
+
|
6
|
+
RCS: @(#) Geometry.3,v 1.7 2004/12/11 00:36:36 jenglish Exp
|
7
|
+
-->
|
8
|
+
<?TROFF.TH title="Geometry" section="3" date="0.2" source="tile" manual="Tile Widget Set" ?>
|
9
|
+
<namesection>
|
10
|
+
<title>geometry</title>
|
11
|
+
<name>Ttk_MakeBox</name>
|
12
|
+
<name>Ttk_PadBox</name>
|
13
|
+
<name>Ttk_ExpandBox</name>
|
14
|
+
<name>Ttk_PackBox</name>
|
15
|
+
<name>Ttk_StickBox</name>
|
16
|
+
<name>Ttk_PlaceBox</name>
|
17
|
+
<name>Ttk_BoxContains</name>
|
18
|
+
<name>Ttk_MakePadding</name>
|
19
|
+
<name>Ttk_UniformPadding</name>
|
20
|
+
<name>Ttk_AddPadding</name>
|
21
|
+
<name>Ttk_RelievePadding</name>
|
22
|
+
<name>Ttk_GetPaddingFromObj</name>
|
23
|
+
<name>Ttk_GetBorderFromObj</name>
|
24
|
+
<name>Ttk_GetStickyFromObj</name>
|
25
|
+
<desc>Geometry utilities</desc>
|
26
|
+
</namesection>
|
27
|
+
<synopsis>
|
28
|
+
<syntax>
|
29
|
+
<b>#include <tkTheme.h></b>
|
30
|
+
|
31
|
+
Ttk_Box
|
32
|
+
<b>Ttk_MakeBox</b>(int <m>x</m>, int <m>y</m>, int <m>width</m>, int <m>height</m>);
|
33
|
+
|
34
|
+
Ttk_Box
|
35
|
+
<b>Ttk_PadBox</b>(Ttk_Box <m>parcel</m>, Ttk_Padding <m>padding</m>);
|
36
|
+
|
37
|
+
Ttk_Box
|
38
|
+
<b>Ttk_ExpandBox</b>(Ttk_Box <m>parcel</m>, Ttk_Padding <m>padding</m>);
|
39
|
+
|
40
|
+
Ttk_Box
|
41
|
+
<b>Ttk_PackBox</b>(Ttk_Box *<m>cavity</m>, int <m>width</m>, int <m>height</m>, Ttk_Side <m>side</m>);
|
42
|
+
|
43
|
+
Ttk_Box
|
44
|
+
<b>Ttk_StickBox</b>(Ttk_Box <m>parcel</m>, int <m>width</m>, int <m>height</m>, unsigned <m>sticky</m>);
|
45
|
+
|
46
|
+
Ttk_Box
|
47
|
+
<b>Ttk_PlaceBox</b>(Ttk_Box *<m>cavity</m>, int <m>width</m>, int <m>height</m>, Ttk_Side <m>side</m>, unsigned <m>sticky</m>);
|
48
|
+
|
49
|
+
Ttk_Box
|
50
|
+
<b>Ttk_AnchorBox</b>(Ttk_Box <m>parcel</m>, int <m>width</m>, int <m>height</m>, Tk_Anchor <m>anchor</m>);
|
51
|
+
|
52
|
+
Ttk_Padding
|
53
|
+
<b>Ttk_MakePadding</b>(short <m>left</m>, short <m>top</m>, short <m>right</m>, short <m>bottom</m>);
|
54
|
+
|
55
|
+
Ttk_Padding
|
56
|
+
<b>Ttk_UniformPadding</b>(short <m>border</m>);
|
57
|
+
|
58
|
+
Ttk_Padding
|
59
|
+
<b>Ttk_AddPadding</b>(Ttk_Padding <m>padding1</m>, Ttk_Padding <m>padding2</m>;
|
60
|
+
|
61
|
+
Ttk_Padding
|
62
|
+
<b>Ttk_RelievePadding</b>(Ttk_Padding <m>padding</m>, int <m>relief</m>);
|
63
|
+
|
64
|
+
int
|
65
|
+
<b>Ttk_BoxContains</b>(Ttk_Box <m>box</m>, int <m>x</m>, int <m>y</m>);
|
66
|
+
|
67
|
+
int
|
68
|
+
<b>Ttk_GetPaddingFromObj</b>(
|
69
|
+
Tcl_Interp *<m>interp</m>, Tk_Window <m>tkwin</m>,
|
70
|
+
Tcl_Obj *<m>objPtr</m>, Ttk_Padding *<m>padding_rtn</m>);
|
71
|
+
|
72
|
+
int
|
73
|
+
<b>Ttk_GetBorderFromObj</b>(
|
74
|
+
Tcl_Interp *<m>interp</m>, Tcl_Obj *<m>objPtr</m>, Ttk_Padding *<m>padding_rtn</m>);
|
75
|
+
|
76
|
+
int
|
77
|
+
<b>Ttk_GetStickyFromObj</b>(Tcl_Interp *<m>interp</m>, Tcl_Obj *<m>objPtr</m>, int *<m>sticky_rtn</m>);
|
78
|
+
</syntax>
|
79
|
+
</synopsis>
|
80
|
+
<section>
|
81
|
+
<title>ARGUMENTS</title>
|
82
|
+
<arglist>
|
83
|
+
<argdef>
|
84
|
+
<argtype>Tk_Anchor</argtype>
|
85
|
+
<name>anchor</name>
|
86
|
+
<argmode>in</argmode>
|
87
|
+
<desc>One of the symbolic constants <b>TK_ANCHOR_N</b>, <b>TK_ANCHOR_NE</b>,
|
88
|
+
etc. See <i>Tk_GetAnchorFromObj(3)</i>.
|
89
|
+
</desc>
|
90
|
+
</argdef>
|
91
|
+
<argdef>
|
92
|
+
<argtype>Ttk_Box *</argtype>
|
93
|
+
<name>cavity</name>
|
94
|
+
<argmode>in/out</argmode>
|
95
|
+
<desc>A rectangular region from which a parcel is allocated.
|
96
|
+
</desc>
|
97
|
+
</argdef>
|
98
|
+
<argdef>
|
99
|
+
<argtype>short</argtype>
|
100
|
+
<name>border</name>
|
101
|
+
<argmode>in</argmode>
|
102
|
+
<desc>Extra padding (in pixels) to add uniformly to each side of a region.
|
103
|
+
</desc>
|
104
|
+
</argdef>
|
105
|
+
<argdef>
|
106
|
+
<argtype>short</argtype>
|
107
|
+
<name>bottom</name>
|
108
|
+
<argmode>in</argmode>
|
109
|
+
<desc>Extra padding (in pixels) to add to the bottom of a region.
|
110
|
+
</desc>
|
111
|
+
</argdef>
|
112
|
+
<argdef>
|
113
|
+
<argtype>Ttk_Box</argtype>
|
114
|
+
<name>box</name>
|
115
|
+
<argmode>in</argmode>
|
116
|
+
<desc/>
|
117
|
+
</argdef>
|
118
|
+
<argdef>
|
119
|
+
<argtype>Ttk_Box *</argtype>
|
120
|
+
<name>box_rtn</name>
|
121
|
+
<argmode>out</argmode>
|
122
|
+
<desc>Specifies a rectangular region.
|
123
|
+
</desc>
|
124
|
+
</argdef>
|
125
|
+
<argdef>
|
126
|
+
<argtype>int</argtype>
|
127
|
+
<name>height</name>
|
128
|
+
<argmode>in</argmode>
|
129
|
+
<desc>The height in pixels of a region.
|
130
|
+
</desc>
|
131
|
+
</argdef>
|
132
|
+
<argdef>
|
133
|
+
<argtype>Tcl_Interp *</argtype>
|
134
|
+
<name>interp</name>
|
135
|
+
<argmode>in</argmode>
|
136
|
+
<desc>Used to store error messages.
|
137
|
+
</desc>
|
138
|
+
</argdef>
|
139
|
+
<argdef>
|
140
|
+
<argtype>int</argtype>
|
141
|
+
<name>left</name>
|
142
|
+
<argmode>in</argmode>
|
143
|
+
<desc>Extra padding (in pixels) to add to the left side of a region.
|
144
|
+
</desc>
|
145
|
+
</argdef>
|
146
|
+
<argdef>
|
147
|
+
<argtype>Tcl_Obj *</argtype>
|
148
|
+
<name>objPtr</name>
|
149
|
+
<argmode>in</argmode>
|
150
|
+
<desc>String value contains a symbolic name
|
151
|
+
to be converted to an enumerated value or bitmask.
|
152
|
+
Internal rep may be be modified to cache corresponding value.
|
153
|
+
</desc>
|
154
|
+
</argdef>
|
155
|
+
<argdef>
|
156
|
+
<argtype>Ttk_Padding</argtype>
|
157
|
+
<name>padding</name>
|
158
|
+
<argmode>in</argmode>
|
159
|
+
<desc/>
|
160
|
+
</argdef>
|
161
|
+
<argdef>
|
162
|
+
<argtype>Ttk_Padding *</argtype>
|
163
|
+
<name>padding_rtn</name>
|
164
|
+
<argmode>out</argmode>
|
165
|
+
<desc>Extra padding to add on the inside of a region.
|
166
|
+
</desc>
|
167
|
+
</argdef>
|
168
|
+
<argdef>
|
169
|
+
<argtype>Ttk_Box</argtype>
|
170
|
+
<name>parcel</name>
|
171
|
+
<argmode>in</argmode>
|
172
|
+
<desc>A rectangular region, allocated from a cavity.
|
173
|
+
</desc>
|
174
|
+
</argdef>
|
175
|
+
<argdef>
|
176
|
+
<argtype>int</argtype>
|
177
|
+
<name>relief</name>
|
178
|
+
<argmode>in</argmode>
|
179
|
+
<desc>One of the standard Tk relief options
|
180
|
+
(TK_RELIEF_RAISED, TK_RELIEF_SUNKEN, etc.).
|
181
|
+
See <fun>Tk_GetReliefFromObj</fun>.
|
182
|
+
</desc>
|
183
|
+
</argdef>
|
184
|
+
<argdef>
|
185
|
+
<argtype>short</argtype>
|
186
|
+
<name>right</name>
|
187
|
+
<argmode>in</argmode>
|
188
|
+
<desc>Extra padding (in pixles) to add to the right side of a region.
|
189
|
+
</desc>
|
190
|
+
</argdef>
|
191
|
+
<argdef>
|
192
|
+
<argtype>Ttk_Side</argtype>
|
193
|
+
<name>side</name>
|
194
|
+
<argmode>in</argmode>
|
195
|
+
<desc>One of <b>TTK_SIDE_LEFT</b>, <b>TTK_SIDE_TOP</b>,
|
196
|
+
<b>TTK_SIDE_RIGHT</b>, or <b>TTK_SIDE_BOTTOM</b>.
|
197
|
+
</desc>
|
198
|
+
</argdef>
|
199
|
+
<argdef>
|
200
|
+
<argtype>unsigned</argtype>
|
201
|
+
<name>sticky</name>
|
202
|
+
<argmode>in</argmode>
|
203
|
+
<desc>A bitmask containing one or more of the bits
|
204
|
+
<b>TTK_STICK_W</b> (west, or left),
|
205
|
+
<b>TTK_STICK_E</b> (east, or right,
|
206
|
+
<b>TTK_STICK_N</b> (north, or top), and
|
207
|
+
<b>TTK_STICK_S</b> (south, or bottom).
|
208
|
+
<b>TTK_FILL_X</b> is defined as a synonym for (TTK_STICK_W|TTK_STICK_E),
|
209
|
+
<b>TTK_FILL_Y</b> is a synonym for (TTK_STICK_N|TTK_STICK_S),
|
210
|
+
and <b>TTK_FILL_BOTH</b> and <b>TTK_STICK_ALL</b>
|
211
|
+
are synonyms for (TTK_FILL_X|TTK_FILL_Y).
|
212
|
+
See also: <i>grid(n)</i>.
|
213
|
+
</desc>
|
214
|
+
</argdef>
|
215
|
+
<argdef>
|
216
|
+
<argtype>Tk_Window</argtype>
|
217
|
+
<name>tkwin</name>
|
218
|
+
<argmode>in</argmode>
|
219
|
+
<desc>Window whose screen geometry determines
|
220
|
+
the conversion between absolute units and pixels.
|
221
|
+
</desc>
|
222
|
+
</argdef>
|
223
|
+
<argdef>
|
224
|
+
<argtype>short</argtype>
|
225
|
+
<name>top</name>
|
226
|
+
<argmode>in</argmode>
|
227
|
+
<desc>Extra padding at the top of a region.
|
228
|
+
</desc>
|
229
|
+
</argdef>
|
230
|
+
<argdef>
|
231
|
+
<argtype>int</argtype>
|
232
|
+
<name>width</name>
|
233
|
+
<argmode>in</argmode>
|
234
|
+
<desc>The width in pixels of a region.
|
235
|
+
</desc>
|
236
|
+
</argdef>
|
237
|
+
<argdef>
|
238
|
+
<argtype>int</argtype>
|
239
|
+
<name>x</name>
|
240
|
+
<argmode>in</argmode>
|
241
|
+
<desc>X coordinate of upper-left corner of region.
|
242
|
+
</desc>
|
243
|
+
</argdef>
|
244
|
+
<argdef>
|
245
|
+
<argtype>int</argtype>
|
246
|
+
<name>y</name>
|
247
|
+
<argmode>in</argmode>
|
248
|
+
<desc>Y coordinate of upper-left corner of region.
|
249
|
+
</desc>
|
250
|
+
</argdef>
|
251
|
+
</arglist>
|
252
|
+
</section>
|
253
|
+
|
254
|
+
|
255
|
+
<section>
|
256
|
+
<title>BOXES</title>
|
257
|
+
<p>The <b>Ttk_Box</b> structure represents a rectangular region of a window:
|
258
|
+
</p>
|
259
|
+
<syntax cat="type" name="Ttk_Box" scope="global">
|
260
|
+
typedef struct {
|
261
|
+
int x;
|
262
|
+
int y;
|
263
|
+
int width;
|
264
|
+
int height;
|
265
|
+
} Ttk_Box;
|
266
|
+
</syntax>
|
267
|
+
<p>All coordinates are relative to the window.
|
268
|
+
</p>
|
269
|
+
<p><b>Ttk_MakeBox</b> is a convenience routine that contsructs
|
270
|
+
a <b>Ttk_Box</b> structure representing a region <i>width</i> pixels
|
271
|
+
wide, <i>height</i> pixels tall, at the specified <i>x, y</i> coordinates.
|
272
|
+
</p>
|
273
|
+
<p><b>Ttk_PadBox</b> returns a new box located inside the specified <i>parcel</i>,
|
274
|
+
shrunken according to the left, top, right, and bottom margins
|
275
|
+
specified by <i>padding</i>.
|
276
|
+
</p>
|
277
|
+
<p><b>Ttk_ExpandBox</b> is the inverse of <b>Ttk_PadBox</b>:
|
278
|
+
it returns a new box surrounding the specified <i>parcel</i>,
|
279
|
+
expanded according to the left, top, right, and bottom margins
|
280
|
+
specified by <i>padding</i>.
|
281
|
+
</p>
|
282
|
+
<p><b>Ttk_PackBox</b> allocates a parcel <i>width</i> by <i>height</i>
|
283
|
+
pixels wide on the specified <i>side</i> of the <i>cavity</i>,
|
284
|
+
and shrinks the <i>cavity</i> accordingly.
|
285
|
+
</p>
|
286
|
+
<p><b>Ttk_StickBox</b> places a box with the requested <i>width</i>
|
287
|
+
and <i>height</i> inside the <i>parcel</i> according to the
|
288
|
+
<i>sticky</i> bits.
|
289
|
+
</p>
|
290
|
+
<p><b>Ttk_PlaceBox</b> combines <b>Ttk_PackBox</b> and <b>Ttk_StickBox</b>:
|
291
|
+
it allocates a parcel on the specified <i>side</i> of the <i>cavity</i>,
|
292
|
+
places a box of the requested size inside the parcel according to <i>sticky</i>,
|
293
|
+
and shrinks the <i>cavity</i>.
|
294
|
+
</p>
|
295
|
+
<p><b>Ttk_AnchorBox</b> places a box with the requested <i>width</i>
|
296
|
+
and <i>height</i> inside the <i>parcel</i> according to the
|
297
|
+
specified <i>anchor</i> option.
|
298
|
+
</p>
|
299
|
+
<p><b>Ttk_BoxContains</b> tests if the specified <i>x, y</i> coordinate
|
300
|
+
lies within the rectangular region <i>box</i>.
|
301
|
+
</p>
|
302
|
+
</section>
|
303
|
+
<section>
|
304
|
+
<title>PADDDING</title>
|
305
|
+
<p>The <b>Ttk_Padding</b> structure is used to represent
|
306
|
+
borders, internal padding, and external margins:
|
307
|
+
</p>
|
308
|
+
<syntax cat="type" name="Ttk_Padding" scope="global">
|
309
|
+
typedef struct {
|
310
|
+
short left;
|
311
|
+
short top;
|
312
|
+
short right;
|
313
|
+
short bottom;
|
314
|
+
} Ttk_Padding;
|
315
|
+
</syntax>
|
316
|
+
<p><b>Ttk_MakePadding</b> is a convenience routine that contsructs
|
317
|
+
a <b>Ttk_Padding</b> structure with the specified left, top, right, and bottom
|
318
|
+
components.
|
319
|
+
</p>
|
320
|
+
<p><b>Ttk_UniformPadding</b> constructs a <b>Ttk_Padding</b> structure
|
321
|
+
with all components equal to the specified <i>border</i>.
|
322
|
+
</p>
|
323
|
+
<p><b>Ttk_AddPadding</b> adds two <b>Ttk_Padding</b>s together
|
324
|
+
and returns a combined padding containing the sum of the
|
325
|
+
individual padding components.
|
326
|
+
</p>
|
327
|
+
<p><b>Ttk_RelievePadding</b>
|
328
|
+
adds an extra 2 pixels of padding to <i>padding</i>
|
329
|
+
according to the specified <i>relief</i>.
|
330
|
+
If <i>relief</i> is <b>TK_RELIEF_SUNKEN</b>,
|
331
|
+
adds two pixels at the top and left
|
332
|
+
so the inner region is shifted down and to the left.
|
333
|
+
If it is <b>TK_RELIEF_RAISED</b>, adds two pixels
|
334
|
+
at the bottom and right so
|
335
|
+
the inner region is shifted up and to the right.
|
336
|
+
Otherwise, adds 1 pixel on all sides.
|
337
|
+
This is typically used in element geometry procedures to simulate
|
338
|
+
a "pressed-in" look for pushbuttons.
|
339
|
+
|
340
|
+
</p>
|
341
|
+
</section>
|
342
|
+
<section>
|
343
|
+
<title>CONVERSION ROUTINES</title>
|
344
|
+
<p><b>Ttk_GetPaddingFromObj</b> converts the string in <i>objPtr</i>
|
345
|
+
to a <b>Ttk_Padding</b> structure.
|
346
|
+
The string representation is a list of
|
347
|
+
up to four length specifications
|
348
|
+
<i>"left top right bottom"</i>.
|
349
|
+
If fewer than four elements are specified,
|
350
|
+
<i>bottom</i> defaults to <i>top</i>,
|
351
|
+
<i>right</i> defaults to <i>left</i>, and
|
352
|
+
<i>top</i> defaults to <i>left</i>.
|
353
|
+
See <b>Tk_GetPixelsFromObj(3)</b> for the syntax of length specifications.
|
354
|
+
</p>
|
355
|
+
<p><b>Ttk_GetBorderFromObj</b> is the same as <b>Ttk_GetPaddingFromObj</b>
|
356
|
+
except that the lengths are specified as integers
|
357
|
+
(i.e., resolution-dependant values like <i>3m</i> are not allowed).
|
358
|
+
</p>
|
359
|
+
<p><b>Ttk_GetStickyFromObj</b> converts the string in <i>objPtr</i>
|
360
|
+
to a <i>sticky</i> bitmask. The string contains zero or more
|
361
|
+
of the characters <b>n</b>, <b>s</b>, <b>e</b>, or <b>w</b>.
|
362
|
+
|
363
|
+
</p>
|
364
|
+
</section>
|
365
|
+
<seealso>
|
366
|
+
<ref>Tk_GetReliefFromObj(3)</ref>
|
367
|
+
<ref>Tk_GetPixelsFromObj(3)</ref>
|
368
|
+
<ref>Tk_GetAnchorFromObj(3)</ref>
|
369
|
+
</seealso>
|
370
|
+
<keywords>
|
371
|
+
<keyword>geometry</keyword>
|
372
|
+
<keyword>padding</keyword>
|
373
|
+
<keyword>margins</keyword>
|
374
|
+
<keyword>box</keyword>
|
375
|
+
<keyword>region</keyword>
|
376
|
+
<keyword>sticky</keyword>
|
377
|
+
<keyword>relief</keyword>
|
378
|
+
</keywords>
|
379
|
+
</manpage>
|