基本情况: 我想通过德国技术合作公司在气球箱中树立一种欧洲-欧洲合作组织的形象。
我感到沮丧的是德国技术合作公司。
我假定,我应创造出一个能够使图像正确无误的可图领域?
然后,我是否必须绘制该领域的图形背景? 如何?
我的简单看法(甚至没有解决堡垒问题)是:
页: 1
GdkGC * gc = NULL;
GtkWidget * window = NULL;
GtkDrawingArea * dpage = NULL;
GtkWidget * page = NULL;
gtk_init( &argc, & argv );
window = gtk_window_new( GTK_WINDOW_TOPLEVEL );
page = gtk_drawing_area_new( );
dpage = GTK_DRAWING_AREA( page );
gtk_widget_set_size_request( page, PAGE_WIDTH, PAGE_HEIGHT );
gc = gdk_gc_new( GTK_DRAWABLE( dpage ) );
gtk_widget_show( window );
gtk_main();
return (EXIT_SUCCESS);
iii
my dpage is apparently not a drawable (though it is a drawing area). I am confused as to a) how do I get/create the graphics context which is required in subsequent function calls? b) am I close to a solution, or am I so completely *#&@& wrong that there is no hope c) a baby steps tutorial. (I started with hello world as my base, so I got that far).
感谢一切帮助。
b)