2006-01-19 16:14:05 -05:00
USING: help styles io ;
2006-08-16 21:55:53 -04:00
HELP: plain
2006-01-19 16:14:05 -05:00
{ $description "A value for the " { $link font-style } " character style denoting plain text." } ;
2006-08-16 21:55:53 -04:00
HELP: bold
2006-01-19 16:14:05 -05:00
{ $description "A value for the " { $link font-style } " character style denoting boldface text." } ;
2006-08-16 21:55:53 -04:00
HELP: italic
2006-01-19 16:14:05 -05:00
{ $description "A value for the " { $link font-style } " character style denoting italicized text." } ;
2006-08-16 21:55:53 -04:00
HELP: bold-italic
2006-01-19 16:14:05 -05:00
{ $description "A value for the " { $link font-style } " character style denoting boldface italicized text." } ;
2006-08-16 21:55:53 -04:00
HELP: foreground
2006-01-19 16:14:05 -05:00
{ $description "Character style. Text color, denoted by a sequence of four numbers between 0 and 1 (red, green, blue and alpha)." }
{ $examples
{ $code
"\"Hello world\" 10 ["
" { 0.1 0.1 0.2 1 } n*v { 1 1 1 1 } vmin"
" foreground associate format terpri"
"] each-with"
}
} ;
2006-08-16 21:55:53 -04:00
HELP: background
2006-01-19 16:14:05 -05:00
{ $description "Character style. Background color, denoted by a sequence of four numbers between 0 and 1 (red, green, blue and alpha)." }
{ $examples
{ $code
"\"Hello world\" 10 ["
" { 0.1 0.4 0.1 } n*v { 1 1 1 } vmin { 1 } append"
" background associate format terpri"
"] each-with"
}
} ;
2006-08-16 21:55:53 -04:00
HELP: font
2006-01-19 16:14:05 -05:00
{ $description "Character style. Font family named by a string." }
{ $examples
"This example outputs some different font sizes:"
{ $code "{ \"Monospaced\" \"Serif\" \"Sans Serif\" }\n[ dup font associate format terpri ] each" }
} ;
2006-08-16 21:55:53 -04:00
HELP: font-size
2006-01-19 16:14:05 -05:00
{ $description "Character style. Font size, an integer." }
{ $examples
"This example outputs some different font sizes:"
{ $code "\"Bigger\" { 12 18 24 72 }\n[ font-size associate format terpri ] each-with" }
} ;
2006-08-16 21:55:53 -04:00
HELP: font-style
2006-01-19 16:14:05 -05:00
{ $description "Character style. Font style, one of " { $link plain } ", " { $link bold } ", " { $link italic } ", or " { $link bold-italic } "." }
{ $examples
"This example outputs text in all three styles:"
{ $code "{ plain bold italic bold-italic }\n[ [ word-name ] keep font-style associate format terpri ] each" }
} ;
2006-08-16 21:55:53 -04:00
HELP: presented
2006-01-19 16:14:05 -05:00
{ $description "Character and paragraph style. An object associated with the text. In the Factor UI, this is shown as a clickable presentation of the object; left-clicking invokes a default command, and right-clicking shows a menu of commands." }
2006-06-14 01:47:28 -04:00
{ $see-also write-object } ;
2006-01-19 16:14:05 -05:00
2006-08-16 21:55:53 -04:00
HELP: highlight
{ $description "Character style. Used to mark up text on streams that otherwise do not support different colors or font styles." }
{ $examples "Instances of " { $link plain-writer } " uppercases highlighted text." } ;
HELP: page-color
2006-01-19 16:14:05 -05:00
{ $description "Paragraph style. Background color of the paragraph block, denoted by a sequence of four numbers between 0 and 1 (red, green, blue and alpha)." }
{ $examples
{ $code "H{ { page-color { 1 0.8 0.5 1 } } }\n[ \"A background\" write ] with-nesting terpri" }
} ;
2006-08-16 21:55:53 -04:00
HELP: border-color
2006-01-19 16:14:05 -05:00
{ $description "Paragraph style. Border color of the paragraph block, denoted by a sequence of four numbers between 0 and 1 (red, green, blue and alpha)." }
{ $examples
{ $code "H{ { border-color { 1 0 0 1 } } }\n[ \"A border\" write ] with-nesting terpri" }
} ;
2006-08-16 21:55:53 -04:00
HELP: border-width
2006-01-19 16:14:05 -05:00
{ $description "Paragraph style. Pixels between edge of text and border color, an integer." }
{ $examples
{ $code "H{ { border-width 10 } }\n[ \"Some inset text\" write ] with-nesting terpri" }
} ;
2006-08-16 21:55:53 -04:00
HELP: wrap-margin
2006-01-19 16:14:05 -05:00
{ $description "Paragraph style. Pixels between left margin and right margin where text is wrapped, an integer." }
{ $see-also bl } ;
2006-08-16 21:55:53 -04:00
HELP: outline
2006-01-19 16:14:05 -05:00
{ $description "Paragraph style. In the Factor UI, a quotation executed to produce outliner content when the outliner widget next to the paragraph block is expanded." }
2006-06-14 01:47:28 -04:00
{ $see-also write-outliner } ;
2006-01-19 16:14:05 -05:00
2006-08-16 21:55:53 -04:00
HELP: table-gap
{ $description "Table style. Pixels between table cells." }
{ $see-also with-stream-table tabular-output } ;
HELP: table-border
{ $description "Table style. Color of the border drawn between cells, denoted by a sequence of four numbers between 0 and 1 (red, green, blue and alpha)." }
{ $see-also with-stream-table tabular-output } ;
HELP: input
{ $class-description "Class of input text presentations.A wrapper class. Instances can be used passed to " { $link write-object } " to output a clickable piece of input." }
2006-01-19 16:14:05 -05:00
{ $examples
"This presentation class is used for the code examples you see in the online help:"
2006-06-14 01:47:28 -04:00
{ $code "\"2 3 + .\" dup <input> write-object terpri" }
2006-01-19 16:14:05 -05:00
} ;