pub fn focus(&self) -> Result<(), util::WinApiResultError> {
        unsafe {
            util::winapi_nullable_to_result(SetForegroundWindow(self.id as HWND))?;
        }

        Ok(())
    }
/**
     * This also brings the window to the foreground
     */
This also brings the window to the foreground
This also brings the window to the foreground
pub fn focus(&self) -> Result<(), util::WinApiResultError> {
        unsafe {
            util::winapi_nullable_to_result(SetForegroundWindow(self.id as HWND))?;
        }
        Ok(())
    }
pub fn focus ( & self ) -> Result < ( ) , util :: WinApiResultError > { unsafe { util :: winapi_nullable_to_result ( SetForegroundWindow ( self . id as HWND ) ) ? ; } Ok ( ( ) ) }
This also brings the window to the foreground
This also brings the window to the foreground
&self
&self