ELinks 0.18.0
options.h File Reference
#include "document/format.h"
#include "terminal/color.h"
#include "util/color.h"
#include "util/box.h"
Include dependency graph for options.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  active_link_options_colors
 Active link coloring options. More...
 
struct  active_link_options
 
struct  document_options_colors
 This mostly acts as a option cache so rendering will be faster. More...
 
struct  document_options_image_link
 
struct  document_options
 

Macros

#define use_document_fg_colors(o)    ((o)->color_mode != COLOR_MODE_MONO && (o)->use_document_colors >= 1)
 
#define use_document_bg_colors(o)    ((o)->color_mode != COLOR_MODE_MONO && (o)->use_document_colors == 2)
 

Functions

int compare_opt (struct document_options *o1, struct document_options *o2)
 
void toggle_document_option (struct session *ses, const char *option_name)
 Increments the numeric value of the option identified by option_name, resetting it to the minimum value when it is already at the maximum value, and redraws the document.
 

Macro Definition Documentation

◆ use_document_bg_colors

#define use_document_bg_colors ( o)     ((o)->color_mode != COLOR_MODE_MONO && (o)->use_document_colors == 2)

◆ use_document_fg_colors

#define use_document_fg_colors ( o)     ((o)->color_mode != COLOR_MODE_MONO && (o)->use_document_colors >= 1)

Function Documentation

◆ compare_opt()

int compare_opt ( struct document_options * o1,
struct document_options * o2 )

◆ toggle_document_option()

void toggle_document_option ( struct session * ses,
const char * option_name )

Increments the numeric value of the option identified by option_name, resetting it to the minimum value when it is already at the maximum value, and redraws the document.