![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
GObject
wks1986
这个作者很懒,什么都没留下…
展开
-
GObject 00: A bottom-up introduction to the GObject system
This document introduces the GObject library. This cannot replace the official tutorial/reference. It is recommended to lookup the official reference every time you encountered new concepts. -- ...2009-10-13 00:34:18 · 170 阅读 · 1 评论 -
GObject 09: An Interface
An interface is a class with multiple abstract methods. A class may implement one or more interfaces which means that the class provides all the abstract methods specified in the interfaces. This se...2009-11-09 16:56:03 · 102 阅读 · 0 评论 -
GObject 08: A class with a signal
A GObject may emit signals to show that something have happened. Signals can be connected to many "handlers" which are called when the signals are emitted. Full code: [code]/* A subclass of GObje...2009-10-22 17:09:39 · 134 阅读 · 0 评论 -
GObject 07: A class with properties.
A good practice of Object-oriented Programming is to hide implementation details from the user. As explained before, programmers are encouraged to use "private" fields. However, if you want to let u...2009-10-22 16:17:21 · 83 阅读 · 0 评论 -
GObject 06: A subclass of GObject
This time GObject refers to the type named GObject in the GObject library. Don't be confused. The type GObject is supposed to be the base class of other user-defined classes. [list] [*] GObject ...2009-10-21 13:44:08 · 98 阅读 · 0 评论 -
GObject 05: An Inheritable class.
In this article I will implement a class inheriting another. An inherited class is also known as a "child class", a "derived class" or a "subclass". The class it inherits is call the "parent class...2009-10-21 01:32:56 · 97 阅读 · 0 评论 -
GObject 04: A class with private members
A private member is a member that is only accessible by other methods of the class. Q: Why private? It is inconvenient, isn't it? A: Exposing all details may offer some convenience, but it is alm...2009-10-21 00:49:15 · 99 阅读 · 0 评论 -
GObject 03: An Instantiatable Class
Most of the time classes are instantiatable. It can create "instances", which have their own data and share common methods of the class. So a CLASS is shared by many INSTANCEs. In GObject, we n...2009-10-16 16:35:17 · 86 阅读 · 0 评论 -
GObject 02: A classed type
Now I am going to create a classed type. Q: What is a class? A: I don't know for sure. In object-oriented programming, a class represents a "kind" of data. It specifies what data there is (the m...2009-10-13 16:53:21 · 84 阅读 · 0 评论 -
GObject 01: My first fundamental type.
GObject system handles "types". Q: So what is a "type"? A: Err.. A "type" is how you consider a piece of data. See, there is no "type" in assembly language. The data, whether in registers or ...2009-10-13 01:25:35 · 114 阅读 · 0 评论 -
GObject 2-01: A convention-compliant minimal complete working example.
My coding style has been so weird that no proper GObject programmers would ever use. GObject do have their coding/naming convention which is "designed by both smart and experienced people" and I am...2009-12-18 01:19:54 · 119 阅读 · 0 评论