The relevant code is in grab.{h,c}
All you would need to do is implement elicit_grab_region(), which fills
the data pointer (an int array) with the screen data for the region
passed in.
For now, just conditionally compiling the correct implementation should
be enough. No need for modules unless one wants multiple grabbers for a
single OS (e.g. maybe something that grabs the pixels from the
compositor if one if running?)
Brian
Vincent Torri wrote:
>
> Hey,
>
>> For those of you who use elicit (a screen magnifier /color picker), I
>> have a mostly rewritten version in a git repository at:
>> http://github.com/rephorm/elicit/
>>
>> It is still under construction, but most of the functionality is there
>> again, plus a bit more.
>>
>> I have not reimplemented the ruler yet, but you can now right click and
>> drag in the screen shot to select a region there and get information
>> about its width/height (nicer than counting pixels).
>>
>> The README explains what has been implemented so far.
>>
>> Let me know if you have any comments, concerns or criticisms.
>
> i know how to get a screenshot of the entire screen on windows. I've
> not looked deeply at your code, but can you guide me a bit, to know
> which part i should rewrite for a windows port ? I think that, except
> the imlib2 part for the screen capture, everything is already ported
> to windows. Hence, the amount of work should be minimal.
>
> And maybe it would be nice to have maybe some "modules", in order to
> make elicit working on other computers / devices. What do you think ?
>
> Vincent
------------------------------------------------------------------------------
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel