mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-25 08:28:42 -06:00
rename arg
This commit is contained in:
parent
b801ec8821
commit
0cd4e3a8a1
|
@ -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