mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
More type corrections/improvements
This commit is contained in:
+13
-9
@@ -1607,7 +1607,9 @@ glyph :: struct {
|
|||||||
|
|
||||||
// Unicode properties filled in by CodepointToGlyph.
|
// Unicode properties filled in by CodepointToGlyph.
|
||||||
JoiningType: unicode_joining_type,
|
JoiningType: unicode_joining_type,
|
||||||
Script: u8,
|
using _: bit_field u8 {
|
||||||
|
Script: script | 8,
|
||||||
|
},
|
||||||
UnicodeFlags: unicode_flags,
|
UnicodeFlags: unicode_flags,
|
||||||
SyllabicClass: u8,
|
SyllabicClass: u8,
|
||||||
SyllabicPosition: u8,
|
SyllabicPosition: u8,
|
||||||
@@ -1783,8 +1785,8 @@ break_type :: struct {
|
|||||||
|
|
||||||
bracket :: struct {
|
bracket :: struct {
|
||||||
Codepoint: rune,
|
Codepoint: rune,
|
||||||
Direction: u8,
|
using _: bit_field u8 { Direction: direction | 8 },
|
||||||
Script: u8,
|
using _: bit_field u8 { Script: script | 8 },
|
||||||
}
|
}
|
||||||
|
|
||||||
break_state_flags :: distinct bit_set[break_state_flag; u32]
|
break_state_flags :: distinct bit_set[break_state_flag; u32]
|
||||||
@@ -1868,13 +1870,15 @@ break_state :: struct {
|
|||||||
LineBreak2PositionOffset: i16,
|
LineBreak2PositionOffset: i16,
|
||||||
LineBreak3PositionOffset: i16,
|
LineBreak3PositionOffset: i16,
|
||||||
|
|
||||||
LastDirection: u8,
|
using LastDirectionBitField: bit_field u8 {
|
||||||
BidirectionalClass2: u8,
|
LastDirection: direction | 8,
|
||||||
BidirectionalClass1: u8,
|
},
|
||||||
|
BidirectionalClass2: unicode_bidirectional_class,
|
||||||
|
BidirectionalClass1: unicode_bidirectional_class,
|
||||||
|
|
||||||
JapaneseLineBreakStyle: japanese_line_break_style,
|
JapaneseLineBreakStyle: japanese_line_break_style,
|
||||||
GraphemeBreakState: u8,
|
GraphemeBreakState: u8,
|
||||||
LastLineBreakClass: u8,
|
LastLineBreakClass: line_break_class,
|
||||||
LastWordBreakClass: u8,
|
LastWordBreakClass: word_break_class,
|
||||||
LastWordBreakClassIncludingIgnored: u8,
|
LastWordBreakClassIncludingIgnored: word_break_class,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user