pub struct NodeStyle {
pub padding: EdgeInsets,
pub background: Option<Color>,
pub click_actions: Vec<Rc<dyn Fn(Point)>>,
pub shape: Option<RoundedCornerShape>,
pub pointer_inputs: Vec<Rc<dyn Fn(PointerEvent)>>,
pub draw_commands: Vec<DrawCommand>,
pub graphics_layer: Option<GraphicsLayer>,
pub clip_to_bounds: bool,
}Fields§
§padding: EdgeInsets§background: Option<Color>§click_actions: Vec<Rc<dyn Fn(Point)>>§shape: Option<RoundedCornerShape>§pointer_inputs: Vec<Rc<dyn Fn(PointerEvent)>>§draw_commands: Vec<DrawCommand>§graphics_layer: Option<GraphicsLayer>§clip_to_bounds: boolImplementations§
Source§impl NodeStyle
impl NodeStyle
pub fn from_layout_node(data: &LayoutNodeData) -> Self
Auto Trait Implementations§
impl Freeze for NodeStyle
impl !RefUnwindSafe for NodeStyle
impl !Send for NodeStyle
impl !Sync for NodeStyle
impl Unpin for NodeStyle
impl UnsafeUnpin for NodeStyle
impl !UnwindSafe for NodeStyle
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