Struct egui::Align2 [−]
Expand description
Two-dimension alignment, e.g. Align2::LEFT_TOP.
Implementations
impl Align2
impl Align2pub const LEFT_BOTTOM: Align2pub const LEFT_CENTER: Align2pub const CENTER_BOTTOM: Align2pub const CENTER_CENTER: Align2pub const CENTER_TOP: Align2pub const RIGHT_BOTTOM: Align2pub const RIGHT_CENTER: Align2impl Align2
impl Align2pub fn anchor_rect(self, rect: Rect) -> Rect
pub fn anchor_rect(self, rect: Rect) -> RectUsed e.g. to anchor a piece of text to a part of the rectangle. Give a position within the rect, specified by the aligns
pub fn align_size_within_rect(self, size: Vec2, frame: Rect) -> Rect
pub fn align_size_within_rect(self, size: Vec2, frame: Rect) -> Recte.g. center a size within a given frame
pub fn pos_in_rect(self, frame: &Rect) -> Pos2Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Align2impl UnwindSafe for Align2Blanket Implementations
Mutably borrows from an owned value. Read more