| 2056 | |
| 2057 | |
| 2058 | void MyFrameMain::view_togglefullscreen(wxCommandEvent &event) |
| 2059 | { |
| 2060 | show_fullscreen = ! show_fullscreen; |
| 2061 | |
| 2062 | wxLogDebug("view_togglefullscreen %d", show_fullscreen); |
| 2063 | |
| 2064 | #ifdef __WXMAC__ |
| 2065 | ShowFullScreen(show_fullscreen); |
| 2066 | #else |
| 2067 | ShowFullScreen(show_fullscreen, wxFULLSCREEN_NOBORDER | wxFULLSCREEN_NOCAPTION); |
| 2068 | #endif |
| 2069 | |
| 2070 | // according to https://docs.wxwidgets.org/3.2/classwx_full_screen_event.html |
| 2071 | // the event is not fired when using ShowFullScreen(), so manually do this here |
| 2072 | // (it is fired on OSX when entering fullscreen via the green button, so we need to |
| 2073 | // have the extra event handler). |
| 2074 | wxFullScreenEvent e = wxFullScreenEvent(0, show_fullscreen); |
| 2075 | onFullScreenChanged(e); |
| 2076 | } |
| 2077 | |
| 2078 | |
| 2079 | void MyFrameMain::view_toggle1to1(wxCommandEvent &event) |
nothing calls this directly
no outgoing calls
no test coverage detected