NetSurf
|
Data Fields | |
int | scroll_x |
int | scroll_y |
scroll offsets for the textarea More... | |
struct scrollbar * | bar_x |
Horizontal scroll. More... | |
struct scrollbar * | bar_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_utf8 * | show |
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_info * | lines |
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... | |
Definition at line 91 of file textarea.c.
struct scrollbar* textarea::bar_x |
Horizontal scroll.
Definition at line 95 of file textarea.c.
Referenced by textarea_clear_selection(), textarea_create(), textarea_destroy(), textarea_drag_end(), textarea_keypress(), textarea_mouse_action(), textarea_mouse_scrollbar_action(), textarea_redraw(), textarea_reflow_multiline(), textarea_replace_text_internal(), textarea_scroll(), textarea_scroll_visible(), textarea_scrollbar_callback(), textarea_select(), textarea_set_caret_internal(), and textarea_set_layout().
struct scrollbar* textarea::bar_y |
Vertical scroll.
Definition at line 96 of file textarea.c.
Referenced by textarea_clear_selection(), textarea_create(), textarea_destroy(), textarea_keypress(), textarea_mouse_action(), textarea_mouse_scrollbar_action(), textarea_redraw(), textarea_reflow_multiline(), textarea_replace_text_internal(), textarea_scroll(), textarea_scroll_visible(), textarea_scrollbar_callback(), textarea_select(), textarea_set_caret_internal(), and textarea_set_layout().
colour textarea::border_col |
Border colour.
Definition at line 108 of file textarea.c.
Referenced by textarea_create(), and textarea_redraw().
int textarea::border_width |
Border width, in pixels.
Definition at line 107 of file textarea.c.
Referenced by textarea_clear_selection(), textarea_create(), textarea_drag_end(), textarea_get_b_off_xy(), textarea_keypress(), textarea_mouse_action(), textarea_mouse_scrollbar_action(), textarea_redraw(), textarea_reflow_multiline(), textarea_reflow_singleline(), textarea_replace_text_internal(), textarea_scroll(), textarea_scroll_visible(), textarea_scrollbar_callback(), textarea_select(), textarea_set_caret_internal(), and textarea_setup_text_offsets().
int textarea::byte_off |
Character index of caret on line.
Definition at line 126 of file textarea.c.
Referenced by textarea_create(), textarea_get_caret(), textarea_keypress(), textarea_redraw(), textarea_scroll_visible(), textarea_scrollbar_callback(), and textarea_set_caret_internal().
textarea_client_callback textarea::callback |
Callback function for messages to client.
Definition at line 145 of file textarea.c.
Referenced by textarea_clear_selection(), textarea_create(), textarea_drag_end(), textarea_drop_text(), textarea_keypress(), textarea_mouse_action(), textarea_normalise_text(), textarea_scrollbar_callback(), textarea_select(), and textarea_set_caret_internal().
struct { ... } textarea::caret_pos |
int textarea::caret_x |
cached X coordinate of the caret
Definition at line 129 of file textarea.c.
Referenced by textarea_clear_selection(), textarea_create(), textarea_keypress(), textarea_redraw(), textarea_scroll_visible(), textarea_scrollbar_callback(), and textarea_set_caret_internal().
int textarea::caret_y |
cached Y coordinate of the caret
Definition at line 130 of file textarea.c.
Referenced by textarea_clear_selection(), textarea_create(), textarea_redraw(), textarea_scroll_visible(), textarea_scrollbar_callback(), and textarea_set_caret_internal().
void* textarea::data |
Client data for callback.
Definition at line 147 of file textarea.c.
Referenced by textarea_clear_selection(), textarea_create(), textarea_drag_end(), textarea_drop_text(), textarea_keypress(), textarea_mouse_action(), textarea_normalise_text(), textarea_scrollbar_callback(), textarea_select(), and textarea_set_caret_internal().
struct textarea_drag textarea::drag_info |
Drag information.
Definition at line 150 of file textarea.c.
Referenced by textarea_create(), textarea_drag_end(), textarea_mouse_action(), textarea_mouse_scrollbar_action(), and textarea_scrollbar_callback().
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().
unsigned int textarea::flags |
Textarea flags.
Definition at line 98 of file textarea.c.
Referenced by textarea_clear_selection(), textarea_create(), textarea_destroy(), textarea_drop_text(), textarea_get_b_off_xy(), textarea_insert_text(), textarea_keypress(), textarea_mouse_action(), textarea_normalise_text(), textarea_redraw(), textarea_reflow_multiline(), textarea_reflow_singleline(), textarea_replace_text(), textarea_replace_text_internal(), textarea_scroll(), textarea_scroll_visible(), textarea_scrollbar_callback(), textarea_select(), textarea_set_caret_internal(), textarea_set_dimensions(), textarea_set_layout(), textarea_set_text(), textarea_setup_text_offsets(), textarea_undo(), and treeview_create().
plot_font_style_t textarea::fstyle |
Text style, inc.
textarea bg col
Definition at line 113 of file textarea.c.
Referenced by textarea_get_b_off_xy(), textarea_redraw(), textarea_reflow_multiline(), textarea_reflow_singleline(), textarea_set_caret_internal(), textarea_set_text_style(), and textarea_setup_text_offsets().
int textarea::h_extent |
Width of content in px.
Definition at line 135 of file textarea.c.
Referenced by textarea_create(), textarea_keypress(), textarea_reflow_multiline(), textarea_reflow_singleline(), textarea_scroll(), and textarea_scroll_visible().
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().
int textarea::line_count |
Count of lines.
Definition at line 138 of file textarea.c.
Referenced by textarea_clear_selection(), textarea_create(), textarea_get_b_off_xy(), textarea_get_caret(), textarea_keypress(), textarea_redraw(), textarea_reflow_multiline(), textarea_reflow_singleline(), textarea_select(), and textarea_set_caret_internal().
int textarea::line_height |
Line height obtained from style.
Definition at line 115 of file textarea.c.
Referenced by textarea_clear_selection(), textarea_create(), textarea_get_b_off_xy(), textarea_keypress(), textarea_redraw(), textarea_reflow_multiline(), textarea_scroll_visible(), textarea_scrollbar_callback(), textarea_select(), textarea_set_caret_internal(), and textarea_setup_text_offsets().
struct line_info* textarea::lines |
Line info array.
Definition at line 141 of file textarea.c.
Referenced by textarea_clear_selection(), textarea_create(), textarea_destroy(), textarea_get_b_off_xy(), textarea_get_caret(), textarea_keypress(), textarea_redraw(), textarea_reflow_multiline(), textarea_reflow_singleline(), textarea_select(), and textarea_set_caret_internal().
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().
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().
int textarea::pad_left |
Left padding, inside border, in pixels.
Definition at line 105 of file textarea.c.
Referenced by textarea_create(), textarea_get_b_off_xy(), textarea_redraw(), textarea_reflow_multiline(), textarea_reflow_singleline(), textarea_scroll_visible(), textarea_set_caret_internal(), and textarea_set_layout().
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().
int textarea::pad_top |
Top padding, inside border, in pixels.
Definition at line 102 of file textarea.c.
Referenced by textarea_create(), textarea_get_b_off_xy(), textarea_keypress(), textarea_reflow_multiline(), textarea_scroll_visible(), textarea_set_layout(), and textarea_setup_text_offsets().
struct textarea_utf8 textarea::password |
Text for obscured display.
Definition at line 120 of file textarea.c.
Referenced by textarea_create(), textarea_destroy(), textarea_insert_text(), textarea_reflow_singleline(), and textarea_replace_text_internal().
int textarea::scroll_x |
Definition at line 93 of file textarea.c.
Referenced by textarea_clear_selection(), textarea_create(), textarea_get_b_off_xy(), textarea_redraw(), textarea_reflow_multiline(), textarea_reflow_singleline(), textarea_scroll(), textarea_scroll_visible(), textarea_scrollbar_callback(), and textarea_set_caret_internal().
int textarea::scroll_y |
scroll offsets for the textarea
Definition at line 93 of file textarea.c.
Referenced by textarea_clear_selection(), textarea_create(), textarea_get_b_off_xy(), textarea_redraw(), textarea_reflow_multiline(), textarea_scroll_visible(), textarea_scrollbar_callback(), textarea_select(), and textarea_set_caret_internal().
int textarea::sel_end |
Character index of sel end (exclusive)
Definition at line 133 of file textarea.c.
Referenced by textarea_clear_selection(), textarea_create(), textarea_drop_text(), textarea_get_selection(), textarea_keypress(), textarea_mouse_action(), textarea_redraw(), textarea_reset_selection(), and textarea_select().
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().
int textarea::sel_start |
Character index of sel start (inclusive)
Definition at line 132 of file textarea.c.
Referenced by textarea_clear_selection(), textarea_create(), textarea_drop_text(), textarea_get_selection(), textarea_keypress(), textarea_mouse_action(), textarea_redraw(), textarea_reset_selection(), textarea_scrollbar_callback(), and textarea_select().
struct textarea_utf8* textarea::show |
Points at .text or .password.
Definition at line 122 of file textarea.c.
Referenced by textarea_create(), textarea_get_b_off_xy(), textarea_get_caret(), textarea_get_selection(), textarea_keypress(), textarea_redraw(), textarea_reflow_singleline(), textarea_replace_text_internal(), textarea_select_fragment(), textarea_select_paragraph(), textarea_set_caret(), textarea_set_caret_internal(), textarea_set_dimensions(), and textarea_set_layout().
struct textarea_utf8 textarea::text |
Textarea text content.
Definition at line 117 of file textarea.c.
Referenced by textarea_copy_to_undo_buffer(), textarea_create(), textarea_data(), textarea_destroy(), textarea_get_caret(), textarea_get_text(), textarea_insert_text(), textarea_keypress(), textarea_normalise_text(), textarea_reflow_multiline(), textarea_reflow_singleline(), textarea_replace_text_internal(), textarea_set_text(), and textarea_undo().
int textarea::text_y_offset |
Vertical dist to 1st line top.
Definition at line 110 of file textarea.c.
Referenced by textarea_clear_selection(), textarea_redraw(), textarea_reflow_multiline(), textarea_select(), textarea_set_caret_internal(), and textarea_setup_text_offsets().
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().
struct textarea_undo textarea::undo |
Undo/redo information.
Definition at line 152 of file textarea.c.
Referenced by textarea_copy_to_undo_buffer(), textarea_create(), textarea_destroy(), textarea_replace_text(), textarea_set_text(), and textarea_undo().
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().
int textarea::vis_height |
Visible height, in pixels.
Definition at line 100 of file textarea.c.
Referenced by textarea_clear_selection(), textarea_create(), textarea_drag_end(), textarea_drop_text(), textarea_get_dimensions(), textarea_keypress(), textarea_mouse_action(), textarea_mouse_scrollbar_action(), textarea_redraw(), textarea_reflow_multiline(), textarea_replace_text_internal(), textarea_scroll_visible(), textarea_scrollbar_callback(), textarea_select(), textarea_set_caret_internal(), textarea_set_dimensions(), textarea_set_layout(), and textarea_setup_text_offsets().
int textarea::vis_width |
Visible width, in pixels.
Definition at line 99 of file textarea.c.
Referenced by textarea_clear_selection(), textarea_create(), textarea_drag_end(), textarea_drop_text(), textarea_get_dimensions(), textarea_keypress(), textarea_mouse_action(), textarea_mouse_scrollbar_action(), textarea_redraw(), textarea_reflow_multiline(), textarea_reflow_singleline(), textarea_replace_text_internal(), textarea_scroll(), textarea_scroll_visible(), textarea_scrollbar_callback(), textarea_select(), textarea_set_caret_internal(), textarea_set_dimensions(), and textarea_set_layout().