MCPcopy Create free account
hub / github.com/audacity/audacity / CornersOnScreen

Function CornersOnScreen

src/ProjectWindow.cpp:78–82  ·  view source on GitHub ↗

true IFF TL and BR corners are on a connected display. Does not need to check all four. We just need to check that the window probably is straddling screens in a sensible way. If the user wants to use mixed landscape and portrait, they can.

Source from the content-addressed store, hash-verified

76// the window probably is straddling screens in a sensible way.
77// If the user wants to use mixed landscape and portrait, they can.
78bool CornersOnScreen( wxRect & r ){
79 if( wxDisplay::GetFromPoint( r.GetTopLeft() ) == wxNOT_FOUND) return false;
80 if( wxDisplay::GetFromPoint( r.GetBottomRight() ) == wxNOT_FOUND) return false;
81 return true;
82}
83
84// true iff we have enough of the top bar to be able to reposition the window.
85bool IsWindowAccessible(wxRect *requestedRect)

Callers 1

GetNextWindowPlacementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected