ELinks 0.18.0
draw.c File Reference

Text mode drawing functions. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "elinks.h"
#include "bfu/dialog.h"
#include "cache/cache.h"
#include "document/document.h"
#include "document/html/frames.h"
#include "document/html/iframes.h"
#include "document/libdom/renderer2.h"
#include "document/options.h"
#include "document/refresh.h"
#include "document/renderer.h"
#include "document/view.h"
#include "dialogs/status.h"
#include "intl/charsets.h"
#include "intl/libintl.h"
#include "protocol/uri.h"
#include "session/location.h"
#include "session/session.h"
#include "terminal/draw.h"
#include "terminal/tab.h"
#include "terminal/terminal.h"
#include "util/error.h"
#include "util/hash.h"
#include "util/lists.h"
#include "util/memory.h"
#include "util/string.h"
#include "viewer/text/draw.h"
#include "viewer/text/form.h"
#include "viewer/text/link.h"
#include "viewer/text/search.h"
#include "viewer/text/view.h"
#include "viewer/text/vs.h"
Include dependency graph for draw.c:

Functions

static int check_document_fragment (struct session *ses, struct document_view *doc_view)
 
static void draw_frame_lines (struct terminal *term, struct frameset_desc *frameset_desc, int xp, int yp, struct color_pair *colors)
 
static void draw_iframe_lines (struct terminal *term, struct iframeset_desc *iframe_desc, int xp, int yp, struct color_pair *colors)
 
static void draw_clipboard (struct terminal *term, struct document_view *doc_view)
 
static void draw_view_status (struct session *ses, struct document_view *doc_view, int active)
 
static void check_link_under_cursor (struct session *ses, struct document_view *doc_view)
 Checks if there is a link under the cursor so it can become the current highlighted link.
 
static void draw_doc (struct session *ses, struct document_view *doc_view, int active)
 Puts the formatted document on the given terminal's screen.
 
static void draw_frames (struct session *ses)
 
static void draw_iframes (struct session *ses)
 
void draw_formatted (struct session *ses, int rerender)
 Render and draw the current session document.
 
void refresh_view (struct session *ses, struct document_view *doc_view, int frames)
 Update the document view, including frames and the status messages.
 

Detailed Description

Text mode drawing functions.

Function Documentation

◆ check_document_fragment()

static int check_document_fragment ( struct session * ses,
struct document_view * doc_view )
inlinestatic

◆ check_link_under_cursor()

static void check_link_under_cursor ( struct session * ses,
struct document_view * doc_view )
static

Checks if there is a link under the cursor so it can become the current highlighted link.

◆ draw_clipboard()

static void draw_clipboard ( struct terminal * term,
struct document_view * doc_view )
static

◆ draw_doc()

static void draw_doc ( struct session * ses,
struct document_view * doc_view,
int active )
static

Puts the formatted document on the given terminal's screen.

active indicates whether the document is focused – i.e., whether it is displayed in the selected frame or document.

◆ draw_formatted()

void draw_formatted ( struct session * ses,
int rerender )

Render and draw the current session document.

Todo
rerender is ridiciously wound-up.

◆ draw_frame_lines()

static void draw_frame_lines ( struct terminal * term,
struct frameset_desc * frameset_desc,
int xp,
int yp,
struct color_pair * colors )
static

◆ draw_frames()

static void draw_frames ( struct session * ses)
static

◆ draw_iframe_lines()

static void draw_iframe_lines ( struct terminal * term,
struct iframeset_desc * iframe_desc,
int xp,
int yp,
struct color_pair * colors )
static

◆ draw_iframes()

static void draw_iframes ( struct session * ses)
static

◆ draw_view_status()

static void draw_view_status ( struct session * ses,
struct document_view * doc_view,
int active )
static

◆ refresh_view()

void refresh_view ( struct session * ses,
struct document_view * doc_view,
int frames )

Update the document view, including frames and the status messages.