Git Product home page Git Product logo

Comments (4)

migueldeicaza avatar migueldeicaza commented on July 18, 2024
        // This is a case where we could have use redrawView, but it
        // currently does not take into consideration a global state of
        // affected areas, which we probably should review.
        //
        // At least we should have a refresh version that does not queue
        // a setNeedsDisplay.   Also see postProcessEvent, it worked
        // in the previous era where the Toplevels would consume the whole
        // screen and full obscure the back, but we should cross those
        // boundaries and repaint even those.

from termkit.

migueldeicaza avatar migueldeicaza commented on July 18, 2024

Idea that I have been mulling around:

Implemented: Toplevels would contain the backing store for the drawn operations, and views retain their existing redraw logic. This means that not every view would need a backing store that needs to be composed. Only toplevels get composed.

from termkit.

migueldeicaza avatar migueldeicaza commented on July 18, 2024

Update:

I now have a backingstore branch with the above idea, and it works.

Some issues that still need work and research:

  • The code is still redoing full screen redraws, rather than the affected region in general
  • When coming back from the dialog box, and moving in the selector, the tiny window borders in the sample vanish.
  • Dragging a window still leaves a ghost behind, I suspect that is a different kind of issue, not related to the compositing.
  • Small border rendering issue when using the "Dialogs" sample, both on the "Reuslts" box, and when the Dialog opens, on the right side, it does not seem to draw that part.

from termkit.

migueldeicaza avatar migueldeicaza commented on July 18, 2024

Fixed

from termkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.