本文整理汇总了C++中show_window函数的典型用法代码示例。如果您正苦于以下问题:C++ show_window函数的具体用法?C++ show_window怎么用?C++ show_window使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了show_window函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: add_tool
int _1080to540Window::create_objects()
{
int x = 10, y = 10;
add_tool(odd_first = new _1080to540Option(client, this, 1, x, y, _("Odd field first")));
y += 25;
add_tool(even_first = new _1080to540Option(client, this, 0, x, y, _("Even field first")));
show_window();
flush();
return 0;
}
开发者ID:beequ7et,项目名称:cinelerra-cv,代码行数:12,代码来源:1080to540.C
示例2: add_subwindow
void DelayAudioWindow::create_objects()
{
add_subwindow(new BC_Title(10, 10, _("Delay seconds:")));
length = new DelayAudioTextBox(
plugin,
this,
10,
40);
length->create_objects();
update_gui();
show_window();
}
开发者ID:petterreinholdtsen,项目名称:cinelerra-hv,代码行数:12,代码来源:delayaudio.C
示例3: lock_window
void ManualGotoWindow::reset_data(double position)
{
lock_window();
reposition_window(
mwindow->gui->get_abs_cursor_x(1) - 250 / 2,
mwindow->gui->get_abs_cursor_y(1) - 80 / 2);
set_entered_position_sec(position);
signtitle->update("=");
activate();
show_window();
unlock_window();
}
开发者ID:petterreinholdtsen,项目名称:cinelerra-cv,代码行数:12,代码来源:manualgoto.C
示例4: add_subwindow
int BlurZoomWindow::create_objects()
{
int x = 10, y = 10;
add_subwindow(new BC_Title(x, y,
_("RadioacTV from EffectTV\n"
"Copyright (C) 2001 FUKUCHI Kentarou")
));
show_window();
flush();
return 0;
}
开发者ID:petterreinholdtsen,项目名称:cinelerra-cv,代码行数:12,代码来源:blurzoomwindow.C
示例5: add_tool
void BC_NewFolder::create_objects()
{
int x = 10, y = 10;
add_tool(new BC_Title(x, y, _("Enter the name of the folder:")));
y += 20;
add_subwindow(textbox = new BC_TextBox(x, y, 300, 1, _("Untitled")));
y += 30;
add_subwindow(new BC_OKButton(this));
x = get_w() - 100;
add_subwindow(new BC_CancelButton(this));
show_window();
}
开发者ID:Cuchulain,项目名称:cinelerra,代码行数:12,代码来源:bcnewfolder.C
示例6: add_subwindow
void ReFrameWindow::create_objects()
{
int x = 10, y = 10;
add_subwindow(new BC_Title(x, y, _("Scale factor:")));
y += 20;
add_subwindow(new ReFrameOutput(plugin, x, y));
add_subwindow(new BC_OKButton(this));
add_subwindow(new BC_CancelButton(this));
show_window();
flush();
}
开发者ID:beequ7et,项目名称:cinelerra-cv,代码行数:12,代码来源:reframe.C
示例7: display_book_window
void display_book_window(book *b)
{
int *p;
if(!b)
return;
if(b->type==1){
p=&paper_win;
if(book_win!=-1)
hide_window(book_win);
} else {
p=&book_win;
if(paper_win!=-1)
hide_window(paper_win);
}
book_opened = b->id;
if(*p<0){
if(b->type==1)
*p=create_window(b->title, -1, 0, book_win_x, book_win_y, 320, 400, ELW_WIN_DEFAULT^ELW_CLOSE_BOX);
else if(b->type==2)
*p=create_window(b->title, -1, 0, book_win_x, book_win_y, 528, 320, ELW_WIN_DEFAULT^ELW_CLOSE_BOX); //width/height are different
set_window_handler(*p, ELW_HANDLER_DISPLAY, &display_book_handler);
set_window_handler(*p, ELW_HANDLER_MOUSEOVER, &mouseover_book_handler);
set_window_handler(*p, ELW_HANDLER_CLICK, &click_book_handler);
windows_list.window[*p].data=b;
} else {
if((point)windows_list.window[*p].data!=(point)b) {
safe_snprintf(windows_list.window[*p].window_name, sizeof(windows_list.window[*p].window_name), "%s", b->title);
windows_list.window[*p].data=b;
if(!get_show_window(*p))
show_window(*p);
select_window(*p);
} else if(!get_show_window(*p)) {
show_window(*p);
select_window(*p);
}
}
}
开发者ID:sorlok,项目名称:Eternal-Lands,代码行数:40,代码来源:books.c
示例8: display_storage_menu
void display_storage_menu()
{
int i;
/* Entropy suggested hack to determine if this is the view only "#sto" opened storage */
view_only_storage = 0;
for (i = 0; i < no_storage_categories; i++)
{
if ((storage_categories[i].id != -1) && (strcmp(&storage_categories[i].name[1], "Quest") == 0))
{
view_only_storage = 1;
break;
}
}
if(storage_win<=0){
int our_root_win = -1;
if (!windows_on_top) {
our_root_win = game_root_win;
}
storage_win=create_window(win_storage, our_root_win, 0, storage_win_x, storage_win_y, storage_win_x_len, storage_win_y_len, ELW_WIN_DEFAULT|ELW_TITLE_NAME);
set_window_handler(storage_win, ELW_HANDLER_DISPLAY, &display_storage_handler);
set_window_handler(storage_win, ELW_HANDLER_CLICK, &click_storage_handler);
set_window_handler(storage_win, ELW_HANDLER_MOUSEOVER, &mouseover_storage_handler);
set_window_handler(storage_win, ELW_HANDLER_KEYPRESS, &keypress_storage_handler );
vscrollbar_add_extended(storage_win, STORAGE_SCROLLBAR_CATEGORIES, NULL, 130, 10, 20, 192, 0, 1.0, newcol_r, newcol_g, newcol_b, 0, 1,
max2i(no_storage_categories - STORAGE_CATEGORIES_DISPLAY, 0));
vscrollbar_add_extended(storage_win, STORAGE_SCROLLBAR_ITEMS, NULL, 352, 10, 20, 192, 0, 1.0, newcol_r, newcol_g, newcol_b, 0, 1, 28);
cm_add(windows_list.window[storage_win].cm_id, cm_storage_menu_str, context_storage_handler);
cm_add(windows_list.window[storage_win].cm_id, cm_dialog_options_str, context_storage_handler);
cm_bool_line(windows_list.window[storage_win].cm_id, ELW_CM_MENU_LEN+2, &sort_storage_categories, NULL);
cm_bool_line(windows_list.window[storage_win].cm_id, ELW_CM_MENU_LEN+3, &disable_storage_filter, NULL);
cm_bool_line(windows_list.window[storage_win].cm_id, ELW_CM_MENU_LEN+4, &autoclose_storage_dialogue, NULL);
cm_bool_line(windows_list.window[storage_win].cm_id, ELW_CM_MENU_LEN+5, &auto_select_storage_option, NULL);
} else {
no_storage=0;
for(i = 0; i < no_storage_categories; i++)
storage_categories[i].name[0] = to_color_char (c_orange1);
show_window(storage_win);
select_window(storage_win);
vscrollbar_set_pos(storage_win, STORAGE_SCROLLBAR_CATEGORIES, 0);
vscrollbar_set_pos(storage_win, STORAGE_SCROLLBAR_ITEMS, 0);
}
storage_text[0] = '\0';
set_window_name("", "");
}
开发者ID:bsmr-c-cpp,项目名称:other-life,代码行数:52,代码来源:storage.c
示例9: main
// main
int
main(int argc, char** argv)
{
BApplication* app = new BApplication("application/x.vnd-Haiku.CopyBits");
BRect frame(50.0, 50.0, 300.0, 250.0);
show_window(frame, "CopyBits Test");
app->Run();
delete app;
return 0;
}
开发者ID:SummerSnail2014,项目名称:haiku,代码行数:14,代码来源:main.cpp
示例10: main
// main
int
main(int argc, char** argv)
{
BApplication* app = new BApplication(kAppSignature);
BRect frame(50.0, 50.0, 300.0, 250.0);
show_window(frame, "BView Archiving Test");
app->Run();
delete app;
return 0;
}
开发者ID:mmanley,项目名称:Antares,代码行数:14,代码来源:main.cpp
示例11: WinMain
int WINAPI WinMain(HINSTANCE hinst, HINSTANCE dont_care, LPSTR doont_care, int dooont_care)
{
static LPCTSTR name = _T("Second Reality");
me.hwnd = CreateWindow(register_class(hinst, name), name, WS_OVERLAPPEDWINDOW, 0, 0, 0, 0, NULL, NULL, hinst, NULL);
if (me.hwnd)
{
show_window(me.hwnd, 640, 480);
QueryPerformanceCounter(&me.initial_perf_counter);
QueryPerformanceFrequency(&me.perf_frequency);
demo_execute();
}
return 0;
}
开发者ID:gyabo,项目名称:SecondReality,代码行数:13,代码来源:platform-win32.c
示例12: toggle_recipe_window
static void toggle_recipe_window(void)
{
if (!recipes_loaded)
return;
recipes_shown=!recipes_shown;
if (recipes_shown)
show_window(recipe_win);
else
{
hide_window(recipe_win);
clear_recipe_filter();
}
}
开发者ID:raduprv,项目名称:Eternal-Lands,代码行数:13,代码来源:manufacture.c
示例13: createconsole
int createconsole(int argc, char *argv[])
{
if (win != NULL)
return 1;
if (app != NULL) /* delete existing partial data structures */
deleteconsole();
lines = malloc(NUM_LINES*NUM_COLUMNS*sizeof(TCHAR));
if (lines == NULL)
return 0;
memset(lines, __T(' '), NUM_LINES * NUM_COLUMNS);
app = new_app(argc, argv);
if (app == NULL) {
deleteconsole();
return 0;
} /* if */
font = new_font(app, "unifont", PLAIN | PORTABLE_FONT, 16);
if (font == NULL)
font = new_font(app, "courier", PLAIN | NATIVE_FONT, 16);
if (font == NULL)
font = find_default_font(app);
if (font == NULL) {
deleteconsole();
return 0;
} /* if */
win = new_window(app,
rect(0,0,
NUM_COLUMNS*font_width(font,"x",1),
NUM_LINES*font_height(font)),
"Pawn console",
TITLEBAR|CLOSEBOX|MAXIMIZE|MINIMIZE|CENTRED);
on_window_redraw(win, window_redraw);
on_window_close (win, window_close);
on_window_key_down(win, window_key_action); /* normal keys (including CR) */
show_window(win);
/* handle any pending events */
while (do_event(app))
/* nothing */;
csrx = 0;
csry = 0;
autowrap = 0;
attrib = 0x07;
return 1;
}
开发者ID:CmaThomas,项目名称:Vault-Tec-Multiplayer-Mod,代码行数:51,代码来源:term_ga.c
示例14: add_subwindow
void ShiftInterlaceWindow::create_objects()
{
int x = 10, y = 10;
int margin = 30;
add_subwindow(new BC_Title(x, y, _("Odd offset:")));
add_subwindow(odd_offset = new ShiftInterlaceOdd(plugin, x + 90, y));
y += margin;
add_subwindow(new BC_Title(x, y, _("Even offset:")));
add_subwindow(even_offset = new ShiftInterlaceEven(plugin, x + 90, y));
show_window();
flush();
}
开发者ID:beequ7et,项目名称:cinelerra-cv,代码行数:14,代码来源:shiftinterlace.C
示例15: on_quit
/* callback to quit application, giving the opportunity to not quit if so
* configured */
G_MODULE_EXPORT void
on_quit (GtkObject *object, gpointer user_data)
{
int dont_ask_to_quit;
dont_ask_to_quit = cf_getint(iiab_cf, DONTASKTOQUIT_CFNAME);
if (dont_ask_to_quit == CF_UNDEF)
dont_ask_to_quit = 0; /* default is to ask */
if (dont_ask_to_quit)
gtk_main_quit();
else
show_window("quit_win");
}
开发者ID:SystemGarden,项目名称:habitat,代码行数:16,代码来源:callbacks.c
示例16: main
int
main (int argc,
char **argv)
{
Widget app_shell;
/* Add Xt support for i18n: locale */
XtSetLanguageProc(NULL, NULL, NULL);
XtToolkitInitialize ();
app_context = XtCreateApplicationContext ();
display = XtOpenDisplay (app_context, NULL, argv[0], "ArborSplash",
NULL, 0, &argc, argv);
if (!display)
{
printf("%s: can't open display, exiting...\n", argv[0]);
exit (-1);
}
/*
* Create a dummy application shell, and then hide it again so that the
* splash screen can be a top-level screen for all applications.
*/
app_shell = XtAppCreateShell(".splash",
"ArborSplash",
applicationShellWidgetClass,
display,
NULL, 0);
create_splash_shell(app_shell);
XtUnmanageChild(splash_form);
/*
* Unmanage the OK button -- the window will pop itself down after
* 5 seconds.
*/
XtUnmanageChild(splash_ok_btn);
show_window(splash_shell, splash_form);
XtAddEventHandler(splash_shell,
VisibilityChangeMask,
False,
popup_splash,
NULL);
XtAppAddTimeOut(app_context, 5000, exit_splash, NULL);
XtAppMainLoop(app_context);
return(0);
}
开发者ID:huilang22,项目名称:Projects,代码行数:50,代码来源:splash_main.c
示例17: add_subwindow
void ConfirmScan::create_objects()
{
int x = 10, y = 10;
int y2 = 0, x2 = 0;
BC_Title *title;
add_subwindow(title = new BC_Title(x, y, _("Set parameters for channel scanning.")));
y += title->get_h() + 10;
y2 = y;
add_subwindow(title = new BC_Title(x, y, _("Frequency table:")));
x2 = title->get_w();
y += BC_PopupMenu::calculate_h();
add_subwindow(title = new BC_Title(x, y, _("Norm:")));
x2 = MAX(x2, title->get_w());
y += BC_PopupMenu::calculate_h();
add_subwindow(title = new BC_Title(x, y, _("Input:")));
x2 = MAX(x2, title->get_w());
y += BC_PopupMenu::calculate_h();
x2 += x + 5;
y = y2;
x = x2;
ChannelEditEditFreqtable *table;
add_subwindow(table = new ChannelEditEditFreqtable(x,
y,
0,
gui->thread));
table->add_items();
y += table->get_h() + 10;
ChannelEditEditNorm *norm;
add_subwindow(norm = new ChannelEditEditNorm(x,
y,
0,
gui->thread));
norm->add_items();
y += norm->get_h() + 10;
ChannelEditEditInput *input;
add_subwindow(input = new ChannelEditEditInput(x,
y,
0,
gui->thread));
input->add_items();
add_subwindow(new BC_OKButton(this));
add_subwindow(new BC_CancelButton(this));
show_window();
}
开发者ID:Cuchulain,项目名称:cinelerra,代码行数:50,代码来源:channeledit.C
示例18: display_browser
void display_browser()
{
if(browser_win <= 0){
browser_win= create_window("browser", 0, 0, browser_menu_x, browser_menu_y, browser_menu_x_len, browser_menu_y_len, ELW_WIN_DEFAULT);
set_window_handler(browser_win, ELW_HANDLER_DISPLAY, &display_browser_handler );
set_window_handler(browser_win, ELW_HANDLER_CLICK, &check_browser_interface );
} else {
show_window(browser_win);
select_window(browser_win);
}
display_window(browser_win);
}
开发者ID:csiga,项目名称:Eternal-Lands,代码行数:14,代码来源:browser.c
示例19: add_subwindow
void ResizeTrackWindow::create_objects()
{
int x = 10, y = 10;
add_subwindow(new BC_Title(x, y, _("Size:")));
x += 50;
add_subwindow(w = new ResizeTrackWidth(this,
thread,
x,
y));
x += w->get_w() + 10;
add_subwindow(new BC_Title(x, y, _("x")));
x += 15;
add_subwindow(h = new ResizeTrackHeight(this,
thread,
x,
y));
x += h->get_w() + 5;
FrameSizePulldown *pulldown;
add_subwindow(pulldown = new FrameSizePulldown(mwindow,
w,
h,
x,
y));
x += pulldown->get_w() + 5;
add_subwindow(new ResizeTrackSwap(this, thread, x, y));
y += 30;
x = 10;
add_subwindow(new BC_Title(x, y, _("Scale:")));
x += 50;
add_subwindow(w_scale = new ResizeTrackScaleW(this,
thread,
x,
y));
x += 100;
add_subwindow(new BC_Title(x, y, _("x")));
x += 15;
add_subwindow(h_scale = new ResizeTrackScaleH(this,
thread,
x,
y));
add_subwindow(new BC_OKButton(this));
add_subwindow(new BC_CancelButton(this));
show_window();
flush();
}
开发者ID:beequ7et,项目名称:cinelerra-cv,代码行数:50,代码来源:resizetrackthread.C
示例20: display_o3dow
void display_o3dow()
{
if(o3dow_win <= 0){
o3dow_win= create_window("o3dow", 0, 0, o3dow_x, o3dow_y, o3dow_x_len, o3dow_y_len, ELW_WIN_DEFAULT);
set_window_handler(o3dow_win, ELW_HANDLER_DISPLAY, &display_o3dow_handler );
set_window_handler(o3dow_win, ELW_HANDLER_CLICK, &check_o3dow_interface );
} else {
show_window(o3dow_win);
select_window(o3dow_win);
}
display_window(o3dow_win);
}
开发者ID:Adamantinus,项目名称:Eternal-Lands,代码行数:14,代码来源:o3dow.c
注:本文中的show_window函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论