mirror of
https://github.com/griffi-gh/hUI.git
synced 2025-04-09 09:26:28 -05:00
23 lines
427 B
Rust
23 lines
427 B
Rust
use crate::{
|
|
element::{MeasureContext, ProcessContext, UiElement},
|
|
measure::Response
|
|
};
|
|
|
|
#[derive(Clone, Copy, Debug, Default)]
|
|
pub struct Break;
|
|
|
|
impl UiElement for Break {
|
|
fn name(&self) -> &'static str {
|
|
"break"
|
|
}
|
|
|
|
fn measure(&self, _: MeasureContext) -> Response {
|
|
Response {
|
|
should_wrap: true,
|
|
..Default::default()
|
|
}
|
|
}
|
|
|
|
fn process(&self, _: ProcessContext) {}
|
|
}
|