Giter Site home page Giter Site logo

Document constants about gtk.jl HOT 5 CLOSED

juliagraphics avatar juliagraphics commented on July 20, 2024
Document constants

from gtk.jl.

Comments (5)

timholy avatar timholy commented on July 20, 2024

OK, I did a git bisect (using Julia 0.2, as the recent changes to the timer interface made it not possible under julia 0.3). It looks like the culprit is simple: Gtk.GdkEventType.SCROLL is what I switched to because (by grepping inside src) it was the only constant I could find with SCROLL in the name. The proper choice seems to be Gtk.GConstants.GdkEventMask.SCROLL.

Any thoughts on what we should do to document GConstants?

from gtk.jl.

vtjnash avatar vtjnash commented on July 20, 2024

i guess it's not really necessary to dump all of those symbols in GConstants, it might be better to just put them in Gtk

from gtk.jl.

timholy avatar timholy commented on July 20, 2024

Or a recommendation to say using Gtk.GConstants along with Gtk.ShortNames. I'm fine with either.

But I am serious about the documentation question: it's a lot of constants, so the idea of documenting each is...unattractive. I presume they follow a generic pattern, perhaps we can just explain the pattern/categories (e.g., GdkEventMask, GdkEventType) and otherwise point to the Gtk documentation?

from gtk.jl.

vtjnash avatar vtjnash commented on July 20, 2024

GConstants is auto-generated, so they should match the Gtk documentation exactly

from gtk.jl.

timholy avatar timholy commented on July 20, 2024

I'll see what I can come up with.

from gtk.jl.

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.