mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-22 15:18:43 -06:00
rename arg
This commit is contained in:
parent
a36c127e61
commit
8759f0169c
|
@ -92,8 +92,10 @@ impl ElementList {
|
||||||
// }
|
// }
|
||||||
|
|
||||||
pub trait UiElementExt: UiElement {
|
pub trait UiElementExt: UiElement {
|
||||||
|
/// Add element as a child/nested element.
|
||||||
fn add_child(self, ui: &mut ElementList);
|
fn add_child(self, ui: &mut ElementList);
|
||||||
fn add_root(self, ui: &mut UiInstance, resolution: glam::Vec2);
|
/// Add element as a ui root.
|
||||||
|
fn add_root(self, ui: &mut UiInstance, max_size: glam::Vec2);
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T: UiElement + 'static> UiElementExt for T {
|
impl<T: UiElement + 'static> UiElementExt for T {
|
||||||
|
|
Loading…
Reference in a new issue