• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ IsFullScreen函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了IsFullScreen函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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,代码来源:toplevel.cpp


示例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,代码来源:panel.cpp


示例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,代码来源:gx_bdirectwindow.cpp


示例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,代码来源:window.cpp


示例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,代码来源:glSpectrumAnalyzer.cpp


示例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,代码来源:window.cpp


示例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,代码来源:FrameForGS.cpp


示例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,代码来源:window.cpp


示例9: switch

/*****************************************************************************
 * VideoWindow::_SetToSettings
 *****************************************************************************/
void
VideoWindow::_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,代码来源:VideoOutput.cpp


示例10: CorrectAspectRatio

/*****************************************************************************
 * VideoWindow::FrameResized
 *****************************************************************************/
void
VideoWindow::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,代码来源:VideoOutput.cpp


示例11: Frame

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


示例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,代码来源:FMPlayerDShow.cpp


示例13: ToggleFullScreen

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


示例14: ShowFullScreen

void CMainFrame::OnFullScreen()
{
    ShowFullScreen();

    if (!IsFullScreen ())
    {
        AdjustClientArea ();
    }
}
开发者ID:zxlooong,项目名称:bcgexp,代码行数:9,代码来源:MainFrm.cpp


示例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,代码来源:GSFrame.cpp


示例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,代码来源:FrameForGS.cpp


示例17: OnUpdateViewFullScreen

void CMainFrame::OnUpdateViewFullScreen(CCmdUI* pCmdUI) 
{
	pCmdUI->Enable();

	if (IsFullScreen())
		pCmdUI->SetCheck();
	else
		pCmdUI->SetCheck(0);

}
开发者ID:viticm,项目名称:pap2,代码行数:10,代码来源:MainFrm.cpp


示例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,代码来源:MainFrm.cpp


示例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,代码来源:MainFrm.cpp


示例20: OnCloseFrame

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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ IsGameObjectValid函数代码示例发布时间:2022-05-30
下一篇:
C++ IsFocused函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap