"Fossies" - the Fresh Open Source Software Archive

Member "FreeBASIC-1.05.0-linux-x86_64/include/freebasic/IUP/iup_plot.bi" (31 Jan 2016, 4746 Bytes) of package /linux/privat/FreeBASIC-1.05.0-linux-x86_64.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Visual Basic source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 '' FreeBASIC binding for iup-3.15
    2 ''
    3 '' based on the C header files:
    4 ''   Copyright (C) 1994-2015 Tecgraf, PUC-Rio.
    5 ''
    6 ''   Permission is hereby granted, free of charge, to any person obtaining
    7 ''   a copy of this software and associated documentation files (the
    8 ''   "Software"), to deal in the Software without restriction, including
    9 ''   without limitation the rights to use, copy, modify, merge, publish,
   10 ''   distribute, sublicense, and/or sell copies of the Software, and to
   11 ''   permit persons to whom the Software is furnished to do so, subject to
   12 ''   the following conditions:
   13 ''
   14 ''   The above copyright notice and this permission notice shall be
   15 ''   included in all copies or substantial portions of the Software.
   16 ''
   17 ''   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
   18 ''   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   19 ''   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
   20 ''   IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
   21 ''   CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
   22 ''   TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
   23 ''   SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   24 ''
   25 '' translated to FreeBASIC by:
   26 ''   Copyright © 2015 FreeBASIC development team
   27 
   28 #pragma once
   29 
   30 #inclib "iup_plot"
   31 
   32 extern "C"
   33 
   34 #define __IUP_PLOT_H
   35 declare sub IupPlotOpen()
   36 declare function IupPlot() as Ihandle ptr
   37 declare sub IupPlotBegin(byval ih as Ihandle ptr, byval strXdata as long)
   38 declare sub IupPlotAdd(byval ih as Ihandle ptr, byval x as double, byval y as double)
   39 declare sub IupPlotAddStr(byval ih as Ihandle ptr, byval x as const zstring ptr, byval y as double)
   40 declare sub IupPlotAddSegment(byval ih as Ihandle ptr, byval x as double, byval y as double)
   41 declare function IupPlotEnd(byval ih as Ihandle ptr) as long
   42 declare function IupPlotLoadData(byval ih as Ihandle ptr, byval filename as const zstring ptr, byval strXdata as long) as long
   43 declare function IupPlotSetFormula(byval ih as Ihandle ptr, byval sample_count as long, byval formula as const zstring ptr, byval init as const zstring ptr) as long
   44 declare sub IupPlotInsert(byval ih as Ihandle ptr, byval ds_index as long, byval sample_index as long, byval x as double, byval y as double)
   45 declare sub IupPlotInsertStr(byval ih as Ihandle ptr, byval ds_index as long, byval sample_index as long, byval x as const zstring ptr, byval y as double)
   46 declare sub IupPlotInsertSegment(byval ih as Ihandle ptr, byval ds_index as long, byval sample_index as long, byval x as double, byval y as double)
   47 declare sub IupPlotInsertStrSamples(byval ih as Ihandle ptr, byval ds_index as long, byval sample_index as long, byval x as const zstring ptr ptr, byval y as double ptr, byval count as long)
   48 declare sub IupPlotInsertSamples(byval ih as Ihandle ptr, byval ds_index as long, byval sample_index as long, byval x as double ptr, byval y as double ptr, byval count as long)
   49 declare sub IupPlotAddSamples(byval ih as Ihandle ptr, byval ds_index as long, byval x as double ptr, byval y as double ptr, byval count as long)
   50 declare sub IupPlotAddStrSamples(byval ih as Ihandle ptr, byval ds_index as long, byval x as const zstring ptr ptr, byval y as double ptr, byval count as long)
   51 declare sub IupPlotGetSample(byval ih as Ihandle ptr, byval ds_index as long, byval sample_index as long, byval x as double ptr, byval y as double ptr)
   52 declare sub IupPlotGetSampleStr(byval ih as Ihandle ptr, byval ds_index as long, byval sample_index as long, byval x as const zstring ptr ptr, byval y as double ptr)
   53 declare function IupPlotGetSampleSelection(byval ih as Ihandle ptr, byval ds_index as long, byval sample_index as long) as long
   54 declare sub IupPlotSetSample(byval ih as Ihandle ptr, byval ds_index as long, byval sample_index as long, byval x as double, byval y as double)
   55 declare sub IupPlotSetSampleStr(byval ih as Ihandle ptr, byval ds_index as long, byval sample_index as long, byval x as const zstring ptr, byval y as double)
   56 declare sub IupPlotSetSampleSelection(byval ih as Ihandle ptr, byval ds_index as long, byval sample_index as long, byval selected as long)
   57 declare sub IupPlotTransform(byval ih as Ihandle ptr, byval x as double, byval y as double, byval cnv_x as double ptr, byval cnv_y as double ptr)
   58 declare sub IupPlotTransformTo(byval ih as Ihandle ptr, byval cnv_x as double, byval cnv_y as double, byval x as double ptr, byval y as double ptr)
   59 declare function IupPlotFindSample(byval ih as Ihandle ptr, byval cnv_x as double, byval cnv_y as double, byval ds_index as long ptr, byval sample_index as long ptr) as long
   60 type _cdCanvas as _cdCanvas_
   61 declare sub IupPlotPaintTo(byval ih as Ihandle ptr, byval cnv as _cdCanvas ptr)
   62 
   63 end extern