ELinks 0.16.1.1
|
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include "elinks.h"
#include "bfu/dialog.h"
#include "bfu/text.h"
#include "config/kbdbind.h"
#include "intl/libintl.h"
#include "terminal/draw.h"
#include "terminal/mouse.h"
#include "terminal/terminal.h"
#include "util/color.h"
Macros | |
#define | is_unsplitable(pos) |
#define | LINES_GRANULARITY 0x7 |
#define | realloc_lines(x, o, n) |
Functions | |
void | add_dlg_text (struct dialog *dlg, char *text, format_align_T align, int bottom_pad) |
static int | split_line (const char *text2, int max_width, int *cells, int utf8) |
static char ** | split_lines (struct widget_data *widget_data, int max_width, int utf8) |
void | dlg_format_text_do (struct dialog_data *dlg_data, const char *text, int x, int *y, int width, int *real_width, struct color_pair *color, format_align_T align, int format_only) |
void | dlg_format_text (struct dialog_data *dlg_data, struct widget_data *widget_data, int x, int *y, int width, int *real_width, int max_height, int format_only) |
static widget_handler_status_T | display_text (struct dialog_data *dlg_data, struct widget_data *widget_data) |
static void | format_and_display_text (struct widget_data *widget_data, struct dialog_data *dlg_data, int current) |
static widget_handler_status_T | kbd_text (struct dialog_data *dlg_data, struct widget_data *widget_data) |
static widget_handler_status_T | mouse_text (struct dialog_data *dlg_data, struct widget_data *widget_data) |
Variables | |
const struct widget_ops | text_ops |
#define is_unsplitable | ( | pos | ) |
#define LINES_GRANULARITY 0x7 |
#define realloc_lines | ( | x, | |
o, | |||
n ) |
void add_dlg_text | ( | struct dialog * | dlg, |
char * | text, | ||
format_align_T | align, | ||
int | bottom_pad ) |
|
static |
void dlg_format_text | ( | struct dialog_data * | dlg_data, |
struct widget_data * | widget_data, | ||
int | x, | ||
int * | y, | ||
int | width, | ||
int * | real_width, | ||
int | max_height, | ||
int | format_only ) |
void dlg_format_text_do | ( | struct dialog_data * | dlg_data, |
const char * | text, | ||
int | x, | ||
int * | y, | ||
int | width, | ||
int * | real_width, | ||
struct color_pair * | color, | ||
format_align_T | align, | ||
int | format_only ) |
|
static |
|
static |
|
static |
|
inlinestatic |
|
static |
const struct widget_ops text_ops |