zoukankan      html  css  js  c++  java
  • gtk init and layout of object

    Initializing the GTK+ libraries is extremely simple for most applications.

    By calling gtk_init(),

    all initialization work is automatically performed for you.
    It begins by setting up the GTK+ environment,

    including obtaining the GDK display and
    preparing the GLib main event loop and

    basic signal handling.

    GObject

     GinitiallyUnowned

      GtkObject

       GtkWidget

        GtkContainer

         GtkBin

          GtkWindow

    compiler parameters:

    gcc -Wall -g helloworld.c -o helloworld

       `pkg-config --cflags gtk+-2.0`
      `pkg-config --libs gtk+-2.0`

    or

    gcc -Wall -g helloworld.c -o helloworld

       `pkg-config --cflags --libs gtk+-2.0`

    % pkg-config --libs gtk+-2.0
    -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0  

    GTK+ (-lgtk): Graphical widgets
    GDK (-lgdk): The standard graphics rendering library
    GdkPixbuf (-lgdk_pixbuf): Client-side image manipulation
    Pango (-lpango): Font rendering and output
    GObject (-lgobject): Object-oriented type system
    GLib (-lglib): Data types and utility functions

    vim 中的制动不全的功能, 它默认回去找/usr/include 等目录
    ctags -R 递归生成 ctags 生成的文件名是 ctags, 然后复制到vim编辑的当前目录(看vim的时候好像是可以指定ctags的 ?)

    然后就可以使用 ctrl+p 补全了


    执行ctags -R

  • 相关阅读:
    Linux GCC常用命令
    用两个栈实现一个队列(转载)
    BMP格式介绍(一)
    图像处理笔记(1): bmp文件结构处理与显示
    大数据竞赛平台——Kaggle 入门篇
    图像识别中的深度学习
    面向对象中的抽象和具体类的理解
    全排列算法
    少有程序员读的书
    照片回执
  • 原文地址:https://www.cnblogs.com/kwingmei/p/3220386.html
Copyright © 2011-2022 走看看