Skip to content

Commit

Permalink
Add SetColor operations
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Jan 17, 2024
1 parent 3982783 commit 5312f4c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/fj-core/src/operations/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ pub mod holes;
pub mod insert;
pub mod join;
pub mod merge;
pub mod presentation;
pub mod replace;
pub mod reverse;
pub mod split;
Expand Down
9 changes: 9 additions & 0 deletions crates/fj-core/src/operations/presentation.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//! Operations to control the presentation of objects
use fj_interop::Color;

/// Set the color of an object
pub trait SetColor {
/// Set the color of the object
fn set_color(&self, color: impl Into<Color>) -> Self;
}

0 comments on commit 5312f4c

Please sign in to comment.