mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Rename menues to menus (#41)
Co-authored-by: Alexandre Rousseau <alexandre.rousseau@quebecormedia.com>
This commit is contained in:
committed by
GitHub
parent
d2b5730784
commit
08bdbd3cb7
@@ -73,7 +73,7 @@ impl Layout {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Full-width layout.
|
/// Full-width layout.
|
||||||
/// Nice for menues etc where each button is full width.
|
/// Nice for menus etc where each button is full width.
|
||||||
pub fn justified(dir: Direction) -> Self {
|
pub fn justified(dir: Direction) -> Self {
|
||||||
Self {
|
Self {
|
||||||
dir,
|
dir,
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ pub struct Memory {
|
|||||||
/// Useful for debugging, benchmarking etc.
|
/// Useful for debugging, benchmarking etc.
|
||||||
pub all_collpasing_are_open: bool,
|
pub all_collpasing_are_open: bool,
|
||||||
/// Useful for debugging, benchmarking etc.
|
/// Useful for debugging, benchmarking etc.
|
||||||
pub all_menues_are_open: bool,
|
pub all_menus_are_open: bool,
|
||||||
/// Useful for debugging, benchmarking etc.
|
/// Useful for debugging, benchmarking etc.
|
||||||
pub all_windows_are_open: bool,
|
pub all_windows_are_open: bool,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ fn menu_impl<'c>(
|
|||||||
bar_state.open_menu = Some(menu_id);
|
bar_state.open_menu = Some(menu_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
if bar_state.open_menu == Some(menu_id) || ui.memory().all_menues_are_open {
|
if bar_state.open_menu == Some(menu_id) || ui.memory().all_menus_are_open {
|
||||||
let area = Area::new(menu_id)
|
let area = Area::new(menu_id)
|
||||||
.order(Order::Foreground)
|
.order(Order::Foreground)
|
||||||
.fixed_pos(button_response.rect.left_bottom());
|
.fixed_pos(button_response.rect.left_bottom());
|
||||||
|
|||||||
Reference in New Issue
Block a user