Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mv3UP-0004Ic-Io for mharc-grub-devel@gnu.org; Tue, 06 Oct 2009 02:25:37 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mv3UN-0004H2-LM for grub-devel@gnu.org; Tue, 06 Oct 2009 02:25:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mv3UI-0004Cp-O1 for grub-devel@gnu.org; Tue, 06 Oct 2009 02:25:34 -0400 Received: from [199.232.76.173] (port=48434 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mv3UI-0004Cg-EY for grub-devel@gnu.org; Tue, 06 Oct 2009 02:25:30 -0400 Received: from mail-fx0-f205.google.com ([209.85.220.205]:63192) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mv3UI-0003ZC-25 for grub-devel@gnu.org; Tue, 06 Oct 2009 02:25:30 -0400 Received: by fxm1 with SMTP id 1so3058882fxm.31 for ; Mon, 05 Oct 2009 23:25:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=pAWE52OQRO5YqSQLApyY+r7yVd92VEdfg9YTOJxX8bU=; b=rseRh5KJBzZ1x2epstTZoEioZHKg5zYnvKMrxfTK8XJgcfJk7A7fWiTqX0W62g3bvC pOUFhamSB+KOv/BKaNrS5/gp2drDuo7RUM7td5BQ365TN3Riu7t7goo5HTdh0Va/wRl1 XHVvq/rTEXFehb2eGRZ4N+6uGB0K0aSe15Iig= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=cYvXoxUem3IUehMuE5cREhdZw1WB+y3qKv2pffw9ErhthaWEwjVNIZW2kVrPbCN0gf FkxKWwiCG8NYSyxDAXCj07a1VsgG1qunLaHCi18fzXUqNYZAX/icg72gRpBhZ1jPa8r2 6xYErUJVZ0Lmn5ZoanlmgutJW/nwlljQ+1S8c= MIME-Version: 1.0 Received: by 10.239.179.91 with SMTP id c27mr89672hbg.51.1254810328882; Mon, 05 Oct 2009 23:25:28 -0700 (PDT) In-Reply-To: References: Date: Tue, 6 Oct 2009 01:25:28 -0500 Message-ID: <2e59e6970910052325q6933e99dmaa6053fa0b24d32d@mail.gmail.com> From: "richardvoigt@gmail.com" To: The development of GRUB 2 Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [GITGRUB] New menu interface (implementation) X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Oct 2009 06:25:35 -0000 > Hi, > > I think you've overlooked a detail about grub's menu layout. The > smallest elements, text and image, both have fixed size, The largest > element, the screen, also have fixed size, therefore, we need to > adjust the middle layers to fit both ends, it's not as simple as it > seems. > > There are two method to calculate the size of window. It can be > calculate using children widget, with auto layout, or parent widget, > with x,y,width,height coordinate, as the smallest and largest element > are fixed, we need to switch from children determined size to parent > determined size at some point during the walk of ui tree. > > For operation system, the switch is at the window boundary. Consider > web browser. Inside the browser, elements are placed with layout > manager, no coordinate is needed, but the browser itself is placed on > the screen using x,y,width,height coordinate by the OS. For some OS > like chrome, it seems to incorporate the concept of using the whole > screen as browser. The menu system support both method, it's just a > matter of how you define the border, that's, when to switch from > x,y,width,height positioning to layout manager positioning. > > Therefore, it needs to have two set of margin properties: > > inner_*, outer_* : calculate from children to parent I think that "margin" and "padding" are the standard names for this spacing measurements (distance from content to border) and (distance from border to bounding box), respectively. Also in some systems padding of adjacent elements can overlap. > attach_* : calculate from parent to children > > -- > Bean > > gitgrub home: http://github.com/grub/grub/ > my fork page: http://github.com/bean123/grub/ > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel >