{"id":875,"date":"2013-09-22T15:16:05","date_gmt":"2013-09-22T15:16:05","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=875"},"modified":"2013-09-22T15:43:48","modified_gmt":"2013-09-22T15:43:48","slug":"gtk-container-superclass","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=875","title":{"rendered":"GTK+ Container Superclass"},"content":{"rendered":"<h3>Description<\/h3>\n<ul>\n<li>Container widgets are the inner nodes in the resulting tree of widgets: they contain other widgets.<\/li>\n<li>There are two major kinds of container widgets in GTK+.\n<ul>\n<li>The first type of container widget has a single child widget and derives from <span style=\"font-family: courier;\">GtkBin<\/span>. These containers are <strong><span style=\"color: #0000ff;\">decorators<\/span><\/strong>, which add some kind of functionality to the child.<\/li>\n<li>The second type of container can have more than one child; its purpose is to manage <strong><span style=\"color: #0000ff;\">layout<\/span><\/strong>. This means that these containers assign <span style=\"color: #999999;\">(= zuweisen, bestimmen)<\/span> sizes and positions to their children.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/developer.gnome.org\/gtk3\/stable\/GtkContainer.html#GtkContainer.description\">GtkContainer: Description<\/a><\/p>\n<h3>Child properties<\/h3>\n<ul>\n<li>GtkContainer introduces child properties. These are object properties that are not specific to either the container or the contained widget, but rather to their relation.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/developer.gnome.org\/gtk3\/stable\/GtkContainer.html#child-properties\">GtkContainer: Child properties<\/a><\/p>\n<h3>Border<\/h3>\n<ul>\n<li>The border is added on all sides of the container.<\/li>\n<li>To add space to only one side, one approach is to create a <span style=\"font-family: courier;\">GtkAlignment<\/span> widget, call <span style=\"font-family: courier;\">gtk_widget_set_size_request()<\/span> to give it a size, and place it on the side of the container as a spacer.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/developer.gnome.org\/gtk3\/stable\/GtkContainer.html#gtk-container-set-border-width\">gtk_container_set_border_width()<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Description Container widgets are the inner nodes in the resulting tree of widgets: they contain other widgets. There are two major kinds of container widgets in GTK+. The first type of container widget has a single child widget and derives from GtkBin. These containers are decorators, which add some kind of functionality to the child. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-875","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/875","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=875"}],"version-history":[{"count":14,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/875\/revisions"}],"predecessor-version":[{"id":891,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/875\/revisions\/891"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}