NetSurf
Data Fields
textarea_msg Struct Reference

textarea message More...

#include <textarea.h>

Collaboration diagram for textarea_msg:
[legend]

Data Fields

struct textareata
 The textarea widget. More...
 
textarea_msg_type type
 Indicates message data type. More...
 
union {
   textarea_drag_type   drag
 With _DRAG_REPORT. More...
 
   struct {
      bool   have_selection
 Selection exists. More...
 
      bool   read_only
 Selection can't be cut. More...
 
   }   selection
 With _SELECTION_REPORT. More...
 
   struct rect   redraw
 With _REDRAW_REQUEST. More...
 
   struct {
enum  { TEXTAREA_CARET_SET_POS , TEXTAREA_CARET_HIDE }
 
      enum textarea_msg:: { ... }    type
 
      struct {
         int   x
 Caret x-coord. More...
 
         int   y
 Caret y-coord. More...
 
         int   height
 Caret height. More...
 
         struct rect *   clip
 Caret clip rect. More...
 
      }   pos
 With _CARET_SET_POS. More...
 
   }   caret
 With _CARET_UPDATE. More...
 
   struct {
      const char *   text
 UTF8 text. More...
 
      unsigned int   len
 Byte length of text. More...
 
   }   modified
 With _TEXT_MODIFIED. More...
 
data
 Depends on msg type. More...
 

Detailed Description

textarea message

Definition at line 74 of file textarea.h.

Field Documentation

◆ 

struct { ... } textarea_msg::caret

◆ clip

struct rect* textarea_msg::clip

◆ 

union { ... } textarea_msg::data

◆ drag

textarea_drag_type textarea_msg::drag

◆ have_selection

bool textarea_msg::have_selection

Selection exists.

Definition at line 81 of file textarea.h.

Referenced by box_textarea_callback(), textarea_clear_selection(), and textarea_select().

◆ height

int textarea_msg::height

◆ len

unsigned int textarea_msg::len

Byte length of text.

Definition at line 99 of file textarea.h.

Referenced by box_textarea_callback(), textarea_normalise_text(), and treeview_textarea_search_callback().

◆ 

struct { ... } textarea_msg::modified

◆ 

struct { ... } textarea_msg::pos

◆ read_only

bool textarea_msg::read_only

Selection can't be cut.

Definition at line 82 of file textarea.h.

Referenced by box_textarea_callback(), textarea_clear_selection(), and textarea_select().

◆ redraw

struct rect textarea_msg::redraw

◆ 

struct { ... } textarea_msg::selection

With _SELECTION_REPORT.

Referenced by box_textarea_callback(), textarea_clear_selection(), and textarea_select().

◆ ta

struct textarea* textarea_msg::ta

◆ text

const char* textarea_msg::text

UTF8 text.

Definition at line 98 of file textarea.h.

Referenced by box_textarea_callback(), textarea_normalise_text(), and treeview_textarea_search_callback().

◆ type [1/2]

textarea_msg_type textarea_msg::type

◆  [2/2]

enum { ... } textarea_msg::type

◆ x

int textarea_msg::x

◆ y

int textarea_msg::y

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