rename constructors

This commit is contained in:
yggverse 2025-01-15 00:25:33 +02:00
parent 941b1cc283
commit edb385f903
36 changed files with 266 additions and 180 deletions

View file

@ -6,9 +6,12 @@ pub struct Widget {
}
impl Widget {
// Construct
pub fn new(header: &ToolbarView, tab: &TabView) -> Self {
// Constructors
/// Build new `Self`
pub fn build(header: &ToolbarView, tab: &TabView) -> Self {
let g_box = Box::builder().orientation(Orientation::Vertical).build();
g_box.append(header);
g_box.append(tab);