summaryrefslogtreecommitdiff
path: root/engine/src/windowing/monitor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'engine/src/windowing/monitor.rs')
-rw-r--r--engine/src/windowing/monitor.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/engine/src/windowing/monitor.rs b/engine/src/windowing/monitor.rs
index 894448a..392489d 100644
--- a/engine/src/windowing/monitor.rs
+++ b/engine/src/windowing/monitor.rs
@@ -11,6 +11,7 @@ impl Handle
{
/// Returns a human-readable name of the monitor.
#[inline]
+ #[must_use]
pub fn name(&self) -> Option<String>
{
self.inner.name()
@@ -18,6 +19,7 @@ impl Handle
/// Returns the monitor's resolution.
#[inline]
+ #[must_use]
pub fn size(&self) -> PhysicalSize<u32>
{
self.inner.size().into()
@@ -26,6 +28,7 @@ impl Handle
/// Returns the top-left corner position of the monitor relative to the larger full
/// screen area.
#[inline]
+ #[must_use]
pub fn position(&self) -> PhysicalPosition<i32>
{
self.inner.position().into()
@@ -33,6 +36,7 @@ impl Handle
/// Returns the scale factor of the underlying monitor.
#[inline]
+ #[must_use]
pub fn scale_factor(&self) -> f64
{
self.inner.scale_factor()