masonry 0.5.0

Traits and types of the Masonry toolkit.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright 2026 the Xilem Authors
// SPDX-License-Identifier: Apache-2.0

use crate::core::Property;

/// Declares if the scroll bar collapses when not being hovered.
#[derive(Default, Clone, Copy, Debug, PartialEq)]
pub struct Collapsible(pub bool);

impl Property for Collapsible {
    fn static_default() -> &'static Self {
        static DEFAULT: Collapsible = Collapsible(false);
        &DEFAULT
    }
}