Skip to main content

freya_engine/
skia.rs

1#[cfg(any(target_os = "linux", target_os = "windows", target_os = "android"))]
2pub use skia_safe::gpu::gl::{
3    Format,
4    FramebufferInfo,
5    Interface,
6};
7#[cfg(target_os = "macos")]
8pub use skia_safe::gpu::mtl;
9#[cfg(any(target_os = "linux", target_os = "windows"))]
10pub use skia_safe::gpu::vk;
11pub use skia_safe::{
12    AlphaType,
13    Bitmap,
14    BlendMode,
15    BlurStyle,
16    Canvas,
17    ClipOp,
18    Color,
19    Color4f,
20    ColorSpace,
21    ColorType,
22    CubicResampler,
23    Data,
24    EncodedImageFormat,
25    FilterMode,
26    Font,
27    FontArguments,
28    FontHinting,
29    FontMgr,
30    FontStyle,
31    HSV,
32    IPoint,
33    IRect,
34    ISize,
35    Image,
36    ImageFilter,
37    ImageInfo,
38    M44,
39    MaskFilter,
40    Matrix,
41    MipmapMode,
42    Paint,
43    PaintStyle,
44    Path,
45    PathBuilder,
46    PathDirection,
47    PathFillType,
48    Pixmap,
49    Point,
50    RGB,
51    RRect,
52    Rect,
53    RuntimeEffect,
54    SamplingOptions,
55    Shader,
56    Surface,
57    TextBlob,
58    TileMode,
59    Typeface,
60    V3,
61    canvas::SaveLayerRec,
62    font::Edging as FontEdging,
63    font_style::{
64        Slant,
65        Weight,
66        Width,
67    },
68    gpu::{
69        self,
70        BackendRenderTarget,
71        Budgeted,
72        DirectContext,
73        RecordingContext,
74        SurfaceOrigin,
75        backend_render_targets,
76        direct_contexts,
77        surfaces::{
78            render_target,
79            wrap_backend_render_target,
80        },
81    },
82    gradient::{
83        Colors,
84        Gradient,
85        Interpolation,
86    },
87    gradient_shader::{
88        Flags,
89        GradientShaderColors,
90    },
91    graphics::{
92        set_resource_cache_single_allocation_byte_limit,
93        set_resource_cache_total_bytes_limit,
94    },
95    image_filters::blur,
96    images::raster_from_data,
97    path_builder::ArcSize,
98    resources::LocalResourceProvider,
99    rrect::Corner,
100    runtime_effect::Uniform,
101    shaders,
102    surfaces::raster_n32_premul,
103    svg,
104    textlayout::{
105        Decoration,
106        FontCollection,
107        FontFeature,
108        LineMetrics,
109        Paragraph,
110        ParagraphBuilder,
111        ParagraphStyle,
112        PlaceholderStyle,
113        PositionWithAffinity,
114        RectHeightStyle,
115        RectWidthStyle,
116        StrutStyle,
117        TextAlign,
118        TextBaseline,
119        TextBox,
120        TextDecoration,
121        TextDecorationStyle,
122        TextDirection,
123        TextHeightBehavior,
124        TextIndex,
125        TextRange,
126        TextShadow,
127        TextStyle,
128        TypefaceFontProvider,
129        paragraph::GlyphClusterInfo,
130    },
131    wrapper::PointerWrapper,
132};