pub struct EditField {Show 13 fields
pub id: EditId,
pub rect: Rect,
pub angle: Angle,
pub font: Font,
pub align: Align2,
pub wrap_width: Option<WorldPx>,
pub text: String,
pub multiline: bool,
pub char_limit: Option<usize>,
pub tab_cycle: bool,
pub select_all_on_focus: bool,
pub hint: Option<Cow<'static, str>>,
pub colors: EditColors,
}Expand description
The editor as the front end shows it: where its field sits on screen,
what the field opens on, and how it is drawn. font and wrap_width are
in world units, scaled by the vantage the view was painted under, like
the request they came from.
Fields§
§id: EditId§rect: Rect§angle: AngleThe field’s rotation about the centre of rect. A front end that
cannot rotate a field edits upright, an accepted disparity.
font: Font§align: Align2§wrap_width: Option<WorldPx>§text: StringThe text as it stands: what the field opens on.
multiline: bool§char_limit: Option<usize>§tab_cycle: bool§select_all_on_focus: bool§hint: Option<Cow<'static, str>>§colors: EditColorsImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EditField
impl<'de> Deserialize<'de> for EditField
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for EditField
Auto Trait Implementations§
impl Freeze for EditField
impl RefUnwindSafe for EditField
impl Send for EditField
impl Sync for EditField
impl Unpin for EditField
impl UnsafeUnpin for EditField
impl UnwindSafe for EditField
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more