Since the C Programming-Language was not created with Object Oriented Programming in mind, it has no explicit support for classes, inheritance. This document is used for two purposes: one is as a tutorial on learning Glib’s GObject Type System, and the other is a step-by-step how-to for using the system . for GObject The latest version of this documentation can be found on-line at utility for GLib closures; gobject-query — display a tree of types. IV. Tutorial.
|Published (Last):||26 November 2008|
|PDF File Size:||4.66 Mb|
|ePub File Size:||13.18 Mb|
|Price:||Free* [*Free Regsitration Required]|
Part IV. Tutorial: GObject Reference Manual
The users who voted to close gave this specific reason: Instead, describe the problem and what has been done so far to solve it. Start with Glib, its quite easy and well described here: GObject is mostly a lot of boilerplate code to achieve object orientation.
Try out the “maman bar” examples found in the GObject Reference Manual. For me, GStreamer took the most time to understand. The documentation is good but there is alot to read GStreamer docs.
After reading about the basics, try starting a pipeline from the cmdline using gst-launch. Then read the full manual about application development and do some examples. Before trying to build your own plugin, check out some simple plugin and try understand the different parts, a simple place to start is the identity plugin.
You may be interested in these sample programs I uploaded to github after I read the chapter in the Gnome Developers Guide and went through the gobject manual. There is also “the offical Gnome tobject Developer’s guide”. And it’s really a good idea to check the sources of gtk. I’ve spend the last few weeks on getting into it, and found this book to be very helpful.
What’s quite tedious is to get the constuctors right and the order of initialization is “quite” mind-bending. What you should check is chapter 4 in the GObject documentation also. It does not cover everything but together with the book it’ quite ok.
I suggest starting with a very simple derived glass form GObject One always has two structures. A Class Structure in which you store all the function pointers and an instance structure which represents one Object. This is the most important thing to get.
Another point which is a bit harder to understand it the reference counting for memory management. Manage C data using the GLib collections is a introduction of glib collection links, hash tables, arrays, trees, queues, relations.
Lots of examples are included. So pls share any other resources to learn the glib and gobject.
Glib Reference Manual GObject is mostly a lot of boilerplate code to achieve object orientation. Before trying to build your own plugin, check out some simple plugin and bobject understand the different parts, a simple place to start is the identity plugin Good luck!
Jake 1 6. Do you also have example of class with signals?