From ba1e29fe0b4a6e80a2fe3dc6ac6dceed45c992ce Mon Sep 17 00:00:00 2001 From: crc Date: Sun, 22 Apr 2018 20:14:18 +0000 Subject: [PATCH] update glossary w/new iOS words&changes FossilOrigin-Name: 49c9e6383d6ed18bd4458b48619c3f972c2bb1a1b68bf5d35a542f97ec464a59 --- doc/Glossary.txt | 108 ++++++++++++++++++++++++++++++++++++----------- words.tsv | 9 +++- 2 files changed, 91 insertions(+), 26 deletions(-) diff --git a/doc/Glossary.txt b/doc/Glossary.txt index 38f1ea3..12e3ead 100644 --- a/doc/Glossary.txt +++ b/doc/Glossary.txt @@ -1482,6 +1482,78 @@ Class Handler: class:word | Namespace: global | Interface Layer: all ---------------------------------------------------------------- +config:set-editor-font + + Data: s- + Addr: - + Float: - + +Set the font to use in the editor. If the font fails to load, RETRO will fall back to a safe default. + +Class Handler: class:word | Namespace: config | Interface Layer: iOS + +---------------------------------------------------------------- + +config:set-editor-size + + Data: n- + Addr: - + Float: - + +Set the size of the font to use in the editor. + +Class Handler: class:word | Namespace: config | Interface Layer: iOS + +---------------------------------------------------------------- + +config:set-output-font + + Data: s- + Addr: - + Float: - + +Set the font to use in output area. If the font fails to load, RETRO will fall back to a safe default. + +Class Handler: class:word | Namespace: config | Interface Layer: iOS + +---------------------------------------------------------------- + +config:set-output-size + + Data: n- + Addr: - + Float: - + +Set the size of the font to use in the output area. + +Class Handler: class:word | Namespace: config | Interface Layer: iOS + +---------------------------------------------------------------- + +config:set-toolbar-font + + Data: s- + Addr: - + Float: - + +Set the font to use in the toolbar. If the font fails to load, RETRO will fall back to a safe default. + +Class Handler: class:word | Namespace: config | Interface Layer: iOS + +---------------------------------------------------------------- + +config:set-toolbar-size + + Data: n- + Addr: - + Float: - + +Set the size of the font to use in the toolbar. + +Class Handler: class:word | Namespace: config | Interface Layer: iOS + +---------------------------------------------------------------- + const Data: ns- @@ -1794,30 +1866,6 @@ Class Handler: class:word | Namespace: global | Interface Layer: all ---------------------------------------------------------------- -editor:set-font-face - - Data: s- - Addr: - - Float: - - -Set the font to use in the editor and toolbars. If the font fails to load, RETRO will fall back to a safe default. - -Class Handler: class:word | Namespace: editor | Interface Layer: iOS - ----------------------------------------------------------------- - -editor:set-font-size - - Data: n- - Addr: - - Float: - - -Set the size of the font to use in the editor and toolbars. - -Class Handler: class:word | Namespace: editor | Interface Layer: iOS - ----------------------------------------------------------------- - eq? Data: nn-f @@ -2637,6 +2685,18 @@ Example #1: ---------------------------------------------------------------- +ios:list-fonts + + Data: - + Addr: - + Float: - + +Display a list of all installed fonts. + +Class Handler: class:word | Namespace: ios | Interface Layer: iOS + +---------------------------------------------------------------- + listen Data: - diff --git a/words.tsv b/words.tsv index 1282b1c..7cbb5ba 100644 --- a/words.tsv +++ b/words.tsv @@ -116,6 +116,12 @@ compile:jump a- - - Compile a jump to the specified address into the current def compile:lit n- - - Compile the code to push a number to the stack into the current definition. class:word {n/a} {n/a} compile all compile:ret - - - Compile a return instruction into the current definition. class:word {n/a} {n/a} compile all compiling? -f - - Return `TRUE` if compiler is on or `FALSE` otherwise. class:word {n/a} {n/a} global all +config:set-editor-font s- - - Set the font to use in the editor. If the font fails to load, RETRO will fall back to a safe default. class:word {n/a} {n/a} config iOS +config:set-editor-size n- - - Set the size of the font to use in the editor. class:word {n/a} {n/a} config iOS +config:set-output-font s- - - Set the font to use in output area. If the font fails to load, RETRO will fall back to a safe default. class:word {n/a} {n/a} config iOS +config:set-output-size n- - - Set the size of the font to use in the output area. class:word {n/a} {n/a} config iOS +config:set-toolbar-font s- - - Set the font to use in the toolbar. If the font fails to load, RETRO will fall back to a safe default. class:word {n/a} {n/a} config iOS +config:set-toolbar-size n- - - Set the size of the font to use in the toolbar. class:word {n/a} {n/a} config iOS const ns- - - Create a constant returning the specified value. class:word {n/a} {n/a} global all copy sdl- - - Copy `l` cells from memory at `s` to the memory at `d`. These should not overlap. class:word {n/a} {n/a} global all curry nq-q - - Bind a value to a function and return a new quote that calls the bound action. class:word {n/a} {n/a} global all @@ -142,8 +148,6 @@ drop-pair nn- - - Remove top two items on the stack. class:word {n/a} {n/a} gl dump-stack - - - Display the items on the data stack. class:word {n/a} {n/a} global all dup n-nn - - Duplicate the top item on the stack. class:primitive {n/a} {n/a} global all dup-pair nm-nmnm - - Duplicate the top two items on the stack. class:word {n/a} {n/a} global all -editor:set-font-face s- - - Set the font to use in the editor and toolbars. If the font fails to load, RETRO will fall back to a safe default. class:word {n/a} {n/a} editor iOS -editor:set-font-size n- - - Set the size of the font to use in the editor and toolbars. class:word {n/a} {n/a} editor iOS eq? nn-f - - Compare two values for equality. Returns `TRUE` if they are equal or `FALSE` otherwise. class:primitive #1 #2 eq?\n $a $b eq? {n/a} global all err:notfound - - - Error handler. Called when a word is not found by `interpret`. class:word {n/a} {n/a} err all f:* - - FF-F Multiply two floating point numbers, returning the result. class:word .3.1415 .22 f:* {n/a} f rre @@ -209,6 +213,7 @@ if fq- - - Execute the quote if the flag is `TRUE`. class:word {n/a} {n/a} glo immediate - - - Change the class of the most recently defined word to `class:macro`. class:word {n/a} {n/a} global all include s- - - Run the code in the specified file. class:word {n/a} {n/a} global rre interpret s- - - Interpret a single input token. class:word '#100 interpret\n 'words interpret {n/a} global all +ios:list-fonts - - - Display a list of all installed fonts. class:word {n/a} {n/a} ios iOS listen - - - Run interactive "listener" (a REPL). class:word {n/a} {n/a} global rre lt? nn-f - - Compare n1 and n2. Return `TRUE` if n1 is less than n2, or `FALSE` otherwise. class:primitive {n/a} {n/a} global all lteq? nn-f - - Compare n1 and n2. Return `TRUE` if n1 is less than or equal to n2, or `FALSE` otherwise. class:word {n/a} {n/a} global all