mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
init tab child widgets
This commit is contained in:
parent
f05a9c765e
commit
5070010b2b
3 changed files with 34 additions and 0 deletions
|
|
@ -1,6 +1,22 @@
|
|||
#[path = "tab/label.rs"] mod label;
|
||||
#[path = "tab/page.rs"] mod page;
|
||||
|
||||
use gtk::Notebook;
|
||||
|
||||
pub fn new() -> Notebook
|
||||
{
|
||||
return Notebook::builder().scrollable(true).build();
|
||||
}
|
||||
|
||||
pub fn append(
|
||||
tab : Notebook,
|
||||
is_current : bool
|
||||
) -> u32
|
||||
{
|
||||
return tab.append_page(
|
||||
&page::new(),
|
||||
Some(
|
||||
&label::new()
|
||||
)
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue