On 05/28/12 10:19, testalucida wrote:
> thank you and have a nice day.
> 
>>              b) use the new fltk matrix stuff (fl_pushmatrix(), 
>> fl_translate()..)
>>                 to move the drawing origin around

    I should add to (b), I don't think the new matrix manipulation
    functions affect most widget drawing.

    Doing a little research, according to the new 1.3 docs for drawing:
    http://fltk.org/doc-1.3/drawing.html

    ..there are apparently two classes of FLTK drawing functions now;
    some are un-affected by the matrix functions, and some that are:

                1) Fast Shapes    -- fl_rect(), fl_line(), etc.. (unaffected)
                2) Complex Shapes -- fl_begin_polygon(), fl_begin_line().. 
(affected)

    The new transformation matrix stuff only affects the complex shape
    drawing functions (2), whereas fltk's widgets mostly use (1)
    which are unaffected by the new matrix routines.

    Since the drawing matrix doesn't affect fast shapes, and I don't think
    if affects event positions (like Fl::event_x(), Fl::event_y()), it can't
    be used to move widgets or events.

    Perhaps this is something being rectified in fltk3, not sure(?).
    If it were, I suppose that would allow for things like rotated
    widgets, such as what the newer html5 webpages support now, eg:

    http://www.carto.net/svg/gui/combobox/index.svg
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to