We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
BarHoveredState
1 parent 803ab74 commit 440ce90Copy full SHA for 440ce90
druid/src/scroll_component.rs
@@ -33,7 +33,7 @@ pub enum BarHoveredState {
33
}
34
35
impl BarHoveredState {
36
- pub fn is_hovered(&self) -> bool {
+ pub fn is_hovered(self) -> bool {
37
match self {
38
BarHoveredState::Vertical | BarHoveredState::Horizontal => true,
39
_ => false,
@@ -88,6 +88,12 @@ pub struct ScrollComponent {
88
pub scrollbars: ScrollbarsState,
89
90
91
+impl Default for ScrollComponent {
92
+ fn default() -> Self {
93
+ ScrollComponent::new()
94
+ }
95
+}
96
+
97
impl ScrollComponent {
98
pub fn new() -> ScrollComponent {
99
ScrollComponent {
0 commit comments