change macro a bit
This commit is contained in:
@@ -4,8 +4,8 @@ use iris_macro::widget_trait;
|
||||
// these methods should "not require any context" (require unit) because they're in core
|
||||
event_ctx!(());
|
||||
|
||||
widget_trait!(
|
||||
pub CoreWidget;
|
||||
widget_trait! {
|
||||
pub trait CoreWidget;
|
||||
|
||||
fn pad(self, padding: impl Into<Padding>) -> impl WidgetFn<Pad> {
|
||||
|ui| Pad {
|
||||
@@ -130,7 +130,7 @@ widget_trait!(
|
||||
fn set_ptr(self, ptr: &WidgetRef<WidgetPtr>, ui: &mut Ui) {
|
||||
ptr.get_mut().inner = Some(self.add(ui));
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
pub trait CoreWidgetArr<const LEN: usize, Wa: WidgetArrLike<LEN, Tag>, Tag> {
|
||||
fn span(self, dir: Dir) -> SpanBuilder<LEN, Wa, Tag>;
|
||||
|
||||
Reference in New Issue
Block a user