Re: XForms: different types

From: Lars Gullik Bjønnes (larsbj@lyx.org)
Date: Sat May 20 2000 - 20:18:41 EDT

  • Next message: Lars Gullik Bjønnes: "XForms: Unknown target: 383"

    # To subscribers of the xforms list from larsbj@lyx.org (Lars Gullik Bjønnes) :

    Steve Lamont <spl@blinky.ucsd.edu> writes:

    | > FL_EXPORT void fl_set_scrollbar_increment(FL_OBJECT *, double, double);
    | > FL_EXPORT void fl_get_scrollbar_increment(FL_OBJECT *, float *, float *);
    | > FL_EXPORT void fl_set_scrollbar_bounds(FL_OBJECT *, double, double);
    | > FL_EXPORT void fl_get_scrollbar_bounds(FL_OBJECT *, float *, float *);
    | >
    | > Are there any special reasons why the set functions take different
    | > types than the get functions?
    |
    | Mostly that the values are promoted to double when passed to the
    | fl_set...() functions anyhow. They are carried internally as floats,
    | however. I believe the manual mentions this somewhere.

    I just remembered why I looked at this in the first place:

    FL_EXPORT void fl_set_chart_bounds(FL_OBJECT *, double, double);
    FL_EXPORT void fl_get_chart_bounds(FL_OBJECT *, double *, double *);

    FL_EXPORT void fl_set_counter_bounds(FL_OBJECT *, double, double);
    FL_EXPORT void fl_get_counter_bounds(FL_OBJECT *, double *, double *);

    FL_EXPORT void fl_set_dial_bounds(FL_OBJECT *, double, double);
    FL_EXPORT void fl_get_dial_bounds(FL_OBJECT *, double *, double *);

    FL_EXPORT void fl_set_scrollbar_bounds(FL_OBJECT *, double, double);
    FL_EXPORT void fl_get_scrollbar_bounds(FL_OBJECT *, float *, float *);

    FL_EXPORT void fl_set_xyplot_xbounds(FL_OBJECT *, double, double);
    FL_EXPORT void fl_set_xyplot_ybounds(FL_OBJECT *, double, double);
    FL_EXPORT void fl_get_xyplot_xbounds(FL_OBJECT *, float *, float *);
    FL_EXPORT void fl_get_xyplot_ybounds(FL_OBJECT *, float *, float *);

    This looks a bit inconsistent.

            Lgb
    _________________________________________________
    To unsubscribe, send the message "unsubscribe" to
    xforms-request@bob.usuhs.mil or see
    http://bob.usuhs.mil/mailserv/xforms.html
    XForms Home Page: http://world.std.com/~xforms
    List Archive: http://bob.usuhs.mil/mailserv/list-archives/



    This archive was generated by hypermail 2b29 : Sat May 20 2000 - 20:28:31 EDT