pub fn fill(&mut self, fill: bool) -> &mut Self {
unsafe {
- ui_container_args_set_fill(self.args, if fill { 1 } else { 0 });
+ ui_container_args_set_fill(self.args, fill as c_int);
}
self
}
pub fn hexpand(&mut self, value: bool) -> &mut Self {
unsafe {
- ui_container_args_set_hexpand(self.args, if value { 1 } else { 0 });
+ ui_container_args_set_hexpand(self.args, value as c_int);
}
self
}
pub fn vexpand(&mut self, value: bool) -> &mut Self {
unsafe {
- ui_container_args_set_vexpand(self.args, if value { 1 } else { 0 });
+ ui_container_args_set_vexpand(self.args, value as c_int);
}
self
}
pub fn hfill(&mut self, value: bool) -> &mut Self {
unsafe {
- ui_container_args_set_hfill(self.args, if value { 1 } else { 0 });
+ ui_container_args_set_hfill(self.args, value as c_int);
}
self
}
pub fn vfill(&mut self, value: bool) -> &mut Self {
unsafe {
- ui_container_args_set_vfill(self.args, if value { 1 } else { 0 });
+ ui_container_args_set_vfill(self.args, value as c_int);
}
self
}
pub fn override_defaults(&mut self, value: bool) -> &mut Self {
unsafe {
- ui_container_args_set_override_defaults(self.args, if value { 1 } else { 0 });
+ ui_container_args_set_override_defaults(self.args, value as c_int);
}
self
}
pub fn fill(&mut self, fill: bool) -> &mut Self {
unsafe {
- ui_frame_args_set_fill(self.args, if fill { 1 } else { 0 });
+ ui_frame_args_set_fill(self.args, fill as c_int);
}
self
}
pub fn hexpand(&mut self, value: bool) -> &mut Self {
unsafe {
- ui_frame_args_set_hexpand(self.args, if value { 1 } else { 0 });
+ ui_frame_args_set_hexpand(self.args, value as c_int);
}
self
}
pub fn vexpand(&mut self, value: bool) -> &mut Self {
unsafe {
- ui_frame_args_set_vexpand(self.args, if value { 1 } else { 0 });
+ ui_frame_args_set_vexpand(self.args, value as c_int);
}
self
}
pub fn hfill(&mut self, value: bool) -> &mut Self {
unsafe {
- ui_frame_args_set_hfill(self.args, if value { 1 } else { 0 });
+ ui_frame_args_set_hfill(self.args, value as c_int);
}
self
}
pub fn vfill(&mut self, value: bool) -> &mut Self {
unsafe {
- ui_frame_args_set_vfill(self.args, if value { 1 } else { 0 });
+ ui_frame_args_set_vfill(self.args, value as c_int);
}
self
}
pub fn override_defaults(&mut self, value: bool) -> &mut Self {
unsafe {
- ui_frame_args_set_override_defaults(self.args, if value { 1 } else { 0 });
+ ui_frame_args_set_override_defaults(self.args, value as c_int);
}
self
}
pub fn expanded(&mut self, value: bool) -> &mut Self {
unsafe {
- ui_frame_args_set_expanded(self.args, if value { 1 } else { 0 });
+ ui_frame_args_set_expanded(self.args, value as c_int);
}
self
}
pub fn fill(&mut self, fill: bool) -> &mut Self {
unsafe {
- ui_splitpane_args_set_fill(self.args, if fill { 1 } else { 0 });
+ ui_splitpane_args_set_fill(self.args, fill as c_int);
}
self
}
pub fn hexpand(&mut self, value: bool) -> &mut Self {
unsafe {
- ui_splitpane_args_set_hexpand(self.args, if value { 1 } else { 0 });
+ ui_splitpane_args_set_hexpand(self.args, value as c_int);
}
self
}
pub fn vexpand(&mut self, value: bool) -> &mut Self {
unsafe {
- ui_splitpane_args_set_vexpand(self.args, if value { 1 } else { 0 });
+ ui_splitpane_args_set_vexpand(self.args, value as c_int);
}
self
}
pub fn hfill(&mut self, value: bool) -> &mut Self {
unsafe {
- ui_splitpane_args_set_hfill(self.args, if value { 1 } else { 0 });
+ ui_splitpane_args_set_hfill(self.args, value as c_int);
}
self
}
pub fn vfill(&mut self, value: bool) -> &mut Self {
unsafe {
- ui_splitpane_args_set_vfill(self.args, if value { 1 } else { 0 });
+ ui_splitpane_args_set_vfill(self.args, value as c_int);
}
self
}
pub fn override_defaults(&mut self, value: bool) -> &mut Self {
unsafe {
- ui_splitpane_args_set_override_defaults(self.args, if value { 1 } else { 0 });
+ ui_splitpane_args_set_override_defaults(self.args, value as c_int);
}
self
}
pub fn fill(&mut self, fill: bool) -> &mut Self {
unsafe {
- ui_tabview_args_set_fill(self.args, if fill { 1 } else { 0 });
+ ui_tabview_args_set_fill(self.args, fill as c_int);
}
self
}
pub fn hexpand(&mut self, value: bool) -> &mut Self {
unsafe {
- ui_tabview_args_set_hexpand(self.args, if value { 1 } else { 0 });
+ ui_tabview_args_set_hexpand(self.args, value as c_int);
}
self
}
pub fn vexpand(&mut self, value: bool) -> &mut Self {
unsafe {
- ui_tabview_args_set_vexpand(self.args, if value { 1 } else { 0 });
+ ui_tabview_args_set_vexpand(self.args, value as c_int);
}
self
}
pub fn hfill(&mut self, value: bool) -> &mut Self {
unsafe {
- ui_tabview_args_set_hfill(self.args, if value { 1 } else { 0 });
+ ui_tabview_args_set_hfill(self.args, value as c_int);
}
self
}
pub fn vfill(&mut self, value: bool) -> &mut Self {
unsafe {
- ui_tabview_args_set_vfill(self.args, if value { 1 } else { 0 });
+ ui_tabview_args_set_vfill(self.args, value as c_int);
}
self
}
pub fn override_defaults(&mut self, value: bool) -> &mut Self {
unsafe {
- ui_tabview_args_set_override_defaults(self.args, if value { 1 } else { 0 });
+ ui_tabview_args_set_override_defaults(self.args, value as c_int);
}
self
}