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