1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 06:40:06 -04:00

Kinetic windows

This commit is contained in:
Emil Ernerfeldt
2020-05-03 13:28:47 +02:00
parent bfbb669d02
commit 45564f952b
12 changed files with 398 additions and 229 deletions

View File

@@ -55,8 +55,8 @@ impl Label {
/// Usage: label!("Foo: {}", bar)
#[macro_export]
macro_rules! label {
($fmt:expr) => (Label::new($fmt));
($fmt:expr, $($arg:tt)*) => (Label::new(format!($fmt, $($arg)*)));
($fmt:expr) => ($crate::widgets::Label::new($fmt));
($fmt:expr, $($arg:tt)*) => ($crate::widgets::Label::new(format!($fmt, $($arg)*)));
}
impl Widget for Label {