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

The white space rule indicates GetUCharsUntilParagraphBoundary. More...

Macros

#define WSR_NORMAL   0x00
 This value directs GetUCharsUntilParagraphBoundary collapses sequences of white space into a single character. Lines may wrap at allowed soft wrap opportunities. More...
 
#define WSR_PRE   0x01
 This value prevents GetUCharsUntilParagraphBoundary from collapsing sequences of white space. Segment breaks such as line feeds are preserved as forced line breaks. Lines only break at forced line breaks; content that does not fit within the specified extent overflows it. More...
 
#define WSR_NOWRAP   0x02
 Like WSR_NORMAL, this value collapses white spaces; but like WSR_PRE, it does not allow wrapping. More...
 
#define WSR_PRE_WRAP   0x03
 Like WSR_PRE, this value preserves white space; but like WSR_NORMAL, it allows wrapping. More...
 
#define WSR_BREAK_SPACES   0x04
 The behavior is identical to that of WSR_PRE_WRAP, except that: More...
 
#define WSR_PRE_LINE   0x05
 Like WS_NORMAL, this value collapses consecutive spaces and allows wrapping, but preserves segment breaks in the source as forced line breaks. More...
 

Detailed Description

The white space rule indicates GetUCharsUntilParagraphBoundary.

- whether and how white space inside the string is collapsed.
- whether lines may wrap at unforced soft wrap opportunities.

Macro Definition Documentation

◆ WSR_BREAK_SPACES

#define WSR_BREAK_SPACES   0x04

The behavior is identical to that of WSR_PRE_WRAP, except that:

  • Any sequence of preserved white space always takes up space, including at the end of the line.
  • A line breaking opportunity exists after every preserved white space glyph, including between white space characters.

When white space rule is specified to be WSR_BREAK_SPACES, the manner of GetUCharsUntilParagraphBoundary will conform to CSS Text Module Level 3.

Definition at line 13103 of file gdi.h.

◆ WSR_NORMAL

#define WSR_NORMAL   0x00

This value directs GetUCharsUntilParagraphBoundary collapses sequences of white space into a single character. Lines may wrap at allowed soft wrap opportunities.

Definition at line 13061 of file gdi.h.

◆ WSR_NOWRAP

#define WSR_NOWRAP   0x02

Like WSR_NORMAL, this value collapses white spaces; but like WSR_PRE, it does not allow wrapping.

Definition at line 13079 of file gdi.h.

◆ WSR_PRE

#define WSR_PRE   0x01

This value prevents GetUCharsUntilParagraphBoundary from collapsing sequences of white space. Segment breaks such as line feeds are preserved as forced line breaks. Lines only break at forced line breaks; content that does not fit within the specified extent overflows it.

Definition at line 13071 of file gdi.h.

◆ WSR_PRE_LINE

#define WSR_PRE_LINE   0x05

Like WS_NORMAL, this value collapses consecutive spaces and allows wrapping, but preserves segment breaks in the source as forced line breaks.

Definition at line 13112 of file gdi.h.

◆ WSR_PRE_WRAP

#define WSR_PRE_WRAP   0x03

Like WSR_PRE, this value preserves white space; but like WSR_NORMAL, it allows wrapping.

Definition at line 13087 of file gdi.h.