# textwidget.h File Reference

`#include <gwenhywfar/ui/widget.h>`
`#include <gwenhywfar/xml.h>`
`#include <gwenhywfar/buffer.h>`

Go to the source code of this file.

## Defines

#define | GWEN_TEXTWIDGET_FLAGS_BREAKLINES 0x00010000
#define | GWEN_TEXTWIDGET_FLAGS_CONST 0x00200000
#define | GWEN_TEXTWIDGET_FLAGS_DATACHANGE 0x00080000
#define | GWEN_TEXTWIDGET_FLAGS_FIXED 0x00100000
#define | GWEN_TEXTWIDGET_FLAGS_HIGHLIGHT 0x00040000
#define | GWEN_TEXTWIDGET_FLAGS_LINEMODE 0x00020000

## Typedefs

typedef GWEN_TW_LINE | GWEN_TW_LINE

## Functions

void | GWEN_TextWidget_Clear (GWEN_WIDGET *w)
int | GWEN_TextWidget_EnsureVisible (GWEN_WIDGET *w, int x, int y, int width, int height)
int | GWEN_TextWidget_GetLeft (const GWEN_WIDGET *w)
int | GWEN_TextWidget_GetMaxListWidth (GWEN_TW_LINE_LIST *ll)
int | GWEN_TextWidget_GetMaxWidth (const GWEN_WIDGET *w)
GWEN_BUFFER * | GWEN_TextWidget_GetText (const GWEN_WIDGET *w, int asAscii)
int | GWEN_TextWidget_GetTop (const GWEN_WIDGET *w)
int | GWEN_TextWidget_GetVirtualHeight (const GWEN_WIDGET *w)
int | GWEN_TextWidget_GetVirtualWidth (const GWEN_WIDGET *w)
int | GWEN_TextWidget_LineClear (GWEN_WIDGET *w, GWEN_TW_LINE *l)
int | GWEN_TextWidget_LineClose (GWEN_WIDGET *w, GWEN_TW_LINE *l, int force)
int | GWEN_TextWidget_LineDelete (GWEN_WIDGET *w, GWEN_TW_LINE *l, int n)
GWEN_TW_LINE * | GWEN_TextWidget_LineOpen (GWEN_WIDGET *w, int n, int cre)
int | GWEN_TextWidget_LineRedraw (GWEN_WIDGET *w, GWEN_TW_LINE *l)
int | GWEN_TextWidget_LineSetAttributes (GWEN_WIDGET *w, GWEN_TW_LINE *l, GWEN_TYPE_UINT32 atts)
int | GWEN_TextWidget_LineSetBorders (GWEN_WIDGET *w, GWEN_TW_LINE *l, int leftBorder, int rightBorder)
int | GWEN_TextWidget_LineSetInsert (GWEN_WIDGET *w, GWEN_TW_LINE *l, int insert)
int | GWEN_TextWidget_LineSetPos (GWEN_WIDGET *w, GWEN_TW_LINE *l, int pos)
int | GWEN_TextWidget_LineWriteText (GWEN_WIDGET *w, GWEN_TW_LINE *l, const char *text, int len)
GWEN_WIDGET * | GWEN_TextWidget_new (GWEN_WIDGET *parent, GWEN_TYPE_UINT32 flags, const char *name, const char *text, int x, int y, int width, int height)
int | GWEN_TextWidget_SetPos (GWEN_WIDGET *w, int n)
int | GWEN_TextWidget_SetPreparedText (GWEN_WIDGET *w, GWEN_TW_LINE_LIST *ll, GWEN_EVENT_SETTEXT_MODE m)
void | GWEN_TextWidget_SetVirtualSize (GWEN_WIDGET *w, int vwidth, int vheight)
GWEN_TW_LINE_LIST * | GWEN_TextWidget_TextToLines (const char *s, int leftBorder, int rightBorder)
GWEN_TW_LINE_LIST * | GWEN_TextWidget_XMLToLines (GWEN_XMLNODE *n, int leftBorder, int rightBorder)

## Define Documentation

#define GWEN_TEXTWIDGET_FLAGS_BREAKLINES 0x00010000

#define GWEN_TEXTWIDGET_FLAGS_CONST 0x00200000

#define GWEN_TEXTWIDGET_FLAGS_DATACHANGE 0x00080000

#define GWEN_TEXTWIDGET_FLAGS_FIXED 0x00100000

#define GWEN_TEXTWIDGET_FLAGS_HIGHLIGHT 0x00040000

#define GWEN_TEXTWIDGET_FLAGS_LINEMODE 0x00020000

## Typedef Documentation

typedef struct GWEN_TW_LINE GWEN_TW_LINE

## Function Documentation

void GWEN_TextWidget_Clear | ( | GWEN_WIDGET * | w | ) |

int GWEN_TextWidget_EnsureVisible | ( | GWEN_WIDGET * | w,
|  | int | x,
|  | int | y,
|  | int | width,
|  | int | height
| ) |

int GWEN_TextWidget_GetLeft | ( | const GWEN_WIDGET * | w | ) |

int GWEN_TextWidget_GetMaxListWidth | ( | GWEN_TW_LINE_LIST * | ll | ) |

int GWEN_TextWidget_GetMaxWidth | ( | const GWEN_WIDGET * | w | ) |

GWEN_BUFFER* GWEN_TextWidget_GetText | ( | const GWEN_WIDGET * | w,
|  | int | asAscii
| ) |

int GWEN_TextWidget_GetTop | ( | const GWEN_WIDGET * | w | ) |

int GWEN_TextWidget_GetVirtualHeight | ( | const GWEN_WIDGET * | w | ) |

int GWEN_TextWidget_GetVirtualWidth | ( | const GWEN_WIDGET * | w | ) |

int GWEN_TextWidget_LineClear | ( | GWEN_WIDGET * | w,
|  | GWEN_TW_LINE * | l
| ) |

int GWEN_TextWidget_LineClose | ( | GWEN_WIDGET * | w,
|  | GWEN_TW_LINE * | l,
|  | int | force
| ) |

int GWEN_TextWidget_LineDelete | ( | GWEN_WIDGET * | w,
|  | GWEN_TW_LINE * | l,
|  | int | n
| ) |

GWEN_TW_LINE* GWEN_TextWidget_LineOpen | ( | GWEN_WIDGET * | w,
|  | int | n,
|  | int | cre
| ) |

int GWEN_TextWidget_LineRedraw | ( | GWEN_WIDGET * | w,
|  | GWEN_TW_LINE * | l
| ) |

int GWEN_TextWidget_LineSetAttributes | ( | GWEN_WIDGET * | w,
|  | GWEN_TW_LINE * | l,
|  | GWEN_TYPE_UINT32 | atts
| ) |

int GWEN_TextWidget_LineSetBorders | ( | GWEN_WIDGET * | w,
|  | GWEN_TW_LINE * | l,
|  | int | leftBorder,
|  | int | rightBorder
| ) |

int GWEN_TextWidget_LineSetInsert | ( | GWEN_WIDGET * | w,
|  | GWEN_TW_LINE * | l,
|  | int | insert
| ) |

int GWEN_TextWidget_LineSetPos | ( | GWEN_WIDGET * | w,
|  | GWEN_TW_LINE * | l,
|  | int | pos
| ) |

int GWEN_TextWidget_LineWriteText | ( | GWEN_WIDGET * | w,
|  | GWEN_TW_LINE * | l,
|  | const char * | text,
|  | int | len
| ) |

GWEN_WIDGET* GWEN_TextWidget_new | ( | GWEN_WIDGET * | parent,
|  | GWEN_TYPE_UINT32 | flags,
|  | const char * | name,
|  | const char * | text,
|  | int | x,
|  | int | y,
|  | int | width,
|  | int | height
| ) |

int GWEN_TextWidget_SetPos | ( | GWEN_WIDGET * | w,
|  | int | n
| ) |

int GWEN_TextWidget_SetPreparedText | ( | GWEN_WIDGET * | w,
|  | GWEN_TW_LINE_LIST * | ll,
|  | GWEN_EVENT_SETTEXT_MODE | m
| ) |

void GWEN_TextWidget_SetVirtualSize | ( | GWEN_WIDGET * | w,
|  | int | vwidth,
|  | int | vheight
| ) |

GWEN_TW_LINE_LIST* GWEN_TextWidget_TextToLines | ( | const char * | s,
|  | int | leftBorder,
|  | int | rightBorder
| ) |

GWEN_TW_LINE_LIST* GWEN_TextWidget_XMLToLines | ( | GWEN_XMLNODE * | n,
|  | int | leftBorder,
|  | int | rightBorder
| ) |