GithubHelp home page GithubHelp logo

Comments (5)

dumblob avatar dumblob commented on July 20, 2024

I'm not any more that reluctant to this functionality - how big is that change? I'd very much prefer to make this change an addition, i.e. fully backwards compatible.

from nuklear.

Michael-Kelley avatar Michael-Kelley commented on July 20, 2024

It's essentially a copy of nk_image.c for 9-slice images, an additional style function (nk_style_item_9slice), relevant additions to nk_style_item_type and nk_style_item_data, and modifications to widget drawing functions to add support for 9-slice alongside image and color. It uses a separate function to draw (calls nk_draw_image for each slice) and introduces no breaking changes.

from nuklear.

dumblob avatar dumblob commented on July 20, 2024

Which backends did you implement? Just make a PR and let's discuss it more technically to smoothen the potential sharper edges 😉 (don't forget to bump version, make changes to src/* and then run src/paq.sh or src/paq.bat).

from nuklear.

wheybags avatar wheybags commented on July 20, 2024

Just a note that I would be interested in using this for https://github.com/freeablo.
Especially if there was a mode to allow repeating the edge sections instead of stretching them.

from nuklear.

RobLoach avatar RobLoach commented on July 20, 2024

I believe 9-slice has been implemented. I haven't used it, nor have a seen a demo of it though. Feel free to re-open if you'd like some clarification on it! 🚀 Was over at #304

from nuklear.

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.