Struct Settings

Source
pub struct Settings {
Show 51 fields pub ffmpeg_dir: String, pub ytdlp_dir: String, pub download_dir: String, pub encoder: String, pub crf: u32, pub preset: String, pub confirm_overwrite: bool, pub lossless_save: bool, pub context_menu: bool, pub theme: String, pub decoder: String, pub preview_max_width: u32, pub snap: bool, pub show_library: bool, pub show_inspector: bool, pub hotkeys: BTreeMap<String, String>, pub recent_assets: Vec<RecentAsset>, pub recent_projects: Vec<String>, pub layout: String, pub layout_profiles: Vec<LayoutProfile>, pub curve_presets: Vec<CurvePreset>, pub motion_presets: Vec<MotionPreset>, pub effect_presets: Vec<EffectPreset>, pub templates: Vec<Template>, pub user_fonts: Vec<String>, pub export_scaler: String, pub export_resolution: String, pub mcp_enabled: bool, pub mcp_port: u16, pub gpu: bool, pub preview_quality: u32, pub movie_mode: bool, pub use_proxies: bool, pub proxy_height: u32, pub icon_overrides: BTreeMap<String, String>, pub capture_fps: u32, pub capture_bitrate_kbps: u32, pub capture_mic: String, pub capture_desktop_audio: bool, pub capture_cursor: bool, pub capture_on_blur: bool, pub capture_dir: String, pub voice_device: String, pub voice_channels: u32, pub frame_resolution: String, pub frame_format: String, pub frame_quality: u32, pub effect_thumb_image: String, pub palette: PaletteOverride, pub whisper_dir: String, pub transcribe_model: String,
}

Fields§

§ffmpeg_dir: String

Directory containing ffmpeg.exe / ffprobe.exe. Empty = app dir, then PATH.

§ytdlp_dir: String

Directory containing yt-dlp.exe (the optional URL import). Empty = app dir, then PATH.

§download_dir: String

Where URL downloads are written. Empty = the user’s Videos folder.

§encoder: String

“auto” (libx264 / libvpx-vp9 by extension) or an ffmpeg encoder name (“libx264”, “h264_nvenc”, “h264_qsv”, “h264_amf”, “libx265”, “hevc_nvenc”, …).

§crf: u32

Quality (CRF / CQ), lower = better. 18 is visually lossless for x264.

§preset: String

x264/x265 preset (“ultrafast”..“veryslow”); NVENC/QSV/AMF map to their own presets.

§confirm_overwrite: bool§lossless_save: bool

Save (Ctrl+S) over the opened video uses the instant -c copy cut when the project is a plain cut (cuts snap to keyframes) instead of re-encoding.

§context_menu: bool

Register “Edit with Simple Editor” in the Explorer context menu for videos.

§theme: String

“system” | “dark” | “light”

§decoder: String

“auto” | “mf” | “ffmpeg” (auto = Media Foundation, ffmpeg fallback)

§preview_max_width: u32

Preview is rendered at most this wide (pixels) to keep CPU low.

§snap: bool§show_library: bool§show_inspector: bool§hotkeys: BTreeMap<String, String>

Action id -> shortcut text (“Ctrl+Shift+B”); only non-default bindings are stored. “” = unbound.

§recent_assets: Vec<RecentAsset>§recent_projects: Vec<String>§layout: String

Current editor layout as JSON (empty = default layout).

§layout_profiles: Vec<LayoutProfile>

Saved layout profiles (also exportable to / importable from .sedit-layout files).

§curve_presets: Vec<CurvePreset>

Keyframe / motion presets, effect-chain / node-graph presets and clip templates (global, reusable across projects — the Presets pane lists all of them).

§motion_presets: Vec<MotionPreset>§effect_presets: Vec<EffectPreset>§templates: Vec<Template>§user_fonts: Vec<String>

Extra font files (.ttf/.otf) imported by the user (loaded by the text rasterizer + font lists).

§export_scaler: String

Export: output scaling when the output size differs from the project (ffmpeg scale flags: “neighbor” | “bilinear” | “bicubic” | “lanczos” | “area” | “spline”).

§export_resolution: String

Export: “project” or “WxH”.

§mcp_enabled: bool

MCP server (AI co-editing) on 127.0.0.1:mcp_port/mcp.

§mcp_port: u16§gpu: bool

Render the preview on the GPU (OpenGL) when a context is available.

§preview_quality: u32

Preview render scale in percent (100 = full canvas; lower is faster).

§movie_mode: bool

“Movie mode”: play back pre-rendered full-quality frames.

§use_proxies: bool

Preview plays background-built all-intra proxies instead of the originals.

§proxy_height: u32

Proxy height in pixels (width keeps aspect).

§icon_overrides: BTreeMap<String, String>

User icon picks: “action.” / “pane.” -> glyph name, or “none” to remove.

§capture_fps: u32

Screen capture defaults.

§capture_bitrate_kbps: u32§capture_mic: String§capture_desktop_audio: bool§capture_cursor: bool§capture_on_blur: bool

Start/stop screen recording automatically when the editor loses/gains focus.

§capture_dir: String§voice_device: String

Voiceover defaults.

§voice_channels: u32§frame_resolution: String

Export-frame defaults (“project” | “2x” | “4x” | “WxH”) and image format.

§frame_format: String§frame_quality: u32§effect_thumb_image: String

Stock image the effects panel renders its thumbnails from (empty = the embedded default).

§palette: PaletteOverride

Settings > Appearance: override for the custom-painted (timeline/preview/waveform) palette. Default (“system” mode, every colour unset) reproduces today’s Windows-derived palette exactly.

§whisper_dir: String

Directory containing a whisper.cpp binary (whisper-cli.exe). Empty = the cache’s whisper folder, then the app dir, then PATH. Speech-to-text is off until a model is downloaded.

§transcribe_model: String

Model the Subtitles pane offers first: a engine::transcribe::MODELS name or file name.

Implementations§

Source§

impl Settings

Source

pub fn dir() -> PathBuf

%APPDATA%\SimpleEditor

Source

pub fn cache_dir() -> PathBuf

%LOCALAPPDATA%\SimpleEditor\cache (waveform peaks etc.)

Source

pub fn path() -> PathBuf

Source

pub fn load() -> Self

Source

pub fn save(&self)

Writes a temp file then renames, so a failed write can’t destroy the previous settings.

Source

pub fn now() -> u64

Source

pub fn touch_recent(&mut self, path: &str)

Record a media file as recently used (most recent first; pinned entries first; capped). Keeps the entry’s tags/label/pin if it already existed.

Source

pub fn remove_recent(&mut self, path: &str)

Source

pub fn sort_recent(&mut self)

Pinned first, then most recently used.

Source

pub fn touch_recent_project(&mut self, path: &str)

Trait Implementations§

Source§

impl Clone for Settings

Source§

fn clone(&self) -> Settings

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Settings

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Settings

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Settings

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Settings

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<S> FromSample<S> for S

§

fn from_sample_(s: S) -> S

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

§

fn to_sample_(self) -> U

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

§

impl<T> MaybeSend for T

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

§

impl<T> SerializableAny for T
where T: 'static + Any + Clone + Serialize + for<'a> Deserialize<'a> + Send + Sync,