Re: Consensus Reached (Was Design proposal for updateBackground)

From: Joaquín Cuenca Abela (cuenca@pacaterie.u-psud.fr)
Date: Tue Jul 30 2002 - 13:32:40 EDT

  • Next message: Joaquín Cuenca Abela: "Re: commit head: improve fp_Run::updateBackgroundColor()"

    On Tue, 2002-07-30 at 18:52, Dom Lachowicz wrote:
    > Martin and I had a discussion on IRC last night (after this email was sent) and we finally reached a consensus on the correct behavior. Marc (uwog) and Tomas also seem to agree with this, so let's go and actually implement it:
    >
    > "If a run is not transparent, draw the color/image into the background
    > rectangle. If a run is transparent, it should ask its parent container
    > to draw into the given background rectangle, until the parent isn't
    > transparent or the parent == the document."

    Just for completeness, if we're going to do the right thing handling a
    full alpha channel and everything, we will need something as:

    if a run is "partially" transparent, it should ask its parent container
    to draw into the given background rectangle *AND* once the parent finish
    painting, the run should paint its partially transparent background.
    Obviously, the container should also do the same thing (ask its parent
    to draw its background if it has a partially transparent background, and
    then draw its own background).

    Cheers,

    -- 
    Joaquín Cuenca Abela
    cuenca@pacaterie.u-psud.fr
    


    This archive was generated by hypermail 2.1.4 : Tue Jul 30 2002 - 13:38:33 EDT