mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
just page request features
This commit is contained in:
parent
2da322a47e
commit
e865221598
10 changed files with 226 additions and 0 deletions
30
src/app/browser/window/tab/item/page/request.rs
Normal file
30
src/app/browser/window/tab/item/page/request.rs
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
mod content;
|
||||
mod widget;
|
||||
|
||||
use content::Content;
|
||||
use widget::Widget;
|
||||
|
||||
use adw::ToolbarView;
|
||||
use std::sync::Arc;
|
||||
|
||||
pub struct Request {
|
||||
widget: Arc<Widget>,
|
||||
}
|
||||
|
||||
impl Request {
|
||||
pub fn new_arc() -> Arc<Self> {
|
||||
// Init components
|
||||
let content = Content::new_arc();
|
||||
|
||||
// Init widget
|
||||
let widget = Widget::new_arc(content.gobject());
|
||||
|
||||
// Result
|
||||
Arc::new(Self { widget })
|
||||
}
|
||||
|
||||
// Getters
|
||||
pub fn gobject(&self) -> &ToolbarView {
|
||||
&self.widget.gobject()
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue