2021-06-13 05:29:46 +00:00
|
|
|
include libs/ui/test/Makemodule.am
|
2021-06-12 13:50:51 +00:00
|
|
|
|
2022-12-07 06:11:08 +00:00
|
|
|
lib_LTLIBRARIES += \
|
|
|
|
libs/ui/libQFgui.la \
|
|
|
|
libs/ui/libQFui.la
|
|
|
|
|
|
|
|
gui_deps = \
|
|
|
|
libs/ui/libQFui.la
|
2021-06-12 13:50:51 +00:00
|
|
|
|
2022-10-28 02:45:30 +00:00
|
|
|
ui_deps = \
|
|
|
|
libs/ecs/libQFecs.la \
|
|
|
|
libs/util/libQFutil.la
|
2022-05-06 06:50:13 +00:00
|
|
|
|
2022-12-07 06:11:08 +00:00
|
|
|
libs_ui_libQFgui_la_LDFLAGS= $(lib_ldflags)
|
|
|
|
libs_ui_libQFgui_la_LIBADD= $(gui_deps) $(ui_deps)
|
|
|
|
libs_ui_libQFgui_la_DEPENDENCIES= $(gui_deps) $(ui_deps)
|
|
|
|
libs_ui_libQFgui_la_SOURCES= \
|
2022-12-08 06:33:50 +00:00
|
|
|
libs/ui/font.c \
|
|
|
|
libs/ui/text.c
|
2022-12-07 06:11:08 +00:00
|
|
|
|
2021-06-12 13:50:51 +00:00
|
|
|
libs_ui_libQFui_la_LDFLAGS= $(lib_ldflags)
|
|
|
|
libs_ui_libQFui_la_LIBADD= $(ui_deps)
|
|
|
|
libs_ui_libQFui_la_DEPENDENCIES= $(ui_deps)
|
|
|
|
libs_ui_libQFui_la_SOURCES= \
|
|
|
|
libs/ui/inputline.c \
|
[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 10:05:18 +00:00
|
|
|
libs/ui/passage.c \
|
2021-06-12 13:50:51 +00:00
|
|
|
libs/ui/txtbuffer.c \
|
|
|
|
libs/ui/view.c \
|
|
|
|
libs/ui/vrect.c
|