ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
layout.h
Go to the documentation of this file.
1
9#ifndef ASCII_CHAT_OPTIONS_LAYOUT_H
10#define ASCII_CHAT_OPTIONS_LAYOUT_H
11
12#include <stdio.h>
13
14/* ============================================================================
15 * Layout Constants
16 * ============================================================================ */
17
19#define LAYOUT_COLUMN_WIDTH 75
20
22#define LAYOUT_DESCRIPTION_START_COL 79
23
25#define LAYOUT_NARROW_TERMINAL_THRESHOLD 55
26
27/* ============================================================================
28 * Layout Functions
29 * ============================================================================ */
30
43void layout_print_wrapped_description(FILE *stream, const char *text, int indent_width, int term_width,
44 int continuation_indent_extra);
45
60void layout_print_two_column_row(FILE *stream, const char *first_column, const char *second_column, int first_col_len,
61 int term_width, int continuation_indent_extra);
62
63#endif // ASCII_CHAT_OPTIONS_LAYOUT_H
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.
Definition layout.c:220
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.
Definition layout.c:98