ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
options/layout.h
Go to the documentation of this file.
1
9
10#ifndef ASCII_CHAT_OPTIONS_LAYOUT_H
11#define ASCII_CHAT_OPTIONS_LAYOUT_H
12
13#include <stdio.h>
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19/* ============================================================================
20 * Layout Constants
21 * ============================================================================
22 */
23
25#define LAYOUT_COLUMN_WIDTH 75
26
29#define LAYOUT_DESCRIPTION_START_COL 79
30
32#define LAYOUT_NARROW_TERMINAL_THRESHOLD 55
33
34/* ============================================================================
35 * Layout Functions
36 * ============================================================================
37 */
38
52void layout_print_wrapped_description(FILE *stream, const char *text,
53 int indent_width, int term_width,
54 int continuation_indent_extra);
55
71void layout_print_two_column_row(FILE *stream, const char *first_column,
72 const char *second_column, int first_col_len,
73 int term_width, int continuation_indent_extra);
74
75#endif // ASCII_CHAT_OPTIONS_LAYOUT_H
76
77#ifdef __cplusplus
78}
79#endif
void layout_print_two_column_row(FILE *stream, const char *first_column, const char *second_column, int first_col_len, int term_width, int continuation_indent_extra)
Print two-column row with automatic wrapping.
void layout_print_wrapped_description(FILE *stream, const char *text, int indent_width, int term_width, int continuation_indent_extra)
Print text with wrapping and proper indentation.