Skip to content

Commit

Permalink
improve the C API test
Browse files Browse the repository at this point in the history
This includes margin and padding (for later) and testing the "public" API instead of the struct internals (since that's how they will be used by user agents.) There's also some slight reorganization such as moving Position struct into the properties (as well as creating a properties.h header that does something similar to kidn of mimic the Rust structure)
  • Loading branch information
Kiyoshika committed Dec 2, 2023
1 parent 5e8e6f1 commit 1cb3dde
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/gosub-bindings/src/wrapper/node.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use gosub_engine::render_tree::{text::TextNode, Node};
use gosub_engine::render_tree::properties::{Position, Rectangle};
use gosub_engine::render_tree::{text::TextNode, Node};

use crate::wrapper::{text::CTextNode, CNodeType};

Expand Down
2 changes: 1 addition & 1 deletion src/render_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use crate::html5::node::NodeData;
use crate::html5::parser::document;
use crate::html5::parser::document::{Document, DocumentHandle};

use crate::render_tree::{properties::Rectangle, text::TextNode};
use crate::render_tree::properties::Position;
use crate::render_tree::{properties::Rectangle, text::TextNode};

pub mod properties;
pub mod text;
Expand Down
2 changes: 1 addition & 1 deletion src/render_tree/properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ impl Default for Position {
fn default() -> Self {
Self::new()
}
}
}

0 comments on commit 1cb3dde

Please sign in to comment.