summaryrefslogtreecommitdiffstats
path: root/doc/ttk_image.n
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2017-04-07 21:24:24 (GMT)
committerfvogel <fvogelnew1@free.fr>2017-04-07 21:24:24 (GMT)
commitb3e6b7a7749a87530a1ac0d0084e7af0c597d4a4 (patch)
treeee046fd0e4a65c19a4635910a1f36827bd3a452a /doc/ttk_image.n
parent17c32d1409654dce68c130afcccbe39a9dc34294 (diff)
downloadtk-b3e6b7a7749a87530a1ac0d0084e7af0c597d4a4.zip
tk-b3e6b7a7749a87530a1ac0d0084e7af0c597d4a4.tar.gz
tk-b3e6b7a7749a87530a1ac0d0084e7af0c597d4a4.tar.bz2
Factorized documentation of -padding as much as possible, and clarified documentation of -border in the same way as for -padding
Diffstat (limited to 'doc/ttk_image.n')
-rw-r--r--doc/ttk_image.n20
1 files changed, 18 insertions, 2 deletions
diff --git a/doc/ttk_image.n b/doc/ttk_image.n
index 4985c20..bc1dd3f 100644
--- a/doc/ttk_image.n
+++ b/doc/ttk_image.n
@@ -29,6 +29,13 @@ Valid \fIoptions\fR are:
\fB\-border\fR \fIpadding\fR
\fIpadding\fR is a list of up to four integers, specifying
the left, top, right, and bottom borders, respectively.
+If fewer than four elements are specified,
+\fIbottom\fR defaults to \fItop\fR,
+\fIright\fR defaults to \fIleft\fR, and
+\fItop\fR defaults to \fIleft\fR.
+In other words, a list of three numbers specify the left, vertical, and right border;
+a list of two numbers specify the horizontal and the vertical border;
+a single number specifies the same border all the way around the element.
See \fBIMAGE STRETCHING\fR, below.
.TP
\fB\-height \fIheight\fR
@@ -36,8 +43,17 @@ Specifies a minimum height for the element.
If less than zero, the base image's height is used as a default.
.TP
\fB\-padding\fR \fIpadding\fR
-Specifies the element's interior padding. Defaults to
-\fB\-border\fR if not specified.
+Specifies the element's interior padding.
+The padding is a list of up to four length specifications
+\fIleft top right bottom\fR.
+If fewer than four elements are specified,
+\fIbottom\fR defaults to \fItop\fR,
+\fIright\fR defaults to \fIleft\fR, and
+\fItop\fR defaults to \fIleft\fR.
+In other words, a list of three numbers specify the left, vertical, and right padding;
+a list of two numbers specify the horizontal and the vertical padding;
+a single number specifies the same padding all the way around the widget.
+Defaults to \fB\-border\fR if not specified.
.TP
\fB\-sticky\fR \fIspec\fR
Specifies how the image is placed within the final parcel.