Skip to content
Snippets Groups Projects
Commit ed0d208b authored by Matthew's avatar Matthew
Browse files

Use full path to Index in macros

parent 3f5546ab
No related branches found
No related tags found
No related merge requests found
Showing with 15 additions and 22 deletions
......@@ -4,9 +4,7 @@ use bevy::{
DefaultPlugins,
};
use kayak_ui::bevy::{BevyContext, BevyKayakUIPlugin, FontMapping, UICameraBundle};
use kayak_ui::core::{
render, rsx, widget, Event, EventType, Index, KayakContextRef, KeyCode, OnEvent,
};
use kayak_ui::core::{render, rsx, widget, Event, EventType, KayakContextRef, KeyCode, OnEvent};
use kayak_ui::widgets::{App, Text};
#[derive(Debug, Clone, Eq, PartialEq, Hash)]
......
......@@ -7,7 +7,6 @@ use kayak_ui::bevy::{BevyContext, BevyKayakUIPlugin, FontMapping, ImageManager,
use kayak_ui::core::{
render,
styles::{Edge, Style, StyleProp, Units},
Index,
};
use kayak_ui::widgets::{App, Clip, NinePatch, Text};
......
......@@ -7,7 +7,7 @@ use kayak_ui::bevy::{BevyContext, BevyKayakUIPlugin, FontMapping, UICameraBundle
use kayak_ui::core::{
render, rsx,
styles::{Style, StyleProp, Units},
use_state, widget, EventType, Index, OnEvent,
use_state, widget, EventType, OnEvent,
};
use kayak_ui::widgets::{App, Button, Text, Window};
......
......@@ -9,7 +9,7 @@ use kayak_ui::{
core::{
render, rsx,
styles::{Style, StyleProp, Units},
use_state, widget, Color, EventType, Handler, Index, OnEvent,
use_state, widget, Color, EventType, Handler, OnEvent,
},
widgets::{App, Background, Button, Fold, If, Text, Window},
};
......
......@@ -7,7 +7,7 @@ use kayak_ui::bevy::{BevyContext, BevyKayakUIPlugin, FontMapping, ImageManager,
use kayak_ui::core::{
render, rsx,
styles::{Edge, LayoutType, Style, StyleProp, Units},
widget, Bound, Children, EventType, Index, MutableBound, OnEvent, WidgetProps,
widget, Bound, Children, EventType, MutableBound, OnEvent, WidgetProps,
};
use kayak_ui::widgets::{App, NinePatch, Text};
......
......@@ -4,7 +4,7 @@ use bevy::{
DefaultPlugins,
};
use kayak_ui::bevy::{BevyContext, BevyKayakUIPlugin, FontMapping, UICameraBundle};
use kayak_ui::core::{bind, render, rsx, widget, Binding, Bound, Index, MutableBound};
use kayak_ui::core::{bind, render, rsx, widget, Binding, Bound, MutableBound};
use kayak_ui::widgets::{App, Text, Window};
#[derive(Clone, PartialEq)]
......
......@@ -16,7 +16,7 @@ use bevy::{
};
use kayak_ui::{
bevy::{BevyContext, BevyKayakUIPlugin, FontMapping, UICameraBundle},
core::{render, rsx, use_effect, use_state, widget, EventType, Index, OnEvent},
core::{render, rsx, use_effect, use_state, widget, EventType, OnEvent},
widgets::{App, Button, Text, Window},
};
......
......@@ -7,7 +7,7 @@ use kayak_ui::bevy::{BevyContext, BevyKayakUIPlugin, FontMapping, UICameraBundle
use kayak_ui::core::{
render, rsx,
styles::{Style, StyleProp, Units},
widget, Bound, EventType, Index, MutableBound, OnEvent,
widget, Bound, EventType, MutableBound, OnEvent,
};
use kayak_ui::widgets::{App, Button, If, Text, Window};
......
......@@ -8,7 +8,6 @@ use kayak_ui::bevy::{BevyContext, BevyKayakUIPlugin, ImageManager, UICameraBundl
use kayak_ui::core::{
render,
styles::{Corner, Style, StyleProp, Units},
Index,
};
use kayak_ui::widgets::{App, Image};
......
......@@ -7,7 +7,6 @@ use kayak_ui::bevy::{BevyContext, BevyKayakUIPlugin, ImageManager, UICameraBundl
use kayak_ui::core::{
render,
styles::{Edge, Style, StyleProp, Units},
Index,
};
use kayak_ui::widgets::{App, NinePatch};
......
......@@ -19,7 +19,7 @@ use kayak_ui::{
core::{
render, rsx,
styles::{Edge, LayoutType, Style, StyleProp, Units},
widget, Bound, Color, EventType, Index, MutableBound, OnEvent, WidgetProps,
widget, Bound, Color, EventType, MutableBound, OnEvent, WidgetProps,
},
widgets::{App, Background, Element, If, Text, TooltipConsumer, TooltipProvider, Window},
};
......
......@@ -7,7 +7,6 @@ use kayak_ui::bevy::{BevyContext, BevyKayakUIPlugin, FontMapping, ImageManager,
use kayak_ui::core::{
render,
styles::{Edge, Style, StyleProp, Units},
Index,
};
use kayak_ui::widgets::{App, Inspector, NinePatch, ScrollBox, Text};
......
......@@ -21,7 +21,7 @@ use kayak_ui::{
widgets::Button,
};
use kayak_ui::{
core::{render, rsx, widget, Index},
core::{render, rsx, widget},
widgets::Background,
};
......
......@@ -15,7 +15,7 @@ use kayak_ui::{
core::{
constructor, render, rsx,
styles::{Style, StyleProp, Units},
widget, Color, Index,
widget, Color,
},
widgets::{App, Text, Window},
};
......
......@@ -9,7 +9,7 @@ use kayak_ui::bevy::{BevyContext, BevyKayakUIPlugin, FontMapping, UICameraBundle
use kayak_ui::core::{
render, rsx,
styles::{Style, StyleProp, Units},
widget, Index,
widget,
};
use kayak_ui::widgets::{App, OnChange, TextBox, Window};
......
......@@ -7,7 +7,7 @@ use kayak_ui::bevy::{BevyContext, BevyKayakUIPlugin, FontMapping, UICameraBundle
use kayak_ui::core::{
render, rsx,
styles::{LayoutType, Style, StyleProp, Units},
use_state, widget, EventType, Handler, Index, OnEvent,
use_state, widget, EventType, Handler, OnEvent,
};
use kayak_ui::widgets::{App, Element, OnChange, TextBox, Window};
......
......@@ -4,7 +4,7 @@ use bevy::{
DefaultPlugins,
};
use kayak_ui::bevy::{BevyContext, BevyKayakUIPlugin, FontMapping, UICameraBundle};
use kayak_ui::core::{constructor, render, Index, VecTracker};
use kayak_ui::core::{constructor, render, VecTracker};
use kayak_ui::widgets::{App, Text};
fn startup(
......
......@@ -4,7 +4,6 @@ use bevy::{
DefaultPlugins,
};
use kayak_ui::bevy::{BevyContext, BevyKayakUIPlugin, FontMapping, UICameraBundle};
use kayak_ui::core::Index;
use kayak_ui::core::{render, rsx, widget};
use kayak_ui::widgets::{App, Inspector, Window};
......
......@@ -20,7 +20,7 @@ use kayak_ui::{
core::{
render, rsx,
styles::{Edge, Style, StyleProp, Units},
use_state, widget, EventType, Index, OnEvent,
use_state, widget, EventType, OnEvent,
},
widgets::{App, Button, Text, Window},
};
......
......@@ -36,7 +36,7 @@ pub fn render(input: TokenStream) -> TokenStream {
let result = quote! {
let mut context = #kayak_core::KayakContextRef::new(context, None);
let parent_id: Option<Index> = None;
let parent_id: Option<#kayak_core::Index> = None;
let children: Option<#kayak_core::Children> = None;
#widget
context.commit();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment