登录
首页 » Linux-Unix program » 宽度= gdk_pixbuf_animation_get_width(ANI)

宽度= gdk_pixbuf_animation_get_width(ANI)

于 2022-05-17 发布 文件大小:1.53 kB
0 193
下载积分: 2 下载次数: 1

代码说明:

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) }- width = gdk_pixbuf_animation_get_width(ani)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 字符串指针,以探讨指针如何工作
    String Pointers to explore how the pointer work -The program takes lines from standard input and keeps the last n of them in memory as it goes through standard input. When it gets to an EOF, it prints the last n lines out. You may assume n is less than 2000 and each individual line is not longer than 1000 including the newline and the null terminator.
    2022-02-01 01:57:48下载
    积分:1
  • Linux 是一个源码开放的操作系统,无论是普通用户还是企业用户都可以编写自己的内核代码,再加上对标准内核的裁剪从而制作出适合自己的操作系统。目前有很多中低端用...
    Linux 是一个源码开放的操作系统,无论是普通用户还是企业用户都可以编写自己的内核代码,再加上对标准内核的裁剪从而制作出适合自己的操作系统。目前有很多中低端用户使用的网络设备的操作系统是从标准 Linux 改进而来的,这也说明了有越来越多的人正在加入到 Linux 内核开发团体中。 一个或多个内核模块的实现并不能满足一般 Linux 系统软件的需要,因为内核的局限性太大,如不能在终端上打印,不能做大延时的处理等等。当我们需要做这些的时候,就需要将在内核态采集到的数据传送到用户态的一个或多个进程中进行处理。这样,内核态与用户空间进程通信的方法就显得尤为重要。在 Linux 的内核发行版本中没有对该类通信方法的详细介绍,也没有其他文章对此进行总结,所以本文将列举几种内核态与用户态进程通信的方法并详细分析它们的实现和适用环境。-Linux is an open-source operating system, both ordinary users or enterprises, users can prepare their core code, coupled with the standard kernel cutting thereby making up their own operating system. There are a lot of low-end users of the network equipment from the standard operating system Linux is improving from the This also shows that the more and more people are added to the Linux kernel development groups. One or more modules and the realization of general Linux can not satisfy the needs of system software, because the core is too restrictive, such as the terminal can print, can not handle the bigger Delay etc.. W
    2022-11-16 15:05:04下载
    积分:1
  • 这是一个在linux下的蜂鸣器的程序,是在ARM开发板上用得,是ARM7结构的开发板...
    这是一个在linux下的蜂鸣器的程序,是在ARM开发板上用得,是ARM7结构的开发板-This is a buzzer under linux at the process, are in the ARM development board used is the ARM7 development board structure
    2022-04-08 07:45:04下载
    积分:1
  • armlinux演义.pdf, 介绍armlinux kaifa。
    armlinux演义.pdf, 介绍armlinux kaifa。-ARM develop software armlinux .
    2022-01-25 16:45:33下载
    积分:1
  • 分别采用信号量,信号灯,条件变量实现的读者
    分别采用信号量,信号灯,条件变量实现的读者--写者方法。-Using semaphores, signal, variable conditions of the realization of the readers- to write those methods.
    2022-08-20 20:49:54下载
    积分:1
  • QT程序实例源代码,很好用,欢迎大家共享
    QT程序实例源代码,很好用,欢迎大家共享-QT program source code examples, very good use
    2022-04-24 04:29:49下载
    积分:1
  • 此文件为arm
    此文件为arm-LINUX的ROOTFS.cramfs文件系统,已经移植好,可直接使用,下载后把后缀改为BZ2-This document ROOTFS.cramfs the arm-LINUX file system, have been transplanted and can be used directly, after downloading the suffix changed to BZ2
    2022-03-25 19:30:20下载
    积分:1
  • tcp/ip协议详解
    tcp/ip协议详解-tcp/ip protocol detailed
    2023-08-08 18:50:05下载
    积分:1
  • 在XILINX Virtex
    在XILINX Virtex-II Pro Development Board开发板上移植LINUX系统-Porting MontaVista Linux to the XUP Virtex-II Pro Development Board
    2022-02-25 04:52:44下载
    积分:1
  • 线程池是一个跨
    threadpool is a cross-platform C++ thread pool library -threadpool is a cross-platform C++ thread pool library
    2022-10-29 08:35:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载