#![allow(unused)]
use efx::efx;
use egui::{Context, Ui};
fn main() {
let mut dummy = DummyUi;
efx!(
&mut dummy,
r#"<Column><Label>EFx works with any egui backend</Label></Column>"#
);
}
struct DummyUi;
impl DummyUi {
fn label(&mut self, _text: impl Into<String>) {}
fn vertical<R>(&mut self, add_contents: impl FnOnce(&mut DummyUi) -> R) -> R {
add_contents(self)
}
fn horizontal<R>(&mut self, add_contents: impl FnOnce(&mut DummyUi) -> R) -> R {
add_contents(self)
}
fn separator(&mut self) {}
fn button(&mut self, _label: impl Into<String>) -> DummyResponse {
DummyResponse
}
}
struct DummyResponse;
impl DummyResponse {
fn clicked(&self) -> bool {
false
}
}