Re: [Further-devel] CVS commit: plugin positions

From: Ed Lea (ed@cus.org.uk)
Date: Fri Sep 21 2001 - 03:22:58 PDT


On Fri, Sep 21, 2001 at 03:16:48AM -0700, Evan Martin wrote:
> On Fri, Sep 21, 2001 at 10:58:05AM +0100, Ed Lea wrote:
> > On Thu, Sep 20, 2001 at 06:50:23PM -0700, Evan Martin wrote:
> > > Because transparency is an option, having two bars overlap means that
> > > the lowerbar bleeds into the upper bar...
> > > That's bad, I think?
> >
> > It may be bad, but it's also how it works.
>
> Well...
> Let 1 be the background bar, and 2 be the overlay bar.
>
> You're trying to overlay
> ' 2222' on
> '11111111'
>
> The cpuload way is to draw
> '11111111' and then overlay:
> ' 2222' which produces:
> '1111xxxx' where x is the combination of 1 and 2.
>
> What I did in XMMS is shorten the background bar:
> '1111 ' and then overlay
> ' 2222' which produces:
> '11112222'
>
> A bit more work, but you do caclulate all of those widths anyway.
>

Yeah, that's no problem. It's clearly the only sensible solution. I've
got no idea what I was thinking

> The new positioning API is simple:
> plugin->x and plugin->y are defined in cpuload.c.
>
> They're the magic value -1 if the user wanted right/bottom-aligned,
> otherwise they're just coordinates you can feed into evas_move.
>
> > Once I get my net connection sorted (hopefully) later today, I'll have
> > a play with it and try and tidy things up, and also do some make stuff
> > so that the Linux and FreeBSD versions can be distributed together
>
> Yay! :)
>

Quite :)

-- 
Ed.

"Do you know, I think it is? I really think it might just be a crazy little thing called sarcasm seeping in at the edges of my manner of speech!"



This archive was generated by hypermail 2.1.2 : Sun Nov 11 2001 - 14:16:15 PST