MCPcopy Create free account
hub / github.com/bk138/multivnc / view_togglefullscreen

Method view_togglefullscreen

src/gui/MyFrameMain.cpp:2058–2076  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2056
2057
2058void 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
2079void MyFrameMain::view_toggle1to1(wxCommandEvent &event)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected