strip
Parameters
- self:*const Options
- *const Options
Source
Implementation
pub fn strip(self: *const Options) Options {
return Options{
// reset to defaults of internal widgets
.id_extra = null,
.tag = null,
.name = null,
.data_out = null,
.rect = null,
.min_size_content = null,
.max_size_content = null,
.expand = null,
.gravity_x = null,
.gravity_y = null,
.tab_index = null,
.box_shadow = null,
.role = null,
.label = null,
// ignore defaults of internal widgets
.margin = Rect{},
.border = Rect{},
.padding = Rect{},
.corners = CornerRect{},
.background = false,
.ninepatch_fill = &Ninepatch.none,
.ninepatch_hover = &Ninepatch.none,
.ninepatch_press = &Ninepatch.none,
// keep the rest
.style = self.style,
.theme = self.theme,
.color_fill = self.color_fill,
.color_fill_hover = self.color_fill_hover,
.color_fill_press = self.color_fill_press,
.color_text = self.color_text,
.color_text_hover = self.color_text_hover,
.color_text_press = self.color_text_press,
.color_border = self.color_border,
.font = self.font,
.rotation = self.rotation,
};
}