doc fixes

This commit is contained in:
Emil Ernerfeldt 2021-01-17 02:17:57 +01:00
parent 2854a84728
commit 4203944892
2 changed files with 6 additions and 4 deletions

View File

@ -10,7 +10,7 @@ pub struct Output {
/// If set, open this url. /// If set, open this url.
pub open_url: Option<String>, pub open_url: Option<String>,
/// Response to [`Event::Copy`] or [`Event::Cut`]. Ignore if empty. /// Response to [`crate::Event::Copy`] or [`crate::Event::Cut`]. Ignore if empty.
pub copied_text: String, pub copied_text: String,
/// If `true`, Egui is requesting immediate repaint (i.e. on the next frame). /// If `true`, Egui is requesting immediate repaint (i.e. on the next frame).

View File

@ -239,20 +239,22 @@ impl Grid {
self self
} }
/// Set minimum width of each column. Default: [`Spacing::interact_size.x`]. /// Set minimum width of each column.
/// Default: [`crate::style::Spacing::interact_size`]`.x`.
pub fn min_col_width(mut self, min_col_width: f32) -> Self { pub fn min_col_width(mut self, min_col_width: f32) -> Self {
self.min_col_width = Some(min_col_width); self.min_col_width = Some(min_col_width);
self self
} }
/// Set minimum height of each row. Default: [`Spacing::interact_size.y`]. /// Set minimum height of each row.
/// Default: [`crate::style::Spacing::interact_size`]`.y`.
pub fn min_row_height(mut self, min_row_height: f32) -> Self { pub fn min_row_height(mut self, min_row_height: f32) -> Self {
self.min_row_height = Some(min_row_height); self.min_row_height = Some(min_row_height);
self self
} }
/// Set spacing between columns/rows. /// Set spacing between columns/rows.
/// Default: [`Spacing::item_spacing`]. /// Default: [`crate::style::Spacing::item_spacing`].
pub fn spacing(mut self, spacing: impl Into<Vec2>) -> Self { pub fn spacing(mut self, spacing: impl Into<Vec2>) -> Self {
self.spacing = Some(spacing.into()); self.spacing = Some(spacing.into());
self self