您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ IsFullScreen函数代码示例

51自学网 2021-06-01 21:41:20
  C++
这篇教程C++ IsFullScreen函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中IsFullScreen函数的典型用法代码示例。如果您正苦于以下问题:C++ IsFullScreen函数的具体用法?C++ IsFullScreen怎么用?C++ IsFullScreen使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了IsFullScreen函数的25个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1:

bool wxTopLevelWindowX11::ShowFullScreen(bool show, long style){    if (show)    {        if (IsFullScreen())            return false;        m_fsIsShowing = true;        m_fsStyle = style;        // TODO        return true;    }    else    {        if (!IsFullScreen())            return false;        m_fsIsShowing = false;        // TODO        return true;    }}
开发者ID:chromylei,项目名称:third_party,代码行数:25,


示例2: Parent

void Panel::Show(){	if (!GetModalMode())	{		const auto AnotherPanel = Parent()->GetAnotherPanel(this);		if (AnotherPanel->IsVisible())		{			if (SaveScr)			{				SaveScr->AppendArea(AnotherPanel->SaveScr.get());			}			if (AnotherPanel->IsFocused())			{				if (AnotherPanel->IsFullScreen())				{					SetVisible(true);					return;				}				if (GetType() == panel_type::FILE_PANEL && IsFullScreen())				{					ScreenObject::Show();					AnotherPanel->Show();					return;				}			}		}	}	ScreenObject::Show();	ShowScreensCount();}
开发者ID:johnd0e,项目名称:farmanager,代码行数:33,


示例3: switch

void GX_BDirectWindow::MessageReceived(BMessage *msg){	switch(msg->what)	{		case MSG_SYSAPPLICATION_CLOSE:			printf("Close thread BDirectWindow/n");			g_pApp->Kill();		break;		case MSG_SYSAPPLICATION_OPEN:			printf("Resume thread BDirectWindow/n");			resume_thread(m_DrawThread);		break;		case MSG_SYSAPPLICATION_SWITCHFS:			printf("Toggle fullscreen BDirectWindow/n");			SetFullScreen(!IsFullScreen());		break;		default:			g_pApp->WindowMessage(msg);			BDirectWindow::MessageReceived(msg);		break;	}}
开发者ID:cbxbiker61,项目名称:nogravity,代码行数:25,


示例4: SDL_ToggleFS

int PGE_Window::SDL_ToggleFS(SDL_Window *win){    if(!win)        win=window;    if (IsFullScreen(win))    {        // Swith to WINDOWED mode        if (SDL_SetWindowFullscreen(win, SDL_FALSE) < 0)      {         std::cout<<"Setting windowed failed : "<<SDL_GetError()<<std::endl;         return -1;      }        return 0;    }    // Swith to FULLSCREEN mode    if (SDL_SetWindowFullscreen(win, SDL_TRUE) < 0)   {      std::cout<<"Setting fullscreen failed : "<<SDL_GetError()<<std::endl;      return -1;   }   return 1;}
开发者ID:hacheipe399,项目名称:PlatGEnWohl,代码行数:26,


示例5: switch

void GlSpectrumAnalyzerWindow::MessageReceived(BMessage *message){	switch(message->what)	{	case 'file':		{			const char *oldname = name;			const char *newname = message->FindString("name");			name = strdup(newname?newname:"");			free((void*)oldname);		}		break;				case GO_FULLSCREEN:		SetFullScreen( !IsFullScreen() );//		ResizeBy(0,0);		needResize = true;		break;	case B_KEY_DOWN:		{			const char *bytes = message->FindString( "bytes" );			if (bytes[0] == B_ESCAPE && bytes[1] == '/0')				PostMessage(B_QUIT_REQUESTED);			else				BDirectGLWindow::MessageReceived(message);		}		break;	default:		BDirectGLWindow::MessageReceived(message);		break;	}}
开发者ID:HaikuArchives,项目名称:UselessSoundplayPlugins,代码行数:34,


示例6: SDL_ToggleFS

int PGE_Window::SDL_ToggleFS(SDL_Window *win){    if(!win)        win=window;    if (IsFullScreen(win))    {        //Show mouse cursor        if(showCursor)            SDL_ShowCursor(SDL_ENABLE);        // Swith to WINDOWED mode        if (SDL_SetWindowFullscreen(win, SDL_FALSE) < 0)        {            qDebug() <<"Setting windowed failed : "<<SDL_GetError();            return -1;        }        return 0;    }    // Swith to FULLSCREEN mode    if (SDL_SetWindowFullscreen(win, SDL_WINDOW_FULLSCREEN_DESKTOP) < 0)    {        //Hide mouse cursor in full screen mdoe        qDebug() <<"Setting fullscreen failed : "<<SDL_GetError();        return -1;    }    SDL_ShowCursor(SDL_DISABLE);    return 1;}
开发者ID:tcvicio,项目名称:PGE-Project,代码行数:30,


示例7: OnUpdateTitle

void GSFrame::OnUpdateTitle( wxTimerEvent& evt ){#ifdef __linux__	// Important Linux note: When the title is set in fullscreen the window is redrawn. Unfortunately	// an intermediate white screen appears too which leads to a very annoying flickering.	if (IsFullScreen()) return;#endif	AppConfig::UiTemplateOptions& templates = g_Conf->Templates;	double fps = wxGetApp().FpsManager.GetFramerate();	// The "not PAL" case covers both Region_NTSC and Region_NTSC_PROGRESSIVE	float per = gsRegionMode == Region_PAL ? (fps * 100) / EmuConfig.GS.FrameratePAL.ToFloat() : (fps * 100) / EmuConfig.GS.FramerateNTSC.ToFloat();	char gsDest[128];	gsDest[0] = 0; // No need to set whole array to NULL.	GSgetTitleInfo2( gsDest, sizeof(gsDest) );	wxString limiterStr = templates.LimiterUnlimited;	if( g_Conf->EmuOptions.GS.FrameLimitEnable )	{		switch( g_LimiterMode )		{			case Limit_Nominal:	limiterStr = templates.LimiterNormal; break;			case Limit_Turbo:	limiterStr = templates.LimiterTurbo; break;			case Limit_Slomo:	limiterStr = templates.LimiterSlowmo; break;		}	}	FastFormatUnicode cpuUsage;	if (m_CpuUsage.IsImplemented()) {		m_CpuUsage.UpdateStats();		cpuUsage.Write(L"EE: %3d%%", m_CpuUsage.GetEEcorePct());		cpuUsage.Write(L" | GS: %3d%%", m_CpuUsage.GetGsPct());		if (THREAD_VU1)			cpuUsage.Write(L" | VU: %3d%%", m_CpuUsage.GetVUPct());		pxNonReleaseCode(cpuUsage.Write(L" | UI: %3d%%", m_CpuUsage.GetGuiPct()));	}	const u64& smode2 = *(u64*)PS2GS_BASE(GS_SMODE2);	wxString omodef = (smode2 & 2) ? templates.OutputFrame : templates.OutputField;	wxString omodei = (smode2 & 1) ? templates.OutputInterlaced : templates.OutputProgressive;	wxString title = templates.TitleTemplate;	title.Replace(L"${slot}",		pxsFmt(L"%d", States_GetCurrentSlot()));	title.Replace(L"${limiter}",	limiterStr);	title.Replace(L"${speed}",		pxsFmt(L"%3d%%", lround(per)));	title.Replace(L"${vfps}",		pxsFmt(L"%.02f", fps));	title.Replace(L"${cpuusage}",	cpuUsage);	title.Replace(L"${omodef}",		omodef);	title.Replace(L"${omodei}",		omodei);	title.Replace(L"${gsdx}",		fromUTF8(gsDest));	if (CoreThread.IsPaused())		title = templates.Paused + title;	SetTitle(title);}
开发者ID:Fordi,项目名称:pcsx2,代码行数:60,


示例8: setFullScreen

int PGE_Window::setFullScreen(bool fs){    if(window==NULL) return -1;    if(fs != IsFullScreen(window))    {        if(fs)        {            // Swith to FULLSCREEN mode            if (SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN_DESKTOP) < 0)            {                //Hide mouse cursor in full screen mdoe                qDebug() <<"Setting fullscreen failed : "<<SDL_GetError();                return -1;            }            SDL_ShowCursor(SDL_DISABLE);            return 1;        }        else        {            //Show mouse cursor            if(showCursor)                SDL_ShowCursor(SDL_ENABLE);            // Swith to WINDOWED mode            if (SDL_SetWindowFullscreen(window, SDL_FALSE) < 0)            {                qDebug() <<"Setting windowed failed : "<<SDL_GetError();                return -1;            }            return 0;        }    }    return 0;}
开发者ID:tcvicio,项目名称:PGE-Project,代码行数:34,


示例9: switch

/***************************************************************************** * VideoWindow::_SetToSettings *****************************************************************************/voidVideoWindow::_SetToSettings(){    // adjust dimensions    uint32_t mode = RESIZE_100;    switch (fSettings->VideoSize())    {        case VideoSettings::SIZE_50:            mode = RESIZE_50;            break;        case VideoSettings::SIZE_200:            mode = RESIZE_200;            break;        case VideoSettings::SIZE_100:        case VideoSettings::SIZE_OTHER:        default:            break;    }    bool fullscreen = IsFullScreen();    // remember settings    _SetVideoSize(mode);                // because this will reset settings    // the fullscreen status is reflected in the settings,    // but not yet in the windows state    if (fullscreen)        SetFullScreen(true);    if (fSettings->HasFlags(VideoSettings::FLAG_ON_TOP_ALL))        fCachedFeel = B_FLOATING_ALL_WINDOW_FEEL;    else        fCachedFeel = B_NORMAL_WINDOW_FEEL;    SetFeel(fCachedFeel);}
开发者ID:shanewfx,项目名称:vlc-arib,代码行数:33,


示例10: CorrectAspectRatio

/***************************************************************************** * VideoWindow::FrameResized *****************************************************************************/voidVideoWindow::FrameResized( float width, float height ){    int32_t useWidth = CorrectAspectRatio() ? i_width : fTrueWidth;    int32_t useHeight = CorrectAspectRatio() ? i_height : fTrueHeight;    float out_width, out_height;    float out_left, out_top;    float width_scale = width / useWidth;    float height_scale = height / useHeight;    if (width_scale <= height_scale)    {        out_width = (useWidth * width_scale);        out_height = (useHeight * width_scale);        out_left = 0;        out_top = (height - out_height) / 2;    }    else   /* if the height is proportionally smaller */    {        out_width = (useWidth * height_scale);        out_height = (useHeight * height_scale);        out_top = 0;        out_left = (width - out_width) / 2;    }    view->MoveTo(out_left,out_top);    view->ResizeTo(out_width, out_height);    if (!IsFullScreen())        winSize = Frame();}
开发者ID:shanewfx,项目名称:vlc-arib,代码行数:33,


示例11: Frame

/***************************************************************************** * VideoWindow::FrameMoved *****************************************************************************/voidVideoWindow::FrameMoved(BPoint origin){    if (IsFullScreen())        return ;    winSize = Frame();}
开发者ID:shanewfx,项目名称:vlc-arib,代码行数:10,


示例12: IsFullScreen

HRESULT FMPlayerDShow::Start(){	HRESULT hr = E_FAIL; 	CComQIPtr<IFilterGraph> pFilterGraph = m_FilterGraph; 	if (pFilterGraph == NULL)		return E_FAIL; 	m_MediaEvent = pFilterGraph; 	m_pBV		 = pFilterGraph; 	BOOL bIsFullScreen = IsFullScreen(); 	SetParentWnd(m_hWndParent); 	if (bIsFullScreen)		SetFullScreen(TRUE); 	if (m_MediaControl != NULL)	{		hr = SeekPosition(m_Offset);		m_Offset = 0; 	}	return hr; }
开发者ID:codeboost,项目名称:libertv,代码行数:26,


示例13: ToggleFullScreen

void VLCWindowsManager::ToggleFullScreen(){    if( IsFullScreen() ) {        EndFullScreen();    } else {        StartFullScreen();    }}
开发者ID:hythyt9898,项目名称:fbvlc,代码行数:8,


示例14: ShowFullScreen

void CMainFrame::OnFullScreen(){    ShowFullScreen();    if (!IsFullScreen ())    {        AdjustClientArea ();    }}
开发者ID:zxlooong,项目名称:bcgexp,代码行数:9,


示例15: switch

void GSFrame::OnKeyDown(wxKeyEvent& event){	switch (event.GetKeyCode())	{	case WXK_RETURN: if (event.AltDown()) { OnFullScreen(); return; } break;	case WXK_ESCAPE: if (IsFullScreen()) { ShowFullScreen(false); return; } break;	}	event.Skip();}
开发者ID:Apicio,项目名称:rpcs3,代码行数:9,


示例16: OnUpdateTitle

void GSFrame::OnUpdateTitle( wxTimerEvent& evt ){#ifdef __linux__    // Important Linux note: When the title is set in fullscreen the window is redrawn. Unfortunately    // an intermediate white screen appears too which leads to a very annoying flickering.    if (IsFullScreen()) return;#endif    double fps = wxGetApp().FpsManager.GetFramerate();    char gsDest[128];    GSgetTitleInfo2( gsDest, sizeof(gsDest) );    const wxChar* limiterStr = L"None";    if( g_Conf->EmuOptions.GS.FrameLimitEnable )    {        switch( g_LimiterMode )        {        case Limit_Nominal:            limiterStr = L"Normal";            break;        case Limit_Turbo:            limiterStr = L"Turbo";            break;        case Limit_Slomo:            limiterStr = L"Slomo";            break;        }    }    FastFormatUnicode cpuUsage;    if (m_CpuUsage.IsImplemented()) {        m_CpuUsage.UpdateStats();        if (THREAD_VU1) { // Display VU thread's usage            cpuUsage.Write(L" | EE: %3d%% | GS: %3d%% | VU: %3d%% | UI: %3d%%",                           m_CpuUsage.GetEEcorePct(),	m_CpuUsage.GetGsPct(),                           m_CpuUsage.GetVUPct(),		m_CpuUsage.GetGuiPct());        }        else {            cpuUsage.Write(L" | EE: %3d%% | GS: %3d%% | UI: %3d%%",                           m_CpuUsage.GetEEcorePct(),	m_CpuUsage.GetGsPct(),                           m_CpuUsage.GetGuiPct());        }    }    const u64& smode2 = *(u64*)PS2GS_BASE(GS_SMODE2);    SetTitle( pxsFmt( L"%s | %ls (%ls) | Limiter: %ls | fps: %6.02f%ls | State %d",                      WX_STR(fromUTF8(gsDest)),                      (smode2 & 1) ? L"Interlaced" : L"Progressive",                      (smode2 & 2) ? L"frame" : L"field",                      limiterStr, fps, cpuUsage.c_str(), States_GetCurrentSlot() )            );    //States_GetCurrentSlot()}
开发者ID:hy9902,项目名称:pcsx2,代码行数:57,


示例17: OnUpdateViewFullScreen

void CMainFrame::OnUpdateViewFullScreen(CCmdUI* pCmdUI) {	pCmdUI->Enable();	if (IsFullScreen())		pCmdUI->SetCheck();	else		pCmdUI->SetCheck(0);}
开发者ID:viticm,项目名称:pap2,代码行数:10,


示例18: IsFullScreen

BOOL CMainFrame::PreTranslateMessage(MSG* pMsg){    BOOL isFullScreen = IsFullScreen();    if (!isFullScreen)    {        if (pMsg->message == WM_SYSKEYUP)        {            BOOL  isCtrlPressed =  (0x8000 & GetKeyState(VK_CONTROL)) != 0;            BOOL  isShiftPressed = (0x8000 & GetKeyState(VK_SHIFT)) != 0;            if (pMsg->wParam == VK_MENU ||                    (pMsg->wParam == VK_F10 && !isCtrlPressed && !isShiftPressed))            {                if (m_wndMenuBar.IsTempVisible ())                {                    OnViewMenuBar();                }                else if (!m_wndMenuBar.IsWindowVisible ())                {                    OnViewMenuBar();                    m_wndMenuBar.SetFocus ();                    m_wndMenuBar.SetTempVisible (TRUE);                    return TRUE;                }            }        }    }    BOOL bRes = CMDIFrameWnd::PreTranslateMessage(pMsg);    if (isFullScreen)    {        if (pMsg->message == WM_KEYDOWN &&                pMsg->wParam == VK_ESCAPE && !IsFullScreen())        {            AdjustClientArea ();        }    }    return bRes;}
开发者ID:zxlooong,项目名称:bcgexp,代码行数:42,


示例19: OnGetMinMaxInfo

void CMainFrame::OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI) {	if (IsFullScreen())	{		lpMMI->ptMaxSize.y = m_FullScreenWindowRect.Height();		lpMMI->ptMaxTrackSize.y = lpMMI->ptMaxSize.y;		lpMMI->ptMaxSize.x = m_FullScreenWindowRect.Width();		lpMMI->ptMaxTrackSize.x = lpMMI->ptMaxSize.x;	}}
开发者ID:viticm,项目名称:pap2,代码行数:11,


示例20: OnCloseFrame

void PqwxFrame::OnCloseFrame(wxCloseEvent& event) {  if (event.CanVeto()) {    if (!documentsBook->ConfirmCloseAll()) {      event.Veto();      return;    }  }  if (!IsFullScreen())    SaveFrameGeometry();  Destroy();}
开发者ID:araqnid,项目名称:pqwx,代码行数:11,


示例21: OnGetMinMaxInfo

//****************************************************************************************void CBCGPFrameWnd::OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI){    if (IsFullScreen ())    {        m_Impl.m_FullScreenMgr.OnGetMinMaxInfo (lpMMI);    }    else    {        m_Impl.OnGetMinMaxInfo (lpMMI);        CFrameWnd::OnGetMinMaxInfo (lpMMI);    }}
开发者ID:cugxiangzhenwei,项目名称:WorkPlatForm,代码行数:13,


示例22: setCursorVisibly

void PGE_Window::setCursorVisibly(bool viz){    showCursor=viz;    if(window!=NULL)    {        if(!IsFullScreen(window))        {            if(showCursor)                SDL_ShowCursor(SDL_ENABLE);            else                SDL_ShowCursor(SDL_DISABLE);        }    }}
开发者ID:tcvicio,项目名称:PGE-Project,代码行数:14,


示例23: MessageReceived

/*	FUNCTION:		MainWindow :: MessageReceived	ARGUMENTS:		message	RETURN:			n/a	DESCRIPTION:	Called by BeOS*/void MainWindow :: MessageReceived(BMessage *message){    switch (message->what)    {    case MSG_FULLSCREEN:        SetFullScreen(!IsFullScreen());        break;    /*	TODO - Due to a bug when creating a 2nd BGLView in Haiku, I've decided to spawn a new window    	instead of creating a new BGLView (and using AddChild(new_view) / RemoveChild(old_view).    	Under Zeta, there is no problem replacing the current view with a new view.    */    case MSG_SHAPE_BOOK:        new MainWindow(BRect(50, 50, 400+50, 300+50), BOOK);        break;    case MSG_SHAPE_CUBE:        new MainWindow(BRect(50, 50, 400+50, 300+50), CUBE);        break;    case MSG_SHAPE_SPHERE:        new MainWindow(BRect(50, 50, 400+50, 300+50), SPHERE);        break;    case MSG_OPTION_WIREFRAME:        fOptionWireframe = !fOptionWireframe;        fCurrentView->ToggleWireframe(fOptionWireframe);        break;    case 'DATA':	// user drag/dropped file from Tracker    {        BPoint point;        message->FindPoint("_drop_point_", &point);        BRect frame = Frame();        point.x -= frame.left;        point.y -= frame.top;        entry_ref aRef;        message->FindRef("refs", &aRef);        fCurrentView->DragDrop(&aRef, point.x, point.y);        break;    }    default:        BDirectWindow::MessageReceived(message);        break;    }}
开发者ID:yunxiaoxiao110,项目名称:haiku,代码行数:55,


示例24: OnMenu

void MainFrame::OnMenu(wxContextMenuEvent &event){	if (IsFullScreen() && ctx_menu)	{		wxPoint p(event.GetPosition());#if 0 // wx actually recommends ignoring the position		if (p != wxDefaultPosition)			p = ScreenToClient(p);#endif		PopupMenu(ctx_menu, p);	}}
开发者ID:MrSwiss,项目名称:visualboyadvance-m,代码行数:14,


示例25: GetTitle

void FileViewer::ShowStatus(){	string strName;	string strStatus;	if (!IsTitleBarVisible())		return;	GetTitle(strName);	int NameLength=ScrX-43; //???41	if (Opt.ViewerEditorClock && IsFullScreen())		NameLength-=6;	if (NameLength<20)		NameLength=20;	TruncPathStr(strName, NameLength);	const wchar_t *lpwszStatusFormat = L"%-*s %5u %13I64u %7.7s %-4I64d %s%3d%%";	strStatus.Format(	    lpwszStatusFormat,	    NameLength,	    strName.CPtr(),	    View.VM.CodePage,	    View.FileSize,	    MSG(MViewerStatusCol),	    View.LeftPos,	    Opt.ViewerEditorClock ? L"":L" ",	    (View.LastPage ? 100:ToPercent64(View.FilePos,View.FileSize))	);	SetColor(COL_VIEWERSTATUS);	GotoXY(X1,Y1);	FS<<fmt::LeftAlign()<<fmt::Width(View.Width+(View.ViOpt.ShowScrollbar?1:0))<<fmt::Precision(View.Width+(View.ViOpt.ShowScrollbar?1:0))<<strStatus;	if (Opt.ViewerEditorClock && IsFullScreen())		ShowTime(FALSE);}
开发者ID:alexlav,项目名称:conemu,代码行数:37,



注:本文中的IsFullScreen函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ IsGameObjectValid函数代码示例
C++ IsFocused函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。