Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unit iup;
- {$mode objfpc}
- {$macro on}
- //{$linklib c}
- //{$linklib /home/tom/Desktop/iup/lib/Linux45_64/libiup.a}
- interface
- uses iupkey, iupdef;
- {
- Automatically converted by H2Pas 1.0.0 from ../../include/iup.h
- The following command line parameters were used:
- ../../include/iup.h
- -o
- ./iup.pas
- }
- Type
- Ihandle = record end;
- Pbyte = ^byte;
- Pchar = ^char;
- PIhandle = ^Ihandle;
- PPIhandle = ^PIhandle;
- Plongint = ^longint;
- {$IFDEF FPC}
- {$PACKRECORDS C}
- {$ENDIF}
- {* \file
- * \brief User API
- * IUP - A Portable User Interface Toolkit
- * Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil
- * http://www.tecgraf.puc-rio.br/iup mailto:iup@tecgraf.puc-rio.br
- *
- * See Copyright Notice at the end of this file
- }
- {$ifndef __IUP_H }
- {$define __IUP_H}
- { C++ extern C conditionnal removed }
- const
- IUP_NAME = 'IUP - Portable User Interface';
- IUP_DESCRIPTION = 'Multi-platform Toolkit for Building Graphical User Interfaces';
- IUP_COPYRIGHT = 'Copyright (C) 1994-2016 Tecgraf/PUC-Rio';
- { bug fixes are reported only by IupVersion functions }
- IUP_VERSION = '3.18';
- IUP_VERSION_NUMBER = 318000;
- { does not include bug fix releases }
- IUP_VERSION_DATE = '2016/03/21';
- type
- Ihandle_ = Ihandle;
- Icallback = function (_para1:PIhandle):longint;cdecl;
- {$define liup:= cdecl; external 'libiup'}
- function IupOpen(argc:Pinteger; argv:PPPchar):longint;liup;
- procedure IupClose;liup;
- procedure IupImageLibOpen;liup;
- function IupMainLoop:longint;liup;
- function IupLoopStep:longint;liup;
- function IupLoopStepWait:longint;liup;
- function IupMainLoopLevel:longint;liup;
- procedure IupFlush;liup;
- procedure IupExitLoop;liup;
- (* Const before type ignored *)
- function IupRecordInput(filename:Pchar; mode:longint):longint;liup;
- (* Const before type ignored *)
- function IupPlayInput(filename:Pchar):longint;liup;
- procedure IupUpdate(ih:PIhandle);liup;
- procedure IupUpdateChildren(ih:PIhandle);liup;
- procedure IupRedraw(ih:PIhandle; children:longint);liup;
- procedure IupRefresh(ih:PIhandle);liup;
- procedure IupRefreshChildren(ih:PIhandle);liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- function IupExecute(filename:Pchar; parameters:Pchar):longint;liup;
- (* Const before type ignored *)
- function IupHelp(url:Pchar):longint;liup;
- (* Const before type ignored *)
- function IupLoad(filename:Pchar):pchar;liup;
- (* Const before type ignored *)
- function IupLoadBuffer(buffer:Pchar):pchar;liup;
- function IupVersion:pchar;liup;
- function IupVersionDate:pchar;liup;
- function IupVersionNumber:longint;liup;
- (* Const before type ignored *)
- procedure IupSetLanguage(lng:Pchar);liup;
- function IupGetLanguage:pchar;liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- procedure IupSetLanguageString(name:Pchar; str:Pchar);liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- procedure IupStoreLanguageString(name:Pchar; str:Pchar);liup;
- (* Const before type ignored *)
- function IupGetLanguageString(name:Pchar):pchar;liup;
- procedure IupSetLanguagePack(ih:PIhandle);liup;
- procedure IupDestroy(ih:PIhandle);liup;
- procedure IupDetach(child:PIhandle);liup;
- function IupAppend(ih:PIhandle; child:PIhandle):PIhandle;liup;
- function IupInsert(ih:PIhandle; ref_child:PIhandle; child:PIhandle):PIhandle;liup;
- function IupGetChild(ih:PIhandle; pos:longint):PIhandle;liup;
- function IupGetChildPos(ih:PIhandle; child:PIhandle):longint;liup;
- function IupGetChildCount(ih:PIhandle):longint;liup;
- function IupGetNextChild(ih:PIhandle; child:PIhandle):PIhandle;liup;
- function IupGetBrother(ih:PIhandle):PIhandle;liup;
- function IupGetParent(ih:PIhandle):PIhandle;liup;
- function IupGetDialog(ih:PIhandle):PIhandle;liup;
- (* Const before type ignored *)
- function IupGetDialogChild(ih:PIhandle; name:Pchar):PIhandle;liup;
- function IupReparent(ih:PIhandle; new_parent:PIhandle; ref_child:PIhandle):longint;liup;
- function IupPopup(ih:PIhandle; x:longint; y:longint):longint;liup;
- function IupShow(ih:PIhandle):longint;liup;
- function IupShowXY(ih:PIhandle; x:longint; y:longint):longint;liup;
- function IupHide(ih:PIhandle):longint;liup;
- function IupMap(ih:PIhandle):longint;liup;
- procedure IupUnmap(ih:PIhandle);liup;
- (* Const before type ignored *)
- procedure IupResetAttribute(ih:PIhandle; name:Pchar);liup;
- function IupGetAllAttributes(ih:PIhandle; names:PPchar; n:longint):longint;liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- function IupSetAtt(handle_name:Pchar; ih:PIhandle; name:Pchar; args:array of const):PIhandle;liup;
- (* Const before type ignored *)
- function IupSetAttributes(ih:PIhandle; str:Pchar):PIhandle;liup;
- function IupGetAttributes(ih:PIhandle):pchar;liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- procedure IupSetAttribute(ih:PIhandle; name:Pchar; value:Pchar);liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- procedure IupSetStrAttribute(ih:PIhandle; name:Pchar; value:Pchar);liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- procedure IupSetStrf(ih:PIhandle; name:Pchar; format:Pchar; args:array of const);liup;
- (* Const before type ignored *)
- procedure IupSetInt(ih:PIhandle; name:Pchar; value:longint);liup;
- (* Const before type ignored *)
- procedure IupSetFloat(ih:PIhandle; name:Pchar; value:single);liup;
- (* Const before type ignored *)
- procedure IupSetDouble(ih:PIhandle; name:Pchar; value:double);liup;
- (* Const before type ignored *)
- procedure IupSetRGB(ih:PIhandle; name:Pchar; r:byte; g:byte; b:byte);liup;
- (* Const before type ignored *)
- function IupGetAttribute(ih:PIhandle; name:Pchar):pchar;liup;
- (* Const before type ignored *)
- function IupGetInt(ih:PIhandle; name:Pchar):longint;liup;
- (* Const before type ignored *)
- function IupGetInt2(ih:PIhandle; name:Pchar):longint;liup;
- (* Const before type ignored *)
- function IupGetIntInt(ih:PIhandle; name:Pchar; i1:Plongint; i2:Plongint):longint;liup;
- (* Const before type ignored *)
- function IupGetFloat(ih:PIhandle; name:Pchar):single;liup;
- (* Const before type ignored *)
- function IupGetDouble(ih:PIhandle; name:Pchar):double;liup;
- (* Const before type ignored *)
- procedure IupGetRGB(ih:PIhandle; name:Pchar; r:Pbyte; g:Pbyte; b:Pbyte);liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- procedure IupSetAttributeId(ih:PIhandle; name:Pchar; id:longint; value:Pchar);liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- procedure IupSetStrAttributeId(ih:PIhandle; name:Pchar; id:longint; value:Pchar);liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- procedure IupSetStrfId(ih:PIhandle; name:Pchar; id:longint; format:Pchar; args:array of const);liup;
- (* Const before type ignored *)
- procedure IupSetIntId(ih:PIhandle; name:Pchar; id:longint; value:longint);liup;
- (* Const before type ignored *)
- procedure IupSetFloatId(ih:PIhandle; name:Pchar; id:longint; value:single);liup;
- (* Const before type ignored *)
- procedure IupSetDoubleId(ih:PIhandle; name:Pchar; id:longint; value:double);liup;
- (* Const before type ignored *)
- procedure IupSetRGBId(ih:PIhandle; name:Pchar; id:longint; r:byte; g:byte;
- b:byte);liup;
- (* Const before type ignored *)
- function IupGetAttributeId(ih:PIhandle; name:Pchar; id:longint):pchar;liup;
- (* Const before type ignored *)
- function IupGetIntId(ih:PIhandle; name:Pchar; id:longint):longint;liup;
- (* Const before type ignored *)
- function IupGetFloatId(ih:PIhandle; name:Pchar; id:longint):single;liup;
- (* Const before type ignored *)
- function IupGetDoubleId(ih:PIhandle; name:Pchar; id:longint):double;liup;
- (* Const before type ignored *)
- procedure IupGetRGBId(ih:PIhandle; name:Pchar; id:longint; r:Pbyte; g:Pbyte;
- b:Pbyte);liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- procedure IupSetAttributeId2(ih:PIhandle; name:Pchar; lin:longint; col:longint; value:Pchar);liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- procedure IupSetStrAttributeId2(ih:PIhandle; name:Pchar; lin:longint; col:longint; value:Pchar);liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- procedure IupSetStrfId2(ih:PIhandle; name:Pchar; lin:longint; col:longint; format:Pchar;
- args:array of const);liup;
- (* Const before type ignored *)
- procedure IupSetIntId2(ih:PIhandle; name:Pchar; lin:longint; col:longint; value:longint);liup;
- (* Const before type ignored *)
- procedure IupSetFloatId2(ih:PIhandle; name:Pchar; lin:longint; col:longint; value:single);liup;
- (* Const before type ignored *)
- procedure IupSetDoubleId2(ih:PIhandle; name:Pchar; lin:longint; col:longint; value:double);liup;
- (* Const before type ignored *)
- procedure IupSetRGBId2(ih:PIhandle; name:Pchar; lin:longint; col:longint; r:byte;
- g:byte; b:byte);liup;
- (* Const before type ignored *)
- function IupGetAttributeId2(ih:PIhandle; name:Pchar; lin:longint; col:longint):pchar;liup;
- (* Const before type ignored *)
- function IupGetIntId2(ih:PIhandle; name:Pchar; lin:longint; col:longint):longint;liup;
- (* Const before type ignored *)
- function IupGetFloatId2(ih:PIhandle; name:Pchar; lin:longint; col:longint):single;liup;
- (* Const before type ignored *)
- function IupGetDoubleId2(ih:PIhandle; name:Pchar; lin:longint; col:longint):double;liup;
- (* Const before type ignored *)
- procedure IupGetRGBId2(ih:PIhandle; name:Pchar; lin:longint; col:longint; r:Pbyte;
- g:Pbyte; b:Pbyte);liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- procedure IupSetGlobal(name:Pchar; value:Pchar);liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- procedure IupSetStrGlobal(name:Pchar; value:Pchar);liup;
- (* Const before type ignored *)
- function IupGetGlobal(name:Pchar):pchar;liup;
- function IupSetFocus(ih:PIhandle):PIhandle;liup;
- function IupGetFocus:PIhandle;liup;
- function IupPreviousField(ih:PIhandle):PIhandle;liup;
- function IupNextField(ih:PIhandle):PIhandle;liup;
- (* Const before type ignored *)
- function IupGetCallback(ih:PIhandle; name:Pchar):Icallback;liup;
- (* Const before type ignored *)
- function IupSetCallback(ih:PIhandle; name:Pchar; func:Icallback):Icallback;liup;
- (* Const before type ignored *)
- function IupSetCallbacks(ih:PIhandle; name:Pchar; func:Icallback; args:array of const):PIhandle;liup;
- (* Const before type ignored *)
- function IupGetFunction(name:Pchar):Icallback;liup;
- (* Const before type ignored *)
- function IupSetFunction(name:Pchar; func:Icallback):Icallback;liup;
- (* Const before type ignored *)
- function IupGetHandle(name:Pchar):PIhandle;liup;
- (* Const before type ignored *)
- function IupSetHandle(name:Pchar; ih:PIhandle):PIhandle;liup;
- function IupGetAllNames(names:PPchar; n:longint):longint;liup;
- function IupGetAllDialogs(names:PPchar; n:longint):longint;liup;
- function IupGetName(ih:PIhandle):pchar;liup;
- (* Const before type ignored *)
- procedure IupSetAttributeHandle(ih:PIhandle; name:Pchar; ih_named:PIhandle);liup;
- (* Const before type ignored *)
- function IupGetAttributeHandle(ih:PIhandle; name:Pchar):PIhandle;liup;
- function IupGetClassName(ih:PIhandle):pchar;liup;
- function IupGetClassType(ih:PIhandle):pchar;liup;
- function IupGetAllClasses(names:PPchar; n:longint):longint;liup;
- (* Const before type ignored *)
- function IupGetClassAttributes(classname:Pchar; names:PPchar; n:longint):longint;liup;
- (* Const before type ignored *)
- function IupGetClassCallbacks(classname:Pchar; names:PPchar; n:longint):longint;liup;
- procedure IupSaveClassAttributes(ih:PIhandle);liup;
- procedure IupCopyClassAttributes(src_ih:PIhandle; dst_ih:PIhandle);liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- (* Const before type ignored *)
- procedure IupSetClassDefaultAttribute(classname:Pchar; name:Pchar; value:Pchar);liup;
- (* Const before type ignored *)
- function IupClassMatch(ih:PIhandle; classname:Pchar):longint;liup;
- (* Const before type ignored *)
- function IupCreate(classname:Pchar):PIhandle;liup;
- (* Const before type ignored *)
- function IupCreatev(classname:Pchar; params:Ppointer):PIhandle;liup;
- (* Const before type ignored *)
- function IupCreatep(classname:Pchar; first:pointer; args:array of const):PIhandle;liup;
- function IupFill:PIhandle;liup;
- function IupRadio(child:PIhandle):PIhandle;liup;
- function IupVbox(child:PIhandle; args:array of const):PIhandle;liup;
- function IupVboxv(children:PPIhandle):PIhandle;liup;
- function IupZbox(child:PIhandle; args:array of const):PIhandle;liup;
- function IupZboxv(children:PPIhandle):PIhandle;liup;
- function IupHbox(child:PIhandle; args:array of const):PIhandle;liup;
- function IupHboxv(children:PPIhandle):PIhandle;liup;
- function IupNormalizer(ih_first:PIhandle; args:array of const):PIhandle;liup;
- function IupNormalizerv(ih_list:PPIhandle):PIhandle;liup;
- function IupCbox(child:PIhandle; args:array of const):PIhandle;liup;
- function IupCboxv(children:PPIhandle):PIhandle;liup;
- function IupSbox(child:PIhandle):PIhandle;liup;
- function IupSplit(child1:PIhandle; child2:PIhandle):PIhandle;liup;
- function IupScrollBox(child:PIhandle):PIhandle;liup;
- function IupGridBox(child:PIhandle; args:array of const):PIhandle;liup;
- function IupGridBoxv(children:PPIhandle):PIhandle;liup;
- function IupExpander(child:PIhandle):PIhandle;liup;
- function IupDetachBox(child:PIhandle):PIhandle;liup;
- function IupBackgroundBox(child:PIhandle):PIhandle;liup;
- function IupFrame(child:PIhandle):PIhandle;liup;
- (* Const before type ignored *)
- function IupImage(width:longint; height:longint; pixmap:Pbyte):PIhandle;liup;
- (* Const before type ignored *)
- function IupImageRGB(width:longint; height:longint; pixmap:Pbyte):PIhandle;liup;
- (* Const before type ignored *)
- function IupImageRGBA(width:longint; height:longint; pixmap:Pbyte):PIhandle;liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- function IupItem(title:Pchar; action:Pchar):PIhandle;liup;
- (* Const before type ignored *)
- function IupSubmenu(title:Pchar; child:PIhandle):PIhandle;liup;
- function IupSeparator:PIhandle;liup;
- function IupMenu(child:PIhandle; args:array of const):PIhandle;liup;
- function IupMenuv(children:PPIhandle):PIhandle;liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- function IupButton(title:Pchar; action:Pchar):PIhandle;liup;
- (* Const before type ignored *)
- function IupCanvas(action:Pchar):PIhandle;liup;
- function IupDialog(child:PIhandle):PIhandle;liup;
- function IupUser:PIhandle;liup;
- (* Const before type ignored *)
- function IupLabel(title:Pchar):PIhandle;liup;
- (* Const before type ignored *)
- function IupList(action:Pchar):PIhandle;liup;
- (* Const before type ignored *)
- function IupText(action:Pchar):PIhandle;liup;
- (* Const before type ignored *)
- function IupMultiLine(action:Pchar):PIhandle;liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- function IupToggle(title:Pchar; action:Pchar):PIhandle;liup;
- function IupTimer:PIhandle;liup;
- function IupClipboard:PIhandle;liup;
- function IupProgressBar:PIhandle;liup;
- (* Const before type ignored *)
- function IupVal(_type:Pchar):PIhandle;liup;
- function IupTabs(child:PIhandle; args:array of const):PIhandle;liup;
- function IupTabsv(children:PPIhandle):PIhandle;liup;
- function IupTree:PIhandle;liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- function IupLink(url:Pchar; title:Pchar):PIhandle;liup;
- (* Const before type ignored *)
- function IupFlatButton(title:Pchar):PIhandle;liup;
- function IupAnimatedLabel(animation:PIhandle):PIhandle;liup;
- function IupDatePick:PIhandle;liup;
- function IupCalendar:PIhandle;liup;
- (* Old controls, use SPIN attribute of IupText *)
- function IupSpin:PIhandle;liup;
- function IupSpinbox(child:PIhandle):PIhandle;liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- function IupStringCompare(str1:Pchar; str2:Pchar; casesensitive:longint; lexicographic:longint):longint;liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- (* Const before type ignored *)
- function IupSaveImageAsText(ih:PIhandle; file_name:Pchar; format:Pchar; name:Pchar):longint;liup;
- procedure IupTextConvertLinColToPos(ih:PIhandle; lin:longint; col:longint; pos:Plongint);liup;
- procedure IupTextConvertPosToLinCol(ih:PIhandle; pos:longint; lin:Plongint; col:Plongint);liup;
- function IupConvertXYToPos(ih:PIhandle; x:longint; y:longint):longint;liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- procedure IupStoreGlobal(name:Pchar; value:Pchar);liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- procedure IupStoreAttribute(ih:PIhandle; name:Pchar; value:Pchar);liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- procedure IupSetfAttribute(ih:PIhandle; name:Pchar; format:Pchar; args:array of const);liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- procedure IupStoreAttributeId(ih:PIhandle; name:Pchar; id:longint; value:Pchar);liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- procedure IupSetfAttributeId(ih:PIhandle; name:Pchar; id:longint; f:Pchar; args:array of const);liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- procedure IupStoreAttributeId2(ih:PIhandle; name:Pchar; lin:longint; col:longint; value:Pchar);liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- procedure IupSetfAttributeId2(ih:PIhandle; name:Pchar; lin:longint; col:longint; format:Pchar;
- args:array of const);liup;
- function IupTreeSetUserId(ih:PIhandle; id:longint; userid:pointer):longint;liup;
- function IupTreeGetUserId(ih:PIhandle; id:longint):pointer;liup;
- function IupTreeGetId(ih:PIhandle; userid:pointer):longint;liup;
- (* Const before type ignored *)
- procedure IupTreeSetAttributeHandle(ih:PIhandle; name:Pchar; id:longint; ih_named:PIhandle);liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- procedure IupTreeSetAttribute(ih:PIhandle; name:Pchar; id:longint; value:Pchar);liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- procedure IupTreeStoreAttribute(ih:PIhandle; name:Pchar; id:longint; value:Pchar);liup;
- (* Const before type ignored *)
- function IupTreeGetAttribute(ih:PIhandle; name:Pchar; id:longint):pchar;liup;
- (* Const before type ignored *)
- function IupTreeGetInt(ih:PIhandle; name:Pchar; id:longint):longint;liup;
- (* Const before type ignored *)
- function IupTreeGetFloat(ih:PIhandle; name:Pchar; id:longint):single;liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- procedure IupTreeSetfAttribute(ih:PIhandle; name:Pchar; id:longint; format:Pchar; args:array of const);liup;
- (* Const before type ignored *)
- function IupGetActionName:pchar;liup;
- (* Const before type ignored *)
- function IupMapFont(iupfont:Pchar):pchar;liup;
- (* Const before type ignored *)
- function IupUnMapFont(driverfont:Pchar):pchar;liup;
- function IupFileDlg:PIhandle;liup;
- function IupMessageDlg:PIhandle;liup;
- function IupColorDlg:PIhandle;liup;
- function IupFontDlg:PIhandle;liup;
- function IupProgressDlg:PIhandle;liup;
- function IupGetFile(arq:Pchar):longint;liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- procedure IupMessage(title:Pchar; msg:Pchar);liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- procedure IupMessagef(title:Pchar; format:Pchar; args:array of const);liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- (* Const before type ignored *)
- (* Const before type ignored *)
- (* Const before type ignored *)
- function IupAlarm(title:Pchar; msg:Pchar; b1:Pchar; b2:Pchar; b3:Pchar):longint;liup;
- (* Const before type ignored *)
- function IupScanf(format:Pchar; args:array of const):longint;liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- function IupListDialog(_type:longint; title:Pchar; size:longint; list:PPchar; op:longint;
- max_col:longint; max_lin:longint; marks:Plongint):longint;liup;
- (* Const before type ignored *)
- function IupGetText(title:Pchar; text:Pchar; maxsize:longint):longint;liup;
- function IupGetColor(x:longint; y:longint; r:Pbyte; g:Pbyte; b:Pbyte):longint;liup;
- type
- Iparamcb = function (dialog:PIhandle; param_index:longint; user_data:pointer):longint;
- (* Const before type ignored *)
- (* Const before type ignored *)
- function IupGetParam(title:Pchar; action:Iparamcb; user_data:pointer; format:Pchar; args:array of const):longint;liup;
- (* Const before type ignored *)
- (* Const before type ignored *)
- function IupGetParamv(title:Pchar; action:Iparamcb; user_data:pointer; format:Pchar; param_count:longint;
- param_extra:longint; param_data:Ppointer):longint;liup;
- (* Const before type ignored *)
- function IupParamf(format:Pchar):PIhandle;liup;
- function IupParamBox(parent:PIhandle; params:PPIhandle; count:longint):PIhandle;liup;
- function IupLayoutDialog(dialog:PIhandle):PIhandle;liup;
- function IupElementPropertiesDialog(elem:PIhandle):PIhandle;liup;
- { C++ end of extern C conditionnal removed }
- {********************************************************************** }
- { Common Flags and Return Values }
- {********************************************************************** }
- const
- IUP_ERROR = 1;
- IUP_NOERROR = 0;
- IUP_OPENED = -(1);
- IUP_INVALID = -(1);
- IUP_INVALID_ID = -(10);
- {********************************************************************** }
- { Callback Return Values }
- {********************************************************************** }
- IUP_IGNORE = -(1);
- IUP_DEFAULT = -(2);
- IUP_CLOSE = -(3);
- IUP_CONTINUE = -(4);
- {********************************************************************** }
- { IupPopup and IupShowXY Parameter Values }
- {********************************************************************** }
- { 65535 }
- IUP_CENTER = $FFFF;
- { 65534 }
- IUP_LEFT = $FFFE;
- { 65533 }
- IUP_RIGHT = $FFFD;
- { 65532 }
- IUP_MOUSEPOS = $FFFC;
- { 65531 }
- IUP_CURRENT = $FFFB;
- { 65530 }
- IUP_CENTERPARENT = $FFFA;
- IUP_TOP = IUP_LEFT;
- IUP_BOTTOM = IUP_RIGHT;
- {********************************************************************** }
- { SHOW_CB Callback Values }
- {********************************************************************** }
- (* error
- enum{IUP_SHOW, IUP_RESTORE, IUP_MINIMIZE, IUP_MAXIMIZE, IUP_HIDE};
- in declaration at line 363 *)
- {********************************************************************** }
- { SCROLL_CB Callback Values }
- {********************************************************************** }
- (* error
- enum{IUP_SBUP, IUP_SBDN, IUP_SBPGUP, IUP_SBPGDN, IUP_SBPOSV, IUP_SBDRAGV,
- in declaration at line 369 *)
- {********************************************************************** }
- { Mouse Button Values and Macros }
- {********************************************************************** }
- IUP_BUTTON1 = '1';
- IUP_BUTTON2 = '2';
- IUP_BUTTON3 = '3';
- IUP_BUTTON4 = '4';
- IUP_BUTTON5 = '5';
- { was #define dname(params) para_def_expr }
- { argument types are unknown }
- { return type might be wrong }
- function iup_isshift(_s : string) : boolean;
- { was #define dname(params) para_def_expr }
- { argument types are unknown }
- { return type might be wrong }
- function iup_iscontrol(_s : string) : boolean;
- { was #define dname(params) para_def_expr }
- { argument types are unknown }
- { return type might be wrong }
- function iup_isbutton1(_s : string) : boolean;
- { was #define dname(params) para_def_expr }
- { argument types are unknown }
- { return type might be wrong }
- function iup_isbutton2(_s : string) : boolean;
- { was #define dname(params) para_def_expr }
- { argument types are unknown }
- { return type might be wrong }
- function iup_isbutton3(_s : string) : boolean;
- { was #define dname(params) para_def_expr }
- { argument types are unknown }
- { return type might be wrong }
- function iup_isdouble(_s : string) : boolean;
- { was #define dname(params) para_def_expr }
- { argument types are unknown }
- { return type might be wrong }
- function iup_isalt(_s : string) : boolean;
- { was #define dname(params) para_def_expr }
- { argument types are unknown }
- { return type might be wrong }
- function iup_issys(_s : string) : boolean;
- { was #define dname(params) para_def_expr }
- { argument types are unknown }
- { return type might be wrong }
- function iup_isbutton4(_s : string) : boolean;
- { was #define dname(params) para_def_expr }
- { argument types are unknown }
- { return type might be wrong }
- function iup_isbutton5(_s : string) : boolean;
- { Old definitions for backward compatibility }
- const
- {isshift = iup_isshift;
- iscontrol = iup_iscontrol;
- isbutton1 = iup_isbutton1;
- isbutton2 = iup_isbutton2;
- isbutton3 = iup_isbutton3;
- isdouble = iup_isdouble;
- isalt = iup_isalt;
- issys = iup_issys;
- isbutton4 = iup_isbutton4;
- isbutton5 = iup_isbutton5; }
- {********************************************************************** }
- { Pre-Defined Masks }
- {********************************************************************** }
- IUP_MASK_FLOAT = '[+/-]?(/d+/.?/d*|/./d+)';
- IUP_MASK_UFLOAT = '(/d+/.?/d*|/./d+)';
- IUP_MASK_EFLOAT = '[+/-]?(/d+/.?/d*|/./d+)([eE][+/-]?/d+)?';
- IUP_MASK_FLOATCOMMA = '[+/-]?(/d+/,?/d*|/,/d+)';
- IUP_MASK_UFLOATCOMMA = '(/d+/,?/d*|/,/d+)';
- IUP_MASK_INT = '[+/-]?/d+';
- IUP_MASK_UINT = '/d+';
- { Old definitions for backward compatibility }
- IUPMASK_FLOAT = IUP_MASK_FLOAT;
- IUPMASK_UFLOAT = IUP_MASK_UFLOAT;
- IUPMASK_EFLOAT = IUP_MASK_EFLOAT;
- IUPMASK_INT = IUP_MASK_INT;
- IUPMASK_UINT = IUP_MASK_UINT;
- {********************************************************************** }
- { IupGetParam Callback situations }
- {********************************************************************** }
- IUP_GETPARAM_BUTTON1 = -(1);
- IUP_GETPARAM_INIT = -(2);
- IUP_GETPARAM_BUTTON2 = -(3);
- IUP_GETPARAM_BUTTON3 = -(4);
- IUP_GETPARAM_CLOSE = -(5);
- IUP_GETPARAM_OK = IUP_GETPARAM_BUTTON1;
- IUP_GETPARAM_CANCEL = IUP_GETPARAM_BUTTON2;
- IUP_GETPARAM_HELP = IUP_GETPARAM_BUTTON3;
- {********************************************************************** }
- { Record Input Modes }
- {********************************************************************** }
- (* error
- enum {IUP_RECBINARY, IUP_RECTEXT};
- in declaration at line 439 *)
- {********************************************************************** }
- { Replacement for the WinMain in Windows, }
- { this allows the application to start from "main". }
- { Used only for Watcom. }
- {********************************************************************** }
- {$if defined (__WATCOMC__)}
- { this is the trick for Watcom and MetroWerks }
- const
- main = IupMain;
- {$endif}
- {*****************************************************************************
- * Copyright (C) 1994-2016 Tecgraf/PUC-Rio.
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
- * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
- * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
- * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- ***************************************************************************** }
- {$endif}
- implementation
- {function IupOpen(argc:Plongint; argv:PPPchar):longint;
- begin
- end;
- procedure IupClose;
- begin
- end;
- procedure IupImageLibOpen;
- begin
- end;
- function IupMainLoop:longint;
- begin
- end;
- function IupLoopStep:longint;
- begin
- end;
- function IupLoopStepWait:longint;
- begin
- end;
- function IupMainLoopLevel:longint;
- begin
- end;
- procedure IupFlush;
- begin
- end;
- procedure IupExitLoop;
- begin
- end;
- function IupRecordInput(filename:Pchar; mode:longint):longint;
- begin
- end;
- function IupPlayInput(filename:Pchar):longint;
- begin
- end;
- procedure IupUpdate(ih:PIhandle);
- begin
- end;
- procedure IupUpdateChildren(ih:PIhandle);
- begin
- end;
- procedure IupRedraw(ih:PIhandle; children:longint);
- begin
- end;
- procedure IupRefresh(ih:PIhandle);
- begin
- end;
- procedure IupRefreshChildren(ih:PIhandle);
- begin
- end;
- function IupExecute(filename:Pchar; parameters:Pchar):longint;
- begin
- end;
- function IupHelp(url:Pchar):longint;
- begin
- end;
- function IupLoad(filename:Pchar):Pchar;
- begin
- end;
- function IupLoadBuffer(buffer:Pchar):Pchar;
- begin
- end;
- function IupVersion:Pchar;
- begin
- end;
- function IupVersionDate:Pchar;
- begin
- end;
- function IupVersionNumber:longint;
- begin
- end;
- procedure IupSetLanguage(lng:Pchar);
- begin
- end;
- function IupGetLanguage:Pchar;
- begin
- end;
- procedure IupSetLanguageString(name:Pchar; str:Pchar);
- begin
- end;
- procedure IupStoreLanguageString(name:Pchar; str:Pchar);
- begin
- end;
- function IupGetLanguageString(name:Pchar):Pchar;
- begin
- end;
- procedure IupSetLanguagePack(ih:PIhandle);
- begin
- end;
- procedure IupDestroy(ih:PIhandle);
- begin
- end;
- procedure IupDetach(child:PIhandle);
- begin
- end;
- function IupAppend(ih:PIhandle; child:PIhandle):PIhandle;
- begin
- end;
- function IupInsert(ih:PIhandle; ref_child:PIhandle; child:PIhandle):PIhandle;
- begin
- end;
- function IupGetChild(ih:PIhandle; pos:longint):PIhandle;
- begin
- end;
- function IupGetChildPos(ih:PIhandle; child:PIhandle):longint;
- begin
- end;
- function IupGetChildCount(ih:PIhandle):longint;
- begin
- end;
- function IupGetNextChild(ih:PIhandle; child:PIhandle):PIhandle;
- begin
- end;
- function IupGetBrother(ih:PIhandle):PIhandle;
- begin
- end;
- function IupGetParent(ih:PIhandle):PIhandle;
- begin
- end;
- function IupGetDialog(ih:PIhandle):PIhandle;
- begin
- end;
- function IupGetDialogChild(ih:PIhandle; name:Pchar):PIhandle;
- begin
- end;
- function IupReparent(ih:PIhandle; new_parent:PIhandle; ref_child:PIhandle):longint;
- begin
- end;
- function IupPopup(ih:PIhandle; x:longint; y:longint):longint;
- begin
- end;
- function IupShow(ih:PIhandle):longint;
- begin
- end;
- function IupShowXY(ih:PIhandle; x:longint; y:longint):longint;
- begin
- end;
- function IupHide(ih:PIhandle):longint;
- begin
- end;
- function IupMap(ih:PIhandle):longint;
- begin
- end;
- procedure IupUnmap(ih:PIhandle);
- begin
- end;
- procedure IupResetAttribute(ih:PIhandle; name:Pchar);
- begin
- end;
- function IupGetAllAttributes(ih:PIhandle; names:PPchar; n:longint):longint;
- begin
- end;
- function IupSetAtt(handle_name:Pchar; ih:PIhandle; name:Pchar):PIhandle;
- begin
- end;
- function IupSetAttributes(ih:PIhandle; str:Pchar):PIhandle;
- begin
- end;
- function IupGetAttributes(ih:PIhandle):Pchar;
- begin
- end;
- procedure IupSetAttribute(ih:PIhandle; name:Pchar; value:Pchar);
- begin
- end;
- procedure IupSetStrAttribute(ih:PIhandle; name:Pchar; value:Pchar);
- begin
- end;
- procedure IupSetStrf(ih:PIhandle; name:Pchar; format:Pchar);
- begin
- end;
- procedure IupSetInt(ih:PIhandle; name:Pchar; value:longint);
- begin
- end;
- procedure IupSetFloat(ih:PIhandle; name:Pchar; value:single);
- begin
- end;
- procedure IupSetDouble(ih:PIhandle; name:Pchar; value:double);
- begin
- end;
- procedure IupSetRGB(ih:PIhandle; name:Pchar; r:byte; g:byte; b:byte);
- begin
- end;
- function IupGetAttribute(ih:PIhandle; name:Pchar):Pchar;
- begin
- end;
- function IupGetInt(ih:PIhandle; name:Pchar):longint;
- begin
- end;
- function IupGetInt2(ih:PIhandle; name:Pchar):longint;
- begin
- end;
- function IupGetIntInt(ih:PIhandle; name:Pchar; i1:Plongint; i2:Plongint):longint;
- begin
- end;
- function IupGetFloat(ih:PIhandle; name:Pchar):single;
- begin
- end;
- function IupGetDouble(ih:PIhandle; name:Pchar):double;
- begin
- end;
- procedure IupGetRGB(ih:PIhandle; name:Pchar; r:Pbyte; g:Pbyte; b:Pbyte);
- begin
- end;
- procedure IupSetAttributeId(ih:PIhandle; name:Pchar; id:longint; value:Pchar);
- begin
- end;
- procedure IupSetStrAttributeId(ih:PIhandle; name:Pchar; id:longint; value:Pchar);
- begin
- end;
- procedure IupSetStrfId(ih:PIhandle; name:Pchar; id:longint; format:Pchar);
- begin
- end;
- procedure IupSetIntId(ih:PIhandle; name:Pchar; id:longint; value:longint);
- begin
- end;
- procedure IupSetFloatId(ih:PIhandle; name:Pchar; id:longint; value:single);
- begin
- end;
- procedure IupSetDoubleId(ih:PIhandle; name:Pchar; id:longint; value:double);
- begin
- end;
- procedure IupSetRGBId(ih:PIhandle; name:Pchar; id:longint; r:byte; g:byte;
- b:byte);
- begin
- end;
- function IupGetAttributeId(ih:PIhandle; name:Pchar; id:longint):Pchar;
- begin
- end;
- function IupGetIntId(ih:PIhandle; name:Pchar; id:longint):longint;
- begin
- end;
- function IupGetFloatId(ih:PIhandle; name:Pchar; id:longint):single;
- begin
- end;
- function IupGetDoubleId(ih:PIhandle; name:Pchar; id:longint):double;
- begin
- end;
- procedure IupGetRGBId(ih:PIhandle; name:Pchar; id:longint; r:Pbyte; g:Pbyte;
- b:Pbyte);
- begin
- end;
- procedure IupSetAttributeId2(ih:PIhandle; name:Pchar; lin:longint; col:longint; value:Pchar);
- begin
- end;
- procedure IupSetStrAttributeId2(ih:PIhandle; name:Pchar; lin:longint; col:longint; value:Pchar);
- begin
- end;
- procedure IupSetStrfId2(ih:PIhandle; name:Pchar; lin:longint; col:longint; format:Pchar);
- begin
- end;
- procedure IupSetIntId2(ih:PIhandle; name:Pchar; lin:longint; col:longint; value:longint);
- begin
- end;
- procedure IupSetFloatId2(ih:PIhandle; name:Pchar; lin:longint; col:longint; value:single);
- begin
- end;
- procedure IupSetDoubleId2(ih:PIhandle; name:Pchar; lin:longint; col:longint; value:double);
- begin
- end;
- procedure IupSetRGBId2(ih:PIhandle; name:Pchar; lin:longint; col:longint; r:byte;
- g:byte; b:byte);
- begin
- end;
- function IupGetAttributeId2(ih:PIhandle; name:Pchar; lin:longint; col:longint):Pchar;
- begin
- end;
- function IupGetIntId2(ih:PIhandle; name:Pchar; lin:longint; col:longint):longint;
- begin
- end;
- function IupGetFloatId2(ih:PIhandle; name:Pchar; lin:longint; col:longint):single;
- begin
- end;
- function IupGetDoubleId2(ih:PIhandle; name:Pchar; lin:longint; col:longint):double;
- begin
- end;
- procedure IupGetRGBId2(ih:PIhandle; name:Pchar; lin:longint; col:longint; r:Pbyte;
- g:Pbyte; b:Pbyte);
- begin
- end;
- procedure IupSetGlobal(name:Pchar; value:Pchar);
- begin
- end;
- procedure IupSetStrGlobal(name:Pchar; value:Pchar);
- begin
- end;
- function IupGetGlobal(name:Pchar):Pchar;
- begin
- end;
- function IupSetFocus(ih:PIhandle):PIhandle;
- begin
- end;
- function IupGetFocus:PIhandle;
- begin
- end;
- function IupPreviousField(ih:PIhandle):PIhandle;
- begin
- end;
- function IupNextField(ih:PIhandle):PIhandle;
- begin
- end;
- function IupGetCallback(ih:PIhandle; name:Pchar):Icallback;
- begin
- end;
- function IupSetCallback(ih:PIhandle; name:Pchar; func:Icallback):Icallback;
- begin
- end;
- function IupSetCallbacks(ih:PIhandle; name:Pchar; func:Icallback):PIhandle;
- begin
- end;
- function IupGetFunction(name:Pchar):Icallback;
- begin
- end;
- function IupSetFunction(name:Pchar; func:Icallback):Icallback;
- begin
- end;
- function IupGetHandle(name:Pchar):PIhandle;
- begin
- end;
- function IupSetHandle(name:Pchar; ih:PIhandle):PIhandle;
- begin
- end;
- function IupGetAllNames(names:PPchar; n:longint):longint;
- begin
- end;
- function IupGetAllDialogs(names:PPchar; n:longint):longint;
- begin
- end;
- function IupGetName(ih:PIhandle):Pchar;
- begin
- end;
- procedure IupSetAttributeHandle(ih:PIhandle; name:Pchar; ih_named:PIhandle);
- begin
- end;
- function IupGetAttributeHandle(ih:PIhandle; name:Pchar):PIhandle;
- begin
- end;
- function IupGetClassName(ih:PIhandle):Pchar;
- begin
- end;
- function IupGetClassType(ih:PIhandle):Pchar;
- begin
- end;
- function IupGetAllClasses(names:PPchar; n:longint):longint;
- begin
- end;
- function IupGetClassAttributes(classname:Pchar; names:PPchar; n:longint):longint;
- begin
- end;
- function IupGetClassCallbacks(classname:Pchar; names:PPchar; n:longint):longint;
- begin
- end;
- procedure IupSaveClassAttributes(ih:PIhandle);
- begin
- end;
- procedure IupCopyClassAttributes(src_ih:PIhandle; dst_ih:PIhandle);
- begin
- end;
- procedure IupSetClassDefaultAttribute(classname:Pchar; name:Pchar; value:Pchar);
- begin
- end;
- function IupClassMatch(ih:PIhandle; classname:Pchar):longint;
- begin
- end;
- function IupCreate(classname:Pchar):PIhandle;
- begin
- end;
- function IupCreatev(classname:Pchar; params:Ppointer):PIhandle;
- begin
- end;
- function IupCreatep(classname:Pchar; first:pointer):PIhandle;
- begin
- end;
- function IupFill:PIhandle;
- begin
- end;
- function IupRadio(child:PIhandle):PIhandle;
- begin
- end;
- function IupVbox(child:PIhandle):PIhandle;
- begin
- end;
- function IupVboxv(children:PPIhandle):PIhandle;
- begin
- end;
- function IupZbox(child:PIhandle):PIhandle;
- begin
- end;
- function IupZboxv(children:PPIhandle):PIhandle;
- begin
- end;
- function IupHbox(child:PIhandle):PIhandle;
- begin
- end;
- function IupHboxv(children:PPIhandle):PIhandle;
- begin
- end;
- function IupNormalizer(ih_first:PIhandle):PIhandle;
- begin
- end;
- function IupNormalizerv(ih_list:PPIhandle):PIhandle;
- begin
- end;
- function IupCbox(child:PIhandle):PIhandle;
- begin
- end;
- function IupCboxv(children:PPIhandle):PIhandle;
- begin
- end;
- function IupSbox(child:PIhandle):PIhandle;
- begin
- end;
- function IupSplit(child1:PIhandle; child2:PIhandle):PIhandle;
- begin
- end;
- function IupScrollBox(child:PIhandle):PIhandle;
- begin
- end;
- function IupGridBox(child:PIhandle):PIhandle;
- begin
- end;
- function IupGridBoxv(children:PPIhandle):PIhandle;
- begin
- end;
- function IupExpander(child:PIhandle):PIhandle;
- begin
- end;
- function IupDetachBox(child:PIhandle):PIhandle;
- begin
- end;
- function IupBackgroundBox(child:PIhandle):PIhandle;
- begin
- end;
- function IupFrame(child:PIhandle):PIhandle;
- begin
- end;
- function IupImage(width:longint; height:longint; pixmap:Pbyte):PIhandle;
- begin
- end;
- function IupImageRGB(width:longint; height:longint; pixmap:Pbyte):PIhandle;
- begin
- end;
- function IupImageRGBA(width:longint; height:longint; pixmap:Pbyte):PIhandle;
- begin
- end;
- function IupItem(title:Pchar; action:Pchar):PIhandle;
- begin
- end;
- function IupSubmenu(title:Pchar; child:PIhandle):PIhandle;
- begin
- end;
- function IupSeparator:PIhandle;
- begin
- end;
- function IupMenu(child:PIhandle):PIhandle;
- begin
- end;
- function IupMenuv(children:PPIhandle):PIhandle;
- begin
- end;
- function IupButton(title:Pchar; action:Pchar):PIhandle;
- begin
- end;
- function IupCanvas(action:Pchar):PIhandle;
- begin
- end;
- function IupDialog(child:PIhandle):PIhandle;
- begin
- end;
- function IupUser:PIhandle;
- begin
- end;
- function IupLabel(title:Pchar):PIhandle;
- begin
- end;
- function IupList(action:Pchar):PIhandle;
- begin
- end;
- function IupText(action:Pchar):PIhandle;
- begin
- end;
- function IupMultiLine(action:Pchar):PIhandle;
- begin
- end;
- function IupToggle(title:Pchar; action:Pchar):PIhandle;
- begin
- end;
- function IupTimer:PIhandle;
- begin
- end;
- function IupClipboard:PIhandle;
- begin
- end;
- function IupProgressBar:PIhandle;
- begin
- end;
- function IupVal(_type:Pchar):PIhandle;
- begin
- end;
- function IupTabs(child:PIhandle):PIhandle;
- begin
- end;
- function IupTabsv(children:PPIhandle):PIhandle;
- begin
- end;
- function IupTree:PIhandle;
- begin
- end;
- function IupLink(url:Pchar; title:Pchar):PIhandle;
- begin
- end;
- function IupFlatButton(title:Pchar):PIhandle;
- begin
- end;
- function IupAnimatedLabel(animation:PIhandle):PIhandle;
- begin
- end;
- function IupDatePick:PIhandle;
- begin
- end;
- function IupCalendar:PIhandle;
- begin
- end;
- function IupSpin:PIhandle;
- begin
- end;
- function IupSpinbox(child:PIhandle):PIhandle;
- begin
- end;
- function IupStringCompare(str1:Pchar; str2:Pchar; casesensitive:longint; lexicographic:longint):longint;
- begin
- end;
- function IupSaveImageAsText(ih:PIhandle; file_name:Pchar; format:Pchar; name:Pchar):longint;
- begin
- end;
- procedure IupTextConvertLinColToPos(ih:PIhandle; lin:longint; col:longint; pos:Plongint);
- begin
- end;
- procedure IupTextConvertPosToLinCol(ih:PIhandle; pos:longint; lin:Plongint; col:Plongint);
- begin
- end;
- function IupConvertXYToPos(ih:PIhandle; x:longint; y:longint):longint;
- begin
- end;
- procedure IupStoreGlobal(name:Pchar; value:Pchar);
- begin
- end;
- procedure IupStoreAttribute(ih:PIhandle; name:Pchar; value:Pchar);
- begin
- end;
- procedure IupSetfAttribute(ih:PIhandle; name:Pchar; format:Pchar);
- begin
- end;
- procedure IupStoreAttributeId(ih:PIhandle; name:Pchar; id:longint; value:Pchar);
- begin
- end;
- procedure IupSetfAttributeId(ih:PIhandle; name:Pchar; id:longint; f:Pchar);
- begin
- end;
- procedure IupStoreAttributeId2(ih:PIhandle; name:Pchar; lin:longint; col:longint; value:Pchar);
- begin
- end;
- procedure IupSetfAttributeId2(ih:PIhandle; name:Pchar; lin:longint; col:longint; format:Pchar);
- begin
- end;
- function IupTreeSetUserId(ih:PIhandle; id:longint; userid:pointer):longint;
- begin
- end;
- function IupTreeGetUserId(ih:PIhandle; id:longint):pointer;
- begin
- end;
- function IupTreeGetId(ih:PIhandle; userid:pointer):longint;
- begin
- end;
- procedure IupTreeSetAttributeHandle(ih:PIhandle; name:Pchar; id:longint; ih_named:PIhandle);
- begin
- end;
- procedure IupTreeSetAttribute(ih:PIhandle; name:Pchar; id:longint; value:Pchar);
- begin
- end;
- procedure IupTreeStoreAttribute(ih:PIhandle; name:Pchar; id:longint; value:Pchar);
- begin
- end;
- function IupTreeGetAttribute(ih:PIhandle; name:Pchar; id:longint):Pchar;
- begin
- end;
- function IupTreeGetInt(ih:PIhandle; name:Pchar; id:longint):longint;
- begin
- end;
- function IupTreeGetFloat(ih:PIhandle; name:Pchar; id:longint):single;
- begin
- end;
- procedure IupTreeSetfAttribute(ih:PIhandle; name:Pchar; id:longint; format:Pchar);
- begin
- end;
- function IupGetActionName:Pchar;
- begin
- end;
- function IupMapFont(iupfont:Pchar):Pchar;
- begin
- end;
- function IupUnMapFont(driverfont:Pchar):Pchar;
- begin
- end;
- function IupFileDlg:PIhandle;
- begin
- end;
- function IupMessageDlg:PIhandle;
- begin
- end;
- function IupColorDlg:PIhandle;
- begin
- end;
- function IupFontDlg:PIhandle;
- begin
- end;
- function IupProgressDlg:PIhandle;
- begin
- end;
- function IupGetFile(arq:Pchar):longint;
- begin
- end;
- procedure IupMessage(title:Pchar; msg:Pchar);
- begin
- end;
- procedure IupMessagef(title:Pchar; format:Pchar);
- begin
- end;
- function IupAlarm(title:Pchar; msg:Pchar; b1:Pchar; b2:Pchar; b3:Pchar):longint;
- begin
- end;
- function IupScanf(format:Pchar):longint;
- begin
- end;
- function IupListDialog(_type:longint; title:Pchar; size:longint; list:PPchar; op:longint;
- max_col:longint; max_lin:longint; marks:Plongint):longint;
- begin
- end;
- function IupGetText(title:Pchar; text:Pchar; maxsize:longint):longint;
- begin
- end;
- function IupGetColor(x:longint; y:longint; r:Pbyte; g:Pbyte; b:Pbyte):longint;
- begin
- end;
- function IupGetParam(title:Pchar; action:Iparamcb; user_data:pointer; format:Pchar):longint;
- begin
- end;
- function IupGetParamv(title:Pchar; action:Iparamcb; user_data:pointer; format:Pchar; param_count:longint;
- param_extra:longint; param_data:Ppointer):longint;
- begin
- end;
- function IupParamf(format:Pchar):PIhandle;
- begin
- end;
- function IupParamBox(parent:PIhandle; params:PPIhandle; count:longint):PIhandle;
- begin
- end;
- function IupLayoutDialog(dialog:PIhandle):PIhandle;
- begin
- end;
- function IupElementPropertiesDialog(elem:PIhandle):PIhandle;
- begin
- end;}
- { was #define dname(params) para_def_expr }
- { argument types are unknown }
- { return type might be wrong }
- function iup_isshift(_s : string) : boolean;
- begin
- iup_isshift:=(_s[0])='S';
- end;
- { was #define dname(params) para_def_expr }
- { argument types are unknown }
- { return type might be wrong }
- function iup_iscontrol(_s : string) : boolean;
- begin
- iup_iscontrol:=(_s[1])='C';
- end;
- { was #define dname(params) para_def_expr }
- { argument types are unknown }
- { return type might be wrong }
- function iup_isbutton1(_s : string) : boolean;
- begin
- iup_isbutton1:=(_s[2])='1';
- end;
- { was #define dname(params) para_def_expr }
- { argument types are unknown }
- { return type might be wrong }
- function iup_isbutton2(_s : string) : boolean;
- begin
- iup_isbutton2:=(_s[3])='2';
- end;
- { was #define dname(params) para_def_expr }
- { argument types are unknown }
- { return type might be wrong }
- function iup_isbutton3(_s : string) : boolean;
- begin
- iup_isbutton3:=(_s[4])='3';
- end;
- { was #define dname(params) para_def_expr }
- { argument types are unknown }
- { return type might be wrong }
- function iup_isdouble(_s : string) : boolean;
- begin
- iup_isdouble:=(_s[5])='D';
- end;
- { was #define dname(params) para_def_expr }
- { argument types are unknown }
- { return type might be wrong }
- function iup_isalt(_s : string) : boolean;
- begin
- iup_isalt:=(_s[6])='A';
- end;
- { was #define dname(params) para_def_expr }
- { argument types are unknown }
- { return type might be wrong }
- function iup_issys(_s : string) : boolean;
- begin
- iup_issys:=(_s[7])='Y';
- end;
- { was #define dname(params) para_def_expr }
- { argument types are unknown }
- { return type might be wrong }
- function iup_isbutton4(_s : string) : boolean;
- begin
- iup_isbutton4:=(_s[8])='4';
- end;
- { was #define dname(params) para_def_expr }
- { argument types are unknown }
- { return type might be wrong }
- function iup_isbutton5(_s : string) : boolean;
- begin
- iup_isbutton5:=(_s[9])='5';
- end;
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement