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

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

51自学网 2021-06-03 09:50:05
  C++
这篇教程C++ w_max函数代码示例写得很实用,希望能帮到您。

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

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

示例1: CMoviePlayerSetup

CMoviePlayerMenue::CMoviePlayerMenue(){	moviePlayerSetup = new CMoviePlayerSetup(&toNotify);	width = w_max (500, 100);	selected = -1;}
开发者ID:silid,项目名称:tuxbox-cvs-apps,代码行数:7,


示例2: w_max

CAdZapMenu::CAdZapMenu(){    if (azm)	return;    azm = this;    frameBuffer = CFrameBuffer::getInstance();    width = w_max (40, 10);    hheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();    mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();    height = hheight + 13 * mheight + 10;    x = (((g_settings.screen_EndX - g_settings.screen_StartX) -	  width) / 2) + g_settings.screen_StartX;    y = (((g_settings.screen_EndY - g_settings.screen_StartY) -	  height) / 2) + g_settings.screen_StartY;    sem_init(&sem, 0, 0);    if (pthread_create(&thrAdZap, 0, CAdZapMenu::Run, NULL) != 0) {	fprintf(stderr, "ERROR: pthread_create(CAdZapMenu::CAdZapMenu)/n");	running = false;    } else	running = true;    channelId = -1;    armed = false;    monitor = false;    alerted = false;}
开发者ID:FFTEAM,项目名称:evolux-spark-sh4,代码行数:28,


示例3: w_max

void CEpgData::start(){	// dimension	ox  = w_max ( (frameBuffer->getScreenWidth() / 20 * 17), (frameBuffer->getScreenWidth() / 20 ));	oy = h_max ( (frameBuffer->getScreenHeight() / 20 * 16), (frameBuffer->getScreenHeight() / 20));		sx = (((g_settings.screen_EndX - g_settings.screen_StartX) - ox) / 2) + g_settings.screen_StartX;	//top	topheight     = g_Font[SNeutrinoSettings::FONT_TYPE_EPG_TITLE]->getHeight();	topboxheight  = topheight + 6;	//bottom	botheight     = g_Font[SNeutrinoSettings::FONT_TYPE_EPG_DATE]->getHeight();	botboxheight  = botheight + 6;		//epg text fenster	medlineheight = g_Font[SNeutrinoSettings::FONT_TYPE_EPG_INFO1]->getHeight();	medlinecount  = (oy - topboxheight - botboxheight)/medlineheight;		// this is the text box height - and the height of the scroll bar	sb = medlinecount * medlineheight;	oy = botboxheight + medlinecount*medlineheight; // recalculate //FIXME		//	int icon_w;	int icon_h;		frameBuffer->getIconSize(NEUTRINO_ICON_BUTTON_RED, &icon_w, &icon_h);	int fheight = std::max(icon_h, g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getHeight()) + 6;	sy = (((g_settings.screen_EndY - g_settings.screen_StartY) - (oy - topboxheight + fheight) ) / 2) + g_settings.screen_StartY; //30:buttonbar	toph = topboxheight;}
开发者ID:vitmod,项目名称:neutrinohd2,代码行数:35,


示例4: CListBox

void CTestMenu::testCListBoxDetailsTitleInfo(){	CListBox * listBox = new CListBox("listBoxDetailsTitleInfo", w_max ( (CFrameBuffer::getInstance()->getScreenWidth() / 20 * 17), (CFrameBuffer::getInstance()->getScreenWidth() / 20 )), h_max ( (CFrameBuffer::getInstance()->getScreenHeight() / 20 * 16), (CFrameBuffer::getInstance()->getScreenHeight() / 20)), true, true, true);		listBox->exec(NULL, "");	delete listBox;}
开发者ID:darwinbeing,项目名称:NHD2,代码行数:7,


示例5: w_max

CWebTVSetup::CWebTVSetup(){	width = w_max (40, 10);	selected = -1;	item_offset = 0;	changed = false;}
开发者ID:benny-ua,项目名称:martiis-neutrino-mp,代码行数:7,


示例6: w_max

// construktorCSysInfoWidget::CSysInfoWidget(int m){	frameBuffer = CFrameBuffer::getInstance();		selected = 0;		// windows size	width  = w_max ( (frameBuffer->getScreenWidth() / 20 * 17), (frameBuffer->getScreenWidth() / 20 ));	height = h_max ( (frameBuffer->getScreenHeight() / 20 * 16), (frameBuffer->getScreenHeight() / 20));		//head height	frameBuffer->getIconSize(NEUTRINO_ICON_SETTINGS, &icon_head_w, &icon_head_h);	theight = std::max(g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST]->getHeight(), icon_head_h) + 6;       	//foot height	frameBuffer->getIconSize(NEUTRINO_ICON_BUTTON_RED, &icon_foot_w, &icon_foot_h);	ButtonHeight = std::max(g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getHeight(), icon_foot_h) + 6;		// item height	fheight = g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST]->getHeight();	listmaxshow = (height - theight)/fheight;		// recalculate height	height = theight + listmaxshow*fheight; // recalc height		// coordinate	x = (((g_settings.screen_EndX- g_settings.screen_StartX)-width) / 2) + g_settings.screen_StartX;	y = (((g_settings.screen_EndY- g_settings.screen_StartY)-height) / 2) + g_settings.screen_StartY;		//	liststart = 0;	state = beDefault;	mode = m;}
开发者ID:vitmod,项目名称:neutrinohd2,代码行数:35,


示例7: w_max

void CEpgData::start(){	ox = w_max (768, 70);	oy = h_max (576, 50 + 30); // 30 for the bottom button box.		sx = (((g_settings.screen_EndX - g_settings.screen_StartX) -ox) / 2) + g_settings.screen_StartX;	//top	topheight     = g_Font[SNeutrinoSettings::FONT_TYPE_EPG_TITLE]->getHeight();	topboxheight  = topheight + 6;	if(topboxheight < PIC_H) 		topboxheight = PIC_H;	//bottom	botheight     = g_Font[SNeutrinoSettings::FONT_TYPE_EPG_DATE]->getHeight();	botboxheight  = botheight + 6;		//epg text fenster	medlineheight = g_Font[SNeutrinoSettings::FONT_TYPE_EPG_INFO1]->getHeight();	//medlinecount  = (oy - botboxheight)/medlineheight;	medlinecount  = (oy - topboxheight - botboxheight)/medlineheight;		//sb = oy - topboxheight - botboxheight;	/* this is the text box height - and the height of the scroll bar */	sb = medlinecount * medlineheight;	oy = botboxheight + medlinecount*medlineheight; // recalculate //FIXME		sy = (((g_settings.screen_EndY-g_settings.screen_StartY)-(oy- topboxheight) ) / 2) + g_settings.screen_StartY;	toph = topboxheight;}
开发者ID:FFTEAM,项目名称:evolux-spark-sh4,代码行数:32,


示例8: w_max

CAudioSetup::CAudioSetup(bool wizard_mode){	is_wizard = wizard_mode;	width = w_max (40, 10);	selected = -1;}
开发者ID:Coolstreamto,项目名称:Coolto,代码行数:7,


示例9: sort

void CTimerList::updateEvents(void){	timerlist.clear();	Timer->getTimerList (timerlist);	sort(timerlist.begin(), timerlist.end());	theight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();	fheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();	//get footerHeight from paintButtons	footerHeight = ::paintButtons(TimerListButtons, TimerListButtonsCount, 0, 0, 0, 0, 0, false);	width = w_max(g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getWidth()*56, 20);	height = frameBuffer->getScreenHeight() - (2*theight);	// max height	listmaxshow = (height-theight)/(fheight*2);	height = theight+listmaxshow*fheight*2+footerHeight;	// recalc height	if (timerlist.size() < listmaxshow)	{		listmaxshow=timerlist.size();		height = theight+listmaxshow*fheight*2+footerHeight;	// recalc height	}	if (selected==timerlist.size() && !(timerlist.empty()))	{		selected=timerlist.size()-1;		liststart = (selected/listmaxshow)*listmaxshow;	}	x = getScreenStartX(width);	y = getScreenStartY(height);}
开发者ID:coolstreamtech,项目名称:cst-public-gui-neutrino,代码行数:32,


示例10: w_max

CUserMenuSetup::CUserMenuSetup(neutrino_locale_t menue_title, int menue_button){	local = menue_title;	button = menue_button;	max_char = 24;	width = w_max (40, 10);	if (menue_button < (int) g_settings.usermenu.size())		pref_name = g_settings.usermenu[button]->title; //set current button name as prefered name	forwarder = NULL;	for (int i = 0; usermenu_items[i].key != SNeutrinoSettings::ITEM_MAX; i++) {		const char *loc = g_Locale->getText(usermenu_items[i].value);		if (usermenu_items[i].show)			options.push_back(loc);		keys[loc] = to_string(usermenu_items[i].key);		vals[keys[loc]] = loc;	}	int number_of_plugins = g_PluginList->getNumberOfPlugins();	for (int count = 0; count < number_of_plugins; count++) {		const char *loc = g_PluginList->getName(count);		const char *key = g_PluginList->getFileName(count);		if (loc && *loc && key && *key) {			options.push_back(loc);			keys[loc] = key;			vals[keys[loc]] = loc;		}	}	std::sort(options.begin(), options.end());}
开发者ID:FFTEAM,项目名称:neutrino-mp-cst-next,代码行数:30,


示例11: themefile

CThemes::CThemes(): themefile('/t'){	width 	= w_max (40, 10);	notifier = NULL;	hasThemeChanged = false;}
开发者ID:benny-ua,项目名称:martiis-neutrino-mp,代码行数:7,


示例12: w_max

CScanSetup::CScanSetup(){	width = w_max (500, 100);	selected = -1;	sat_list_size = 0;	provider_list_size = 0;}
开发者ID:OpenDMM,项目名称:tuxbox-apps,代码行数:7,


示例13: w_max

COsdLangSetup::COsdLangSetup(bool wizard_mode){	is_wizard = wizard_mode;	width = w_max (45, 10);	tzNotifier = NULL;}
开发者ID:Coolstreamto,项目名称:Coolto,代码行数:7,


示例14: w_max

int CBEChannelSelectWidget::exec(CMenuTarget* parent, const std::string & actionKey){    //width  = w_max (500, 0);    //height = h_max (440, 50);    int fw = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getWidth();    int fh = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getHeight();    width  = w_max (64 * fw, 20);    height = h_max (20 * fh, 50);    listmaxshow = (height-theight-0)/fheight;    height = theight+0+listmaxshow*fheight; // recalc height    x = frameBuffer->getScreenX() + (frameBuffer->getScreenWidth() - width) / 2;    y = frameBuffer->getScreenY() + (frameBuffer->getScreenHeight() - height) / 2;    bouquetChannels = mode == CZapitClient::MODE_TV ? &(g_bouquetManager->Bouquets[bouquet]->tvChannels) : &(g_bouquetManager->Bouquets[bouquet]->radioChannels);    Channels.clear();    if (mode == CZapitClient::MODE_RADIO) {        for (tallchans_iterator it = allchans.begin(); it != allchans.end(); it++)            if (it->second.getServiceType() == ST_DIGITAL_RADIO_SOUND_SERVICE)                Channels.push_back(&(it->second));    } else {        for (tallchans_iterator it = allchans.begin(); it != allchans.end(); it++)            if (it->second.getServiceType() != ST_DIGITAL_RADIO_SOUND_SERVICE)                Channels.push_back(&(it->second));    }    sort(Channels.begin(), Channels.end(), CmpChannelByChName());    return CListBox::exec(parent, actionKey);}
开发者ID:popazerty,项目名称:evolux-spark-sh4,代码行数:30,


示例15: w_max

CDriverBootSetup::CDriverBootSetup(const neutrino_locale_t title, const char * const IconName){	menue_title = title;	menue_icon = IconName;	width = w_max (500, 100);	selected = -1;}
开发者ID:UkCvs,项目名称:commando,代码行数:8,


示例16: w_max

CPluginList::CPluginList(const neutrino_locale_t Title, const uint32_t listtype){	title = Title;	pluginlisttype = listtype;	width = w_max (40, 10);	selected = -1;	number = -1;}
开发者ID:FFTEAM,项目名称:neutrino-mp-cst-next,代码行数:8,


示例17: w_max

CFlashUpdate::CFlashUpdate()	:CProgressWindow(){	width = w_max (40, 10); 	setTitle(LOCALE_FLASHUPDATE_HEAD);	sysfs = CMTDInfo::getInstance()->findMTDsystem();	printf("Mtd partition to update: %s/n", sysfs.c_str());}
开发者ID:FFTEAM,项目名称:evolux-spark-sh4,代码行数:8,


示例18: w_max

CMiscMenue::CMiscMenue(const neutrino_locale_t title, const char * const IconName){	menue_title = title;	menue_icon = IconName;	width = w_max (500, 100);	selected = -1;}
开发者ID:silid,项目名称:tuxbox-cvs-apps,代码行数:8,


示例19: w_max

CUserMenuSetup::CUserMenuSetup(neutrino_locale_t menue_title, int menue_button){	local = menue_title;	button = menue_button;	width = w_max (500, 100);	selected = -1;}
开发者ID:silid,项目名称:tuxbox-cvs-apps,代码行数:8,


示例20: w_max

CProxySetup::CProxySetup(const neutrino_locale_t title, const char * const IconName ){	menue_title = title != NONEXISTANT_LOCALE ? title : LOCALE_FLASHUPDATE_PROXYSERVER_SEP;	menue_icon = IconName != NEUTRINO_ICON_SETTINGS ? IconName : NEUTRINO_ICON_SETTINGS;	width = w_max (500, 100);	selected = -1;}
开发者ID:OpenDMM,项目名称:tuxbox-apps,代码行数:8,


示例21: setMenuTitel

CMediaPlayerMenu::CMediaPlayerMenu(){	setMenuTitel();	width = w_max (40, 10); //%		audioPlayer 	= NULL;	inetPlayer 	= NULL;}
开发者ID:benny-ua,项目名称:martiis-neutrino-mp,代码行数:9,


示例22: w_max

CMiscMenue::CMiscMenue(){	width = w_max (40, 10);	epg_save = NULL;	epg_save_standby = NULL;	epg_save_frequently = NULL;	epg_read = NULL;	epg_dir = NULL;}
开发者ID:FFTEAM,项目名称:neutrino-mp-cst-next,代码行数:10,


示例23: w_max

CNetworkSetup::CNetworkSetup(bool wizard_mode){	networkConfig = CNetworkConfig::getInstance();	is_wizard = wizard_mode;	width = w_max (40, 10);	//readNetworkSettings();}
开发者ID:Mansouu,项目名称:neutrino-mp-next,代码行数:10,


示例24: w_max

COsdLangSetup::COsdLangSetup(){	frameBuffer = CFrameBuffer::getInstance();	width = w_max (500, 100);	hheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();	mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();	height 	= hheight+13*mheight+ 10;	x	= getScreenStartX (width);	y	= getScreenStartY (height);}
开发者ID:UkCvs,项目名称:ukcvs,代码行数:11,


示例25: w_max

CRecordSetup::CRecordSetup(){	frameBuffer = CFrameBuffer::getInstance();	width = w_max (500, 100);	hheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();	mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();	height = hheight+13*mheight+ 10;	x=(((g_settings.screen_EndX- g_settings.screen_StartX)-width) / 2) + g_settings.screen_StartX;	y=(((g_settings.screen_EndY- g_settings.screen_StartY)-height) / 2) + g_settings.screen_StartY;}
开发者ID:ChakaZulu,项目名称:tuxbox_apps,代码行数:11,


示例26: w_max

CStreamInfo::CStreamInfo(){	frameBuffer = CFrameBuffer::getInstance();	hheight     = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();	mheight     = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();	width       = w_max (400, 50);	height      = h_max (hheight + 14 * mheight + 10, 0);	x = getScreenStartX (width);	y = getScreenStartY (height);}
开发者ID:UkCvs,项目名称:commando,代码行数:11,


示例27: w_max

CVideoSetup::CVideoSetup(){	SyncControlerForwarder = NULL;	VcrVideoOutSignalOptionChooser = NULL;	width = w_max (500, 100);	selected = -1;	video_out_signal = g_Controld->getVideoOutput();	vcr_video_out_signal = g_Controld->getVCROutput();}
开发者ID:UkCvs,项目名称:commando,代码行数:11,


示例28: configfile

CPersonalizeGui::CPersonalizeGui(): configfile('/t'){	frameBuffer = CFrameBuffer::getInstance();	width = w_max (710, 100);	hheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();	mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();	height = hheight+13*mheight+ 10;	x=(((g_settings.screen_EndX- g_settings.screen_StartX)-width) / 2) + g_settings.screen_StartX;	y=(((g_settings.screen_EndY- g_settings.screen_StartY)-height) / 2) + g_settings.screen_StartY;}
开发者ID:ChakaZulu,项目名称:my_tuxbox_apps,代码行数:12,


示例29: themefile

CThemes::CThemes(const neutrino_locale_t title, const char * const IconName): themefile('/t'){	colorSetupNotifier = new CColorSetupNotifier();	menue_title = title;	menue_icon = IconName;	width = w_max (500, 100);	selected = -1;	hasThemeChanged = false;}
开发者ID:silid,项目名称:tuxbox-cvs-apps,代码行数:13,


示例30: themefile

CThemes::CThemes(): themefile('/t'){	frameBuffer = CFrameBuffer::getInstance();	width 	= w_max (500, 100);	hheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();	mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();	height = hheight+13*mheight+ 10;	x	= getScreenStartX (width);	y	= getScreenStartY (height);	hasThemeChanged = false;}
开发者ID:UkCvs,项目名称:ukcvs,代码行数:13,



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


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