pub struct Style {Show 13 fields
pub x: Value<f32>,
pub y: Value<f32>,
pub width: Value<f32>,
pub height: Value<f32>,
pub font_size: Rc<RefCell<f32>>,
pub theme: Theme,
pub border: Option<BorderParams>,
pub clip: bool,
pub offset_x: Option<Value<f32>>,
pub offset_y: Option<Value<f32>>,
pub padding_x: Option<Value<f32>>,
pub padding_y: Option<Value<f32>>,
pub wrap: bool,
}Fields§
§x: Value<f32>§y: Value<f32>§width: Value<f32>§height: Value<f32>§font_size: Rc<RefCell<f32>>§theme: Theme§border: Option<BorderParams>§clip: bool§offset_x: Option<Value<f32>>§offset_y: Option<Value<f32>>§padding_x: Option<Value<f32>>§padding_y: Option<Value<f32>>§wrap: boolImplementations§
Source§impl Style
impl Style
pub fn draw_border(&self)
pub fn draw_bg(&self)
pub fn draw_mask(&self)
pub fn x(&self) -> f32
pub fn y(&self) -> f32
pub fn width(&self) -> f32
pub fn height(&self) -> f32
pub fn padding_x(&self) -> f32
pub fn padding_y(&self) -> f32
pub fn offset_x(&self) -> f32
pub fn offset_y(&self) -> f32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Style
impl !RefUnwindSafe for Style
impl !Send for Style
impl !Sync for Style
impl Unpin for Style
impl !UnwindSafe for Style
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