Pratt 1.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,43 @@
|
|
|
1
|
+
'\" Copyright (c) 2005 Joe English
|
|
2
|
+
.so man.macros
|
|
3
|
+
.TH frame n 0.7 tile "Tile Widget Set"
|
|
4
|
+
.BS
|
|
5
|
+
.SH NAME
|
|
6
|
+
ttk::frame \- Simple container widget
|
|
7
|
+
.SH SYNOPSIS
|
|
8
|
+
\fBttk::frame\fR \fIpathName \fR?\fIoptions\fR?
|
|
9
|
+
.BE
|
|
10
|
+
.SH DESCRIPTION
|
|
11
|
+
A \fBframe\fR widget is a container, used to group other widgets together.
|
|
12
|
+
.SO
|
|
13
|
+
\-class \-cursor \-takefocus \-style
|
|
14
|
+
.SE
|
|
15
|
+
.SH "OPTIONS"
|
|
16
|
+
.OP -borderwidth borderWidth BorderWidth
|
|
17
|
+
The desired width of the widget border. Defaults to 0.
|
|
18
|
+
.OP -relief relief Relief
|
|
19
|
+
One of the standard Tk border styles:
|
|
20
|
+
\fBflat\fR, \fBgroove\fR, \fBraised\fR, \fBridge\fR,
|
|
21
|
+
\fBsolid\fR, or \fBsunken\fR.
|
|
22
|
+
Defaults to \fBflat\fR.
|
|
23
|
+
.OP -padding padding Padding
|
|
24
|
+
Additional padding to include inside the border.
|
|
25
|
+
.OP -width width Width
|
|
26
|
+
If specified, the widget's requested width in pixels.
|
|
27
|
+
.OP -height height Height
|
|
28
|
+
If specified, the widget's requested height in pixels.
|
|
29
|
+
.SH "WIDGET COMMAND"
|
|
30
|
+
Supports the standard widget commands
|
|
31
|
+
\fBconfigure\fR, \fBcget\fR, \fBinstate\fR, and \fBstate\fR;
|
|
32
|
+
see \fIwidget(n)\fR.
|
|
33
|
+
.SH "NOTES"
|
|
34
|
+
Note that if the \fBpack\fR, \fBgrid\fR, or other geometry managers
|
|
35
|
+
are used to manage the children of the \fBframe\fR,
|
|
36
|
+
by the GM's requested size will normally take precedence
|
|
37
|
+
over the \fBframe\fR widget's \fB-width\fR and \fB-height\fR options.
|
|
38
|
+
[\fBpack propagate\fR] and [\fBgrid propagate\fR] can be used
|
|
39
|
+
to change this.
|
|
40
|
+
.SH "SEE ALSO"
|
|
41
|
+
widget(n), labelframe(n)
|
|
42
|
+
.SH "KEYWORDS"
|
|
43
|
+
widget, frame, container
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
<html>
|
|
2
|
+
<head>
|
|
3
|
+
<link rel="stylesheet" href="manpage.css"><title>Tile package reference: Geometry</title><meta name="xsl-processor" content="Jochen Loewer (loewerj@hotmail.com), Rolf Ade (rolf@pointsman.de) et. al."><meta name="generator" content="$RCSfile: tmml-html.xsl,v $ $Revision: 1.12 $">
|
|
4
|
+
</head><body>
|
|
5
|
+
<div class="header">
|
|
6
|
+
<div class="navbar" align="center">
|
|
7
|
+
<a href="#SECTid8206658">NAME</a> � <a href="#SECTid8206900">SYNOPSIS</a> � <a href="#SECTid8207328">ARGUMENTS</a> � <a href="#SECTid8208778">BOXES</a> � <a href="#SECTid8208f98">PADDDING</a> � <a href="#SECTid8209308">CONVERSION ROUTINES</a> � <a href="#SECTid8209718">SEE ALSO</a> � <a href="#SECTid82097b8">KEYWORDS</a>
|
|
8
|
+
</div><hr class="navsep">
|
|
9
|
+
</div><div class="body">
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<h2><a name="SECTid8206658">NAME</a></h2><p class="namesection">
|
|
14
|
+
<b>geometry</b>: <b class="names">Ttk_MakeBox, Ttk_PadBox, Ttk_ExpandBox, Ttk_PackBox, Ttk_StickBox, Ttk_PlaceBox, Ttk_BoxContains, Ttk_MakePadding, Ttk_UniformPadding, Ttk_AddPadding, Ttk_RelievePadding, Ttk_GetPaddingFromObj, Ttk_GetBorderFromObj, Ttk_GetStickyFromObj - </b><br>Geometry utilities</p>
|
|
15
|
+
<h2><a name="SECTid8206900">SYNOPSIS</a></h2><pre class="syntax">
|
|
16
|
+
<b>#include <tkTheme.h></b>
|
|
17
|
+
|
|
18
|
+
Ttk_Box
|
|
19
|
+
<b>Ttk_MakeBox</b>(int <a href="#ARG-x"><i>x</i></a>, int <a href="#ARG-y"><i>y</i></a>, int <a href="#ARG-width"><i>width</i></a>, int <a href="#ARG-height"><i>height</i></a>);
|
|
20
|
+
|
|
21
|
+
Ttk_Box
|
|
22
|
+
<b>Ttk_PadBox</b>(Ttk_Box <a href="#ARG-parcel"><i>parcel</i></a>, Ttk_Padding <a href="#ARG-padding"><i>padding</i></a>);
|
|
23
|
+
|
|
24
|
+
Ttk_Box
|
|
25
|
+
<b>Ttk_ExpandBox</b>(Ttk_Box <a href="#ARG-parcel"><i>parcel</i></a>, Ttk_Padding <a href="#ARG-padding"><i>padding</i></a>);
|
|
26
|
+
|
|
27
|
+
Ttk_Box
|
|
28
|
+
<b>Ttk_PackBox</b>(Ttk_Box *<a href="#ARG-cavity"><i>cavity</i></a>, int <a href="#ARG-width"><i>width</i></a>, int <a href="#ARG-height"><i>height</i></a>, Ttk_Side <a href="#ARG-side"><i>side</i></a>);
|
|
29
|
+
|
|
30
|
+
Ttk_Box
|
|
31
|
+
<b>Ttk_StickBox</b>(Ttk_Box <a href="#ARG-parcel"><i>parcel</i></a>, int <a href="#ARG-width"><i>width</i></a>, int <a href="#ARG-height"><i>height</i></a>, unsigned <a href="#ARG-sticky"><i>sticky</i></a>);
|
|
32
|
+
|
|
33
|
+
Ttk_Box
|
|
34
|
+
<b>Ttk_PlaceBox</b>(Ttk_Box *<a href="#ARG-cavity"><i>cavity</i></a>, int <a href="#ARG-width"><i>width</i></a>, int <a href="#ARG-height"><i>height</i></a>, Ttk_Side <a href="#ARG-side"><i>side</i></a>, unsigned <a href="#ARG-sticky"><i>sticky</i></a>);
|
|
35
|
+
|
|
36
|
+
Ttk_Box
|
|
37
|
+
<b>Ttk_AnchorBox</b>(Ttk_Box <a href="#ARG-parcel"><i>parcel</i></a>, int <a href="#ARG-width"><i>width</i></a>, int <a href="#ARG-height"><i>height</i></a>, Tk_Anchor <a href="#ARG-anchor"><i>anchor</i></a>);
|
|
38
|
+
|
|
39
|
+
Ttk_Padding
|
|
40
|
+
<b>Ttk_MakePadding</b>(short <a href="#ARG-left"><i>left</i></a>, short <a href="#ARG-top"><i>top</i></a>, short <a href="#ARG-right"><i>right</i></a>, short <a href="#ARG-bottom"><i>bottom</i></a>);
|
|
41
|
+
|
|
42
|
+
Ttk_Padding
|
|
43
|
+
<b>Ttk_UniformPadding</b>(short <a href="#ARG-border"><i>border</i></a>);
|
|
44
|
+
|
|
45
|
+
Ttk_Padding
|
|
46
|
+
<b>Ttk_AddPadding</b>(Ttk_Padding <i class="m">padding1</i>, Ttk_Padding <i class="m">padding2</i>;
|
|
47
|
+
|
|
48
|
+
Ttk_Padding
|
|
49
|
+
<b>Ttk_RelievePadding</b>(Ttk_Padding <a href="#ARG-padding"><i>padding</i></a>, int <a href="#ARG-relief"><i>relief</i></a>);
|
|
50
|
+
|
|
51
|
+
int
|
|
52
|
+
<b>Ttk_BoxContains</b>(Ttk_Box <a href="#ARG-box"><i>box</i></a>, int <a href="#ARG-x"><i>x</i></a>, int <a href="#ARG-y"><i>y</i></a>);
|
|
53
|
+
|
|
54
|
+
int
|
|
55
|
+
<b>Ttk_GetPaddingFromObj</b>(
|
|
56
|
+
Tcl_Interp *<a href="#ARG-interp"><i>interp</i></a>, Tk_Window <a href="#ARG-tkwin"><i>tkwin</i></a>,
|
|
57
|
+
Tcl_Obj *<a href="#ARG-objPtr"><i>objPtr</i></a>, Ttk_Padding *<a href="#ARG-padding_rtn"><i>padding_rtn</i></a>);
|
|
58
|
+
|
|
59
|
+
int
|
|
60
|
+
<b>Ttk_GetBorderFromObj</b>(
|
|
61
|
+
Tcl_Interp *<a href="#ARG-interp"><i>interp</i></a>, Tcl_Obj *<a href="#ARG-objPtr"><i>objPtr</i></a>, Ttk_Padding *<a href="#ARG-padding_rtn"><i>padding_rtn</i></a>);
|
|
62
|
+
|
|
63
|
+
int
|
|
64
|
+
<b>Ttk_GetStickyFromObj</b>(Tcl_Interp *<a href="#ARG-interp"><i>interp</i></a>, Tcl_Obj *<a href="#ARG-objPtr"><i>objPtr</i></a>, int *<i class="m">sticky_rtn</i>);
|
|
65
|
+
</pre>
|
|
66
|
+
<h2><a name="SECTid8207328">ARGUMENTS</a></h2><div class="arglist"><table width="100%" rules="none" cellpadding="5%">
|
|
67
|
+
<thead><tr class="heading">
|
|
68
|
+
<th width="20%">Type</th><th width="70%">Name</th><th width="10%">Mode</th>
|
|
69
|
+
</tr></thead><tr class="syntax">
|
|
70
|
+
<td class="type" width="20%" align="left">Tk_Anchor</td><td class="name" width="70%" align="left"><a name="ARG-anchor">anchor</a></td><td class="mode" width="10%" align="center">in</td>
|
|
71
|
+
</tr><tr class="desc">
|
|
72
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">One of the symbolic constants <b>TK_ANCHOR_N</b>, <b>TK_ANCHOR_NE</b>,
|
|
73
|
+
etc. See <i>Tk_GetAnchorFromObj(3)</i>.
|
|
74
|
+
</td>
|
|
75
|
+
</tr><tr class="syntax">
|
|
76
|
+
<td class="type" width="20%" align="left">Ttk_Box *</td><td class="name" width="70%" align="left"><a name="ARG-cavity">cavity</a></td><td class="mode" width="10%" align="center">in/out</td>
|
|
77
|
+
</tr><tr class="desc">
|
|
78
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">A rectangular region from which a parcel is allocated.
|
|
79
|
+
</td>
|
|
80
|
+
</tr><tr class="syntax">
|
|
81
|
+
<td class="type" width="20%" align="left">short</td><td class="name" width="70%" align="left"><a name="ARG-border">border</a></td><td class="mode" width="10%" align="center">in</td>
|
|
82
|
+
</tr><tr class="desc">
|
|
83
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Extra padding (in pixels) to add uniformly to each side of a region.
|
|
84
|
+
</td>
|
|
85
|
+
</tr><tr class="syntax">
|
|
86
|
+
<td class="type" width="20%" align="left">short</td><td class="name" width="70%" align="left"><a name="ARG-bottom">bottom</a></td><td class="mode" width="10%" align="center">in</td>
|
|
87
|
+
</tr><tr class="desc">
|
|
88
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Extra padding (in pixels) to add to the bottom of a region.
|
|
89
|
+
</td>
|
|
90
|
+
</tr><tr class="syntax">
|
|
91
|
+
<td class="type" width="20%" align="left"><a href="Geometry.html#type_Ttk_Box">Ttk_Box</a></td><td class="name" width="70%" align="left"><a name="ARG-box">box</a></td><td class="mode" width="10%" align="center">in</td>
|
|
92
|
+
</tr><tr class="desc">
|
|
93
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2"></td>
|
|
94
|
+
</tr><tr class="syntax">
|
|
95
|
+
<td class="type" width="20%" align="left">Ttk_Box *</td><td class="name" width="70%" align="left"><a name="ARG-box_rtn">box_rtn</a></td><td class="mode" width="10%" align="center">out</td>
|
|
96
|
+
</tr><tr class="desc">
|
|
97
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Specifies a rectangular region.
|
|
98
|
+
</td>
|
|
99
|
+
</tr><tr class="syntax">
|
|
100
|
+
<td class="type" width="20%" align="left">int</td><td class="name" width="70%" align="left"><a name="ARG-height">height</a></td><td class="mode" width="10%" align="center">in</td>
|
|
101
|
+
</tr><tr class="desc">
|
|
102
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">The height in pixels of a region.
|
|
103
|
+
</td>
|
|
104
|
+
</tr><tr class="syntax">
|
|
105
|
+
<td class="type" width="20%" align="left">Tcl_Interp *</td><td class="name" width="70%" align="left"><a name="ARG-interp">interp</a></td><td class="mode" width="10%" align="center">in</td>
|
|
106
|
+
</tr><tr class="desc">
|
|
107
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Used to store error messages.
|
|
108
|
+
</td>
|
|
109
|
+
</tr><tr class="syntax">
|
|
110
|
+
<td class="type" width="20%" align="left">int</td><td class="name" width="70%" align="left"><a name="ARG-left">left</a></td><td class="mode" width="10%" align="center">in</td>
|
|
111
|
+
</tr><tr class="desc">
|
|
112
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Extra padding (in pixels) to add to the left side of a region.
|
|
113
|
+
</td>
|
|
114
|
+
</tr><tr class="syntax">
|
|
115
|
+
<td class="type" width="20%" align="left">Tcl_Obj *</td><td class="name" width="70%" align="left"><a name="ARG-objPtr">objPtr</a></td><td class="mode" width="10%" align="center">in</td>
|
|
116
|
+
</tr><tr class="desc">
|
|
117
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">String value contains a symbolic name
|
|
118
|
+
to be converted to an enumerated value or bitmask.
|
|
119
|
+
Internal rep may be be modified to cache corresponding value.
|
|
120
|
+
</td>
|
|
121
|
+
</tr><tr class="syntax">
|
|
122
|
+
<td class="type" width="20%" align="left"><a href="Geometry.html#type_Ttk_Padding">Ttk_Padding</a></td><td class="name" width="70%" align="left"><a name="ARG-padding">padding</a></td><td class="mode" width="10%" align="center">in</td>
|
|
123
|
+
</tr><tr class="desc">
|
|
124
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2"></td>
|
|
125
|
+
</tr><tr class="syntax">
|
|
126
|
+
<td class="type" width="20%" align="left">Ttk_Padding *</td><td class="name" width="70%" align="left"><a name="ARG-padding_rtn">padding_rtn</a></td><td class="mode" width="10%" align="center">out</td>
|
|
127
|
+
</tr><tr class="desc">
|
|
128
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Extra padding to add on the inside of a region.
|
|
129
|
+
</td>
|
|
130
|
+
</tr><tr class="syntax">
|
|
131
|
+
<td class="type" width="20%" align="left"><a href="Geometry.html#type_Ttk_Box">Ttk_Box</a></td><td class="name" width="70%" align="left"><a name="ARG-parcel">parcel</a></td><td class="mode" width="10%" align="center">in</td>
|
|
132
|
+
</tr><tr class="desc">
|
|
133
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">A rectangular region, allocated from a cavity.
|
|
134
|
+
</td>
|
|
135
|
+
</tr><tr class="syntax">
|
|
136
|
+
<td class="type" width="20%" align="left">int</td><td class="name" width="70%" align="left"><a name="ARG-relief">relief</a></td><td class="mode" width="10%" align="center">in</td>
|
|
137
|
+
</tr><tr class="desc">
|
|
138
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">One of the standard Tk relief options
|
|
139
|
+
(TK_RELIEF_RAISED, TK_RELIEF_SUNKEN, etc.).
|
|
140
|
+
See <b class="fun">Tk_GetReliefFromObj</b>.
|
|
141
|
+
</td>
|
|
142
|
+
</tr><tr class="syntax">
|
|
143
|
+
<td class="type" width="20%" align="left">short</td><td class="name" width="70%" align="left"><a name="ARG-right">right</a></td><td class="mode" width="10%" align="center">in</td>
|
|
144
|
+
</tr><tr class="desc">
|
|
145
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Extra padding (in pixles) to add to the right side of a region.
|
|
146
|
+
</td>
|
|
147
|
+
</tr><tr class="syntax">
|
|
148
|
+
<td class="type" width="20%" align="left">Ttk_Side</td><td class="name" width="70%" align="left"><a name="ARG-side">side</a></td><td class="mode" width="10%" align="center">in</td>
|
|
149
|
+
</tr><tr class="desc">
|
|
150
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">One of <b>TTK_SIDE_LEFT</b>, <b>TTK_SIDE_TOP</b>,
|
|
151
|
+
<b>TTK_SIDE_RIGHT</b>, or <b>TTK_SIDE_BOTTOM</b>.
|
|
152
|
+
</td>
|
|
153
|
+
</tr><tr class="syntax">
|
|
154
|
+
<td class="type" width="20%" align="left">unsigned</td><td class="name" width="70%" align="left"><a name="ARG-sticky">sticky</a></td><td class="mode" width="10%" align="center">in</td>
|
|
155
|
+
</tr><tr class="desc">
|
|
156
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">A bitmask containing one or more of the bits
|
|
157
|
+
<b>TTK_STICK_W</b> (west, or left),
|
|
158
|
+
<b>TTK_STICK_E</b> (east, or right,
|
|
159
|
+
<b>TTK_STICK_N</b> (north, or top), and
|
|
160
|
+
<b>TTK_STICK_S</b> (south, or bottom).
|
|
161
|
+
<b>TTK_FILL_X</b> is defined as a synonym for (TTK_STICK_W|TTK_STICK_E),
|
|
162
|
+
<b>TTK_FILL_Y</b> is a synonym for (TTK_STICK_N|TTK_STICK_S),
|
|
163
|
+
and <b>TTK_FILL_BOTH</b> and <b>TTK_STICK_ALL</b>
|
|
164
|
+
are synonyms for (TTK_FILL_X|TTK_FILL_Y).
|
|
165
|
+
See also: <i>grid(n)</i>.
|
|
166
|
+
</td>
|
|
167
|
+
</tr><tr class="syntax">
|
|
168
|
+
<td class="type" width="20%" align="left">Tk_Window</td><td class="name" width="70%" align="left"><a name="ARG-tkwin">tkwin</a></td><td class="mode" width="10%" align="center">in</td>
|
|
169
|
+
</tr><tr class="desc">
|
|
170
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Window whose screen geometry determines
|
|
171
|
+
the conversion between absolute units and pixels.
|
|
172
|
+
</td>
|
|
173
|
+
</tr><tr class="syntax">
|
|
174
|
+
<td class="type" width="20%" align="left">short</td><td class="name" width="70%" align="left"><a name="ARG-top">top</a></td><td class="mode" width="10%" align="center">in</td>
|
|
175
|
+
</tr><tr class="desc">
|
|
176
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Extra padding at the top of a region.
|
|
177
|
+
</td>
|
|
178
|
+
</tr><tr class="syntax">
|
|
179
|
+
<td class="type" width="20%" align="left">int</td><td class="name" width="70%" align="left"><a name="ARG-width">width</a></td><td class="mode" width="10%" align="center">in</td>
|
|
180
|
+
</tr><tr class="desc">
|
|
181
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">The width in pixels of a region.
|
|
182
|
+
</td>
|
|
183
|
+
</tr><tr class="syntax">
|
|
184
|
+
<td class="type" width="20%" align="left">int</td><td class="name" width="70%" align="left"><a name="ARG-x">x</a></td><td class="mode" width="10%" align="center">in</td>
|
|
185
|
+
</tr><tr class="desc">
|
|
186
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">X coordinate of upper-left corner of region.
|
|
187
|
+
</td>
|
|
188
|
+
</tr><tr class="syntax">
|
|
189
|
+
<td class="type" width="20%" align="left">int</td><td class="name" width="70%" align="left"><a name="ARG-y">y</a></td><td class="mode" width="10%" align="center">in</td>
|
|
190
|
+
</tr><tr class="desc">
|
|
191
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Y coordinate of upper-left corner of region.
|
|
192
|
+
</td>
|
|
193
|
+
</tr>
|
|
194
|
+
</table></div>
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
<h2><a name="SECTid8208778">BOXES</a></h2><p>The <b>Ttk_Box</b> structure represents a rectangular region of a window:
|
|
198
|
+
</p><a name="type_Ttk_Box">�</a><pre class="syntax" id="type_Ttk_Box">
|
|
199
|
+
typedef struct {
|
|
200
|
+
int x;
|
|
201
|
+
int y;
|
|
202
|
+
int width;
|
|
203
|
+
int height;
|
|
204
|
+
} Ttk_Box;
|
|
205
|
+
</pre><p>All coordinates are relative to the window.
|
|
206
|
+
</p><p>
|
|
207
|
+
<b>Ttk_MakeBox</b> is a convenience routine that contsructs
|
|
208
|
+
a <b>Ttk_Box</b> structure representing a region <i>width</i> pixels
|
|
209
|
+
wide, <i>height</i> pixels tall, at the specified <i>x, y</i> coordinates.
|
|
210
|
+
</p><p>
|
|
211
|
+
<b>Ttk_PadBox</b> returns a new box located inside the specified <i>parcel</i>,
|
|
212
|
+
shrunken according to the left, top, right, and bottom margins
|
|
213
|
+
specified by <i>padding</i>.
|
|
214
|
+
</p><p>
|
|
215
|
+
<b>Ttk_ExpandBox</b> is the inverse of <b>Ttk_PadBox</b>:
|
|
216
|
+
it returns a new box surrounding the specified <i>parcel</i>,
|
|
217
|
+
expanded according to the left, top, right, and bottom margins
|
|
218
|
+
specified by <i>padding</i>.
|
|
219
|
+
</p><p>
|
|
220
|
+
<b>Ttk_PackBox</b> allocates a parcel <i>width</i> by <i>height</i>
|
|
221
|
+
pixels wide on the specified <i>side</i> of the <i>cavity</i>,
|
|
222
|
+
and shrinks the <i>cavity</i> accordingly.
|
|
223
|
+
</p><p>
|
|
224
|
+
<b>Ttk_StickBox</b> places a box with the requested <i>width</i>
|
|
225
|
+
and <i>height</i> inside the <i>parcel</i> according to the
|
|
226
|
+
<i>sticky</i> bits.
|
|
227
|
+
</p><p>
|
|
228
|
+
<b>Ttk_PlaceBox</b> combines <b>Ttk_PackBox</b> and <b>Ttk_StickBox</b>:
|
|
229
|
+
it allocates a parcel on the specified <i>side</i> of the <i>cavity</i>,
|
|
230
|
+
places a box of the requested size inside the parcel according to <i>sticky</i>,
|
|
231
|
+
and shrinks the <i>cavity</i>.
|
|
232
|
+
</p><p>
|
|
233
|
+
<b>Ttk_AnchorBox</b> places a box with the requested <i>width</i>
|
|
234
|
+
and <i>height</i> inside the <i>parcel</i> according to the
|
|
235
|
+
specified <i>anchor</i> option.
|
|
236
|
+
</p><p>
|
|
237
|
+
<b>Ttk_BoxContains</b> tests if the specified <i>x, y</i> coordinate
|
|
238
|
+
lies within the rectangular region <i>box</i>.
|
|
239
|
+
</p>
|
|
240
|
+
<h2><a name="SECTid8208f98">PADDDING</a></h2><p>The <b>Ttk_Padding</b> structure is used to represent
|
|
241
|
+
borders, internal padding, and external margins:
|
|
242
|
+
</p><a name="type_Ttk_Padding">�</a><pre class="syntax" id="type_Ttk_Padding">
|
|
243
|
+
typedef struct {
|
|
244
|
+
short left;
|
|
245
|
+
short top;
|
|
246
|
+
short right;
|
|
247
|
+
short bottom;
|
|
248
|
+
} Ttk_Padding;
|
|
249
|
+
</pre><p>
|
|
250
|
+
<b>Ttk_MakePadding</b> is a convenience routine that contsructs
|
|
251
|
+
a <b>Ttk_Padding</b> structure with the specified left, top, right, and bottom
|
|
252
|
+
components.
|
|
253
|
+
</p><p>
|
|
254
|
+
<b>Ttk_UniformPadding</b> constructs a <b>Ttk_Padding</b> structure
|
|
255
|
+
with all components equal to the specified <i>border</i>.
|
|
256
|
+
</p><p>
|
|
257
|
+
<b>Ttk_AddPadding</b> adds two <b>Ttk_Padding</b>s together
|
|
258
|
+
and returns a combined padding containing the sum of the
|
|
259
|
+
individual padding components.
|
|
260
|
+
</p><p>
|
|
261
|
+
<b>Ttk_RelievePadding</b>
|
|
262
|
+
adds an extra 2 pixels of padding to <i>padding</i>
|
|
263
|
+
according to the specified <i>relief</i>.
|
|
264
|
+
If <i>relief</i> is <b>TK_RELIEF_SUNKEN</b>,
|
|
265
|
+
adds two pixels at the top and left
|
|
266
|
+
so the inner region is shifted down and to the left.
|
|
267
|
+
If it is <b>TK_RELIEF_RAISED</b>, adds two pixels
|
|
268
|
+
at the bottom and right so
|
|
269
|
+
the inner region is shifted up and to the right.
|
|
270
|
+
Otherwise, adds 1 pixel on all sides.
|
|
271
|
+
This is typically used in element geometry procedures to simulate
|
|
272
|
+
a "pressed-in" look for pushbuttons.
|
|
273
|
+
|
|
274
|
+
</p>
|
|
275
|
+
<h2><a name="SECTid8209308">CONVERSION ROUTINES</a></h2><p>
|
|
276
|
+
<b>Ttk_GetPaddingFromObj</b> converts the string in <i>objPtr</i>
|
|
277
|
+
to a <b>Ttk_Padding</b> structure.
|
|
278
|
+
The string representation is a list of
|
|
279
|
+
up to four length specifications
|
|
280
|
+
<i>"left top right bottom"</i>.
|
|
281
|
+
If fewer than four elements are specified,
|
|
282
|
+
<i>bottom</i> defaults to <i>top</i>,
|
|
283
|
+
<i>right</i> defaults to <i>left</i>, and
|
|
284
|
+
<i>top</i> defaults to <i>left</i>.
|
|
285
|
+
See <b>Tk_GetPixelsFromObj(3)</b> for the syntax of length specifications.
|
|
286
|
+
</p><p>
|
|
287
|
+
<b>Ttk_GetBorderFromObj</b> is the same as <b>Ttk_GetPaddingFromObj</b>
|
|
288
|
+
except that the lengths are specified as integers
|
|
289
|
+
(i.e., resolution-dependant values like <i>3m</i> are not allowed).
|
|
290
|
+
</p><p>
|
|
291
|
+
<b>Ttk_GetStickyFromObj</b> converts the string in <i>objPtr</i>
|
|
292
|
+
to a <i>sticky</i> bitmask. The string contains zero or more
|
|
293
|
+
of the characters <b>n</b>, <b>s</b>, <b>e</b>, or <b>w</b>.
|
|
294
|
+
|
|
295
|
+
</p>
|
|
296
|
+
<h2><a name="SECTid8209718">SEE ALSO</a></h2><p class="seealso">Tk_GetReliefFromObj(3), Tk_GetPixelsFromObj(3), Tk_GetAnchorFromObj(3)</p>
|
|
297
|
+
<h2><a name="SECTid82097b8">KEYWORDS</a></h2><p class="keywords">
|
|
298
|
+
<a class="keyword" href="keyword-index.html#KW-geometry">geometry</a>, <a class="keyword" href="keyword-index.html#KW-padding">padding</a>, <a class="keyword" href="keyword-index.html#KW-margins">margins</a>, <a class="keyword" href="keyword-index.html#KW-box">box</a>, <a class="keyword" href="keyword-index.html#KW-region">region</a>, <a class="keyword" href="keyword-index.html#KW-sticky">sticky</a>, <a class="keyword" href="keyword-index.html#KW-relief">relief</a>
|
|
299
|
+
</p>
|
|
300
|
+
</div><hr class="navsep"><div class="navbar" align="center">
|
|
301
|
+
<a class="navaid" href="index.html">Contents</a> � <a class="navaid" href="category-index.html">Index</a> � <a class="navaid" href="keyword-index.html">Keywords</a>
|
|
302
|
+
</div>
|
|
303
|
+
</body>
|
|
304
|
+
</html>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<html>
|
|
2
|
+
<head>
|
|
3
|
+
<link rel="stylesheet" href="manpage.css"><title>Tile package reference: Ttk_CreateTheme</title><meta name="xsl-processor" content="Jochen Loewer (loewerj@hotmail.com), Rolf Ade (rolf@pointsman.de) et. al."><meta name="generator" content="$RCSfile: tmml-html.xsl,v $ $Revision: 1.12 $">
|
|
4
|
+
</head><body>
|
|
5
|
+
<div class="header">
|
|
6
|
+
<div class="navbar" align="center">
|
|
7
|
+
<a href="#SECTid8206658">NAME</a> � <a href="#SECTid8206748">SYNOPSIS</a> � <a href="#SECTid82068b0">ARGUMENTS</a> � <a href="#SECTid8206b80">DESCRIPTION</a> � <a href="#SECTid8206bd0">SEE ALSO</a>
|
|
8
|
+
</div><hr class="navsep">
|
|
9
|
+
</div><div class="body">
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<h2><a name="SECTid8206658">NAME</a></h2><p class="namesection">
|
|
14
|
+
<b class="names">Ttk_CreateTheme, Ttk_GetTheme, Ttk_GetDefaultTheme, Ttk_GetCurrentTheme - </b><br>create and use Themes.</p>
|
|
15
|
+
<h2><a name="SECTid8206748">SYNOPSIS</a></h2><pre class="syntax">
|
|
16
|
+
Ttk_Theme Ttk_CreateTheme(<a href="#ARG-interp"><i>interp</i></a>, <a href="#ARG-name"><i>name</i></a>, <a href="#ARG-parentTheme"><i>parentTheme</i></a>);
|
|
17
|
+
Ttk_Theme Ttk_GetTheme(<a href="#ARG-interp"><i>interp</i></a>, <a href="#ARG-name"><i>name</i></a>);
|
|
18
|
+
Ttk_Theme Ttk_GetDefaultTheme(<a href="#ARG-interp"><i>interp</i></a>);
|
|
19
|
+
Ttk_Theme Ttk_GetCurrentTheme(<a href="#ARG-interp"><i>interp</i></a>);
|
|
20
|
+
</pre>
|
|
21
|
+
<h2><a name="SECTid82068b0">ARGUMENTS</a></h2><div class="arglist"><table width="100%" rules="none" cellpadding="5%">
|
|
22
|
+
<thead><tr class="heading">
|
|
23
|
+
<th width="20%">Type</th><th width="70%">Name</th><th width="10%">Mode</th>
|
|
24
|
+
</tr></thead><tr class="syntax">
|
|
25
|
+
<td class="type" width="20%" align="left">Tcl_Interp *</td><td class="name" width="70%" align="left"><a name="ARG-interp">interp</a></td><td class="mode" width="10%" align="center">in</td>
|
|
26
|
+
</tr><tr class="desc">
|
|
27
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">The Tcl interpreter in which to register/query available themes.
|
|
28
|
+
</td>
|
|
29
|
+
</tr><tr class="syntax">
|
|
30
|
+
<td class="type" width="20%" align="left">Ttk_Theme</td><td class="name" width="70%" align="left"><a name="ARG-parentTheme">parentTheme</a></td><td class="mode" width="10%" align="center">in</td>
|
|
31
|
+
</tr><tr class="desc">
|
|
32
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">Fallback or parent theme from which the new theme will
|
|
33
|
+
inherit elements and layouts.
|
|
34
|
+
</td>
|
|
35
|
+
</tr><tr class="syntax">
|
|
36
|
+
<td class="type" width="20%" align="left">const char *</td><td class="name" width="70%" align="left"><a name="ARG-name">name</a></td><td class="mode" width="10%" align="center">in</td>
|
|
37
|
+
</tr><tr class="desc">
|
|
38
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">The name of the theme.
|
|
39
|
+
</td>
|
|
40
|
+
</tr>
|
|
41
|
+
</table></div>
|
|
42
|
+
<h2><a name="SECTid8206b80">DESCRIPTION</a></h2>
|
|
43
|
+
<h2><a name="SECTid8206bd0">SEE ALSO</a></h2><p class="seealso">Ttk_RegisterLayout, Ttk_BuildLayout</p>
|
|
44
|
+
</div><hr class="navsep"><div class="navbar" align="center">
|
|
45
|
+
<a class="navaid" href="index.html">Contents</a> � <a class="navaid" href="category-index.html">Index</a> � <a class="navaid" href="keyword-index.html">Keywords</a>
|
|
46
|
+
</div>
|
|
47
|
+
</body>
|
|
48
|
+
</html>
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
<html>
|
|
2
|
+
<head>
|
|
3
|
+
<link rel="stylesheet" href="manpage.css"><title>Tile package reference: button</title><meta name="xsl-processor" content="Jochen Loewer (loewerj@hotmail.com), Rolf Ade (rolf@pointsman.de) et. al."><meta name="generator" content="$RCSfile: tmml-html.xsl,v $ $Revision: 1.12 $">
|
|
4
|
+
</head><body>
|
|
5
|
+
<div class="header">
|
|
6
|
+
<div class="navbar" align="center">
|
|
7
|
+
<a href="#SECTid8221fd8">NAME</a> � <a href="#SECTid8222050">SYNOPSIS</a> � <a href="#SECTid8222118">DESCRIPTION</a> � <a href="#SECTid82221b8">STANDARD OPTIONS</a> � <a href="#SECTid82223e8">OPTIONS</a> � <a href="#SECTid8222848">WIDGET COMMAND</a> � <a href="#SECTid8222dc0">COMPATIBILITY OPTIONS</a> � <a href="#SECTid8222fa0">SEE ALSO</a> � <a href="#SECTid8223018">KEYWORDS</a>
|
|
8
|
+
</div><hr class="navsep">
|
|
9
|
+
</div><div class="body">
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<h2><a name="SECTid8221fd8">NAME</a></h2><p class="namesection">
|
|
14
|
+
<b class="names">ttk::button - </b><br>Widget that issues a command when pressed</p>
|
|
15
|
+
<h2><a name="SECTid8222050">SYNOPSIS</a></h2><pre class="syntax">
|
|
16
|
+
<b>ttk::button</b> <i class="m">pathName</i> ?<i class="m">options</i>?
|
|
17
|
+
</pre>
|
|
18
|
+
<h2><a name="SECTid8222118">DESCRIPTION</a></h2><p>A <b>button</b> widget displays a textual label and/or image,
|
|
19
|
+
and evaluates a command when pressed.
|
|
20
|
+
</p>
|
|
21
|
+
<h2><a name="SECTid82221b8">STANDARD OPTIONS</a></h2><div class="menu"><table class="menu" width="100%">
|
|
22
|
+
<tr>
|
|
23
|
+
<td width="25%"><a href="widget.html#stdopt_-class">-class</a></td><td width="25%"><a href="widget.html#stdopt_-compound">-compound</a></td><td width="25%"><a href="widget.html#stdopt_-cursor">-cursor</a></td><td width="25%"><a href="widget.html#stdopt_-image">-image</a></td>
|
|
24
|
+
</tr><tr>
|
|
25
|
+
<td width="25%"><a href="widget.html#stdopt_-state">-state</a></td><td width="25%"><a href="widget.html#stdopt_-style">-style</a></td><td width="25%"><a href="widget.html#stdopt_-takefocus">-takefocus</a></td><td width="25%"><a href="widget.html#stdopt_-text">-text</a></td>
|
|
26
|
+
</tr><tr>
|
|
27
|
+
<td width="25%"><a href="widget.html#stdopt_-textvariable">-textvariable</a></td><td width="25%"><a href="widget.html#stdopt_-underline">-underline</a></td><td width="25%"><a href="widget.html#stdopt_-width">-width</a></td>
|
|
28
|
+
</tr>
|
|
29
|
+
</table></div>
|
|
30
|
+
<h2><a name="SECTid82223e8">OPTIONS</a></h2><div class="table"><table width="100%" rules="none" cellpadding="5%">
|
|
31
|
+
<thead><tr class="heading">
|
|
32
|
+
<th width="20%">Name</th><th width="40%">Database name</th><th width="40%">Database class</th>
|
|
33
|
+
</tr></thead><tr class="syntax">
|
|
34
|
+
<td width="20%" align="left"><a name="option_-command">-command</a></td><td width="40%" align="left">command</td><td width="40%" align="left">Command</td>
|
|
35
|
+
</tr><tr class="desc">
|
|
36
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">A script to evaluate when the widget is invoked.
|
|
37
|
+
</td>
|
|
38
|
+
</tr><tr class="syntax">
|
|
39
|
+
<td width="20%" align="left"><a name="option_-default">-default</a></td><td width="40%" align="left">default</td><td width="40%" align="left">Default</td>
|
|
40
|
+
</tr><tr class="desc">
|
|
41
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">May be set to one of <b>normal</b>, <b>active</b>, or <b>disabled</b>.
|
|
42
|
+
In a dialog box, one button may be designated the "default" button
|
|
43
|
+
(meaning, roughly, "the one that gets invoked when the user presses <Enter>").
|
|
44
|
+
<b>active</b> indicates that this is currently the default button;
|
|
45
|
+
<b>normal</b> means that it may become the default button, and
|
|
46
|
+
<b>disabled</b> means that it is not defaultable.
|
|
47
|
+
The default is <b>normal</b>.
|
|
48
|
+
<br>Depending on the theme, the default button may be displayed
|
|
49
|
+
with an extra highlight ring, or with a different border color.
|
|
50
|
+
See also: <i>keynav(n)</i>.
|
|
51
|
+
</td>
|
|
52
|
+
</tr><tr class="syntax">
|
|
53
|
+
<td width="20%" align="left"><a name="option_-width">-width</a></td><td width="40%" align="left">width</td><td width="40%" align="left">Width</td>
|
|
54
|
+
</tr><tr class="desc">
|
|
55
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">If greater than zero, specifies how much space, in character widths,
|
|
56
|
+
to allocate for the text label.
|
|
57
|
+
If less than zero, specifies a minimum width.
|
|
58
|
+
If zero or unspecified, the natural width of the text label is used.
|
|
59
|
+
Note that some themes may specify a non-zero <b>-width</b>
|
|
60
|
+
in the style.
|
|
61
|
+
|
|
62
|
+
</td>
|
|
63
|
+
</tr>
|
|
64
|
+
</table></div>
|
|
65
|
+
<h2><a name="SECTid8222848">WIDGET COMMAND</a></h2><dl>
|
|
66
|
+
|
|
67
|
+
<dt>
|
|
68
|
+
<i class="m">pathName</i> <b>invoke</b>
|
|
69
|
+
</dt>
|
|
70
|
+
<dd>Invokes the command associated with the button.
|
|
71
|
+
</dd>
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
<dt>
|
|
75
|
+
<i class="m">pathName</i> <b>cget</b> <i class="m">option</i>
|
|
76
|
+
</dt>
|
|
77
|
+
<dd></dd>
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
<dt>
|
|
81
|
+
<i class="m">pathName</i> <b>configure</b> ?<i class="m">option</i>? ?<i class="m">value option value ...</i>?</dt>
|
|
82
|
+
<dd></dd>
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
<dt>
|
|
86
|
+
<i class="m">pathName</i> <b>instate</b> <i class="m">statespec</i> ?<i class="m">script</i>?</dt>
|
|
87
|
+
<dd></dd>
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
<dt>
|
|
91
|
+
<i class="m">pathName</i> <b>state</b> ?<i class="m">stateSpec</i>?</dt>
|
|
92
|
+
<dd>See <i>widget(n)</i>
|
|
93
|
+
|
|
94
|
+
</dd>
|
|
95
|
+
|
|
96
|
+
</dl>
|
|
97
|
+
<h2><a name="SECTid8222dc0">COMPATIBILITY OPTIONS</a></h2><div class="table"><table width="100%" rules="none" cellpadding="5%">
|
|
98
|
+
<thead><tr class="heading">
|
|
99
|
+
<th width="20%">Name</th><th width="40%">Database name</th><th width="40%">Database class</th>
|
|
100
|
+
</tr></thead><tr class="syntax">
|
|
101
|
+
<td width="20%" align="left"><a name="option_-state">-state</a></td><td width="40%" align="left">state</td><td width="40%" align="left">State</td>
|
|
102
|
+
</tr><tr class="desc">
|
|
103
|
+
<td class="padding" width="20%">�</td><td class="argdesc" width="80%" align="left" colspan="2">May be set to <b>normal</b> or <b>disabled</b>
|
|
104
|
+
to control the <b>disabled</b> state bit.
|
|
105
|
+
This is a ``write-only'' option: setting it changes the
|
|
106
|
+
widget state, but the <b>state</b> widget command does
|
|
107
|
+
not affect the state option.
|
|
108
|
+
|
|
109
|
+
</td>
|
|
110
|
+
</tr>
|
|
111
|
+
</table></div>
|
|
112
|
+
<h2><a name="SECTid8222fa0">SEE ALSO</a></h2><p class="seealso">widget(n), keynav(n)</p>
|
|
113
|
+
<h2><a name="SECTid8223018">KEYWORDS</a></h2><p class="keywords">
|
|
114
|
+
<a class="keyword" href="keyword-index.html#KW-widget">widget</a>, <a class="keyword" href="keyword-index.html#KW-button">button</a>, <a class="keyword" href="keyword-index.html#KW-default">default</a>, <a class="keyword" href="keyword-index.html#KW-command">command</a>
|
|
115
|
+
</p>
|
|
116
|
+
</div><hr class="navsep"><div class="navbar" align="center">
|
|
117
|
+
<a class="navaid" href="index.html">Contents</a> � <a class="navaid" href="category-index.html">Index</a> � <a class="navaid" href="keyword-index.html">Keywords</a>
|
|
118
|
+
</div>
|
|
119
|
+
</body>
|
|
120
|
+
</html>
|