Docs
This commit is contained in:
parent
5b71bdbee6
commit
329a1f857e
|
|
@ -1,3 +1,5 @@
|
|||
//! load, save configuration and parse cli args
|
||||
|
||||
use clap::{ArgEnum, Parser};
|
||||
use fltk::dialog;
|
||||
use fltk_theme::ThemeType;
|
||||
|
|
@ -57,6 +59,7 @@ impl Into<ThemeType> for Themes {
|
|||
}
|
||||
}
|
||||
|
||||
/// Configuation file
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
pub struct ConfigFile {
|
||||
pub quote_font_ttf: String,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
//! Window to edit configuration
|
||||
|
||||
use std::{cell::RefCell, rc::Rc};
|
||||
|
||||
use fltk::{
|
||||
|
|
|
|||
|
|
@ -24,10 +24,15 @@ use crate::utils::{ImageContainer, ImageProperties};
|
|||
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) enum DrawMessage {
|
||||
Open, // Open file or cropped file
|
||||
/// Open file or cropped file
|
||||
Open,
|
||||
/// Load file with specific cropped size
|
||||
ChangeCrop((f64, f64)),
|
||||
/// Recalculate and draw on buffer image in Container
|
||||
Recalc,
|
||||
/// Flush buffer to u8 vector present in main, to draw on screen
|
||||
Flush,
|
||||
/// Save to file
|
||||
Save,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue