diff --git a/hui-examples/examples/align_test.rs b/hui-examples/examples/align_test.rs index 17a52a9..45806bd 100644 --- a/hui-examples/examples/align_test.rs +++ b/hui-examples/examples/align_test.rs @@ -9,7 +9,7 @@ use winit::{ }; use hui::{ element::{ - container::Container, fill_rect::FrameView, progress_bar::ProgressBar, ElementList, UiElement + container::Container, frame_view::FrameView, progress_bar::ProgressBar, ElementList, UiElement }, frame::FrameRect, layout::{Alignment, Direction, Size}, rect::{Corners, Sides}, UiInstance }; use hui_glium::GliumUiRenderer; diff --git a/hui-examples/examples/text_weird.rs b/hui-examples/examples/text_weird.rs index 827cd19..11689c9 100644 --- a/hui-examples/examples/text_weird.rs +++ b/hui-examples/examples/text_weird.rs @@ -9,7 +9,7 @@ use winit::{ }; use hui::{ element::{ - container::Container, fill_rect::FrameView, spacer::Spacer, text::Text, ElementList + container::Container, frame_view::FrameView, spacer::Spacer, text::Text, ElementList }, frame::FrameRect, layout::Size, UiInstance }; use hui_glium::GliumUiRenderer; diff --git a/hui-examples/examples/ui_test_4_wrapping.rs b/hui-examples/examples/ui_test_4_wrapping.rs index 40264de..3e5dd43 100644 --- a/hui-examples/examples/ui_test_4_wrapping.rs +++ b/hui-examples/examples/ui_test_4_wrapping.rs @@ -2,7 +2,7 @@ use std::time::Instant; use hui::{ color, element::{ container::Container, - fill_rect::FrameView, + frame_view::FrameView, UiElementExt }, frame_rect, layout::{Alignment, Direction}, size }; diff --git a/hui-examples/examples/ui_test_7_9patch.rs b/hui-examples/examples/ui_test_7_9patch.rs index f475056..053407b 100644 --- a/hui-examples/examples/ui_test_7_9patch.rs +++ b/hui-examples/examples/ui_test_7_9patch.rs @@ -3,7 +3,7 @@ use hui::{ color, element::{ container::Container, - fill_rect::FrameView, + frame_view::FrameView, slider::Slider, text::Text, UiElementExt diff --git a/hui-examples/examples/vscode_layout.rs b/hui-examples/examples/vscode_layout.rs index c4987f7..b915c7e 100644 --- a/hui-examples/examples/vscode_layout.rs +++ b/hui-examples/examples/vscode_layout.rs @@ -6,7 +6,7 @@ use hui::{ layout::{Alignment, Direction}, element::{ container::Container, - fill_rect::FrameView, + frame_view::FrameView, image::Image, text::Text, UiElementExt diff --git a/hui/Cargo.toml b/hui/Cargo.toml index 44b0d6f..1ecd3ca 100644 --- a/hui/Cargo.toml +++ b/hui/Cargo.toml @@ -58,7 +58,7 @@ pixel_perfect_text = [] ## Enable all built-in elements el_all = [ "el_container", - "el_fill_rect", + "el_frame_view", "el_spacer", "el_br", "el_text", @@ -72,8 +72,8 @@ el_all = [ ## Enable the built-in `Container` element el_container = [] -## Enable the built-in `FillRect` element -el_fill_rect = [] +## Enable the built-in `FrameView` element +el_frame_view = [] ## Enable the built-in `Spacer` element el_spacer = [] diff --git a/hui/src/element/builtin.rs b/hui/src/element/builtin.rs index 78aa982..8141ea7 100644 --- a/hui/src/element/builtin.rs +++ b/hui/src/element/builtin.rs @@ -3,8 +3,8 @@ #[cfg(feature = "el_container")] pub mod container; -#[cfg(feature = "el_fill_rect")] -pub mod fill_rect; +#[cfg(feature = "el_frame_view")] +pub mod frame_view; #[cfg(feature = "el_spacer")] pub mod spacer; diff --git a/hui/src/element/builtin/fill_rect.rs b/hui/src/element/builtin/frame_view.rs similarity index 100% rename from hui/src/element/builtin/fill_rect.rs rename to hui/src/element/builtin/frame_view.rs