mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Merge fix
This commit is contained in:
@@ -79,6 +79,13 @@ struct AxisBools {
|
||||
y: bool,
|
||||
}
|
||||
|
||||
impl AxisBools {
|
||||
#[inline]
|
||||
pub fn any(&self) -> bool {
|
||||
self.x || self.y
|
||||
}
|
||||
}
|
||||
|
||||
impl From<bool> for AxisBools {
|
||||
fn from(val: bool) -> Self {
|
||||
AxisBools { x: val, y: val }
|
||||
|
||||
Reference in New Issue
Block a user