pub struct PostFxEditorState {
pub stack: PostFxStack,
pub selected_volume: Option<usize>,
pub selected_effect: Option<u32>,
pub preview_mode: PostFxPreviewMode,
pub search_query: String,
pub show_all_categories: bool,
pub category_filter: Option<String>,
pub split_x: f32,
pub history: Vec<PostFxStack>,
pub history_pos: usize,
}Fields§
§stack: PostFxStack§selected_volume: Option<usize>§selected_effect: Option<u32>§preview_mode: PostFxPreviewMode§search_query: String§show_all_categories: bool§category_filter: Option<String>§split_x: f32§history: Vec<PostFxStack>§history_pos: usizeImplementations§
Source§impl PostFxEditorState
impl PostFxEditorState
pub fn new() -> Self
pub fn snapshot(&mut self)
pub fn undo(&mut self)
pub fn redo(&mut self)
pub fn selected_volume_mut(&mut self) -> Option<&mut PostFxVolume>
pub fn add_effect_to_selected(&mut self, kind: PostFxKind)
pub fn remove_selected_effect(&mut self)
pub fn move_effect_up(&mut self)
pub fn move_effect_down(&mut self)
pub fn set_effect_param(&mut self, param_name: &str, value: f32)
pub fn search_effects(&self, query: &str) -> Vec<PostFxKind>
pub fn categories() -> Vec<&'static str>
pub fn generate_full_pass_glsl(&self) -> String
Trait Implementations§
Source§impl Clone for PostFxEditorState
impl Clone for PostFxEditorState
Auto Trait Implementations§
impl Freeze for PostFxEditorState
impl RefUnwindSafe for PostFxEditorState
impl Send for PostFxEditorState
impl Sync for PostFxEditorState
impl Unpin for PostFxEditorState
impl UnsafeUnpin for PostFxEditorState
impl UnwindSafe for PostFxEditorState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.