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);