This book is for you if
You re no "dummy," and you need to get quickly up to speed in intermediate to advanced C++
You ve had some experience in C++ programming, but reading intermediate and advanced C++ books is slow-going
You ve had an introductory C++ course, but you ve found that you still can t follow your colleagues when they re describing their C++ designs and code
You re an experienced C or Java programmer, but you don t yet have the experience to develop nuanced C++ code and designs
You re a C++ expert, and you re looking for an alternative to answering the same questions from your less-experienced colleagues over and over again
C++ Common Knowledge covers essential but commonly misunderstood topics in C++ programming and design while filtering out needless complexity in the discussion of each topic. What remains is a clear distillation of the essentials required for production C++ programming, presented in the author s trademark incisive, engaging style.
標簽:
intermediate
you
quickly
dummy
上傳時間:
2014-01-09
上傳用戶:wpwpwlxwlx
width = gdk_pixbuf_animation_get_width(ani)
height = gdk_pixbuf_animation_get_height(ani)
current_frame_list = gdk_pixbuf_animation_get_frames(ani)
pixmap = gdk_pixmap_new(w->window, width, height, -1)
clean_pixmap = gdk_pixmap_new(w->window, width, height, -1)
if (w->style->bg_pixmap[GTK_STATE_NORMAL]) {
GdkPixmap *bg = w->style->bg_pixmap[GTK_STATE_NORMAL]
GdkGC *gc
GdkGCValues values
values.tile = bg
values.fill = GDK_TILED
gc = gdk_gc_new_with_values(w->window, &values,
GDK_GC_FILL|GDK_GC_TILE)
gdk_gc_set_ts_origin(gc,
(w->allocation.width - width)/2,
(w->allocation.height-height)/2)
gdk_draw_rectangle(clean_pixmap,gc, TRUE,
0, 0, width, height)
gdk_gc_destroy(gc)
} else {
gdk_draw_rectangle(clean_pixmap,
w->style->bg_gc[GTK_STATE_NORMAL],
TRUE, 0, 0, width, height)
}
標簽:
gdk_pixbuf_animation_get_height
gdk_pixbuf_animation_get_width
ani
height
上傳時間:
2013-12-26
上傳用戶:thinode