1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Take a look at the license at the top of the repository in the LICENSE file.

use crate::Calendar;
#[cfg(not(feature = "v4_14"))]
use glib::prelude::*;

impl Calendar {
    #[cfg(not(feature = "v4_14"))]
    #[cfg_attr(docsrs, doc(cfg(not(feature = "v4_14"))))]
    pub fn day(&self) -> i32 {
        ObjectExt::property(self, "day")
    }

    #[cfg(not(feature = "v4_14"))]
    #[cfg_attr(docsrs, doc(cfg(not(feature = "v4_14"))))]
    pub fn set_day(&self, day: i32) {
        ObjectExt::set_property(self, "day", day)
    }

    #[cfg(not(feature = "v4_14"))]
    #[cfg_attr(docsrs, doc(cfg(not(feature = "v4_14"))))]
    pub fn month(&self) -> i32 {
        ObjectExt::property(self, "month")
    }

    #[cfg(not(feature = "v4_14"))]
    #[cfg_attr(docsrs, doc(cfg(not(feature = "v4_14"))))]
    pub fn set_month(&self, month: i32) {
        ObjectExt::set_property(self, "month", month)
    }

    #[cfg(not(feature = "v4_14"))]
    #[cfg_attr(docsrs, doc(cfg(not(feature = "v4_14"))))]
    pub fn year(&self) -> i32 {
        ObjectExt::property(self, "year")
    }

    #[cfg(not(feature = "v4_14"))]
    #[cfg_attr(docsrs, doc(cfg(not(feature = "v4_14"))))]
    pub fn set_year(&self, year: i32) {
        ObjectExt::set_property(self, "year", year)
    }
}