• 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

  • 相关阅读:
    Html5新标签解释及用法
    时间线效果
    NHibernate数据访问层核心代码
    C#开源资源项目
    安卓开发环境搭建之最新版(So Easy!)
    WIN8相关资源汇总
    HTML5 Shiv – 让该死的IE系列支持HTML5吧
    WCF 提高传输数据性能方法之二 (数据分割)
    支付宝集成问题(.net篇)
    WCF 提高传输数据性能方法之一 (使用压缩)
  • 原文地址:https://www.cnblogs.com/kwingmei/p/3220386.html
Copyright © 2020-2023  润新知