{"id":33,"date":"2007-10-27T22:49:41","date_gmt":"2007-10-28T05:49:41","guid":{"rendered":"http:\/\/www.venzon.org\/?p=33"},"modified":"2008-04-09T07:19:41","modified_gmt":"2008-04-09T14:19:41","slug":"gui-ideas","status":"publish","type":"post","link":"http:\/\/www.venzon.org\/?p=33","title":{"rendered":"GUI Ideas"},"content":{"rendered":"<p>I had some ideas about GUI widgets.\u00c2\u00a0 I was brainstorming about how to create a GUI that would be capable of displaying a tree of strings.\u00c2\u00a0 It seems like every widget needs x and y coordinates, plus location information saying what the x and y are relative to.\u00c2\u00a0 The location information would take the form of a pointer to another widget (perhaps the parent) and an enum for bottom right, top left, etc.\u00c2\u00a0 The widget also needs a width and height.\u00c2\u00a0 If the width or height is set, then the contents (including child widgets) will be clipped along that dimension.\u00c2\u00a0 The width or height should also be able to be set to an &#8220;autosize&#8221; mode, which would size up the width\/height of the widget based on its children widgets.\u00c2\u00a0 There would also need to be a visibility flag for each widget.<\/p>\n<p>I haven&#8217;t thought yet about how widgets are created, drawn, or how widgets handle events (like mouse clicks).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had some ideas about GUI widgets.\u00c2\u00a0 I was brainstorming about how to create a GUI that would be capable of displaying a tree of strings.\u00c2\u00a0 It seems like every widget needs x and y coordinates, plus location information saying what the x and y are relative to.\u00c2\u00a0 The location information would take the form [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-33","post","type-post","status-publish","format-standard","hentry","category-prototyping"],"_links":{"self":[{"href":"http:\/\/www.venzon.org\/index.php?rest_route=\/wp\/v2\/posts\/33","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.venzon.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.venzon.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.venzon.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.venzon.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=33"}],"version-history":[{"count":0,"href":"http:\/\/www.venzon.org\/index.php?rest_route=\/wp\/v2\/posts\/33\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.venzon.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.venzon.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.venzon.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}