Skip to main content

day_spec/controls/
pullrefresh.rs

1// Copyright © The Daybrite Project
2// SPDX-License-Identifier: MPL-2.0
3
4pub const KIND: &str = "day.piece.pullrefresh";
5
6/// Full props (realize) for the native-tier container.
7#[derive(Clone, Debug, Default, PartialEq)]
8pub struct RefreshProps {
9    pub refreshing: bool,
10}
11
12/// Sparse command sent to the native wrapper after creation.
13#[derive(Clone, Debug, PartialEq)]
14pub enum RefreshPatch {
15    /// Show (`true`) or dismiss (`false`) the native refresh indicator.
16    SetRefreshing(bool),
17}