pub struct SymbolInstance {Show 28 fields
shared_data: Rc<SymbolInstanceSharedData>,
pub anchor: Anchor,
pub symbol_content: SymbolContent,
pub right_justified_glyph_quads_size: usize,
pub center_justified_glyph_quads_size: usize,
pub left_justified_glyph_quads_size: usize,
pub vertical_glyph_quads_size: usize,
pub icon_quads_size: usize,
pub text_collision_feature: CollisionFeature,
pub icon_collision_feature: CollisionFeature,
pub vertical_text_collision_feature: Option<CollisionFeature>,
pub vertical_icon_collision_feature: Option<CollisionFeature>,
pub writing_modes: WritingModeType,
pub layout_feature_index: usize,
pub data_feature_index: usize,
pub text_offset: [f64; 2],
pub icon_offset: [f64; 2],
pub key: U16String,
pub placed_right_text_index: Option<usize>,
pub placed_center_text_index: Option<usize>,
pub placed_left_text_index: Option<usize>,
pub placed_vertical_text_index: Option<usize>,
pub placed_icon_index: Option<usize>,
pub placed_vertical_icon_index: Option<usize>,
pub text_box_scale: f64,
pub variable_text_offset: [f64; 2],
pub single_line: bool,
pub cross_tile_id: u32,
}Expand description
maplibre/maplibre-native#4add9ea original name: SymbolInstance
Fields§
§anchor: Anchor§symbol_content: SymbolContent§right_justified_glyph_quads_size: usize§center_justified_glyph_quads_size: usize§left_justified_glyph_quads_size: usize§vertical_glyph_quads_size: usize§icon_quads_size: usize§text_collision_feature: CollisionFeature§icon_collision_feature: CollisionFeature§vertical_text_collision_feature: Option<CollisionFeature>§vertical_icon_collision_feature: Option<CollisionFeature>§writing_modes: WritingModeType§layout_feature_index: usize§data_feature_index: usize§text_offset: [f64; 2]§icon_offset: [f64; 2]§key: U16String§placed_right_text_index: Option<usize>§placed_center_text_index: Option<usize>§placed_left_text_index: Option<usize>§placed_vertical_text_index: Option<usize>§placed_icon_index: Option<usize>§placed_vertical_icon_index: Option<usize>§text_box_scale: f64§variable_text_offset: [f64; 2]§single_line: bool§cross_tile_id: u32Implementations§
Source§impl SymbolInstance
impl SymbolInstance
Sourcepub fn new(
anchor_: Anchor,
shared_data: Rc<SymbolInstanceSharedData>,
shaped_text_orientations: &ShapedTextOrientations,
shaped_icon: &Option<PositionedIcon>,
vertically_shaped_icon: &Option<PositionedIcon>,
text_box_scale: f64,
text_padding: f64,
text_placement: SymbolPlacementType,
text_offset: [f64; 2],
icon_box_scale: f64,
icon_padding: f64,
icon_offset: [f64; 2],
indexed_feature: IndexedSubfeature,
layout_feature_index: usize,
data_feature_index: usize,
key_: U16String,
overscaling: f64,
icon_rotation: f64,
text_rotation: f64,
variable_text_offset: [f64; 2],
allow_vertical_placement: bool,
icon_type: SymbolContent,
) -> Self
pub fn new( anchor_: Anchor, shared_data: Rc<SymbolInstanceSharedData>, shaped_text_orientations: &ShapedTextOrientations, shaped_icon: &Option<PositionedIcon>, vertically_shaped_icon: &Option<PositionedIcon>, text_box_scale: f64, text_padding: f64, text_placement: SymbolPlacementType, text_offset: [f64; 2], icon_box_scale: f64, icon_padding: f64, icon_offset: [f64; 2], indexed_feature: IndexedSubfeature, layout_feature_index: usize, data_feature_index: usize, key_: U16String, overscaling: f64, icon_rotation: f64, text_rotation: f64, variable_text_offset: [f64; 2], allow_vertical_placement: bool, icon_type: SymbolContent, ) -> Self
maplibre/maplibre-native#4add9ea original name: new
Sourcepub fn get_default_horizontal_placed_text_index(&self) -> Option<usize>
pub fn get_default_horizontal_placed_text_index(&self) -> Option<usize>
maplibre/maplibre-native#4add9ea original name: getDefaultHorizontalPlacedTextIndex
Sourcepub fn line(&self) -> &GeometryCoordinates
pub fn line(&self) -> &GeometryCoordinates
maplibre/maplibre-native#4add9ea original name: line
Sourcepub fn right_justified_glyph_quads(&self) -> &Vec<SymbolQuad>
pub fn right_justified_glyph_quads(&self) -> &Vec<SymbolQuad>
maplibre/maplibre-native#4add9ea original name: rightJustifiedGlyphQuads
Sourcepub fn left_justified_glyph_quads(&self) -> &Vec<SymbolQuad>
pub fn left_justified_glyph_quads(&self) -> &Vec<SymbolQuad>
maplibre/maplibre-native#4add9ea original name: leftJustifiedGlyphQuads
Sourcepub fn center_justified_glyph_quads(&self) -> &Vec<SymbolQuad>
pub fn center_justified_glyph_quads(&self) -> &Vec<SymbolQuad>
maplibre/maplibre-native#4add9ea original name: centerJustifiedGlyphQuads
Sourcepub fn vertical_glyph_quads(&self) -> &Vec<SymbolQuad>
pub fn vertical_glyph_quads(&self) -> &Vec<SymbolQuad>
maplibre/maplibre-native#4add9ea original name: verticalGlyphQuads
Sourcepub fn has_sdf_icon(&self) -> bool
pub fn has_sdf_icon(&self) -> bool
maplibre/maplibre-native#4add9ea original name: hasSdfIcon
Sourcepub fn icon_quads(&self) -> &Option<Vec<SymbolQuad>>
pub fn icon_quads(&self) -> &Option<Vec<SymbolQuad>>
maplibre/maplibre-native#4add9ea original name: iconQuads
Sourcepub fn vertical_icon_quads(&self) -> &Option<Vec<SymbolQuad>>
pub fn vertical_icon_quads(&self) -> &Option<Vec<SymbolQuad>>
maplibre/maplibre-native#4add9ea original name: verticalIconQuads
maplibre/maplibre-native#4add9ea original name: releaseSharedData
Sourcefn invalid_cross_tile_id() -> u32
fn invalid_cross_tile_id() -> u32
maplibre/maplibre-native#4add9ea original name: invalidCrossTileID
Trait Implementations§
Source§impl Clone for SymbolInstance
impl Clone for SymbolInstance
Source§fn clone(&self) -> SymbolInstance
fn clone(&self) -> SymbolInstance
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for SymbolInstance
impl RefUnwindSafe for SymbolInstance
impl !Send for SymbolInstance
impl !Sync for SymbolInstance
impl Unpin for SymbolInstance
impl UnwindSafe for SymbolInstance
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more