Write missing documentation in iced_native
This commit is contained in:
parent
d5f4067def
commit
aca9d414d3
3 changed files with 10 additions and 1 deletions
|
|
@ -28,7 +28,7 @@
|
||||||
//! [`druid`]: https://github.com/xi-editor/druid
|
//! [`druid`]: https://github.com/xi-editor/druid
|
||||||
//! [`raw-window-handle`]: https://github.com/rust-windowing/raw-window-handle
|
//! [`raw-window-handle`]: https://github.com/rust-windowing/raw-window-handle
|
||||||
//! [renderer]: crate::renderer
|
//! [renderer]: crate::renderer
|
||||||
//#![deny(missing_docs)]
|
#![deny(missing_docs)]
|
||||||
#![deny(missing_debug_implementations)]
|
#![deny(missing_debug_implementations)]
|
||||||
#![deny(unused_results)]
|
#![deny(unused_results)]
|
||||||
#![forbid(unsafe_code)]
|
#![forbid(unsafe_code)]
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,7 @@ where
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Returns the current [`mouse::Interaction`] of the [`Element`].
|
||||||
pub fn mouse_interaction(
|
pub fn mouse_interaction(
|
||||||
&self,
|
&self,
|
||||||
layout: Layout<'_>,
|
layout: Layout<'_>,
|
||||||
|
|
|
||||||
|
|
@ -61,11 +61,19 @@ pub trait Renderer: Sized {
|
||||||
fn fill_quad(&mut self, quad: Quad, background: impl Into<Background>);
|
fn fill_quad(&mut self, quad: Quad, background: impl Into<Background>);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// A polygon with four sides.
|
||||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||||
pub struct Quad {
|
pub struct Quad {
|
||||||
|
/// The bounds of the [`Quad`].
|
||||||
pub bounds: Rectangle,
|
pub bounds: Rectangle,
|
||||||
|
|
||||||
|
/// The border radius of the [`Quad`].
|
||||||
pub border_radius: f32,
|
pub border_radius: f32,
|
||||||
|
|
||||||
|
/// The border width of the [`Quad`].
|
||||||
pub border_width: f32,
|
pub border_width: f32,
|
||||||
|
|
||||||
|
/// The border color of the [`Quad`].
|
||||||
pub border_color: Color,
|
pub border_color: Color,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue