Linux 版 (精华区)

发信人: netiscpu (平淡是真), 信区: Linux
标  题: GTK入门导引(18)
发信站: 紫 丁 香 (Mon Dec 14 14:48:16 1998), 转信


发信人: hey (吟风·悠游98), 信区: Unix
标  题: GTK入门导引(18)
发信站: 华南网木棉站 (Tue Nov 10 11:21:49 1998), 转信



18. 设定视窗物件属性

这里描述如何操作视窗物件的函数集. 可用于设定外形, 空格, 大小等等. 

(Maybe I should make a whole section on accelerators.) 

    void       gtk_widget_install_accelerator (GtkWidget           *widget,
                                               GtkAcceleratorTable *table,
                                               gchar               *signal_name,
                                               gchar                key,
                                               guint8               modifiers);

    void       gtk_widget_remove_accelerator  (GtkWidget           *widget,
                                               GtkAcceleratorTable *table,
                                               gchar               *signal_name);

    void       gtk_widget_activate            (GtkWidget           *widget);

    void       gtk_widget_set_name            (GtkWidget           *widget,
                                               gchar               *name);
    gchar*     gtk_widget_get_name            (GtkWidget           *widget);

    void       gtk_widget_set_sensitive       (GtkWidget           *widget,
                                               gint                 sensitive);

    void       gtk_widget_set_style           (GtkWidget           *widget,
                                               GtkStyle            *style);
                                               
    GtkStyle*    gtk_widget_get_style     (GtkWidget *widget);

    GtkStyle*    gtk_widget_get_default_style    (void);

    void       gtk_widget_set_uposition       (GtkWidget           *widget,
                                               gint                 x,
                                               gint                 y);
    void       gtk_widget_set_usize           (GtkWidget           *widget,
                                               gint                 width,
                                               gint                 height);

    void       gtk_widget_grab_focus          (GtkWidget           *widget);

    void       gtk_widget_show                (GtkWidget           *widget);

    void       gtk_widget_hide                (GtkWidget           *widget);


--
        6m3m┌───────────────────────┐0m
        6m3m│     4m疾如风,徐如林,侵掠如火,不动如山       3m│4m 0m
        6m3m└───────────────────────┘0m4m 0m
          4m                                                 0m

m;32m※ 来源:.华南网木棉站 bbs.gznet.edu.cn.[FROM: 202.38.212.66]m
--
m;32m※ 转寄:.华南网木棉站 bbs.gznet.edu.cn.[FROM: mtlab.hit.edu.cn]
--

                              Enjoy Linux!
                          -----It's FREE!-----

※ 来源:.紫 丁 香 bbs.hit.edu.cn.[FROM: mtlab.hit.edu.cn]
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:2.407毫秒