pub struct Project {Show 19 fields
pub palette: Option<Palette>,
pub patch: Patch,
pub grid_width: usize,
pub grid_height: usize,
pub grid_highlight: GridHighlight,
pub scenes_instances_grid: HashMap<GridLocation, SceneInstance>,
pub channel_overwrites: ChannelOverwrites,
pub output_routings: Arc<OutputRoutings>,
pub artnet_config: ArtnetConfig,
pub tap_input_events: BTreeSet<InputEvent>,
pub blackout_input_events: BTreeSet<InputEvent>,
pub blackout_hold_input_events: BTreeSet<InputEvent>,
pub half_input_events: BTreeSet<InputEvent>,
pub double_input_events: BTreeSet<InputEvent>,
pub midi_active_mappings: HashMap<String, Option<AssetId<MidiController>>>,
pub main_dimmer: f32,
pub audio_input_device: Option<AudioDeviceId>,
pub artnet_control_config: ArtnetControlConfig,
pub osc_config: OscConfig,
}Fields§
§palette: Option<Palette>§patch: PatchAll fixture data: the topology and the layouts derived from it.
grid_width: usize§grid_height: usize§grid_highlight: GridHighlight§scenes_instances_grid: HashMap<GridLocation, SceneInstance>§channel_overwrites: ChannelOverwrites§output_routings: Arc<OutputRoutings>§artnet_config: ArtnetConfig§tap_input_events: BTreeSet<InputEvent>§blackout_input_events: BTreeSet<InputEvent>§blackout_hold_input_events: BTreeSet<InputEvent>§half_input_events: BTreeSet<InputEvent>§double_input_events: BTreeSet<InputEvent>§midi_active_mappings: HashMap<String, Option<AssetId<MidiController>>>§main_dimmer: f32§audio_input_device: Option<AudioDeviceId>§artnet_control_config: ArtnetControlConfig§osc_config: OscConfigImplementations§
Source§impl Project
impl Project
pub fn grid_width(&self) -> usize
pub fn grid_height(&self) -> usize
pub fn quick_row_index(&self) -> usize
pub fn set_grid_size(&mut self, width: usize, height: usize)
pub fn next_empty_grid_location(&self, start: GridLocation) -> GridLocation
pub fn get_scenes_instance( &mut self, pos: &GridLocation, ) -> Option<&mut SceneInstance>
pub fn scenes_instances_grid_len(&self) -> usize
pub fn location_by_location_or_quick_index( &mut self, index_or_grid: SceneInstanceUnion, ) -> Option<GridLocation>
Sourcepub fn scene_locations_row_major(&self) -> Vec<GridLocation>
pub fn scene_locations_row_major(&self) -> Vec<GridLocation>
The locations of the placed scenes, row by row.
pub fn all_scene_instance_locations( &self, ) -> impl Iterator<Item = &GridLocation>
Sourcepub fn remove_scene_instance(
&mut self,
pos: GridLocation,
) -> Option<SceneInstance>
pub fn remove_scene_instance( &mut self, pos: GridLocation, ) -> Option<SceneInstance>
Remove scene instance at path and update path to the next scene instance
pub fn add_scene( &mut self, pos: GridLocation, scene_id: AssetId<Scene>, collections: &Collections, )
pub fn add_scene_instance( &mut self, pos: GridLocation, scene_instance: SceneInstance, )
pub fn grid_location_from_continuous_index( &self, index: usize, start: &GridLocation, ) -> GridLocation
Trait Implementations§
Source§impl AssetTrait for Project
impl AssetTrait for Project
Source§impl CollectSoundTriggers for Project
impl CollectSoundTriggers for Project
Source§fn collect_sound_triggers(&self, triggers: &mut SoundTriggerSet)
fn collect_sound_triggers(&self, triggers: &mut SoundTriggerSet)
Adds the triggers of
self to triggers. When two triggers share an
id, the first one wins; copies of a value share their trigger.Source§impl<'de> Deserialize<'de> for Project
impl<'de> Deserialize<'de> for Project
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Project
Auto Trait Implementations§
impl Freeze for Project
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnsafeUnpin for Project
impl UnwindSafe for Project
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DebugAny for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more