mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-21 14:48:42 -06:00
Rename rectangle
module to rect
This commit is contained in:
parent
99527d0dcb
commit
4574cb8862
|
@ -10,7 +10,7 @@ use winit::{
|
|||
use hui::{
|
||||
element::{
|
||||
container::Container, progress_bar::ProgressBar, fill_rect::FillRect, ElementList, UiElement
|
||||
}, layout::{Alignment, Direction, Size}, rectangle::{Corners, Sides}, UiInstance
|
||||
}, layout::{Alignment, Direction, Size}, rect::{Corners, Sides}, UiInstance
|
||||
};
|
||||
use hui_glium::GliumUiRenderer;
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ use hui::{
|
|||
text::Text, ElementList
|
||||
},
|
||||
layout::{Alignment, Direction, Size},
|
||||
rectangle::{Corners, Sides},
|
||||
rect::{Corners, Sides},
|
||||
UiInstance
|
||||
};
|
||||
use hui_glium::GliumUiRenderer;
|
||||
|
|
|
@ -3,7 +3,7 @@ use hui::{
|
|||
color, size,
|
||||
element::{container::Container, progress_bar::ProgressBar, text::Text, UiElementExt},
|
||||
layout::Alignment,
|
||||
rectangle::Corners,
|
||||
rect::Corners,
|
||||
text::FontHandle,
|
||||
};
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ use hui::{
|
|||
UiElementExt
|
||||
},
|
||||
layout::Alignment,
|
||||
rectangle::Corners,
|
||||
rect::Corners,
|
||||
text::FontHandle,
|
||||
size,
|
||||
};
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#![allow(deprecated)]
|
||||
|
||||
use glam::{vec4, Vec3, Vec4};
|
||||
use crate::rectangle::Corners;
|
||||
use crate::rect::Corners;
|
||||
|
||||
//TODO: use this
|
||||
// pub struct Background {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
//TODO: 9-slice draw command
|
||||
|
||||
use crate::{
|
||||
rectangle::Corners,
|
||||
rect::Corners,
|
||||
text::{FontHandle, TextRenderer}
|
||||
};
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ use glam::{uvec2, vec2, UVec2, Vec2};
|
|||
use hashbrown::HashMap;
|
||||
use nohash_hasher::BuildNoHashHasher;
|
||||
use rect_packer::DensePacker;
|
||||
use crate::rectangle::Corners;
|
||||
use crate::rect::Corners;
|
||||
|
||||
const RGBA_CHANNEL_COUNT: u32 = 4;
|
||||
//TODO make this work
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use std::num::NonZeroU16;
|
||||
use crate::rectangle::Corners;
|
||||
use crate::rect::Corners;
|
||||
|
||||
//TODO uneven corners (separate width/height for each corner)
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ use crate::{
|
|||
element::{ElementList, MeasureContext, ProcessContext, UiElement},
|
||||
layout::{Alignment, Alignment2d, Direction, LayoutInfo, Size, Size2d},
|
||||
measure::{Hints, Response},
|
||||
rectangle::{Corners, Sides},
|
||||
rect::{Corners, Sides},
|
||||
};
|
||||
|
||||
// pub struct Border {
|
||||
|
|
|
@ -8,7 +8,7 @@ use crate::{
|
|||
element::{UiElement, MeasureContext, ProcessContext},
|
||||
layout::{Size, Size2d},
|
||||
measure::Response,
|
||||
rectangle::Corners,
|
||||
rect::Corners,
|
||||
size,
|
||||
};
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ use crate::{
|
|||
element::{MeasureContext, ProcessContext, UiElement},
|
||||
layout::{compute_size, Size, Size2d},
|
||||
measure::Response,
|
||||
rectangle::Corners,
|
||||
rect::Corners,
|
||||
};
|
||||
|
||||
#[derive(Setters)]
|
||||
|
|
|
@ -6,7 +6,7 @@ use crate::{
|
|||
element::{MeasureContext, ProcessContext, UiElement},
|
||||
layout::{compute_size, Size, Size2d},
|
||||
measure::Response,
|
||||
rectangle::Corners
|
||||
rect::Corners
|
||||
};
|
||||
|
||||
#[derive(Debug, Clone, Copy, Setters)]
|
||||
|
|
|
@ -8,7 +8,7 @@ use crate::{
|
|||
element::{MeasureContext, ProcessContext, UiElement},
|
||||
layout::{Size2d, compute_size},
|
||||
measure::Response,
|
||||
rectangle::FillColor,
|
||||
rect::FillColor,
|
||||
signal::{trigger::SignalTriggerArg, Signal},
|
||||
};
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ use glam::Vec2;
|
|||
use hashbrown::HashMap;
|
||||
use nohash_hasher::BuildNoHashHasher;
|
||||
use tinyset::{Fits64, Set64};
|
||||
use crate::{event::{EventQueue, UiEvent}, rectangle::Rect};
|
||||
use crate::{event::{EventQueue, UiEvent}, rect::Rect};
|
||||
|
||||
/// Represents a mouse button.
|
||||
///
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
mod instance;
|
||||
mod macros;
|
||||
pub mod layout;
|
||||
pub mod rectangle;
|
||||
pub mod rect;
|
||||
pub mod background;
|
||||
pub mod element;
|
||||
pub mod event;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
//! element measurement, hints and responses
|
||||
|
||||
use glam::Vec2;
|
||||
use crate::rectangle::Rect;
|
||||
use crate::rect::Rect;
|
||||
|
||||
// #[non_exhaustive]
|
||||
#[derive(Default)]
|
||||
|
|
Loading…
Reference in a new issue