Struct fui_controls::ViewportInfo
source · pub struct ViewportInfo {
pub content_width: f32,
pub content_height: f32,
pub viewport_width: f32,
pub viewport_height: f32,
}
Fields§
§content_width: f32
§content_height: f32
§viewport_width: f32
§viewport_height: f32
Trait Implementations§
source§impl Clone for ViewportInfo
impl Clone for ViewportInfo
source§fn clone(&self) -> ViewportInfo
fn clone(&self) -> ViewportInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for ViewportInfo
impl Default for ViewportInfo
source§fn default() -> ViewportInfo
fn default() -> ViewportInfo
Returns the “default value” for a type. Read more
source§impl PartialEq<ViewportInfo> for ViewportInfo
impl PartialEq<ViewportInfo> for ViewportInfo
source§fn eq(&self, other: &ViewportInfo) -> bool
fn eq(&self, other: &ViewportInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.