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

From: Evan Martin (
Date: Fri Sep 21 2001 - 03:16:48 PDT

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.

Let 1 be the background bar, and 2 be the overlay bar.

You're trying to overlay
' 2222' on

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:

A bit more work, but you do caclulate all of those widths anyway.

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! :)

    Evan Martin

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