Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
andlabs
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
andlabs
8y ago
Oops, if it wasn't container.cpp it was parent.cpp; I forget which file right now
2.
▲
by
andlabs
8y ago
Oh, and one other thing I forgot to mention about documentation: the nature of this project requires me to balance what I can get behaving identically across platforms, what I can guarantee about behavior across platforms that must differ,
3.
▲
by
andlabs
8y ago
Not only does libui not yet do drag-and-drop, but drag-and-drop is sufficiently complex enough that simple libraries are probably not going to have this out of the box. That being said, I do plan on adding drag-and-drop later.
4.
▲
by
andlabs
8y ago
It does this for "Releases", but not for entire projects. And if someone starts browsing files, then you'd have to worry about what that status is at the commit for the file you are reading; this will vary based on how the pr
5.
▲
by
andlabs
8y ago
(Hint: I am trying to make libui's in-code documentation match the Go style, which no existing C-based documentation tool seems to do...)
6.
▲
by
andlabs
8y ago
Except that would make uiPi a long double, whereas every drawing API in libui just takes a double. Now as to whether the drawing APIs should use long double instead of double, I don't know; I will say that both cairo and Quartz/Co
7.
▲
by
andlabs
8y ago
Also the design of uiGrid was directly based on that of GtkGrid.
8.
▲
by
andlabs
8y ago
I don't know, but I do know I'm in the middle of making sure any non-static symbol name in libui either has a prefix of ui[capital letter] or uipriv[capital letter] to at least ameliorate this madness.
9.
▲
by
andlabs
8y ago
I assume you are using the Windows version. The slowness is a bug that I have to fix; there are several issues about it, and a few ideas of how to fix it. You can comment out some code in container.cpp if you want to have it go fast but als
10.
▲
by
andlabs
8y ago
I do intend on this being a serious offering; it just wasn't an offering I was ready to make yet when people jumped on it. What have people not yet figured out about cross-platform graphics? If we knew exactly what was wrong, we could
11.
▲
by
andlabs
8y ago
Judging from the comments here, it appears I have completely failed at properly getting across just how early this thing is in development. I've since updated my README with a status report. As for documentation, that is an active WIP.
12.
▲
by
andlabs
8y ago
Also (for the benefit of the rest of HN) s/as/but/ — I had problems on Windows, and someone is proposing a solution I just need to merge in once the mega-PR that added it and a bunch of other things are split into more manage
13.
▲
by
andlabs
8y ago
No, the data grid has problems on Windows, as that code is being contributed by someone else. I already have it on macOS and Linux, and have for years now... Hopefully soon the Windows code will be merged in and we can keep going.
14.
▲
by
andlabs
10y ago
libui only wraps around GTK+ on Unix systems. On Windows, it uses the native Windows API directly. GLib is a utility library; it provides things like container types, filesystem access, networking utilities, threads, object-oriented program
15.
▲
by
andlabs
10y ago
Just a quick note: I will now be putting announcements and updates on the README.
16.
▲
by
andlabs
10y ago
It needs to be written because when I put that note down the API wasn't stable. Now that it's mostly stable I can start writing the documentation, which should be very detailed. There's already bits of it in the docs/ fo
17.
▲
by
andlabs
10y ago
That's planned, yes. (I have to do it anyway, because in most cases it's the print dialog that gives you the printer device cntext...) This is also why it's uiDrawContext, not uiAreaDrawContext.
18.
▲
by
andlabs
10y ago
Benjamin Otte recently added uxtheme.dll support to the CSS engine and I've already seen a few screenshots of the win32 theme using it to okay effect. I wrote a patch to add OS X cursor support to GDK last year and it was taken, not to
19.
▲
by
andlabs
10y ago
What trouble?
20.
▲
by
andlabs
10y ago
I haven't implemented that, and I'm not sure how I would add support for implementing that in a portable way without creating a complete networking abstraction interface either... In the meantime, you could do your socket work on
21.
▲
by
andlabs
12y ago
I'm now willing to try callbacks because I have no idea anymore. http://andlabs.lostsig.com/blog/2014/06/27/61/my-ui-package-... What do you all think of this design?
22.
▲
by
andlabs
12y ago
A bunch of people have commented on this blog post wearing me away from this new design. To their credit, yes, things do get unwieldy fast... but now I'm not sure where I want to take things as far as event handling is concerned. Maybe
23.
▲
by
andlabs
12y ago
Actually OS X is the only system that guarantees application-modal dialog boxes stay always on top; it's the other platforms that I would need to worry about.
24.
▲
by
andlabs
12y ago
Note: since writing that article I have now started, and am now mostly finished with, this rewrite, having only one last ink to work on... dialog boxes. This was always a big disaster ecause every OS has a wildly different model, and now I&
25.
▲
by
andlabs
12y ago
If I recall correctly, the point of Singularity wasn't to have a platform base where all programming languages shared the same infrastructure, but rather to have an operating system that ran (almost) entirely in "managed code"
26.
▲
by
andlabs
12y ago
All indentation ones except the L35-37 ones are lack of go fmt. I will go fmt once I can double-check exactly what go fmt changes. L35-37 I'm not sure what problem that has; I just put the very long bitmask on its own line. The undersc
27.
▲
by
andlabs
12y ago
links to the contest, thanks Nate Finch: http://blog.labix.org/2014/03/13/go-qml-contest http://blog.labix.org/2014/04/25/qml-contest-results
28.
▲
by
andlabs
12y ago
Existing GTK+ bindings require very recent versions of GTK+, which, while they provide some useful things, fail backwards-compatibility tests pretty hard, especially on distributions like Ubuntu. That being said, I do have a project in mind
29.
▲
by
andlabs
12y ago
Are you sure the code in checkbox.go is commented out? That's not what I see. As for area_darwin.go, though it's a comment, it's actually C code being sent to an FFI: http://tip.golang.org/cmd/cgo/
30.
▲
by
andlabs
12y ago
Doing it in another language would probably require rewriting the entirety of LibreOffice, which is a very massive project with code spanning at least a decade, if not more. They recently switched away from a proprietary (in the sense that
More ›