/StarryEngine/starry_toolkit/src/util/ |
H A D | mod.rs | 5 widgets::{PivotType, Widget}, 21 pivot: PivotType, in align_rect() argument 25 PivotType::None => Vector2::new(0, 0), in align_rect() 26 PivotType::Bottom => relative_rect.bottom_pos(), in align_rect() 27 PivotType::BottomLeft => relative_rect.bottom_left_pos(), in align_rect() 28 PivotType::BottomRight => relative_rect.bottom_right_pos(), in align_rect() 29 PivotType::Center => relative_rect.center_pos(), in align_rect() 30 PivotType::Top => relative_rect.top_pos(), in align_rect() 31 PivotType::TopLeft => relative_rect.top_left_pos(), in align_rect() 32 PivotType::TopRight => relative_rect.top_right_pos(), in align_rect() [all …]
|
/StarryEngine/starry_applications/src/asset_manager/code/ |
H A D | asset_item_list.rs | 15 PivotType, Widget, 22 pivot: Cell<PivotType>, 40 pivot: Cell::new(PivotType::TopLeft), in new() 57 bg.set_pivot_type(PivotType::Center); in new() 65 name.set_pivot_type(PivotType::Left); in new() 67 name.set_text_pivot_type(PivotType::Left); in new() 75 file_type.set_pivot_type(PivotType::Center); in new() 99 fn pivot(&self) -> &Cell<PivotType> { in pivot() argument
|
H A D | asset_item_grid.rs | 15 PivotType, Widget, 27 pivot: Cell<PivotType>, 46 pivot: Cell::new(PivotType::TopLeft), in new() 61 bg.set_pivot_type(PivotType::Center); in new() 70 icon.set_pivot_type(PivotType::Top); in new() 79 name.set_pivot_type(PivotType::Bottom); in new() 104 fn pivot(&self) -> &Cell<PivotType> { in pivot() argument
|
/StarryEngine/starry_toolkit/src/widgets/ |
H A D | label.rs | 16 use super::{PivotType, Widget}; 33 pivot: Cell<PivotType>, 47 text_pivot: Cell<PivotType>, 54 pivot: Cell::new(PivotType::TopLeft), in new() 64 text_pivot: Cell::new(PivotType::Center), in new() 120 pub fn set_text_pivot_type(&self, pivot: PivotType) { in set_text_pivot_type() argument 142 fn pivot(&self) -> &Cell<PivotType> { in pivot() argument 198 fn set_pivot_type(&self, pivot_type: PivotType) { in set_pivot_type() argument
|
H A D | mod.rs | 20 pub enum PivotType { enum 55 fn pivot(&self) -> &Cell<PivotType>; in pivot() argument 102 fn set_pivot_type(&self, pivot_type: PivotType) { in set_pivot_type() argument 107 fn set_pivot_type_base(&self, pivot_type: PivotType) { in set_pivot_type_base() argument
|
H A D | image.rs | 14 use super::{PivotType, Widget}; 21 pivot: Cell<PivotType>, 47 pivot: Cell::new(PivotType::TopLeft), in new_from_image() 102 fn pivot(&self) -> &Cell<PivotType> { in pivot() argument
|
/StarryEngine/starry_toolkit/src/layout/ |
H A D | list.rs | 13 widgets::{PivotType, Widget}, 34 pivot: Cell<PivotType>, 55 pivot: Cell::new(PivotType::TopLeft), in new() 155 element.set_pivot_type(PivotType::TopLeft); in arrange_elements() 188 fn pivot(&self) -> &Cell<PivotType> { in pivot() argument
|
H A D | grid.rs | 13 widgets::{PivotType, Widget}, 29 pivot: Cell<PivotType>, 65 pivot: Cell::new(PivotType::TopLeft), in new() 224 child.set_pivot_type(PivotType::TopLeft); in arrange_elements() 259 fn pivot(&self) -> &Cell<PivotType> { in pivot() argument
|