pub fn build(self) {
        let mut render_context = RenderContext2D::new(self.bounds.width(), self.bounds.height());

        let mut flags = vec![];

        if self.resizeable {
            flags.push(orbclient::WindowFlag::Resizable);
        }

        if self.borderless {
            flags.push(orbclient::WindowFlag::Borderless);
        }

        if self.always_on_top {
            flags.push(orbclient::WindowFlag::Front);
        }

        let window = orbclient::Window::new_flags(
            self.bounds.x() as i32,
            self.bounds.y() as i32,
            self.bounds.width() as u32,
            self.bounds.height() as u32,
            self.title.as_str(),
            &flags,
        )
        .expect("WindowBuilder: Could not create an orblient window.");

        for (family, font) in self.fonts {
            render_context.register_font(&family, font);
        }

        self.shell.window_shells.push(Window::new(
            self.adapter,
            render_context,
            self.request_receiver,
            window,
        ));
    }
/// Builds the window shell. The shell will be linked to the application `Shell`.
Builds the window shell. The shell will be linked to the application `Shell`.
Builds the window shell . The shell will be linked to the application ` Shell ` .
pub fn build(self) {
        let mut render_context = RenderContext2D::new(self.bounds.width(), self.bounds.height());
        let mut flags = vec![];
        if self.resizeable {
            flags.push(orbclient::WindowFlag::Resizable);
        }
        if self.borderless {
            flags.push(orbclient::WindowFlag::Borderless);
        }
        if self.always_on_top {
            flags.push(orbclient::WindowFlag::Front);
        }
        let window = orbclient::Window::new_flags(
            self.bounds.x() as i32,
            self.bounds.y() as i32,
            self.bounds.width() as u32,
            self.bounds.height() as u32,
            self.title.as_str(),
            &flags,
        )
        .expect("WindowBuilder: Could not create an orblient window.");
        for (family, font) in self.fonts {
            render_context.register_font(&family, font);
        }
        self.shell.window_shells.push(Window::new(
            self.adapter,
            render_context,
            self.request_receiver,
            window,
        ));
    }
pub fn build ( self ) { let mut render_context = RenderContext2D :: new ( self . bounds . width ( ) , self . bounds . height ( ) ) ; let mut flags = vec ! [ ] ; if self . resizeable { flags . push ( orbclient :: WindowFlag :: Resizable ) ; } if self . borderless { flags . push ( orbclient :: WindowFlag :: Borderless ) ; } if self . always_on_top { flags . push ( orbclient :: WindowFlag :: Front ) ; } let window = orbclient :: Window :: new_flags ( self . bounds . x ( ) as i32 , self . bounds . y ( ) as i32 , self . bounds . width ( ) as u32 , self . bounds . height ( ) as u32 , self . title . as_str ( ) , & flags , ) . expect ( " " ) ; for ( family , font ) in self . fonts { render_context . register_font ( & family , font ) ; } self . shell . window_shells . push ( Window :: new ( self . adapter , render_context , self . request_receiver , window , ) ) ; }
Builds the window shell.
Builds the window shell .
self