optional parameters?

This commit is contained in:
2025-08-07 21:10:09 +02:00
parent 893dce863d
commit 51b525524b

View File

@@ -38,13 +38,13 @@ See also @racket[pane%].
[stretchable-height any/c #t])]{ [stretchable-height any/c #t])]{
} }
@defmethod*[([(column-min-width (c column-index) [w dimenstion-integer?]) dimension-integer?])]{ @defmethod*[([(column-min-width (c column-index) [w or/c dimenstion-integer?]) dimension-integer?])]{
Gets or sets the minimum width (in pixels) of the given column c. Gets or sets the minimum width (in pixels) of the given column c.
Returns the currently set minimum width for the given column. Returns the currently set minimum width for the given column.
} }
@defmethod*[([(column-align (c column-index) [align <- (or/c 'left 'center 'right)]) (or/c 'left 'center 'right)])]{ @defmethod*[([(column-align (c column-index) [align (or/c 'left 'center 'right)]) (or/c 'left 'center 'right)])]{
Gets or sets the horizontal alignment of a given column c. Gets or sets the horizontal alignment of a given column c.
Returns the currently set alignment. Returns the currently set alignment.
@@ -52,7 +52,7 @@ See also @racket[pane%].
Note. Use this right after declaring the columns pane and before adding any children. Note. Use this right after declaring the columns pane and before adding any children.
} }
@defmethod*[([(column-keep-min-width (c column-index) [k boolean]) boolean?])]{ @defmethod*[([(column-keep-min-width (c column-index) [k or/c boolean]) boolean?])]{
Gets or sets the keep minimal width parameter for a given column c. Gets or sets the keep minimal width parameter for a given column c.
Returns the currently set value. Returns the currently set value.