{"id":4003,"date":"2022-12-20T17:28:40","date_gmt":"2022-12-20T20:28:40","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/display-sub-man7\/"},"modified":"2022-12-20T17:28:40","modified_gmt":"2022-12-20T20:28:40","slug":"display-sub-man7","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/display-sub-man7\/","title":{"rendered":"display-sub (man7)"},"content":{"rendered":"<h1 align=\"center\">display-sub<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#FEATURES\">FEATURES<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>display-sub<\/b> : Make a child visual that is a window to the parent<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">display-sub: <target-spec><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Creates a &#8220;child&#8221; visual within a &#8220;parent&#8221;. This can be thought of as a window and the <b>display-sub<\/b> target is intended for simple windowing systems.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">No textual arguments, since this target can only be used by applications. <i>argptr<\/i> must contain the parent visual.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The sub target behaves a bit special with respect to (i.e. abuses the semantics of \ud83d\ude42 the ggiSetMode(3) call. It uses the &#8220;visible&#8221; size for the top left corner position of the window within the visual, and the &#8220;virtual&#8221; size for window width and height. Note, that moving\/resizing the window does <i>not<\/i> cause any drawing action. You have to perform those yourself. All it does for you is providing a virtual visual within an existing one, which is convenient to allow for window system canvases to be about any GGI program.<\/p>\n<p style=\"margin-left:22%;\"><b>Important:<\/b> It is possible to have (<b>0<\/b>, <b>0<\/b>) as upper, left corner. But beware, <b>0<\/b> means <b>GGI_AUTO<\/b> and therefore it may get overridden by <b>GGI_DEFMODE<\/b> environment variable. In this case, you may get unintended results.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>target-spec<\/i><\/p>\n<p style=\"margin-left:22%;\">Specifies the target which to draw on (the <i>parent<\/i> target). This defaults to automatic selection (just like using ggiOpen(NULL) when <b>GGI_DISPLAY<\/b> is not set).<\/p>\n<h2>FEATURES <a name=\"FEATURES\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\">\u2022<\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"83%\">\n<p style=\"margin-top: 1em\">DirectBuffer not supported.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>\u2022<\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"83%\">\n<p>Accelerated to the point of the parent. Calls are mapped through with modified clipping and coordinates.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  display-sub : Make a child visual that is a window to the parent <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[971],"tags":[973,1091,972],"class_list":["post-4003","post","type-post","status-publish","format-standard","hentry","category-7-miscelanea","tag-973","tag-display-sub","tag-man7"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4003","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4003"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4003\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4003"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4003"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}