Views: 6,919,707 | Homepage | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search | 04-26-24 01:26 AM |
Guest: |
Main - Posts by andlabs |
andlabs |
| ||
Newcomer Normal user Level: 4 Posts: 1/2 EXP: 138 Next: 141 Since: 10-05-17 Last post: 2391 days ago Last view: 2380 days ago |
Posted by StapleButter On Windows I need to take out a UTF-16 string and convert it to UTF-8, so allocation is going to happen anyway. This is more do-able on the other platforms, of course.
In the event of having multiple Areas that share the same set of events. Think of it as a way of creating your own controls without extending libui.
I could locally copy it.
Your initial window size is not big enough in this case, because it's GTK+ that limits the size on libui's behalf. Of note is that GTK+ tabs ("notebooks") request enough space for the largest tab page at all times, even if that page isn't the active one. You'll have to talk to the GTK+ team about that. Also note that the minimum size of controls is also theme-dependent.
I've wanted to do the filtering, but in one of the OSs if you specify an extension filter in a save dialog, you can't override it. I forget if there were other issues. As for the starting directory, I forget if the OSs take care of that themselves, and if so, which OSs do (or what I would need to do to enable it if not).
This is in the works as part of the uiTable API. Not sure how it will suit melonDS though...
This is deliberate; I wanted uiArea key events to be keyboard layout-independent. This decision is showing its flaws, but I'm not sure yet what I'll do about it. Also note that OS X uses its own scancode list for all keyboards.
I thought I took care of this already, but it's probably a TODO. What hack did you do?
What do you mean by getting or losing focus? And for file drag and drop, I've wanted to put that in both uiArea and uiTable as an extra option and as an API, but that was a distant goal. Not sure about doing it to uiWindow...
What does this do?
All libui functions except uiQueueMain() are not thread-safe (in fact, that's the whole point of uiQueueMain()). What did you do for this function? I wonder if it's the right thing to do in the first place...
Try disabling the WM_CTLCOLOR stuff in windows/parent.cpp or windows/container.cpp (I forget now where it is at present) and seeing if that is the real problem. Other people say it is, but a correct fix that still looks good (as removing that code would make tabs look bad) would require a(nother) major rearchitecture of libui's control hierarchy structure... If it turns out the containers are indeed slow, I can try switching back to the DeferSetWindowPos() system, but I forget if I'm already using that... |
andlabs |
| ||
Newcomer Normal user Level: 4 Posts: 2/2 EXP: 138 Next: 141 Since: 10-05-17 Last post: 2391 days ago Last view: 2380 days ago |
Posted by StapleButterThe plan for uiImage or uiDrawImage (I forget what it's called) is that it stores a bitmap image of a given point size that's backed by one or more representations. Each representation must have the same aspect ratio, but may have different pixel dimensions. libui will automatically pick the best image representation for the target device (so images will scale properly with DPI changes). Actually libui's system is *bad* for text editing, because it's entirely positional. I plan on making a text editing API that integrates tightly with the system. I'm still not sure how your request isn't satisfied by the current API; you just need to determine which of Key, ExtKey, or Modifier is nonzero (in that order), interpret that key, and use Up to see if it's pressed or released. I am currently swallowing knowledge of whether a left or right modifier key is pressed; not sure why I did that or if I should continue to do that... In that case, I would need to subclass some container and implement get_preferreed_width() and get_preferred_height() and call queue_resize() to do the size change. I'm not sure how well this will work the first time or subsequent times... I can add keyboard focus functions, yes. (On Windows a control has to explicitly request keyboard focus.) Then just use uiQueueMain() on all platforms; that's what it's for =P |
Main - Posts by andlabs |
Page rendered in 0.030 seconds. (2048KB of memory used) MySQL - queries: 22, rows: 67/67, time: 0.012 seconds. Acmlmboard 2.064 (2018-07-20) © 2005-2008 Acmlm, Xkeeper, blackhole89 et al. |