|
superclass: object% |
See Styles for more information.
constructor
(new style-list%) → (is-a?/c style-list%)
method
(send a-style-list basic-style) → (is-a?/c style<%>)
See also Preferences for information about the 'GRacket:default-font-size preference.
method
(send a-style-list find-or-create-join-style base-style shift-style) → (is-a?/c style<%>) base-style : (is-a?/c style<%>) shift-style : (is-a?/c style<%>)
The base-style argument must be a style within this style list.
method
(send a-style-list find-or-create-style base-style delta) → (is-a?/c style<%>) base-style : (is-a?/c style<%>) delta : (is-a?/c style-delta%)
The base-style argument must be a style within this style list. If base-style is not a join style, if it has no name, and if its delta can be collapsed with delta (see collapse in style-delta%), then the collapsed delta is used in place of delta, and the base style of base-style is used in place of base-style; this collapsing and substitution of base styles is performed recursively.
method
(send a-style-list forget-notification key) → void?
key : any/c
The key argument is the value returned by notify-on-change.
method
(send a-style-list index-to-style i)
→ (or/c (is-a?/c style<%>) #f) i : exact-nonnegative-integer?
method
(send a-style-list new-named-style name like-style) → (is-a?/c style<%>) name : string? like-style : (is-a?/c style<%>)
If name is already being used, then like-style is ignored and the old style associated to the name is returned. Otherwise, a new style is created for name with the same characteristics (i.e., the same base style and same style delta or shift style) as like-style.
The like-style style must be in this style list, otherwise the named style is derived from the basic style with an empty style delta.
Often, a change in one style will trigger a change in several other derived styles; to allow clients to handle all the changes in a batch, #f is passed in as the changing style after a set of styles has been processed.
The return value from notify-on-change is an opaque key to be used with forget-notification.
method
(send a-style-list number) → exact-nonnegative-integer?
method
(send a-style-list replace-named-style name like-style) → (is-a?/c style<%>) name : string? like-style : (is-a?/c style<%>)
method
(send a-style-list style-to-index style)
→ (or/c exact-nonnegative-integer? #f) style : (is-a?/c style<%>)