#[allow(non_snake_case)]
pub mod ffi {
    use crate::WINGsP::*;

    /// Creates a button like an "Ok" button to dismiss a dialog.
    ///
    /// ## Rust rewrite notes
    ///
    /// This was originally a macro.
    #[unsafe(no_mangle)]
    pub unsafe extern "C" fn WMCreateCommandButton(parent: *mut WMWidget) -> *mut WMButton {
        unsafe {
            WMCreateCustomButton(
                parent,
                (WMButtonBehaviorMask_WBBSpringLoadedMask
                    | WMButtonBehaviorMask_WBBPushInMask
                    | WMButtonBehaviorMask_WBBPushLightMask
                    | WMButtonBehaviorMask_WBBPushChangeMask) as i32,
            )
        }
    }
}
