pub struct ComboGeometry {
pub entry: Rect,
pub trigger: Rect,
}Fields§
§entry: Rect§trigger: RectImplementations§
Source§impl ComboGeometry
impl ComboGeometry
pub fn new(bounds: Rect) -> Self
Sourcepub fn for_layout(layout: &LayoutNode) -> Self
pub fn for_layout(layout: &LayoutNode) -> Self
Default arrow geometry. For a control with replacement artwork, use for_control.
pub fn with_layout_direction(bounds: Rect, direction: LayoutDirection) -> Self
Sourcepub fn for_control(
node: &Node,
bounds: Rect,
direction: LayoutDirection,
) -> Self
pub fn for_control( node: &Node, bounds: Rect, direction: LayoutDirection, ) -> Self
Measure the replacement artwork against the same bounds used by painting and input.
Auto Trait Implementations§
impl Forget for ComboGeometry
impl Freeze for ComboGeometry
impl Move for ComboGeometry
impl RefUnwindSafe for ComboGeometry
impl Send for ComboGeometry
impl Sync for ComboGeometry
impl Unpin for ComboGeometry
impl UnsafeUnpin for ComboGeometry
impl UnwindSafe for ComboGeometry
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