textGet
Return text as a slice to the backing storage. The returned slice is
valid after deinit, and is only invalidated by events or functions that
change the text (like textSet or paste).
Parameters
- self:*const TextEntryWidget
- *const TextEntryWidget
Source
Implementation
pub fn textGet(self: *const TextEntryWidget) []u8 {
return self.text[0..self.len];
}