NetSurf
Data Fields
textarea Struct Reference
Collaboration diagram for textarea:
[legend]

Data Fields

int scroll_x
 
int scroll_y
 scroll offsets for the textarea More...
 
struct scrollbarbar_x
 Horizontal scroll. More...
 
struct scrollbarbar_y
 Vertical scroll. More...
 
unsigned int flags
 Textarea flags. More...
 
int vis_width
 Visible width, in pixels. More...
 
int vis_height
 Visible height, in pixels. More...
 
int pad_top
 Top padding, inside border, in pixels. More...
 
int pad_right
 Right padding, inside border, in pixels. More...
 
int pad_bottom
 Bottom padding, inside border, in pixels. More...
 
int pad_left
 Left padding, inside border, in pixels. More...
 
int border_width
 Border width, in pixels. More...
 
colour border_col
 Border colour. More...
 
int text_y_offset
 Vertical dist to 1st line top. More...
 
int text_y_offset_baseline
 Vertical dist to 1st baseline. More...
 
plot_font_style_t fstyle
 Text style, inc. More...
 
plot_font_style_t sel_fstyle
 Selected text style. More...
 
int line_height
 Line height obtained from style. More...
 
struct textarea_utf8 text
 Textarea text content. More...
 
struct textarea_utf8 password
 Text for obscured display. More...
 
struct textarea_utf8show
 Points at .text or .password. More...
 
struct {
   int   line
 Line caret is on. More...
 
   int   byte_off
 Character index of caret on line. More...
 
caret_pos
 
int caret_x
 cached X coordinate of the caret More...
 
int caret_y
 cached Y coordinate of the caret More...
 
int sel_start
 Character index of sel start (inclusive) More...
 
int sel_end
 Character index of sel end (exclusive) More...
 
int h_extent
 Width of content in px. More...
 
int v_extent
 Height of content in px. More...
 
int line_count
 Count of lines. More...
 
struct line_infolines
 Line info array. More...
 
unsigned int lines_alloc_size
 Number of LINE_CHUNK_SIZEs. More...
 
textarea_client_callback callback
 Callback function for messages to client. More...
 
void * data
 Client data for callback. More...
 
int drag_start
 Byte offset of drag start (in ta->show) More...
 
struct textarea_drag drag_info
 Drag information. More...
 
struct textarea_undo undo
 Undo/redo information. More...
 

Detailed Description

Definition at line 91 of file textarea.c.

Field Documentation

◆ bar_x

struct scrollbar* textarea::bar_x

◆ bar_y

struct scrollbar* textarea::bar_y

◆ border_col

colour textarea::border_col

Border colour.

Definition at line 108 of file textarea.c.

Referenced by textarea_create(), and textarea_redraw().

◆ border_width

int textarea::border_width

◆ byte_off

int textarea::byte_off

◆ callback

textarea_client_callback textarea::callback

◆ 

struct { ... } textarea::caret_pos

◆ caret_x

int textarea::caret_x

◆ caret_y

int textarea::caret_y

◆ data

void* textarea::data

◆ drag_info

struct textarea_drag textarea::drag_info

◆ drag_start

int textarea::drag_start

Byte offset of drag start (in ta->show)

Definition at line 149 of file textarea.c.

Referenced by textarea_create(), textarea_drag_end(), and textarea_mouse_action().

◆ flags

unsigned int textarea::flags

◆ fstyle

plot_font_style_t textarea::fstyle

◆ h_extent

int textarea::h_extent

◆ line

int textarea::line

Line caret is on.

Definition at line 125 of file textarea.c.

Referenced by textarea_create(), textarea_get_caret(), textarea_keypress(), and textarea_set_caret_internal().

◆ line_count

int textarea::line_count

◆ line_height

int textarea::line_height

◆ lines

struct line_info* textarea::lines

◆ lines_alloc_size

unsigned int textarea::lines_alloc_size

Number of LINE_CHUNK_SIZEs.

Definition at line 142 of file textarea.c.

Referenced by textarea_create(), textarea_reflow_multiline(), and textarea_reflow_singleline().

◆ pad_bottom

int textarea::pad_bottom

Bottom padding, inside border, in pixels.

Definition at line 104 of file textarea.c.

Referenced by textarea_create(), textarea_keypress(), textarea_reflow_multiline(), textarea_scroll_visible(), and textarea_set_layout().

◆ pad_left

int textarea::pad_left

◆ pad_right

int textarea::pad_right

Right padding, inside border, in pixels.

Definition at line 103 of file textarea.c.

Referenced by textarea_create(), textarea_reflow_multiline(), textarea_reflow_singleline(), textarea_scroll_visible(), and textarea_set_layout().

◆ pad_top

int textarea::pad_top

◆ password

struct textarea_utf8 textarea::password

◆ scroll_x

int textarea::scroll_x

◆ scroll_y

int textarea::scroll_y

◆ sel_end

int textarea::sel_end

◆ sel_fstyle

plot_font_style_t textarea::sel_fstyle

Selected text style.

Definition at line 114 of file textarea.c.

Referenced by textarea_redraw(), textarea_set_layout(), and textarea_set_text_style().

◆ sel_start

int textarea::sel_start

◆ show

struct textarea_utf8* textarea::show

◆ text

struct textarea_utf8 textarea::text

◆ text_y_offset

int textarea::text_y_offset

◆ text_y_offset_baseline

int textarea::text_y_offset_baseline

Vertical dist to 1st baseline.

Definition at line 111 of file textarea.c.

Referenced by textarea_keypress(), textarea_redraw(), and textarea_setup_text_offsets().

◆ undo

struct textarea_undo textarea::undo

◆ v_extent

int textarea::v_extent

Height of content in px.

Definition at line 136 of file textarea.c.

Referenced by textarea_create(), textarea_keypress(), textarea_reflow_multiline(), and textarea_scroll_visible().

◆ vis_height

int textarea::vis_height

◆ vis_width

int textarea::vis_width

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