quakeforge/include
Bill Currie 9798400cfb [ui] Add a sub-system for parsing text passages
A passage object has a list of all the text objects in the given string,
where the objects represent either white space or "words", as well as a
view_t object representing the entire passage, with paragraphs split
into child views of the passage view, and each paragraph has a child
view for every text/space object in the paragraph.

Paragraphs are split by '\n' (not included in any object).

White space is grouped into clumps such that multiple adjacent spaces
form a single object. The standard ASCII space (0x20) and all of the
Unicode characters marked "WS;<compat> 0020" are counted as white space.
Unless a white space object is the first in the paragraph, its view is
marked for suppression by the view flow code.

Contiguous non-white space characters are grouped into single objects,
and their views are not suppressed.

All text object views (both white space and "word") have their data
pointer set to the psg_text_t object representing the text for that
view. This should be suitable for simple text-mode unattributed display.
More advanced rendering would probably want to create suitable objects
and set the view data pointers to those objects.

No assumption is made about text direction.

Passage and paragraph views need to have their primary axis sizes set
appropriately, as well as their resize flags. Their xlen and ylen are
both set to 10, and xpos,ypos is 0,0. Paragraph views need their
setgeometry pointer set to the appropriate view_flow_* function.
However, they are set up to have their secondary axis set automatically
when flowed.

Text object views are set up for automatic flowing: grav_flow, 0,0 for
xpos,ypos. However, xlen and ylen are also both 0, so need to be set by
the renderer before attempting to flow the text.
2022-09-30 19:51:14 +09:00
..
client [client] Pre-cache temp entity data after clearing memory 2022-05-19 13:26:45 +09:00
evdev [input] Use a single select call for all drivers 2021-09-26 15:11:07 +09:00
QF [ui] Add a sub-system for parsing text passages 2022-09-30 19:51:14 +09:00
qw [cvar] Make cvars properly typed 2022-04-24 19:15:22 +09:00
win32 Get QF cross-compiling using MXE/mingw32 2021-03-27 20:09:37 +09:00
adivtab.h Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
alsa_funcs_list.h [audio] Clean up alsa init and add error checking 2021-06-25 09:50:31 +09:00
anorm_dots.h Massive whitespace cleanup. 2012-05-22 08:23:22 +09:00
anorms.h Massive whitespace cleanup. 2012-05-22 08:23:22 +09:00
asm_draw.h [sw] Clean up r_refdef and R_ViewChanged 2022-03-27 15:32:00 +09:00
asm_i386.h Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
block8.h Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
block16.h Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
bsearch.h [util] Add fuzzy and reentrant bsearch 2021-06-01 18:53:53 +09:00
buildnum.h Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
compat.h [util] Add fuzzy and reentrant bsearch 2021-06-01 18:53:53 +09:00
context_sdl.h Separate render and presentation initialization 2019-07-09 01:00:47 +09:00
context_win.h [cvar] Make cvars properly typed 2022-04-24 19:15:22 +09:00
context_x11.h [cvar] Make cvars properly typed 2022-04-24 19:15:22 +09:00
d_iface.h [renderer] Add a cell-based character buffer 2022-09-15 14:24:33 +09:00
d_ifacea.h [renderer] Move particles over to simd 2021-12-24 06:45:13 +09:00
d_local.h Remove some long dead cvars 2022-04-24 17:23:46 +09:00
dga_check.h [video] Mark dga funcs as const when dga not available 2021-08-11 12:09:07 +09:00
exp.h Do a pure/const/noreturn/format attribute pass. 2018-10-09 12:42:21 +09:00
fbset.h [vid] Fix non-utf8 circle-c in fbset 2022-04-13 10:35:40 +09:00
garbage.h Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
getopt.h make gcc more anal about prototypes, string constants and function 2003-01-06 18:28:13 +00:00
gib_buffer.h [build] Autoconfiscate printf format attribute 2021-03-27 19:52:59 +09:00
gib_builtin.h Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
gib_classes.h Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
gib_execute.h Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
gib_function.h Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
gib_handle.h Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
gib_object.h Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
gib_parse.h Do a pure/const/noreturn/format attribute pass. 2018-10-09 12:42:21 +09:00
gib_process.h Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
gib_regex.h Do a pure/const/noreturn/format attribute pass. 2018-10-09 12:42:21 +09:00
gib_semantics.h Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
gib_thread.h Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
gib_tree.h Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
gib_vars.h Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
gl_warp_sin.h Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
in_win.h Fix win32 (mingw) builds. 2012-02-07 20:18:23 +09:00
in_x11.h [x11] Split up in_x11_init into three stages 2021-11-21 21:22:11 +09:00
logos.h Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
Makemodule.am [renderer] Switch to using HarfBuzz for glyph positioning 2022-09-04 20:56:38 +09:00
mod_internal.h [renderer] Clean up some unwanted dependencies 2022-05-26 14:41:08 +09:00
net_dgrm.h Update for doxygen 1.8.16 2020-02-11 15:22:42 +09:00
net_loop.h Update for doxygen 1.8.16 2020-02-11 15:22:42 +09:00
net_udp.h Update for doxygen 1.8.16 2020-02-11 15:22:42 +09:00
net_vcr.h Update for doxygen 1.8.16 2020-02-11 15:22:42 +09:00
net_wins.h Get QF cross-compiling using MXE/mingw32 2021-03-27 20:09:37 +09:00
netchan.h [cvar] Make cvars properly typed 2022-04-24 19:15:22 +09:00
netmain.h [cvar] Make cvars properly typed 2022-04-24 19:15:22 +09:00
noisetextures.h Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
old_keys.h Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
ops.h Do a pure/const/noreturn/format attribute pass. 2018-10-09 12:42:21 +09:00
pstdint.h Prefer int over long for (u)int32_t. 2010-12-23 09:47:05 +09:00
qfalloca.h Handle alloca "correctly". 2013-01-22 21:02:50 +09:00
qfselect.h [util] Wrap fd_set 2021-09-28 10:53:51 +09:00
qstring.h [util] Add strndup and reentrant quicksort 2021-03-27 20:03:39 +09:00
quakeasm.h [sw] Clean up use of vid.colormap8 2022-03-29 14:43:38 +09:00
quicksort.h [util] Add fuzzy and reentrant bsearch 2021-06-01 18:53:53 +09:00
r_cvar.h [cvar] Make cvars properly typed 2022-04-24 19:15:22 +09:00
r_dynamic.h [cvar] Make cvars properly typed 2022-04-24 19:15:22 +09:00
r_font.h [renderer] Switch to using HarfBuzz for glyph positioning 2022-09-04 20:56:38 +09:00
r_internal.h [model] Move visframe out of msurface_t 2022-05-22 16:38:50 +09:00
r_local.h [renderer] Clean up some unwanted dependencies 2022-05-26 14:41:08 +09:00
r_scrap.h [renderer] Report scrap rectangle counts 2022-09-20 19:32:41 +09:00
r_shared.h [cvar] Make cvars properly typed 2022-04-24 19:15:22 +09:00
r_text.h [renderer] Switch to using HarfBuzz for glyph positioning 2022-09-04 20:56:38 +09:00
regex.h Massive whitespace cleanup. 2012-05-22 08:23:22 +09:00
rua_internal.h [ruamoko] Allow scenes to be fetched by C code 2022-05-05 23:49:31 +09:00
sbar.h [cvar] Make cvars properly typed 2022-04-24 19:15:22 +09:00
scn_internal.h [scene] Implement Hierarchy_Copy 2022-05-08 11:14:00 +09:00
skin_stencil.h Massive whitespace cleanup. 2012-05-22 08:23:22 +09:00
snd_internal.h Fix some doxygen issues 2022-09-22 09:35:57 +09:00
sv_console.h The status bar in the quakeworld server curses console finally does something. Currently only cpu usage, but as a proof-of-concept, it more than does its job. 2007-04-09 00:10:10 +00:00
varrays.h Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
vgamodes.h Massive whitespace cleanup. 2012-05-22 08:23:22 +09:00
vid_gl.h [renderer] Make screen capture support asynchronous operation 2022-04-01 01:01:53 +09:00
vid_internal.h [vid] Add a listener for window size changes 2022-09-22 01:07:54 +09:00
vid_sw.h [renderer] Make screen capture support asynchronous operation 2022-04-01 01:01:53 +09:00
vid_vulkan.h [vulkan] Implement window resize support 2022-09-26 13:04:56 +09:00
vregset.h Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
winquake.h [vid] Clean up windows video code a bit 2021-03-31 15:10:35 +09:00
world.h [mode] Go back to using dclipnode_t everywhere 2022-05-19 15:16:53 +09:00