ifc_style/layer/style.rs
1//! `IfcPresentationLayerWithStyle` visibility and identifier projection.
2
3use crate::error::StyleResult;
4
5use super::PresentationLayer;
6
7impl<'m, 's> PresentationLayer<'m, 's> {
8 /// The `LayerOn` visibility flag, when authored.
9 pub fn layer_on(&self) -> StyleResult<Option<bool>> {
10 self.record.optional_bool("LayerOn")
11 }
12
13 /// The `LayerFrozen` flag, when authored.
14 pub fn layer_frozen(&self) -> StyleResult<Option<bool>> {
15 self.record.optional_bool("LayerFrozen")
16 }
17
18 /// The `LayerBlocked` flag, when authored.
19 pub fn layer_blocked(&self) -> StyleResult<Option<bool>> {
20 self.record.optional_bool("LayerBlocked")
21 }
22}