Is it possible to define GTK+ type using gtkmm?

风格不统一 提交于 2020-01-14 04:05:13

问题


I would like to define a new subclass of some gtkmm type, implementing interface of underlying GTK+ object. Then, i want to compile it into some kind of dll and use in pure C code (GTK+, no gtkmm) through this interface. Is it possible?


回答1:


The followings are required to use gtkmm widget in GTK+:

  1. implement the desired custom widget in gtkmm
  2. create a library from the widget for Glade
  3. design the user interface containing the custom widget with Glade
  4. declare the C interface for the application written in GTK+
  5. build the user interface from XML with GtkBuilder

Details can be found in my blog post.



来源:https://stackoverflow.com/questions/10727979/is-it-possible-to-define-gtk-type-using-gtkmm

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!