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.
| 76 | // the window probably is straddling screens in a sensible way. |
| 77 | // If the user wants to use mixed landscape and portrait, they can. |
| 78 | bool 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. |
| 85 | bool IsWindowAccessible(wxRect *requestedRect) |
no outgoing calls
no test coverage detected