MCPcopy Create free account
hub / github.com/Recordscript/recordscript / height

Method height

libs/scrap/src/quartz/display.rs:47–55  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

45 }
46
47 pub fn height(self) -> usize {
48 let h = unsafe { CGDisplayPixelsHigh(self.0) };
49 let s = self.scale();
50 if s > 1.0 {
51 ((h as f64) * s).round() as usize
52 } else {
53 h
54 }
55 }
56
57 pub fn is_builtin(self) -> bool {
58 unsafe { CGDisplayIsBuiltin(self.0) != 0 }

Callers

nothing calls this directly

Calls 1

scaleMethod · 0.45

Tested by

no test coverage detected