Expand description
The C ABI declared in include/rotulus.h.
Marks. RotulusMark * is an opaque handle, and here it is a
MessageId rather than a pointer, encoded the way GLib encodes
integer handles (GSIZE_TO_POINTER). Ids start at 1, so NULL is
unambiguously “no mark”; on a 32-bit host the id space caps at 4
billion rows in one session, which a chat scrollback will not reach.
Nothing dereferences it, which is why a stale mark is inert rather
than dangling.
Widgets. Every entry point takes a RotulusView * the caller owns
and wraps it with a plain reference ([view_of]); none of them may
sink a floating reference, which is the easiest way to destroy a
widget the caller still thinks it has.
Structs§
- Rotulus
Frame RotulusFrame.- Rotulus
Row RotulusRow.- Rotulus
Run RotulusRun. C builds these on the stack and we only read them.- Rotulus
Speaker RotulusSpeaker.
Constants§
- ATTR_
BACKGROUND - ATTR_
BACKGROUND_ RGB - ATTR_
BOLD - ATTR_
ITALIC - ATTR_
MONOSPACE - ATTR_
REVERSE - ATTR_
RGB - ATTR_
STRIKETHROUGH - ATTR_
UNDERLINE - ROTULUS_
COLOR_ DEFAULT - ROW_
ACTION - ROW_
DIVIDER - ROW_
HISTORY - ROW_
LOAD_ NEWER - ROW_
LOAD_ OLDER - ROW_
MESSAGE RotulusRowKind.- ROW_
OUTGOING - ROW_
SYSTEM
Functions§
- rotulus_
load_ direction_ get_ type - rotulus_
mark_ get_ type RotulusMarkas a boxed type, so that language bindings can hold one.- rotulus_
view_ ⚠append - Safety
- rotulus_
view_ ⚠append_ media - Safety
- rotulus_
view_ ⚠append_ text - Safety
- rotulus_
view_ ⚠clear - Safety
- rotulus_
view_ ⚠get_ last - Safety
- rotulus_
view_ get_ type - rotulus_
view_ ⚠get_ vadjustment - Safety
- rotulus_
view_ ⚠insert_ before - Safety
- rotulus_
view_ ⚠media_ mark - Safety
- rotulus_
view_ ⚠media_ set_ frames - Safety
- rotulus_
view_ ⚠media_ set_ texture - Safety
- rotulus_
view_ new - rotulus_
view_ ⚠remove - Safety
- rotulus_
view_ ⚠replace - Safety
- rotulus_
view_ ⚠search - Safety
- rotulus_
view_ ⚠search_ clear - Safety
- rotulus_
view_ ⚠search_ step - Safety
- rotulus_
view_ ⚠set_ activate_ links - Safety
- rotulus_
view_ ⚠set_ autocopy - Safety
- rotulus_
view_ ⚠set_ avatar_ func - Safety
- rotulus_
view_ ⚠set_ avatar_ size - Safety
- rotulus_
view_ ⚠set_ copy_ timestamps - Safety
- rotulus_
view_ ⚠set_ font - Safety
- rotulus_
view_ ⚠set_ group_ gap - Safety
- rotulus_
view_ ⚠set_ indent - Safety
- rotulus_
view_ ⚠set_ link_ schemes - Safety
- rotulus_
view_ ⚠set_ markdown - Safety
- rotulus_
view_ ⚠set_ marker - Safety
- rotulus_
view_ ⚠set_ max_ indent - Safety
- rotulus_
view_ ⚠set_ max_ lines - Safety
- rotulus_
view_ ⚠set_ palette - Safety
- rotulus_
view_ ⚠set_ separator - Safety
- rotulus_
view_ ⚠set_ show_ timestamps - Safety
- rotulus_
view_ ⚠set_ timestamp_ format - Safety
- rotulus_
view_ ⚠set_ word_ wrap - Safety
- rotulus_
view_ ⚠set_ zoom - Safety
Type Aliases§
- Avatar
FuncC RotulusAvatarFunc.