use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-core-graphics")]
use objc2_core_graphics::*;
use objc2_foundation::*;
use crate::*;
#[cfg(all(feature = "UIGraphicsRenderer", feature = "block2"))]
pub type UIGraphicsDrawingActions =
*mut block2::DynBlock<dyn Fn(NonNull<UIGraphicsRendererContext>)>;
#[cfg(feature = "UIGraphicsRenderer")]
impl UIGraphicsRenderer {
extern_methods!(
#[unsafe(method(rendererContextClass))]
#[unsafe(method_family = none)]
pub fn rendererContextClass() -> &'static AnyClass;
#[cfg(feature = "objc2-core-graphics")]
#[unsafe(method(contextWithFormat:))]
#[unsafe(method_family = copy)]
pub fn contextWithFormat(format: &UIGraphicsRendererFormat) -> Option<Retained<CGContext>>;
#[cfg(feature = "objc2-core-graphics")]
#[unsafe(method(prepareCGContext:withRendererContext:))]
#[unsafe(method_family = none)]
pub fn prepareCGContext_withRendererContext(
context: &CGContext,
renderer_context: &UIGraphicsRendererContext,
);
#[cfg(feature = "block2")]
#[unsafe(method(runDrawingActions:completionActions:error:_))]
#[unsafe(method_family = none)]
pub unsafe fn runDrawingActions_completionActions_error(
&self,
drawing_actions: UIGraphicsDrawingActions,
completion_actions: UIGraphicsDrawingActions,
) -> Result<(), Retained<NSError>>;
);
}