ELinks 0.18.0
view_state Struct Reference

#include <vs.h>

Collaboration diagram for view_state:

Data Fields

struct document_viewdoc_view
 
struct uriuri
 
struct form_view list forms
 
struct form_stateform_info
 
int form_info_len
 
int x
 Horizontal scrolling.
 
int y
 Vertical scrolling.
 
int current_link
 The index of the focused link in the document.links array, or -1 of none.
 
int old_current_link
 
int current_search_number
 
int plain
 
unsigned int wrap:1
 
unsigned int did_fragment:1
 
unsigned int ecmascript_fragile:1
 If set, we reset the interpreter state the next time we are going to render document attached to this view state.
 
struct ecmascript_interpreterecmascript
 

Related Symbols

(Note that these are not member symbols.)

void init_vs (struct view_state *vs, struct uri *uri, int plain)
 
void destroy_vs (struct view_state *vs, int blast_ecmascript)
 
void copy_vs (struct view_state *dst, struct view_state *src)
 

Friends And Related Symbol Documentation

◆ copy_vs()

void copy_vs ( struct view_state * dst,
struct view_state * src )
related

◆ destroy_vs()

void destroy_vs ( struct view_state * vs,
int blast_ecmascript )
related

◆ init_vs()

void init_vs ( struct view_state * vs,
struct uri * uri,
int plain )
related

Field Documentation

◆ current_link

int view_state::current_link

The index of the focused link in the document.links array, or -1 of none.


◆ current_search_number

int view_state::current_search_number

◆ did_fragment

unsigned int view_state::did_fragment

◆ doc_view

struct document_view* view_state::doc_view

◆ ecmascript

struct ecmascript_interpreter* view_state::ecmascript

◆ ecmascript_fragile

unsigned int view_state::ecmascript_fragile

If set, we reset the interpreter state the next time we are going to render document attached to this view state.

This means a real document (not just struct document_view, which randomly appears and disappears during gradual rendering) is getting replaced. So set this always when you replace the view_state URI, but also when reloading the document. You also cannot reset the document right away because it might take some time before the first rerendering is done and until then the old document is still hanging there.

◆ form_info

struct form_state* view_state::form_info

◆ form_info_len

int view_state::form_info_len

◆ forms

struct form_view list view_state::forms

◆ old_current_link

int view_state::old_current_link

◆ plain

int view_state::plain

◆ uri

struct uri* view_state::uri

◆ wrap

unsigned int view_state::wrap

◆ x

int view_state::x

Horizontal scrolling.

If x is e.g. 2, then the leftmost two columns of the document have been scrolled out of sight. x should never be negative.

◆ y

int view_state::y

Vertical scrolling.

If y is e.g. 1, then the first line of the document has been scrolled out of sight. y should never be negative.


The documentation for this struct was generated from the following files: