Search
Thursday, 17th of May 2018, 1:59:13 UTC
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
7:43:12
jackdaniel
in principle you could enforce min-height height and max-height of the pane to be exactly as height you want, but that requires creating your own pane and defining method for space requirements
7:43:44
jackdaniel
so as in gadget video you create this method, but instead of inheriting from basic-gadget you inherit from the application-pane
7:43:52
jackdaniel
(and specialize on this class)
7:58:41
knobo
Would be fun having something like animation hepler function javascript has. Like for example window.requestAnimationFrame()
7:59:13
knobo
But, it's not so dificult to implement my self, though.
13:42:47
loke
What's the ACCEPT type I should use to input plain text?
13:43:08
loke
STRING accepts a Lisp string, meaning that you can put quotes around it and stuff
Thursday, 17th of May 2018, 13:59:13 UTC