pub struct TargetSetting {
pub frame: (u16, u16),
pub scale: Scale,
pub text_px: u16,
}Expand description
How a game shows its frame on one target.
Fields§
§frame: (u16, u16)Its frame’s width and height, in logical pixels.
scale: ScaleHow the frame is scaled to the display.
text_px: u16The height of the smallest text on screen, in logical pixels: the font’s cell height.
Trait Implementations§
Source§impl Clone for TargetSetting
impl Clone for TargetSetting
Source§fn clone(&self) -> TargetSetting
fn clone(&self) -> TargetSetting
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TargetSetting
Source§impl Debug for TargetSetting
impl Debug for TargetSetting
Source§impl<'de> Deserialize<'de> for TargetSetting
impl<'de> Deserialize<'de> for TargetSetting
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TargetSetting
Source§impl PartialEq for TargetSetting
impl PartialEq for TargetSetting
impl StructuralPartialEq for TargetSetting
Auto Trait Implementations§
impl Freeze for TargetSetting
impl RefUnwindSafe for TargetSetting
impl Send for TargetSetting
impl Sync for TargetSetting
impl Unpin for TargetSetting
impl UnsafeUnpin for TargetSetting
impl UnwindSafe for TargetSetting
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.