![[index]](../icons/index.gif)
Next: set-delta-background
Up: style-delta
Previous: set-alignment-on
Configures the delta with high-level specifications.
The return value is the delta itself.
Except for 'change-nothing and
'change-normal, the command only changes part of the
delta. Thus, applying 'change-bold and then
'change-italic sets the delta for both the style and
weight change.
- (send a-style-delta set-delta change-command) -> style-delta% object
change-command = 'change-nothing : symbol in '(change-nothing change-normal change-toggle-underline change-normal-color change-bold)
The change-command argument specifies how the delta is changed;
the possible values are:
- 'change-nothing -- reset all changes
- 'change-normal -- turn off all styles and resizings
- 'change-toggle-underline -- underline regions that are currently not underlined, and vice-versa
- 'change-normal-color -- change the foreground and background to black and white, respectively
- 'change-italic -- change the style of the font to italic
- 'change-bold -- change the weight of the font to bold
- (send a-style-delta set-delta change-command param) -> style-delta% object
change-command : symbol in '(change-family change-style change-toggle-style change-weight change-toggle-weight change-alignment)
param : symbol
The change-command argument specifies how the delta is changed;
the possible values are:
- 'change-family -- change the font family (param is a family; see
font%); see also
get-family
- 'change-style -- change the style of the font (param is a style; see
font%)
- 'change-toggle-style -- toggle the style of the font (param is a style; see
font%)
- 'change-weight -- change the weight of the font (param is a weight; see
font%)
- 'change-toggle-weight -- toggle the weight of the font (param is a weight; see
font%)
- 'change-alignment -- change the alignment(param is an alignment; see
style-delta%)
- (send a-style-delta set-delta change-command param) -> style-delta% object
change-command : symbol in '(change-size change-bigger change-smaller)
param : exact integer in [0, 255]
The change-command argument specifies how the delta is changed;
the possible values are:
- 'change-size -- change the size to an absolute value (param is a size)
- 'change-bigger -- make the text larger (param is an additive amount)
- 'change-smaller -- make the text smaller (param is an additive amount)
- (send a-style-delta set-delta change-command underlined?) -> style-delta% object
change-command : symbol in '(change-underline)
underlined? : boolean
There is only one possible value for change-command:
- 'change-underline -- set the underline status to either underlined or plain
![[index]](../icons/index.gif)
Next: set-delta-background
Up: style-delta
Previous: set-alignment-on
PLT