Gtkプログラミング on Windows!!! (478レス)
上下前次1-新
抽出解除 必死チェッカー(本家) (べ) 自ID レス栞 あぼーん
401: デフォルトの名無しさん [sage] 2019/01/08(火)13:57 ID:apChm6zE(1)
ヘッダーよりググッてリファレンスを見るべき、読めないなら翻訳にぶちこむ
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.
上下前次1-新書関写板覧索設栞歴
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル
ぬこの手 ぬこTOP 0.783s*