GObject 几乎是这个世界中所有元素的基类和祖先。
更多...
#include <gObject_cpp11.h>
被 GCtrlForm, GMItem, GPointerData, GTcpServer, GTcpSocket, GTimer, GUdpSocket , 以及 GUIEvtLoop 继承.
|
template<class Receiver , typename... Args> |
static int | connect (GObject *sender, GSignal< void(Args...)> &signal, Receiver *receiver, void(Receiver::*SlotFunc)(Args...)) |
| 将信号和槽建立连接。
Receiver代表接收者的类型 Args是槽函数/信号的参数列表。 更多...
|
|
template<class Receiver , typename... Args> |
static int | disconnect (GObject *sender, GSignal< void(Args...)> &signal, Receiver *receiver, void(Receiver::*SlotFunc)(Args...)) |
| 将信号和槽断开连接。
Receiver代表接收者的类型 Args是槽函数/信号的参数列表。 更多...
|
|
static bool | isObjectExist (GObject *obj) |
| 判断对象是否已经被析构掉了。 更多...
|
|
GObject 几乎是这个世界中所有元素的基类和祖先。
GObject::GObject |
( |
GObject * |
parent = NULL , |
|
|
const char * |
name = NULL , |
|
|
bool |
reserved = true |
|
) |
| |
|
explicit |
构造一个对象
- 参数
-
parent | ... |
name | ... |
reserved | 不要改变此参数,除非你是专家,并且你真的知道自己在做什么 |
GObject::GObject |
( |
const GObject & |
src | ) |
|
virtual GObject::~GObject |
( |
| ) |
|
|
virtual |
template<class Receiver , typename... Args>
int GObject::connect |
( |
GObject * |
sender, |
|
|
GSignal< void(Args...)> & |
signal, |
|
|
Receiver * |
receiver, |
|
|
void(Receiver::*)(Args...) |
SlotFunc |
|
) |
| |
|
static |
将信号和槽建立连接。
Receiver代表接收者的类型 Args是槽函数/信号的参数列表。
- 参数
-
sender | 指向发射者的指针 |
signal | 指向信号的引用。 |
receiver | 指向接收者的指针 |
SlotFunc | 指向槽函数的指针 |
- 返回
- 0代表成功;非0代表失败
template<class Receiver , typename... Args>
int GObject::disconnect |
( |
GObject * |
sender, |
|
|
GSignal< void(Args...)> & |
signal, |
|
|
Receiver * |
receiver, |
|
|
void(Receiver::*)(Args...) |
SlotFunc |
|
) |
| |
|
static |
将信号和槽断开连接。
Receiver代表接收者的类型 Args是槽函数/信号的参数列表。
- 参数
-
sender | 指向发射者的指针 |
signal | 指向信号的引用。 |
receiver | 指向接收者的指针 |
SlotFunc | 指向槽函数的指针 |
- 返回
- 0代表成功;非0代表失败
virtual bool GObject::event |
( |
GEvent * |
| ) |
|
|
virtual |
static bool GObject::isObjectExist |
( |
GObject * |
obj | ) |
|
|
static |
判断对象是否已经被析构掉了。
- 参数
-
- 返回
- bool true表示对象健在,false表示对象已经被析构掉了
const char* GObject::name |
( |
| ) |
const |
GSignal<void(void)> GObject::sigDestroyed |
该类的文档由以下文件生成: