[][src]Struct gdnative::TileSet

pub struct TileSet { /* fields omitted */ }

core class TileSet inherits Resource (reference counted).

Official documentation

See the documentation of this class in the Godot engine's official documentation.

Memory management

The lifetime of this object is automatically managed through reference counting.

Class hierarchy

TileSet inherits methods from:

Methods

impl TileSet[src]

Constants

impl TileSet[src]

pub fn new() -> TileSet[src]

pub fn new_ref(&self) -> TileSet[src]

Creates a new reference to the same reference-counted object.

pub fn _forward_atlas_subtile_selection(
    &mut self,
    atlastile_id: i64,
    tilemap: Option<Object>,
    tile_location: Vector2D<f32, UnknownUnit>
) -> Vector2D<f32, UnknownUnit>
[src]

pub fn _forward_subtile_selection(
    &mut self,
    autotile_id: i64,
    bitmask: i64,
    tilemap: Option<Object>,
    tile_location: Vector2D<f32, UnknownUnit>
) -> Vector2D<f32, UnknownUnit>
[src]

pub fn _is_tile_bound(&mut self, drawn_id: i64, neighbor_id: i64) -> bool[src]

pub fn autotile_clear_bitmask_map(&mut self, id: i64)[src]

pub fn autotile_get_bitmask(
    &mut self,
    id: i64,
    coord: Vector2D<f32, UnknownUnit>
) -> i64
[src]

pub fn autotile_get_bitmask_mode(&self, id: i64) -> TileSetBitmaskMode[src]

pub fn autotile_get_icon_coordinate(
    &self,
    id: i64
) -> Vector2D<f32, UnknownUnit>
[src]

pub fn autotile_get_light_occluder(
    &self,
    id: i64,
    coord: Vector2D<f32, UnknownUnit>
) -> Option<OccluderPolygon2D>
[src]

pub fn autotile_get_navigation_polygon(
    &self,
    id: i64,
    coord: Vector2D<f32, UnknownUnit>
) -> Option<NavigationPolygon>
[src]

pub fn autotile_get_size(&self, id: i64) -> Vector2D<f32, UnknownUnit>[src]

pub fn autotile_get_spacing(&self, id: i64) -> i64[src]

pub fn autotile_get_subtile_priority(
    &mut self,
    id: i64,
    coord: Vector2D<f32, UnknownUnit>
) -> i64
[src]

pub fn autotile_get_z_index(
    &mut self,
    id: i64,
    coord: Vector2D<f32, UnknownUnit>
) -> i64
[src]

pub fn autotile_set_bitmask(
    &mut self,
    id: i64,
    bitmask: Vector2D<f32, UnknownUnit>,
    flag: i64
)
[src]

pub fn autotile_set_bitmask_mode(&mut self, id: i64, mode: i64)[src]

pub fn autotile_set_icon_coordinate(
    &mut self,
    id: i64,
    coord: Vector2D<f32, UnknownUnit>
)
[src]

pub fn autotile_set_light_occluder(
    &mut self,
    id: i64,
    light_occluder: Option<OccluderPolygon2D>,
    coord: Vector2D<f32, UnknownUnit>
)
[src]

pub fn autotile_set_navigation_polygon(
    &mut self,
    id: i64,
    navigation_polygon: Option<NavigationPolygon>,
    coord: Vector2D<f32, UnknownUnit>
)
[src]

pub fn autotile_set_size(&mut self, id: i64, size: Vector2D<f32, UnknownUnit>)[src]

pub fn autotile_set_spacing(&mut self, id: i64, spacing: i64)[src]

pub fn autotile_set_subtile_priority(
    &mut self,
    id: i64,
    coord: Vector2D<f32, UnknownUnit>,
    priority: i64
)
[src]

pub fn autotile_set_z_index(
    &mut self,
    id: i64,
    coord: Vector2D<f32, UnknownUnit>,
    z_index: i64
)
[src]

pub fn clear(&mut self)[src]

pub fn create_tile(&mut self, id: i64)[src]

pub fn find_tile_by_name(&self, name: GodotString) -> i64[src]

pub fn get_last_unused_tile_id(&self) -> i64[src]

pub fn get_tiles_ids(&self) -> VariantArray[src]

pub fn remove_tile(&mut self, id: i64)[src]

pub fn tile_add_shape(
    &mut self,
    id: i64,
    shape: Option<Shape2D>,
    shape_transform: Transform2D<f32, UnknownUnit, UnknownUnit>,
    one_way: bool,
    autotile_coord: Vector2D<f32, UnknownUnit>
)
[src]

pub fn tile_get_light_occluder(&self, id: i64) -> Option<OccluderPolygon2D>[src]

pub fn tile_get_material(&self, id: i64) -> Option<ShaderMaterial>[src]

pub fn tile_get_modulate(&self, id: i64) -> Color[src]

pub fn tile_get_name(&self, id: i64) -> GodotString[src]

pub fn tile_get_navigation_polygon(&self, id: i64) -> Option<NavigationPolygon>[src]

pub fn tile_get_navigation_polygon_offset(
    &self,
    id: i64
) -> Vector2D<f32, UnknownUnit>
[src]

pub fn tile_get_normal_map(&self, id: i64) -> Option<Texture>[src]

pub fn tile_get_occluder_offset(&self, id: i64) -> Vector2D<f32, UnknownUnit>[src]

pub fn tile_get_region(&self, id: i64) -> Rect<f32, UnknownUnit>[src]

pub fn tile_get_shape(&self, id: i64, shape_id: i64) -> Option<Shape2D>[src]

pub fn tile_get_shape_count(&self, id: i64) -> i64[src]

pub fn tile_get_shape_offset(
    &self,
    id: i64,
    shape_id: i64
) -> Vector2D<f32, UnknownUnit>
[src]

pub fn tile_get_shape_one_way(&self, id: i64, shape_id: i64) -> bool[src]

pub fn tile_get_shape_one_way_margin(&self, id: i64, shape_id: i64) -> f64[src]

pub fn tile_get_shape_transform(
    &self,
    id: i64,
    shape_id: i64
) -> Transform2D<f32, UnknownUnit, UnknownUnit>
[src]

pub fn tile_get_shapes(&self, id: i64) -> VariantArray[src]

pub fn tile_get_texture(&self, id: i64) -> Option<Texture>[src]

pub fn tile_get_texture_offset(&self, id: i64) -> Vector2D<f32, UnknownUnit>[src]

pub fn tile_get_tile_mode(&self, id: i64) -> TileSetTileMode[src]

pub fn tile_get_z_index(&self, id: i64) -> i64[src]

pub fn tile_set_light_occluder(
    &mut self,
    id: i64,
    light_occluder: Option<OccluderPolygon2D>
)
[src]

pub fn tile_set_material(&mut self, id: i64, material: Option<ShaderMaterial>)[src]

pub fn tile_set_modulate(&mut self, id: i64, color: Color)[src]

pub fn tile_set_name(&mut self, id: i64, name: GodotString)[src]

pub fn tile_set_navigation_polygon(
    &mut self,
    id: i64,
    navigation_polygon: Option<NavigationPolygon>
)
[src]

pub fn tile_set_navigation_polygon_offset(
    &mut self,
    id: i64,
    navigation_polygon_offset: Vector2D<f32, UnknownUnit>
)
[src]

pub fn tile_set_normal_map(&mut self, id: i64, normal_map: Option<Texture>)[src]

pub fn tile_set_occluder_offset(
    &mut self,
    id: i64,
    occluder_offset: Vector2D<f32, UnknownUnit>
)
[src]

pub fn tile_set_region(&mut self, id: i64, region: Rect<f32, UnknownUnit>)[src]

pub fn tile_set_shape(&mut self, id: i64, shape_id: i64, shape: Option<Shape2D>)[src]

pub fn tile_set_shape_offset(
    &mut self,
    id: i64,
    shape_id: i64,
    shape_offset: Vector2D<f32, UnknownUnit>
)
[src]

pub fn tile_set_shape_one_way(&mut self, id: i64, shape_id: i64, one_way: bool)[src]

pub fn tile_set_shape_one_way_margin(
    &mut self,
    id: i64,
    shape_id: i64,
    one_way: f64
)
[src]

pub fn tile_set_shape_transform(
    &mut self,
    id: i64,
    shape_id: i64,
    shape_transform: Transform2D<f32, UnknownUnit, UnknownUnit>
)
[src]

pub fn tile_set_shapes(&mut self, id: i64, shapes: VariantArray)[src]

pub fn tile_set_texture(&mut self, id: i64, texture: Option<Texture>)[src]

pub fn tile_set_texture_offset(
    &mut self,
    id: i64,
    texture_offset: Vector2D<f32, UnknownUnit>
)
[src]

pub fn tile_set_tile_mode(&mut self, id: i64, tilemode: i64)[src]

pub fn tile_set_z_index(&mut self, id: i64, z_index: i64)[src]

pub fn to_resource(&self) -> Resource[src]

Up-cast.

pub fn to_reference(&self) -> Reference[src]

Up-cast.

pub fn to_object(&self) -> Object[src]

Up-cast.

pub fn cast<T>(&self) -> Option<T> where
    T: GodotObject
[src]

Generic dynamic cast.

Methods from Deref<Target = Resource>

pub fn new_ref(&self) -> Resource[src]

Creates a new reference to the same reference-counted object.

pub fn _setup_local_to_scene(&mut self)[src]

pub fn duplicate(&self, subresources: bool) -> Option<Resource>[src]

pub fn get_local_scene(&self) -> Option<Node>[src]

pub fn get_name(&self) -> GodotString[src]

pub fn get_path(&self) -> GodotString[src]

pub fn get_rid(&self) -> Rid[src]

pub fn is_local_to_scene(&self) -> bool[src]

pub fn set_local_to_scene(&mut self, enable: bool)[src]

pub fn set_name(&mut self, name: GodotString)[src]

pub fn set_path(&mut self, path: GodotString)[src]

pub fn setup_local_to_scene(&mut self)[src]

pub fn take_over_path(&mut self, path: GodotString)[src]

pub fn init_ref(&mut self) -> bool[src]

Inherited from Reference.

pub fn to_reference(&self) -> Reference[src]

Up-cast.

pub fn to_object(&self) -> Object[src]

Up-cast.

pub fn cast<T>(&self) -> Option<T> where
    T: GodotObject
[src]

Generic dynamic cast.

Trait Implementations

impl Clone for TileSet[src]

impl Debug for TileSet[src]

impl Deref for TileSet[src]

type Target = Resource

The resulting type after dereferencing.

impl DerefMut for TileSet[src]

impl Drop for TileSet[src]

impl FromVariant for TileSet[src]

impl GodotObject for TileSet[src]

impl Instanciable for TileSet[src]

impl ToVariant for TileSet[src]

Auto Trait Implementations

impl RefUnwindSafe for TileSet

impl !Send for TileSet

impl !Sync for TileSet

impl Unpin for TileSet

impl UnwindSafe for TileSet

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Export for T where
    T: GodotObject + ToVariant
[src]

type Hint = ()

A type-specific hint type that is valid for the type being exported.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.