summaryrefslogtreecommitdiffstats
path: root/native/src/widget/button.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-09 18:31:07 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-09 18:31:07 +0100
commit7b278755fc7929633b5771824beac4d39b16e82e (patch)
treefe3a8a6b0ae82f7fd1fa0c0de34b4b09d0b9edda /native/src/widget/button.rs
parent775500cf1f5a14afacdc0bb6875136a4fd3369a4 (diff)
downloadiced-7b278755fc7929633b5771824beac4d39b16e82e.tar.gz
iced-7b278755fc7929633b5771824beac4d39b16e82e.tar.bz2
iced-7b278755fc7929633b5771824beac4d39b16e82e.zip
Write missing docs and reenable deny statements
Diffstat (limited to 'native/src/widget/button.rs')
-rw-r--r--native/src/widget/button.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/native/src/widget/button.rs b/native/src/widget/button.rs
index 75ef2693..51b02172 100644
--- a/native/src/widget/button.rs
+++ b/native/src/widget/button.rs
@@ -114,6 +114,9 @@ where
self
}
+ /// Sets the style of the [`Button`].
+ ///
+ /// [`Button`]: struct.Button.html
pub fn style(mut self, style: impl Into<Renderer::Style>) -> Self {
self.style = style.into();
self
@@ -246,6 +249,7 @@ where
/// [`Button`]: struct.Button.html
/// [renderer]: ../../renderer/index.html
pub trait Renderer: crate::Renderer + Sized {
+ /// The style supported by this renderer.
type Style: Default;
/// Draws a [`Button`].