[Ipe-discuss] Checking HOSTNAME in an ipelet

Otfried Cheong otfried at ipe.airpost.net
Tue Nov 9 06:26:47 CET 2010


On 11/09/2010 01:59 PM, Otfried Cheong wrote:
> I guess Ipe could provide the screen geometry to the lua environment,
> then you wouldn't have to play such tricks.

Here is a patch for src/ipe/main.cpp, which sets config.screen_geometry.

So you can get the screen width in an ipelet using _G.config.screen_width.

This will be in the next release.

Cheers,
  Otfried




-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
Url: http://lists.science.uu.nl/pipermail/ipe-discuss/attachments/20101109/af7d435e/attachment.txt 


More information about the Ipe-discuss mailing list