pub struct NavigationBar {
pub button_width: u32,
pub button_height: u32,
pub spacing: u32,
pub hovered: Option<NavButton>,
pub pressed: Option<NavButton>,
}Expand description
Navigation bar with buttons
Fields§
Button width in pixels
Button height in pixels
spacing: u32Spacing between buttons
hovered: Option<NavButton>Which button is hovered
pressed: Option<NavButton>Which button is pressed
Implementations§
pub fn new() -> Self
Sourcepub fn total_width(&self) -> u32
pub fn total_width(&self) -> u32
Total width of the navigation buttons area
Hit test: which button is at this x position?