glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [glob2-devel] Tooltip System


From: Sébastien
Subject: Re: [glob2-devel] Tooltip System
Date: Fri, 21 Apr 2006 14:50:25 +0200
User-agent: KMail/1.9.1

Le Vendredi 21 Avril 2006 13:56, Stéphane Magnenat a écrit :
> In libgag, RectangularWidget is used for widgets that use a certain area on
> screen. Right now, all widgets inherits from RectangularWidget. But we can
> imagine, for instance, a widget that could be a sound producer that is not
> rectangular. Although this may not be the cleanest architecture (it's
> inspired form GUI design already some years old now), it's simple and
> works. If we have something much better, we can change, but I'm not sure
> it's worth the work.
If you have a circular button, it will inherits from rectangularwidget ? I 
thought that Widget where only constitued by displayable elements...
>
> I think the tootip thing should go in RectangularWidget. Why not adding a
> drawTooltip in RectangularWidget, then doing a dynamic cast in
> Screen::dispatchPaint ?
you mean in the dispatchPaint loop :
RectangularWidget rw = dynamic_cast<RectangularWidget*>(*it);
if(rw != NULL) {
        rw -> drawToolTip();
}
?
>
> Right now the tooltip is not drawn after the other widget, so it can be
> masked. How do you plan to handle this ?
I must admit that I haven't thought to that... You mean, I've two buttons 
overlapping eachother and we display the tooltip for the first "under" the 
second ? Is this a possible case ?  Do we really have to handle it ? If yes 
then there is no other choice than another method (displayToolTip or 
drawOverlay) and we have to make two loops in dispatch Paint.
>
> Steph
>
>
> _______________________________________________
> glob2-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/glob2-devel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]