summaryrefslogtreecommitdiffstats
path: root/native/src/widget/pane_grid.rs
diff options
context:
space:
mode:
authorLibravatar Clark Moody <clark@clarkmoody.com>2020-12-08 18:47:01 -0600
committerLibravatar Clark Moody <clark@clarkmoody.com>2020-12-10 12:17:36 -0600
commitf54590d7adac611db84b88cbcbf4f56c7542039c (patch)
treed2f15219f22ae1e1c3e1566163e413c466962be7 /native/src/widget/pane_grid.rs
parentd16b9cf7cd98a3d65ea5408ac9b72298cb267e85 (diff)
downloadiced-f54590d7adac611db84b88cbcbf4f56c7542039c.tar.gz
iced-f54590d7adac611db84b88cbcbf4f56c7542039c.tar.bz2
iced-f54590d7adac611db84b88cbcbf4f56c7542039c.zip
Replace TitleBar string title with generic Content
Diffstat (limited to 'native/src/widget/pane_grid.rs')
-rw-r--r--native/src/widget/pane_grid.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/native/src/widget/pane_grid.rs b/native/src/widget/pane_grid.rs
index ff19cbc2..85ef021f 100644
--- a/native/src/widget/pane_grid.rs
+++ b/native/src/widget/pane_grid.rs
@@ -586,18 +586,15 @@ pub trait Renderer:
/// It receives:
/// - the bounds, style of the [`TitleBar`]
/// - the style of the [`TitleBar`]
- /// - the title of the [`TitleBar`] with its size, font, and bounds
- /// - the controls of the [`TitleBar`] with their [`Layout`+, if any
+ /// - the content of the [`TitleBar`] with its layout
+ /// - the controls of the [`TitleBar`] with their [`Layout`], if any
/// - the cursor position
fn draw_title_bar<Message>(
&mut self,
defaults: &Self::Defaults,
bounds: Rectangle,
style: &Self::Style,
- title: &str,
- title_size: u16,
- title_font: Self::Font,
- title_bounds: Rectangle,
+ content: (&Element<'_, Message, Self>, Layout<'_>),
controls: Option<(&Element<'_, Message, Self>, Layout<'_>)>,
cursor_position: Point,
) -> Self::Output;