---
source: crates/aviutl2-macros/src/filter_config_items.rs
expression: "rustfmt_wrapper::rustfmt(output).unwrap()"
---
struct Config {}
#[automatically_derived]
impl ::aviutl2::filter::FilterConfigItems for Config {
    fn to_config_items() -> Vec<::aviutl2::filter::FilterConfigItem> {
        return vec![
            ::aviutl2::filter::FilterConfigItem::Button(::aviutl2::filter::FilterConfigButton {
                name: "Reset".to_string(),
                callback: __filter_button_callback_reset,
            }),
            ::aviutl2::filter::FilterConfigItem::Button(::aviutl2::filter::FilterConfigButton {
                name: "Apply".to_string(),
                callback: __filter_button_callback_apply,
            }),
        ];
        extern "C" fn __filter_button_callback_reset(
            edit_section: *mut ::aviutl2::sys::plugin2::EDIT_SECTION,
        ) {
            if let Err(panic_info) = ::aviutl2::__catch_unwind_with_panic_info(|| {
                let mut edit_section =
                    unsafe { ::aviutl2::generic::EditSection::from_raw(edit_section) };
                let ret = reset(&mut edit_section);
                ::aviutl2::common::__log_and_beep_if_error(ret);
            }) {
                ::aviutl2::tracing::error!("Panic occurred during {}: {}", "Reset", panic_info);
                let _ = ::aviutl2::logger::write_error_log(&panic_info);
            }
        }
        extern "C" fn __filter_button_callback_apply(
            edit_section: *mut ::aviutl2::sys::plugin2::EDIT_SECTION,
        ) {
            if let Err(panic_info) = ::aviutl2::__catch_unwind_with_panic_info(|| {
                let mut edit_section =
                    unsafe { ::aviutl2::generic::EditSection::from_raw(edit_section) };
                let ret = on_apply_clicked(&mut edit_section);
                ::aviutl2::common::__log_and_beep_if_error(ret);
            }) {
                ::aviutl2::tracing::error!("Panic occurred during {}: {}", "Apply", panic_info);
                let _ = ::aviutl2::logger::write_error_log(&panic_info);
            }
        }
    }
    fn from_config_items(items: &[::aviutl2::filter::FilterConfigItem]) -> Self {
        Self {}
    }
}
#[automatically_derived]
impl ::std::default::Default for Config {
    fn default() -> Self {
        Self {}
    }
}
