From: cinap_lenrek@gmx.de
To: 9fans@9fans.net
Subject: Re: [9fans] Good sample GUI code (window creation, management,
Date: Wed, 19 Dec 2012 14:02:21 +0100 [thread overview]
Message-ID: <62328632c05339f73df807068c511920@rei2.9hal> (raw)
In-Reply-To: <cf353987-974a-4ed3-a24b-05427396f6d2@googlegroups.com>
the trick is just mounting $wsys and optionally supply some window
attributes in the mount spec. see rio(1) and /sys/src/libdraw/newwindow.c
after that, you have the new window mounted on /dev and a following
initdraw() will pick it up.
if you want to maintain multiple windows for your program, its better
to mount each window somewhere else and supply windir.
its unusual for plan9 programs to make ther own windows tho. instead,
its more common to create windows/layers inside your screen (like
sam or acme).
--
cinap
next prev parent reply other threads:[~2012-12-19 13:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-19 11:14 Luke Evans
2012-12-19 12:59 ` Jacob Todd
2012-12-19 13:02 ` cinap_lenrek [this message]
2012-12-19 13:32 ` erik quanstrom
2012-12-19 14:35 ` Giovanni Casano
2012-12-19 14:42 ` erik quanstrom
2012-12-19 14:54 ` Giovanni Casano
2012-12-19 16:07 ` Stuart Morrow
2012-12-19 16:17 ` Dustin Fechner
2012-12-19 16:27 ` Stuart Morrow
2012-12-19 16:29 ` erik quanstrom
2012-12-20 9:45 ` dexen deVries
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=62328632c05339f73df807068c511920@rei2.9hal \
--to=cinap_lenrek@gmx.de \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).