Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
テーブル内のウィジェットの位置をどのように知ることができるかを理解しようとしています。子ウィジェットを含むテーブルがあります。
tbl = gtk_table(rows=2, columns=2) eb = gtk_event_box() gtk_table_attach(tbl, eb, 0, 1, 0, 1)
テーブル内のイベントボックスの位置を確認するにはどうすればよいですか?
テーブルの子プロパティをクエリします。
unsigned left, right, top, bottom; gtk_container_child_get(GTK_CONTAINER(tbl), eb, "left-attach", &left, "right-attach", &right, "top-attach", &top, "bottom-attach", &bottom, NULL);