pub struct TextBoxConfig {
pub color: String,
pub background: String,
}Expand description
Default style for newly created text boxes.
Fields§
§color: StringText color as a hex string (RGB or RGBA).
background: StringBackground fill as a hex string (RGB or RGBA), or "transparent".
Trait Implementations§
Source§impl Clone for TextBoxConfig
impl Clone for TextBoxConfig
Source§fn clone(&self) -> TextBoxConfig
fn clone(&self) -> TextBoxConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextBoxConfig
impl Debug for TextBoxConfig
Source§impl Default for TextBoxConfig
impl Default for TextBoxConfig
Source§impl<'de> Deserialize<'de> for TextBoxConfigwhere
TextBoxConfig: Default,
impl<'de> Deserialize<'de> for TextBoxConfigwhere
TextBoxConfig: Default,
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
Auto Trait Implementations§
impl Freeze for TextBoxConfig
impl RefUnwindSafe for TextBoxConfig
impl Send for TextBoxConfig
impl Sync for TextBoxConfig
impl Unpin for TextBoxConfig
impl UnsafeUnpin for TextBoxConfig
impl UnwindSafe for TextBoxConfig
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