Coder Social home page Coder Social logo

GTK 3.12 Popovers Wanted about ui HOT 7 CLOSED

andlabs avatar andlabs commented on June 26, 2024
GTK 3.12 Popovers Wanted

from ui.

Comments (7)

andlabs avatar andlabs commented on June 26, 2024

The thing pictured is more than just a popover: it's also a custom menu (as far as I can tell, anyway). For that, I defer to the menu feature request (I don't know what a good API for that would be; if you have any ideas let me know).

I wouldn't be able to use the native popover implementation for GTK+, but I can definitely fake one. (I would have to fake one on Windows anyway.)

Note to self: this would imply Area.OpenPopoverAt() as well.

from ui.

Depado avatar Depado commented on June 26, 2024

I really got no knowledge in Gtk+ (except using it I mean) so I can't really point you a good API. Anyway that would be amazing, and I would like to thank you for the amazing work you provided. 👍

from ui.

andlabs avatar andlabs commented on June 26, 2024

http://imgur.com/4WtPdWP Windows popovers take 1 (see windowspopover/ folder)

from ui.

Depado avatar Depado commented on June 26, 2024

Damn already ? That's amazing. Great work.

from ui.

andlabs avatar andlabs commented on June 26, 2024

All right, API question time

func NewPopover(owner Window, child Control) Popover
// alternatively
func (w Window) NewPopover(child Control) Popover

A Popover needs to be owned by another Window for things like modality to work properly; it can be relative to any control in that Window.

Fine with everyone here?

from ui.

Depado avatar Depado commented on June 26, 2024

Looks fine to me ^^

from ui.

andlabs avatar andlabs commented on June 26, 2024

Migrated to libui as andlabs/libui#5; follow that instead

from ui.

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.