mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
make the default style for the text box something API-level accessible
this allows other functions to lay out based on the default style without having to guess it.
This commit is contained in:
parent
4e93e903a3
commit
006530a1f5
1 changed files with 2 additions and 1 deletions
|
|
@ -79,6 +79,7 @@ impl From<usize> for TextOp {
|
|||
|
||||
// roughly 168 bytes to represent the rest of the struct, and we want to fill out the 4096 byte page with text
|
||||
const TEXTVIEW_LEN: usize = 3072;
|
||||
const TEXTVIEW_DEFAULT_STYLE: GlyphStyle = GlyphStyle::Regular;
|
||||
|
||||
#[derive(Copy, Clone, rkyv::Archive, rkyv::Serialize, rkyv::Deserialize)]
|
||||
pub struct TextView {
|
||||
|
|
@ -129,7 +130,7 @@ impl TextView {
|
|||
clip_rect: None,
|
||||
bounds_hint,
|
||||
bounds_computed: None,
|
||||
style: GlyphStyle::Regular,
|
||||
style: TEXTVIEW_DEFAULT_STYLE,
|
||||
text: String::<3072>::new(),
|
||||
cursor: Cursor::new(0, 0, 0),
|
||||
insertion: None,
|
||||
|
|
|
|||
Loading…
Reference in a new issue