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    graphics::{
88        set_resource_cache_single_allocation_byte_limit,
89        set_resource_cache_total_bytes_limit,
90    },
91    image_filters::blur,
92    images::raster_from_data,
93    path_builder::ArcSize,
94    resources::LocalResourceProvider,
95    rrect::Corner,
96    runtime_effect::Uniform,
97    shaders,
98    surfaces::{
99        raster_n32_premul,
100        wrap_pixels,
101    },
102    svg,
103    textlayout::{
104        Decoration,
105        FontCollection,
106        FontFeature,
107        LineMetrics,
108        Paragraph,
109        ParagraphBuilder,
110        ParagraphStyle,
111        PlaceholderStyle,
112        PositionWithAffinity,
113        RectHeightStyle,
114        RectWidthStyle,
115        StrutStyle,
116        TextAlign,
117        TextBaseline,
118        TextBox,
119        TextDecoration,
120        TextDecorationStyle,
121        TextDirection,
122        TextHeightBehavior,
123        TextIndex,
124        TextRange,
125        TextShadow,
126        TextStyle,
127        TypefaceFontProvider,
128        paragraph::GlyphClusterInfo,
129    },
130    wrapper::PointerWrapper,
131};