MCPcopy Create free account
hub / github.com/Logicalshift/flo_draw / from

Method from

draw/src/window_properties.rs:87–95  ·  view source on GitHub ↗

Creates a clone of an object implementing the FloWindowProperties trait

(properties: &T)

Source from the content-addressed store, hash-verified

85 /// Creates a clone of an object implementing the FloWindowProperties trait
86 ///
87 pub fn from<T: FloWindowProperties>(properties: &T) -> WindowProperties {
88 WindowProperties {
89 title: properties.title(),
90 size: properties.size(),
91 fullscreen: properties.fullscreen(),
92 has_decorations: properties.has_decorations(),
93 mouse_pointer: properties.mouse_pointer()
94 }
95 }
96}
97
98impl FloWindowProperties for WindowProperties {

Callers

nothing calls this directly

Calls 5

titleMethod · 0.80
fullscreenMethod · 0.80
has_decorationsMethod · 0.80
mouse_pointerMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected