diff --git a/crates/egui_flex/src/flex_widget.rs b/crates/egui_flex/src/flex_widget.rs index 7a4cf51..8bea510 100644 --- a/crates/egui_flex/src/flex_widget.rs +++ b/crates/egui_flex/src/flex_widget.rs @@ -10,6 +10,7 @@ use egui::Ui; /// If your widget has no frmae you don't need to implement this trait and can use /// [`crate::FlexInstance::add_widget`] to add any [`egui::Widget`]. pub trait FlexWidget { + /// The response type of the widget type Response; /// Show your widget here. Use the provided [`Ui`] to draw the container (e.g. using a [`egui::Frame`]) /// and in the frame ui use [`FlexContainerUi::content`] to draw your widget. diff --git a/crates/egui_flex/src/lib.rs b/crates/egui_flex/src/lib.rs index c899815..94c88a7 100644 --- a/crates/egui_flex/src/lib.rs +++ b/crates/egui_flex/src/lib.rs @@ -14,6 +14,7 @@ use std::mem; /// The direction in which the flex container should lay out its children. #[derive(Debug, Clone, Copy, Default, PartialEq, Eq)] +#[allow(missing_docs)] pub enum FlexDirection { #[default] Horizontal, @@ -22,6 +23,7 @@ pub enum FlexDirection { /// How to justify the content (alignment in the main axis). #[derive(Debug, Clone, Copy, Default, PartialEq, Eq)] +#[allow(missing_docs)] pub enum FlexJustify { #[default] Start, @@ -34,6 +36,7 @@ pub enum FlexJustify { /// How to align the content in the cross axis on the current line. #[derive(Debug, Clone, Copy, Default, PartialEq, Eq)] +#[allow(missing_docs)] pub enum FlexAlign { Start, End, @@ -44,6 +47,7 @@ pub enum FlexAlign { /// How to align the content in the cross axis across the whole container. #[derive(Debug, Clone, Copy, Default, PartialEq, Eq)] +#[allow(missing_docs)] pub enum FlexAlignContent { #[default] Normal,