Search
7:26:12
knobo
Can I have an inverted coordination system? Where y=0 is at the bottom of the pane?
7:34:56
jackdaniel
knobo: with-room-for-graphics is the macro you want to use
7:35:05
jackdaniel
keep in mind, that you need to know, where is "bottom"
7:35:18
jackdaniel
so you'll probably take pane-width for that
7:35:21
jackdaniel
but panes are just
7:35:29
jackdaniel
windows showing part of the sheet
7:35:35
jackdaniel
and sheet extends infinetely
7:35:57
jackdaniel
this may be interesting to you: https://common-lisp.net/project/mcclim/posts/Sheets-as-ideal-forms.html
7:36:13
jackdaniel
pane-height* not pane-width
7:37:35
knobo
How do I get pane-height? there is no function like that. Maybe just access 'the slot?
7:39:34
knobo
like this: (clim-internals::pane-current-height pane)
7:40:33
jackdaniel
possibly, I don't know
7:41:58
jackdaniel
either way with-room-for-graphics by default inverts Y-axis (first-quadrant key argument) and accepts :height argument
7:42:28
jackdaniel
so if you invoke with-room-for-graphics HEIGHT before the bottom of the pane, then you start at the bottom of it