mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 05:10:03 -04:00
Use strongly typed CharIndex and ByteIndex + bug fixes (#8245)
Less risk of confusing the two. Found and fix a couple real bugs in the process! --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
pub mod cursor;
|
||||
mod font;
|
||||
mod fonts;
|
||||
mod index;
|
||||
mod text_layout;
|
||||
mod text_layout_types;
|
||||
|
||||
@@ -11,6 +12,7 @@ pub use {
|
||||
FontData, FontDefinitions, FontFamily, FontId, FontInsert, FontPriority, FontTweak, Fonts,
|
||||
FontsImpl, FontsView, InsertFontFamily,
|
||||
},
|
||||
index::{ByteIndex, ByteRange, ByteRangeExt, CharIndex, CharRange, CharRangeExt},
|
||||
text_layout::*,
|
||||
text_layout_types::*,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user