Skip to main content

Module ffi

Module ffi 

Source
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§

RotulusFrame
RotulusFrame.
RotulusRow
RotulusRow.
RotulusRun
RotulusRun. C builds these on the stack and we only read them.
RotulusSpeaker
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
RotulusMark as 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§

AvatarFuncC
RotulusAvatarFunc.