skia_
safe
0.81.0
Svg
Aliased type
Methods
height
intrinsic_size
new
preserve_aspect_ratio
set_height
set_preserve_aspect_ratio
set_view_box
set_width
set_x
set_y
view_box
width
x
y
Trait Implementations
DebugAttributes
Default
In skia_
safe::
svg
skia_safe
::
svg
Type Alias
Svg
Copy item path
Source
pub type Svg =
RCHandle
<SkSVGSVG>;
Aliased Type
§
struct Svg(
/* private fields */
);
Implementations
§
Source
§
impl
Svg
Source
pub fn
new
(kind:
SvgKind
) -> Self
Source
pub fn
x
(&self) -> &
Length
Source
pub fn
set_x
(&mut self, value:
Length
)
Source
pub fn
y
(&self) -> &
Length
Source
pub fn
set_y
(&mut self, value:
Length
)
Source
pub fn
width
(&self) -> &
Length
Source
pub fn
set_width
(&mut self, value:
Length
)
Source
pub fn
height
(&self) -> &
Length
Source
pub fn
set_height
(&mut self, value:
Length
)
Source
pub fn
preserve_aspect_ratio
(&self) -> &
PreserveAspectRatio
Source
pub fn
set_preserve_aspect_ratio
(&mut self, value:
PreserveAspectRatio
)
Source
pub fn
view_box
(&self) ->
Option
<&
Rect
>
Source
pub fn
set_view_box
(&mut self, value:
Rect
)
Source
pub fn
intrinsic_size
(&self) ->
Size
Trait Implementations
§
Source
§
impl
DebugAttributes
for
Svg
Source
§
const
NAME
: &'static
str
= "Svg"
Source
§
fn
_dbg
(&self, builder: &mut
DebugStruct
<'_, '_>)
Source
§
impl
Default
for
Svg
Source
§
fn
default
() -> Self
Returns the “default value” for a type.
Read more