summaryrefslogtreecommitdiff
path: root/src/model/content.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/content.rs')
-rw-r--r--src/model/content.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/model/content.rs b/src/model/content.rs
index e73fa4a8..df910a58 100644
--- a/src/model/content.rs
+++ b/src/model/content.rs
@@ -11,7 +11,8 @@ use thin_vec::ThinVec;
use typst_macros::node;
use super::{
- capability, capable, Args, Guard, Key, Property, Recipe, Style, StyleMap, Value, Vm,
+ capability, capable, Args, Guard, Key, ParamInfo, Property, Recipe, Style, StyleMap,
+ Value, Vm,
};
use crate::diag::{SourceResult, StrResult};
use crate::syntax::Span;
@@ -426,6 +427,11 @@ pub trait Node: 'static + Capable {
where
Self: Sized;
+ /// List the settable properties.
+ fn properties() -> Vec<ParamInfo>
+ where
+ Self: Sized;
+
/// Access a field on this node.
fn field(&self, name: &str) -> Option<Value>;
}