MiniGUI API Reference (MiniGUI-Threads)  v5.0.6
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Macros | Typedefs

MiniGUI uses a 16-bits word to represent the character, word, and line breaking opportunities of a character in a context. More...

Macros

#define BOV_UNKNOWN   0x0000
 
#define BOV_WHITESPACE   0x8000
 
#define BOV_EXPANDABLE_SPACE   0x0800
 
#define BOV_ZERO_WIDTH   0x0080
 
#define BOV_GB_CHAR_BREAK   0x1000
 
#define BOV_GB_CURSOR_POS   0x2000
 
#define BOV_GB_BACKSPACE_DEL_CH   0x4000
 
#define BOV_WB_WORD_BOUNDARY   0x0100
 
#define BOV_WB_WORD_START   0x0200
 
#define BOV_WB_WORD_END   0x0400
 
#define BOV_SB_SENTENCE_BOUNDARY   0x0010
 
#define BOV_SB_SENTENCE_START   0x0020
 
#define BOV_SB_SENTENCE_END   0x0040
 
#define BOV_LB_ALLOWED   (BOV_LB_BREAK_FLAG | 0x0001)
 
#define BOV_LB_MANDATORY   (BOV_LB_BREAK_FLAG | BOV_LB_MANDATORY_FLAG | 0x0002)
 
#define BOV_LB_NOTALLOWED   0x0003
 

Typedefs

typedef Uint16 BreakOppo
 

Detailed Description

MiniGUI uses a 16-bits word to represent the character, word, and line breaking opportunities of a character in a context.

Please see UAX#29 and UAX#14 for more information:

https://www.unicode.org/reports/tr29/tr29-33.html https://www.unicode.org/reports/tr14/tr14-41.html

Macro Definition Documentation

◆ BOV_EXPANDABLE_SPACE

#define BOV_EXPANDABLE_SPACE   0x0800

If set, the character is an expandable space.

Definition at line 9989 of file gdi.h.

◆ BOV_GB_BACKSPACE_DEL_CH

#define BOV_GB_BACKSPACE_DEL_CH   0x4000

If set, backspace deletes one character rather than the entire grapheme cluster.

Definition at line 10010 of file gdi.h.

◆ BOV_GB_CHAR_BREAK

#define BOV_GB_CHAR_BREAK   0x1000

If set, can break at the character when doing character wrap.

Definition at line 10000 of file gdi.h.

◆ BOV_GB_CURSOR_POS

#define BOV_GB_CURSOR_POS   0x2000

If set, cursor can appear in front of the character (i.e. this is a grapheme boundary, or the first character in the text).

Definition at line 10005 of file gdi.h.

◆ BOV_LB_ALLOWED

#define BOV_LB_ALLOWED   (BOV_LB_BREAK_FLAG | 0x0001)

The line can break after the character.

Definition at line 10046 of file gdi.h.

◆ BOV_LB_MANDATORY

#define BOV_LB_MANDATORY   (BOV_LB_BREAK_FLAG | BOV_LB_MANDATORY_FLAG | 0x0002)

The line must break after the character.

Definition at line 10050 of file gdi.h.

◆ BOV_LB_NOTALLOWED

#define BOV_LB_NOTALLOWED   0x0003

The line break is not allowed after the character.

Definition at line 10054 of file gdi.h.

◆ BOV_SB_SENTENCE_BOUNDARY

#define BOV_SB_SENTENCE_BOUNDARY   0x0010

If set, the glyph is the sentence boundary as defined by UAX#29.

Definition at line 10030 of file gdi.h.

◆ BOV_SB_SENTENCE_END

#define BOV_SB_SENTENCE_END   0x0040

If set, the glyph is the first non-sentence character after a sentence.

Definition at line 10038 of file gdi.h.

◆ BOV_SB_SENTENCE_START

#define BOV_SB_SENTENCE_START   0x0020

If set, the glyph is the first character in a sentence.

Definition at line 10034 of file gdi.h.

◆ BOV_UNKNOWN

#define BOV_UNKNOWN   0x0000

Unknown breaking code.

Definition at line 9981 of file gdi.h.

◆ BOV_WB_WORD_BOUNDARY

#define BOV_WB_WORD_BOUNDARY   0x0100

If set, the glyph is the word boundary as defined by UAX#29.

Definition at line 10016 of file gdi.h.

◆ BOV_WB_WORD_END

#define BOV_WB_WORD_END   0x0400

If set, the glyph is the first non-word character after a word.

Definition at line 10024 of file gdi.h.

◆ BOV_WB_WORD_START

#define BOV_WB_WORD_START   0x0200

If set, the glyph is the first character in a word.

Definition at line 10020 of file gdi.h.

◆ BOV_WHITESPACE

#define BOV_WHITESPACE   0x8000

If set, the character is a whitespace character.

Definition at line 9985 of file gdi.h.

◆ BOV_ZERO_WIDTH

#define BOV_ZERO_WIDTH   0x0080

If set, the character has zero width.

Definition at line 9994 of file gdi.h.

Typedef Documentation

◆ BreakOppo

typedef Uint16 BreakOppo

The type for breaking opportunity (Uint16).

Definition at line 10059 of file gdi.h.