Move Defaults from iced_graphics to iced_native
This commit is contained in:
parent
54a9a232f8
commit
edea093350
39 changed files with 166 additions and 192 deletions
|
|
@ -5,7 +5,6 @@ use crate::pane_grid;
|
|||
use crate::progress_bar;
|
||||
use crate::radio;
|
||||
use crate::renderer::{self, Renderer};
|
||||
use crate::scrollable;
|
||||
use crate::slider;
|
||||
use crate::text;
|
||||
use crate::text_input;
|
||||
|
|
@ -26,8 +25,6 @@ impl Null {
|
|||
}
|
||||
|
||||
impl Renderer for Null {
|
||||
type Defaults = ();
|
||||
|
||||
fn with_layer(
|
||||
&mut self,
|
||||
_bounds: Rectangle,
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ pub trait Text: Renderer {
|
|||
pub struct Section<'a, Font> {
|
||||
pub content: &'a str,
|
||||
pub bounds: Rectangle,
|
||||
pub size: Option<f32>,
|
||||
pub color: Option<Color>,
|
||||
pub size: f32,
|
||||
pub color: Color,
|
||||
pub font: Font,
|
||||
pub horizontal_alignment: alignment::Horizontal,
|
||||
pub vertical_alignment: alignment::Vertical,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue