libera/#clim - IRC Chatlog
Search
15:14:24
lukego
Hey should (replay-output-record (with-output-to-output-record ...code...)) give the same results as just ...code... itself? i.e. should capturing an output record and replaying it onto a sheet have the same effect as just drawing straight on the sheet?
15:15:41
beach
Usually drawing to a sheet is done when output recording is activated. Not so when output records are replayed.
15:16:53
beach
But if your sheet has output recording off, then that is exactly what happens when you replay the output records. CLIM dispatches on the type of output record and calls a drawing function on the sheet.
15:31:07
lukego
Yeah, I don't really understand your answer and will need to look it up, don't have a handle on how enabling/disabling output recording interacts with this stuff.
15:31:21
beach
In a display function, when you call a drawing function, two things happen. It is captured in an output record, and it is drawn to the sheet.
15:31:48
beach
When you expose a window that has been hidden, only the recorded output is used and replayed.
15:32:03
lukego
I also tried capturing an output record and then replaying it with a transformation in effect, expecting to see it transformed, but got an empty result. guessing it's the same issue i.e. for some reason the output record that is capured (and it is captured, I've poked it in the inspect) somehow doesn't do anything with replayed
15:33:07
beach
I forget what the spec says about what needs to be captured in an output record. You need to read it yourself if you want to know.
15:33:12
jackdaniel
in theory replaying output record that captured a drawing routine should have the same effect as the original drawing
15:34:24
beach
So that would explain why it won't work to replay output records with a different transformation.