Gtkプログラミング on Windows!!! (478レス)
上
下
前
次
1-
新
401
: 2019/01/08(火)13:57
ID:apChm6zE(1)
AA×
外部リンク[html]:developer.gnome.org
外部リンク[html]:developer.gnome.org
[
240
|320|
480
|
600
|
100%
|
JPG
|
べ
|
レス栞
|
レス消
]
401: [sage] 2019/01/08(火) 13:57:27.89 ID:apChm6zE ヘッダーよりググッてリファレンスを見るべき、読めないなら翻訳にぶちこむ https://developer.gnome.org/gtk3/stable/gtk-getting-started.html A window title is set using gtk_window_set_title(). This function takes a GtkWindow* pointer and a string as input. As our window pointer is a GtkWidget pointer, we need to cast it to GtkWindow*. But instead of casting window via (GtkWindow*), window can be cast using the macro GTK_WINDOW(). GTK_WINDOW() will check if the pointer is an instance of the GtkWindow class, before casting, and emit a warning if the check fails. More information about this convention can be found here. https://developer.gnome.org/gobject/stable/gobject-Type-Information.html#G-TYPE-CHECK-INSTANCE-CAST:CAPS #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type)) Checks that instance is an instance of the type identified by g_type and issues a warning if this is not the case. Returns instance casted to a pointer to c_type . No warning will be issued if instance is NULL, and NULL will be returned. This macro should only be used in type implementations. http://mevius.5ch.net/test/read.cgi/tech/1147024203/401
ヘッダーよりググッてリファレンスを見るべき読めないなら翻訳にぶちこむ
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 77 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
ぬこの手
ぬこTOP
0.039s