libera/#clim - IRC Chatlog
Search
14:52:11
scymtym
{FORCE,FINISH}-OUTPUT do nothing but notify the port of the request which is then handled in a slightly special way
14:53:39
scymtym
the tricky part is not drawing everything to the screen at 60 fps when nothing has changed while at the same time reacting to input events or drawing operations without latency
14:54:35
scymtym
yes, still working on it. i'm pretty sure i have the architecture figured out, but i need lots of architectural changes in preparation which i have to consolidate and clean up
14:55:06
mcoll
how do I redraw text to account for new window size? I amb doing (format stream ...) but when I resize the window the text stays wrapped at the previous window size
14:56:09
beach
scymtym: So given that there is no ETA for the new backend, let me rephrase my initial question: How do I display a CLIM pixmap in a CLIM pane so that scrolling is tolerably fast?
14:57:34
scymtym
beach: once you have the desired pixel data in the pixmap, i think MEDIUM-COPY-AREA would be the means of displaying
14:58:09
scymtym
to tie that into output record replay, maybe make a custom output record type and call MEDIUM-COPY-AREA in the REPLAY-OUTPUT-RECORD method
15:03:10
beach
mcoll: I believe someone wrote a pane class or something similar that will do reflow.
15:04:10
beach
And jackdaniel will know, but he is probably spending the weekend with his family as well.
15:04:54
mcoll
thanks! I also just found (stream-end-of-line-action) which when set to :allow disables the wrapping, will test now
15:07:55
mcoll
I have to understand the whole output record stuff, still don't understand exactly how it works and how to work with them
15:21:07
mcoll
hmmm, how can I handle a click on something that has been drawn as a presentation type. So I have an item and it is drawn to screen using presentation types, I want to be able to click on it to toggle it, but afaik handle-event cannot be specialized for this
15:22:06
beach
You might want to define a presentation-to-command-translator that changes how it is drawn.
15:22:54
scymtym
easiest way is (define-command (com-toggle-item :command-table YOUR-APPLICATION-FRAME-NAME) ((item 'item :gesture :select)) (toggle-item item))
15:23:17
scymtym
the :gesture :select part generates the presentation to command translator that beach mentioned automatically
15:24:03
scymtym
:SELECT is usually an alias for "left point button click" (might actually be button press or button release)
15:28:14
scymtym
yeah, that's the part that makes certain types of user interfaces extremely easy and quick with CLIM
17:03:47
mcoll
I discovered the single-box option so that I get a single box out of a lot of text instead of small boxes, but I'd like to specify a bigger highlight box for some entries
17:13:58
mcoll
hmmm, I cannot set text family to monospaced, it says "The following files should exist" and list a whole lot of files that *do* exist from cl-dejavu
19:39:10
mcoll
how could I refresh the rendering as soon as a promise resolves for example? I'm fine if it means polling from time to time. Is there any way to run a refresh from time to time and redraw on data change? How does data-binding work in McCLIM?
19:40:51
mcoll
to give a little bit more context, I'm running some external commands wrapped in an lparallel future that I want to show when they are resolved