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::{
103        raster_n32_premul,
104        wrap_pixels,
105    },
106    svg,
107    textlayout::{
108        Decoration,
109        FontCollection,
110        FontFeature,
111        LineMetrics,
112        Paragraph,
113        ParagraphBuilder,
114        ParagraphStyle,
115        PlaceholderStyle,
116        PositionWithAffinity,
117        RectHeightStyle,
118        RectWidthStyle,
119        StrutStyle,
120        TextAlign,
121        TextBaseline,
122        TextBox,
123        TextDecoration,
124        TextDecorationStyle,
125        TextDirection,
126        TextHeightBehavior,
127        TextIndex,
128        TextRange,
129        TextShadow,
130        TextStyle,
131        TypefaceFontProvider,
132        paragraph::GlyphClusterInfo,
133    },
134    wrapper::PointerWrapper,
135};