Struct sc2_proto::sc2api::SpatialCameraSetup[][src]

pub struct SpatialCameraSetup {
    pub resolution: SingularPtrField<Size2DI>,
    pub minimap_resolution: SingularPtrField<Size2DI>,
    pub width: Option<f32>,
    pub crop_to_playable_area: Option<bool>,
    pub allow_cheating_layers: Option<bool>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

resolution: SingularPtrField<Size2DI>minimap_resolution: SingularPtrField<Size2DI>width: Option<f32>crop_to_playable_area: Option<bool>allow_cheating_layers: Option<bool>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl SpatialCameraSetup[src]

pub fn new() -> SpatialCameraSetup[src]

pub fn get_resolution(&self) -> &Size2DI[src]

pub fn clear_resolution(&mut self)[src]

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

pub fn set_resolution(&mut self, v: Size2DI)[src]

pub fn mut_resolution(&mut self) -> &mut Size2DI[src]

pub fn take_resolution(&mut self) -> Size2DI[src]

pub fn get_minimap_resolution(&self) -> &Size2DI[src]

pub fn clear_minimap_resolution(&mut self)[src]

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

pub fn set_minimap_resolution(&mut self, v: Size2DI)[src]

pub fn mut_minimap_resolution(&mut self) -> &mut Size2DI[src]

pub fn take_minimap_resolution(&mut self) -> Size2DI[src]

pub fn get_width(&self) -> f32[src]

pub fn clear_width(&mut self)[src]

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

pub fn set_width(&mut self, v: f32)[src]

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

pub fn clear_crop_to_playable_area(&mut self)[src]

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

pub fn set_crop_to_playable_area(&mut self, v: bool)[src]

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

pub fn clear_allow_cheating_layers(&mut self)[src]

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

pub fn set_allow_cheating_layers(&mut self, v: bool)[src]

Trait Implementations

impl Clear for SpatialCameraSetup[src]

impl Clone for SpatialCameraSetup[src]

impl Debug for SpatialCameraSetup[src]

impl Default for SpatialCameraSetup[src]

impl<'a> Default for &'a SpatialCameraSetup[src]

impl Message for SpatialCameraSetup[src]

impl PartialEq<SpatialCameraSetup> for SpatialCameraSetup[src]

impl ProtobufValue for SpatialCameraSetup[src]

impl StructuralPartialEq for SpatialCameraSetup[src]

Auto Trait Implementations

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> 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.