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

Data Fields

unsigned int magic
 Magic word, for sanity. More...
 
unsigned int flags
 Textarea flags. More...
 
unsigned int vis_width
 Visible width, in pixels. More...
 
unsigned int vis_height
 Visible height, in pixels. More...
 
wimp_w window
 Window handle. More...
 
char * text
 UTF-8 text. More...
 
unsigned int text_alloc
 Size of allocated text. More...
 
unsigned int text_len
 Length of text, in bytes. More...
 
struct {
   unsigned int   line
 Line caret is on. More...
 
   unsigned int   char_off
 Character index of caret. More...
 
caret_pos
 
wimp_w parent
 Parent window handle. More...
 
wimp_i icon
 Parent icon handle. More...
 
char * font_family
 Font family of text. More...
 
unsigned int font_size
 Font size (16ths/pt) More...
 
rufl_style font_style
 Font style (rufl) More...
 
int line_height
 Total height of a line, given font size. More...
 
int line_spacing
 Height of line spacing, given font size. More...
 
unsigned int line_count
 Count of lines. More...
 
struct line_infolines
 Line info array. More...
 
struct text_areanext
 Next text area in list. More...
 
struct text_areaprev
 Prev text area in list. More...
 

Detailed Description

Definition at line 54 of file textarea.c.

Field Documentation

◆ 

struct { ... } text_area::caret_pos

◆ char_off

unsigned int text_area::char_off

Character index of caret.

Definition at line 68 of file textarea.c.

Referenced by ro_textarea_create(), ro_textarea_get_caret(), and ro_textarea_set_caret().

◆ flags

unsigned int text_area::flags

◆ font_family

char* text_area::font_family

◆ font_size

unsigned int text_area::font_size

◆ font_style

rufl_style text_area::font_style

◆ icon

wimp_i text_area::icon

Parent icon handle.

Definition at line 74 of file textarea.c.

Referenced by ro_textarea_create(), and ro_textarea_update().

◆ line

unsigned int text_area::line

Line caret is on.

Definition at line 67 of file textarea.c.

Referenced by ro_textarea_create(), ro_textarea_get_caret(), and ro_textarea_set_caret().

◆ line_count

unsigned int text_area::line_count

◆ line_height

int text_area::line_height

Total height of a line, given font size.

Definition at line 79 of file textarea.c.

Referenced by ro_textarea_create(), ro_textarea_redraw_internal(), ro_textarea_reflow(), ro_textarea_set_caret(), and ro_textarea_set_caret_xy().

◆ line_spacing

int text_area::line_spacing

Height of line spacing, given font size.

Definition at line 80 of file textarea.c.

Referenced by ro_textarea_create(), ro_textarea_redraw_internal(), ro_textarea_reflow(), ro_textarea_set_caret(), and ro_textarea_set_caret_xy().

◆ lines

struct line_info* text_area::lines

◆ magic

unsigned int text_area::magic

◆ next

struct text_area* text_area::next

Next text area in list.

Definition at line 86 of file textarea.c.

◆ parent

wimp_w text_area::parent

Parent window handle.

Definition at line 73 of file textarea.c.

Referenced by ro_textarea_create(), and ro_textarea_update().

◆ prev

struct text_area* text_area::prev

Prev text area in list.

Definition at line 87 of file textarea.c.

◆ text

char* text_area::text

◆ text_alloc

unsigned int text_area::text_alloc

Size of allocated text.

Definition at line 64 of file textarea.c.

Referenced by ro_textarea_create(), ro_textarea_insert_text(), ro_textarea_replace_text(), and ro_textarea_set_text().

◆ text_len

unsigned int text_area::text_len

◆ vis_height

unsigned int text_area::vis_height

Visible height, in pixels.

Definition at line 60 of file textarea.c.

Referenced by ro_textarea_reflow(), and ro_textarea_update().

◆ vis_width

unsigned int text_area::vis_width

Visible width, in pixels.

Definition at line 59 of file textarea.c.

Referenced by ro_textarea_reflow(), and ro_textarea_update().

◆ window

wimp_w text_area::window

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