-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(print): add support of print and hello print case pass
- Loading branch information
1 parent
d6c767f
commit 857c8dd
Showing
5 changed files
with
39 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
use taitank_safe::*; | ||
fn main() { | ||
let mut root = node_create(); | ||
set_align_items(&mut root, FlexAlign::FlexAlignCenter); | ||
set_width(&mut root, 200.0); | ||
set_height(&mut root, 200.0); | ||
|
||
let mut root_child0 = node_create(); | ||
set_flex_direction(&mut root_child0, FlexDirection::FlexDirectionRow); | ||
set_flex_wrap(&mut root_child0, FlexWrapNode::FlexWrap); | ||
insert_child(&mut root, &mut root_child0, 0); | ||
|
||
let mut root_child0_child0 = node_create(); | ||
set_width(&mut root_child0_child0, 150.0); | ||
set_height(&mut root_child0_child0, 80.0); | ||
insert_child(&mut root_child0, &mut root_child0_child0, 0); | ||
|
||
let mut root_child0_child1 = node_create(); | ||
set_width(&mut root_child0_child1, 80.0); | ||
set_height(&mut root_child0_child1, 80.0); | ||
insert_child(&mut root_child0, &mut root_child0_child1, 1); | ||
|
||
layout!(&mut root); | ||
|
||
println!("{:?}", root); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters