cidre 0.9.1

Apple frameworks bindings for rust
Documentation
use crate::{arc, cg, define_obj_type, ns, objc};

define_obj_type!(
    #[doc(alias = "NSStatusBar")]
    pub StatusBar(ns::Id),
    NS_STATUS_BAR
);

impl StatusBar {
    #[objc::msg_send(systemStatusBar)]
    pub fn system() -> arc::R<Self>;

    #[objc::msg_send(isVertical)]
    pub fn is_vertical(&self) -> bool;

    #[objc::msg_send(thickness)]
    pub fn thickness(&self) -> cg::Float;
}

#[link(name = "app", kind = "static")]
unsafe extern "C" {
    static NS_STATUS_BAR: &'static objc::Class<StatusBar>;
}