use ncursesw::normal::{ColorPair, Attributes};
static MODULE_PATH: &str = "ncurseswwin::normal::softlabels::";
include!("../include/softlabels.rs");
impl SoftLabels {
pub fn slk_attroff(&self, attrs: Attributes) -> result!(()) {
assert!(self.screen == attrs.screen());
Ok(self.screen.map_or_else(|| ncursesw::slk_attroff(attrs), |screen| ncursesw::slk_attroff_sp(screen, attrs))?)
}
pub fn slk_attron(&self, attrs: Attributes) -> result!(()) {
assert!(self.screen == attrs.screen());
Ok(self.screen.map_or_else(|| ncursesw::slk_attron(attrs), |screen| ncursesw::slk_attron_sp(screen, attrs))?)
}
pub fn slk_attrset(&self, attrs: Attributes) -> result!(()) {
assert!(self.screen == attrs.screen());
Ok(self.screen.map_or_else(|| ncursesw::slk_attrset(attrs), |screen| ncursesw::slk_attrset_sp(screen, attrs))?)
}
pub fn slk_color(&self, color_pair: ColorPair) -> result!(()) {
assert!(self.screen == color_pair.screen());
Ok(self.screen.map_or_else(|| ncursesw::slk_color(color_pair), |screen| ncursesw::slk_color_sp(screen, color_pair))?)
}
}