summaryrefslogtreecommitdiff
path: root/specs/CH03.xml
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-04-11 19:20:23 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2019-04-16 18:46:02 -0400
commit6f75d2fefcf4e5c158546590bcfafc73293e4038 (patch)
treea162363dd02b63feedc5ab52c8c5af32f666afb7 /specs/CH03.xml
parentd9afa0ca6e677b446ce43f2f189c08cfe87f68f3 (diff)
add (with an external script "markup-literallayout") <code> tags
within <literallayout>. Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'specs/CH03.xml')
-rw-r--r--specs/CH03.xml30
1 files changed, 15 insertions, 15 deletions
diff --git a/specs/CH03.xml b/specs/CH03.xml
index 806157f..a2b8209 100644
--- a/specs/CH03.xml
+++ b/specs/CH03.xml
@@ -1321,26 +1321,26 @@ For example, a widget class that needs to maintain a maximum
width and height for each child might define its constraint record as
follows:
</para>
-<literallayout >
-typedef struct {
- Dimension max_width, max_height;
-} MaxConstraintPart;
-typedef struct {
- MaxConstraintPart max;
-} MaxConstraintRecord, *MaxConstraint;
+<literallayout>
+<code>typedef struct {</code>
+<code> Dimension max_width, max_height;</code>
+<code>} MaxConstraintPart;</code>
+<code>typedef struct {</code>
+<code> MaxConstraintPart max;</code>
+<code>} MaxConstraintRecord, *MaxConstraint;</code>
</literallayout>
<para>
A subclass of this widget class that also needs to maintain a minimum size would
define its constraint record as follows:
</para>
-<literallayout >
-typedef struct {
- Dimension min_width, min_height;
-} MinConstraintPart;
-typedef struct {
- MaxConstraintPart max;
- MinConstraintPart min;
-} MaxMinConstraintRecord, *MaxMinConstraint;
+<literallayout>
+<code>typedef struct {</code>
+<code> Dimension min_width, min_height;</code>
+<code>} MinConstraintPart;</code>
+<code>typedef struct {</code>
+<code> MaxConstraintPart max;</code>
+<code> MinConstraintPart min;</code>
+<code>} MaxMinConstraintRecord, *MaxMinConstraint;</code>
</literallayout>
<para>
Constraints are allocated, initialized, deallocated, and otherwise maintained