2dglib.pkg File Reference

Data Structures

struct  EdTheme
struct  EdTreeItem
struct  EdControl
struct  EdModuleEditor
struct  EdModuleBox
struct  EdModuleRoundLink
struct  EdModuleLink
struct  EdWindow
struct  EdToolBar
struct  EdTabBar
struct  EdTab

Typedefs

typedef struct mkEdTheme EdTheme
typedef struct mkEdTreeItem EdTreeItem
typedef struct mkEdControl EdControl
typedef struct mkEdModuleEditor EdModuleEditor
typedef struct mkEdModuleBox EdModuleBox
typedef struct mkEdModuleRoundLink EdModuleRoundLink
typedef struct mkEdModuleLink EdModuleLink
typedef struct mkEdWindow EdWindow
typedef struct mkEdToolBar EdToolBar
typedef struct mkEdTabBar EdTabBar
typedef struct mkEdTab EdTab

Functions

 G2Drgba2bgra (c)
 Convert an rgba or bgra color to rgba or bgra color.
 G2DgetAplhaFromColor (c)
 get the alpha from a alpha color
 G2Dbgra2bgr (c)
 Convert an bgra or bgr color.
 G2Drgba2rgb (c)
 Convert an rgba or rgb color.
 G2Dbgr2bgra (c, a)
 Convert an bgr to bgra color.
 G2Drgb2rgba (c, a)
 Convert an rgb to rgba color.
 G2Drgb2bgr (c)
 Convert an rgb or bgr color to rgb or bgr color.
 G2Dgetbgr (c)
 Get bgr color.
 G2Dgetrgb (c)
 Get rgb color.
 G2Dhsv2rgb (h, s, v)
 Convert an hsv color to rgb color.
 G2Drgb2hsv (c)
 Convert an rgb color to hsv color.
 G2DgetFtoA (float, nb)
 Convert a float into an number of zero limited string.
 G2Dlcat (p, q)
 Concat two list to one.
 G2DisInList (p, q)
 Test if an element exist in a list.
 G2DremoveFromList (l, elt)
 Remove an element from a list.
 G2DremoveStringFromList (l, elt)
 Remove a string from a list case unsensivity.
 G2DremoveEdIdxFromList (l, idx)
 Remove an element from an int indexed list.
 G2DremoveEdSidFromList (l, sid)
 Remove an element from an string indexed list.
 G2DremoveEdSidFromListi (l, sid)
 Remove an element from an string indexed list case unsensivity.
 G2DgetElemFromListByIndex (l, idx)
 Get an element from an indexed list by index.
 G2DgetStrWidth (font, str)
 Get the width size of a string calculated using font.
 G2DgetStringSize2 (font, txtList, w, h)
 Get the width and height size of a string list calculated using font.
 G2DgetStringSize (font, str)
 Get the width and height size of a string calculated using font.
 G2DgetAbreviation (str, size, font, endstr)
 Get a cutted string limited by pixel size with a possible concated string at end.
 G2DcreateAlphaBitmap (alphabmp, x, y, left, right, ww, hh, w, h)
 Create a resized alpha bitmap.
 G2DcreateAlphaBitmapRollover (alphabmp, x, y, left, right, ww, hh, w, h)
 Create a resized alpha bitmap rollover (5 states).
 G2DloadPngToBmp (chan, path)
 Load an alpha bitmap file (png) to a bitmap.
 G2DloadBmp (chan, path)
 Load an bitmap (bmp, jpg, tga) or alphabitmap (png) file to a bitmap.
 G2DloadAlphaBmp (chan, path)
 Load an bitmap (bmp, jpg, tga) or alphabitmap (png) file to a AlphaBitmap.
 G2DstrechBitmap (chan, bmp, width, height, bcolor)
 Strech a bitmap to a new size and keep ratio.
 G2DcreateLayer (chan, w, h, border, bcolor, color, opacity)
 Create an AlphaBitmap with border, backcolor and opacity.
 G2DsetLayer (chan, alphabmp, w, h, border, bcolor, color, opacity)
 Modify an AlphaBitmap with border, backcolor and opacity.
 G2DbBmp_HResize (resBmp, orgBmp, resBmp8, orgBmp8, nbCol, numCol, trans, borders)
 G2DbBmp_VResize (resBmp, orgBmp, resBmp8, orgBmp8, nbLine, numLine, trans, borders)
 G2DbBmp_DrawText (bmp, text, tabl, size, pos, colors, numLine, numCol)
 G2DbBmp_stretchButtonText (chan, text, size, colors, borders, tabl, img, right)
 G2DcbResizeNode (cbmp, p, w, h, oldval)
 G2DcreateNode (container, node, pos, width, height, flags, color, opacity, inline, linecolor)
 Create a CompBitmap as layer with border, backcolor and opacity.
 makeEdThemeResources (chan)
 Create a new theme structure with default values.
 setEdColorMapResources (themestr, cmap, mapcross, btnpicker, curpicker)
 Set the color map control theme resources.
 setEdToolBarResources (themestr, backcolor)
 Set the toolbar control theme resources.
 setEdTabResources (themestr, backcolor, tabcheck, tabclose, tableft, tabright, fontname, fontsize, fontcolor)
 Set the tabs control theme resources.
 setEdFloatResources (themestr, upbtn, downbtn, cursize)
 Set the float control theme resources.
 setEdFrameResources (themestr, backcolor, foldbtn, fontname, fontsize, fontcolor, barheight)
 Set the frame control theme resources.
 addEdThemeResource (themestr, resname, path)
 Add an indexed resource to the theme.
 delEdThemeResource (themestr, resname)
 Del an indexed resource in the theme.
 getEdThemeResource (themestr, resname)
 Get an indexed resource from the theme.
 delEdTheme (themestr)
 Destroy a theme structure and his resources.
 resetEdTabPosition (tabbarstr)
 Re-position all tabs on tab bar.
 getEdTabsLength (tabbarstr, pos)
 Get the width of the tab bar from a tab position.
 getEdLastVisibleTabs (tabbarstr)
 Get last visible tab position.
 getEdBestTabsByLength (tabbarstr, w, pos)
 Get the best pos for the scrolled tab bar.
 activateEdTabBarScroll (tabbarstr)
 Show or hide the scrolling arrows if needed.
 cbEdTabClick (cmpchk, param, x, y, btn, mask)
 Not used.
 cbEdTabUnClick (cmpchk, param, x, y, btn, mask)
 Unclick call back on a tab.
 cbEdTabResize (cmpchk, p, w, h)
 Not used.
 cbEdCloseTabClick (cmproll, param, x, y, btn, mask)
 Callback for the close button.
 setEdTabCbClose (tabstr, cbfun)
 Callback for the close button.
 changeEdTabCheck (tabbarstr, tabstr)
 Update the tab check.
 renameEdTab (tabbarstr, tabstr, name)
 Rename a tab.
 focusEdTab (tabbarstr, tabstr)
 Focus the specified tab.
 dsEdTab (tabbarstr, tabstr)
 Destroy a tab.
 crEdTab (tabbarstr, name, mode, state)
 Create a new tab in tab bar.
 getEdTabWindow (tabstr)
 Get the windows structure of a tab.
 setEdTabCbFocused (tabstr, cbfun)
 Set the focused callback on a tab.
 resizeEdTabBar (tabbarstr, w, h)
 Resize a tab bar.
 dsEdTabBar (tabbarstr)
 Destroy a tab bar.
 cbEdTabBarScrollLeft (cmpbtn, tabbarstr, x, y, btn, mask)
 Callback on scroll left click.
 cbEdTabBarScrollRight (cmpbtn, tabbarstr, x, y, btn, mask)
 Callback on scroll right click.
 makeEdTabBarScroll (tabbarstr)
 Create the tab bar scroll interface.
 crEdTabBarFromToolBar (tbstr, targetstr, x, y, w, h, margin, themestr)
 Create the tab bar on tool bar.
 cbEdToolBarToolTipHide (node, t, bubble)
 Hide a toolbar tooltip.
 cbEdToolBarToolTipShow (node, t, bubble, dx, dy)
 Show a toolbar tooltip.
 cbEdToolBarTextResize (ctext, param, w, h)
 Callback on toolbar text resize.
 setEdToolBarText (t, cmptxt, val, txtcolor)
 Set a toolbar text value.
 crEdToolBarText (t, txt, fontname, fontsize, fontflag, txtcolor, flags, align)
 Create a toolbar text element.
 cbEdToolBarCheckClick (check, param, x, y, btn, mask)
 Callback on toolbar check click.
 cbEdToolBarCheckIn (croll, param, x, y, mask)
 Callback on toolbar check cursor in.
 cbEdToolBarCheckOut (croll, param, x, y, mask)
 Callback on toolbar check cursor out.
 cbEdToolBarCheckResize (croll, param, w, h)
 Callback on toolbar check resize.
 setEdToolBarCheckState (t, chk, state)
 Change the toolbar check element state.
 setEdToolBarCheckEnable (t, chk, state)
 Enable or disable the toolbar check element.
 setEdToolBarCheckCbClick (t, check, cbclick)
 Set the toolbar check element click callback.
 crEdToolBarCheck (t, abmp, align, bubble, cbclick)
 Create a toolbar check element.
 setEdToolBarButtonEnable (t, btn, state)
 Enable or disable the toolbar button element.
 cbEdToolBarButtonClick (croll, param, x, y, btn, mask)
 Callback on toolbar button click.
 setEdToolBarButtonCbClick (t, button, cbclick)
 Set the toolbar button element click callback.
 cbEdToolBarButtonIn (croll, param, x, y, mask)
 Callback on toolbar button cursor in.
 cbEdToolBarButtonOut (croll, param, x, y, mask)
 Callback on toolbar button cursor out.
 cbEdToolBarButtonResize (croll, param, w, h)
 Callback on toolbar button resize.
 crEdToolBarButton (t, abmp, align, bubble, cbclick)
 Create a toolbar button element.
 cbEdToolBarBmpClick (bmp, p, x, y, btn, mask)
 Callback on toolbar bitmap click.
 cbEdToolBarBmpDbClick (bmp, p, x, y, btn, mask)
 Callback on toolbar bitmap double click.
 crEdToolBarBitmap (t, abmp, align, bubble, cbclick)
 Create a toolbar bitmap element.
 dsEdToolBar (win, tbstr)
 Destroy a toolbar from a window.
 dsEdToolBarList (l)
 Destroy a toolbar list.
 sizeEdToolBar (t, x, y, w, h)
 Resize a toolbar.
 paintEdToolBar (t)
 Paint a toolbar.
 cbEdToolBarDbClick (cont, p, x, y, btn, mask)
 Callback on toolbar double click.
 setEdToolBarDbClick (t, cbfun)
 Set the toolbar double click Callback.
 cbEdToolBarClick (cont, p, x, y, btn, mask)
 Callback on toolbar click.
 setEdToolBarClick (t, cbfun)
 Set the toolbar click Callback.
 setEdToolBarVisible (t, mode)
 Set the toolbar visibility.
 crEdToolBar (chan, father, x, y, w, h, hmargin, vmargin, bgcolor, mode)
 Create a toolbar on a window.
 getEdWindowVisibleState (winstr)
 Get a window visible state.
 setEdWindowCtrl3dEnable (winstr, state)
 Enable or disable 3D view on a window or on its child windows.
 setEdWindowVisible (winstr, state)
 Show or hide a window.
 setEdWindowFocus (winstr)
 Give the keyboard focus on a window.
 setEdWindowTop (winstr)
 Bring a window to the top on the screen.
 setEdWindowTopMost (winstr)
 Bring a window to the top most on the screen.
 setEdWindowName (winstr, name)
 Rename the title of a window.
 getEdWindowToolBarSize (winstr)
 Get the size used by toolbars on a window.
 resizeEdWindowToolBar (winstr, w, h)
 Resize all toolbars on a window.
 dsEdWindowToolBar (winstr, tbstr)
 Destroy a toolbar from a window.
 crEdWindowToolBar (winstr, x, y, w, h, hmargin, vmargin, bgcolor, mode)
 Create a toolbar on a window.
 calcEdWindowGroupSonPos (winstr)
 Calculate the needed Y position of a window from the other group windows.
 updateEdGroupWindowSons (winstr)
 Move group windows from the other group windows.
 getEdFrameYpos (winstr)
 Calculate a frame window Y position in a group windows.
 calcEdCoord (winstr)
 Calculate coordinates of a window according to the mother window.
 calcEdWindowDim (typ, x1, w, x2, l)
 Calculate a position with respect to the resize flags.
 calcEdWindowSizePos (winstr)
 Calculate a window position and size according to its resize flags.
 calcEdCtrlSizePos (ctrlstr)
 Calculate a control position and size according to its resize flags.
 getEdVirtualWindowSize (winstr)
 Get a virtual window size.
 getEdVirtualWindowPos (winstr)
 Get a virtual window position.
 getEdWindowSize (winstr)
 Get a window size.
 getEdWindowPos (winstr)
 Get a window position.
 getEdWindowPosSize (winstr)
 Get a window position and size.
 getEdWindowExPosSize (winstr)
 Get a window position and size with borders.
 getEdWindowResizeFlags (winstr)
 Get a window resize flags.
 resizeEdWindowVirtualSize (winstr)
 Resize a virtual window according to the sons windows size.
 resizeEdWindow (winstr)
 Resize a window according to its type, state and resize flags.
 setEdWindowPosSize (winstr, x, y, w, h)
 Move and resize a window.
 setEdWindowSize (winstr, w, h)
 Resize a window.
 setEdWindowPos (winstr, x, y)
 Move a window.
 setEdWindowPosSizeEx (winstr, x, y, w, h)
 Move and resize a window with global coordinates (window + border + title).
 setEdWindowSizeEx (winstr, w, h)
 Resize a window with global coordinates (window + border + title).
 setEdWindowPosEx (winstr, x, y)
 Move a window with global coordinates (window + border + title).
 setEdVirtualWindowPosSize (winstr, x, y, w, h)
 Move and resize a virtual window.
 setEdVirtualWindowSize (winstr, w, h)
 Resize a virtual window.
 setEdVirtualWindowPos (winstr, x, y)
 Move a virtual window.
 setEdWindowResizeFlags (winstr, flags)
 Change a window resize flags.
 cbEdVirtualWindowSize (win, winstr, wv, hv)
 Callback on virtual window resize.
 cbEdVirtualWindowMove (win, winstr, x, y)
 Callback on virtual window move.
 cbEdWindowMove (win, winstr, x, y)
 Callback on window move.
 updateEdCtrlSize (winstr)
 Update all controls size according to the mother window.
 cbEdWindowSize (win, winstr, w, h)
 Callback on window resize.
 maximizeOrMinimizeEdWindow (winstr, hdecal, vdecal)
 Maximize or minimize a window.
 cbEdWindowKeyDown (win, winstr, key, scode)
 Callback on window key down.
 cbEdWindowDropFile (win, winstr, x, y, lp)
 Callback on window drop file.
 cbEdWindowKeyUp (win, winstr, key)
 Callback on window key up.
 setEdwindowCbKeyDown (winstr, cbfun)
 Set a window key down callback.
 setEdwindowCbKeyUp (winstr, cbfun)
 Set a window key up callback.
 setEdwindowCbSize (winstr, cbfun)
 Set a window size callback.
 setEdwindowCbMove (winstr, cbfun)
 Set a window move callback.
 setEdwindowCbVirtualMove (winstr, cbfun)
 Set a virtual window move callback.
 setEdwindowCbVirtualSize (winstr, cbfun)
 Set a virtual window size callback.
 setEdwindowCbDestroy (winstr, cbfun)
 Set a window destroy callback.
 setEdwindowCbClose (winstr, cbfun)
 Set a window close callback.
 setEdwindowCbDrop (winstr, cbfun)
 Set a window drop files callback.
 dsEdWindow (winstr)
 Destroy a window.
 cbEdWindowClose (win, winstr)
 Callback on window close.
 cbEdWindowDestroy (win, winstr)
 Callback on window destroy.
 cbEdVirtualWindowWheel (win, winstr, x, y, delta, btn)
 Callback on virtual window mouse wheel.
 cbEdVirtualWindowCursorMove (win, winstr, dx, dy, btn)
 Callback on virtual window mouse move.
 cbEdVirtualWindowClick (win, winstr, dx, dy, btn)
 Callback on virtual window mouse click.
 cbEdVirtualWindowUnClick (win, winstr, x, y, btn)
 Callback on virtual window mouse unclick.
 cbEdWindowCursorMove (win, winstr, x, y, btn)
 Callback on mouse cursor move.
 cbEdWindowClick (win, winstr, x, y, btn)
 Callback on mouse click.
 cbEdWindowUnClick (win, winstr, x, y, btn)
 Callback on mouse unclick.
 setEdwindowCbCursorMove (winstr, cbfun)
 Set a window cursor move callback.
 setEdwindowCbClick (winstr, cbfun)
 Set a window mouse click callback.
 setEdwindowCbUnClick (winstr, cbfun)
 Set a window mouse unclick callback.
 setEdWindowIcon (winstr, file)
 Set a window title bar icon.
 crEdWindow (chan, fatherstr, x, y, w, h, flags, resize, mode, title)
 Create a new window.
 crEdScrollWindow (chan, fatherstr, x, y, w, h, flags, resize, mode, title)
 Create a new scroll window.
 crEdGroupWindow (chan, fatherstr, x, y, w, h, flags, resize, title)
 Create a new group window.
 crEdDialogWindow (chan, fatherstr, x, y, w, h, flags, resize, title)
 Create a new dialog window.
 crEdModalDialogWindow (chan, fatherstr, x, y, w, h, flags, resize, title)
 Create a new modal dialog window.
 crEdPopupWindow (chan, fatherstr, x, y, w, h, flags, resize, title)
 Create a new popup window.
 cbEdFrameMinMax (tbstr, check, btn, mask, state, winstr)
 Callback on a frame window minimize/maximize click.
 cbEdDbClickFrameWindowTitle (cont, param, x, y, btn, mask)
 Callback on a frame window toolbar double click.
 crEdFrameWindow (chan, fatherstr, x, y, w, h, resize, themestr, title, minimizebuble)
 Create a frame window.
 crEdMainWindow (chan, fatherwin, x, y, w, h, flags, title)
 Create a new main window.
 getEdWindowIsAX (winstr)
 Return if a window is embeded in an activeX.
 getEdCtrlLabel (ctrlstr)
 getEdCtrlText (ctrlstr)
 getEdCtrlEditText (ctrlstr)
 getEdCtrlTextLine (ctrlstr)
 getEdCtrlButton (ctrlstr)
 getEdCtrlCheck (ctrlstr)
 getEdCtrlRadio (ctrlstr)
 getEdCtrlList (ctrlstr)
 getEdCtrlTree (ctrlstr)
 getEdCtrlSelect (ctrlstr)
 getEdCtrlFloat (ctrlstr)
 getEdCtrlView3d (ctrlstr)
 getEdCtrlLabelValue (ctrlstr)
 Get a label control value.
 setEdCtrlLabelValue (ctrlstr, val)
 Set a label control text value.
 setEdCtrlLabelEnable (ctrlstr, state)
 Enable or disable a label control.
 crEdCtrlLabel (winstr, x, y, w, h, value, resize)
 Create a label control.
 dsEdCtrlLabel (ctrlstr)
 Destroy a label control.
 getEdCtrlTextValue (ctrlstr)
 Get a text control value.
 getEdCtrlTextLineCount (ctrlstr)
 Get the number of lines in a text control.
 scrollEdCtrlText (ctrlstr, col, line)
 Scroll a text control to the specified column and line position.
 removeEdCtrlTextLine (ctrlstr, line)
 Remove the line in a text control.
 setEdCtrlTextValue (ctrlstr, val)
 Set a text control value.
 addEdCtrlTextValue (ctrlstr, val)
 Add a line to a text control.
 setEdCtrlTextEnable (ctrlstr, state)
 Enable or disable a text control.
 cbEdCtrlTextChange (txt, p)
 Callback on text control value change.
 setEdCtrlTextCbChange (ctrlstr, cbfun)
 Set the callback on text control change.
 crEdCtrlText (winstr, x, y, w, h, value, flags, resize)
 Create a text control.
 dsEdCtrlText (ctrlstr)
 Destroy a text control.
 getEdCtrlEditTextValue (ctrlstr)
 Get a edit text control value.
 setEdCtrlEditTextValue (ctrlstr, val)
 Set a edit text control value.
 setEdCtrlEditTextEnable (ctrlstr, state)
 Enable or disable a edit text control.
 cbEdCtrlEditTextChange (txt, p)
 Callback on edit text control value change.
 setEdCtrlEditTextCbChange (ctrlstr, cbfun)
 Set the callback on edit text control change.
 crEdCtrlEditText (winstr, x, y, w, h, value, flags, resize)
 Create a edit text control.
 dsEdCtrlEditText (ctrlstr)
 Destroy a edit text control.
 getEdCtrlTextLineValue (ctrlstr)
 Get a text line control value.
 setEdCtrlTextLineValue (ctrlstr, val)
 Set a text line control value.
 setEdCtrlTextLineEnable (ctrlstr, state)
 Enable or disable a text line control.
 cbEdCtrlTextLineChange (txt, p)
 Callback on text line control value change.
 setEdCtrlTextLineCbChange (ctrlstr, cbfun)
 Set the callback on text line control change.
 cbEdCtrlTextLineValidate (txt, p, val)
 Callback on text line control validate.
 setEdCtrlTextLineCbValidate (ctrlstr, cbfun)
 Set the callback on text line control validate.
 crEdCtrlTextLine (winstr, x, y, w, h, value, flags, resize)
 Create a text line control.
 setEdctrlTextLineFocus (ctrlstr)
 Set keyboard focus on a text line control.
 dsEdCtrlTextLine (ctrlstr)
 Destroy a text line control.
 setEdCtrlButtonEnable (ctrlstr, state)
 Enable or disable a button control.
 cbEdCtrlButton (btn, p)
 Callback on button control click.
 setEdCtrlButtonCb (ctrlstr, cbfun)
 Set the callback on button control click.
 crEdCtrlButton (winstr, x, y, w, h, value, resize)
 Create a button control.
 dsEdCtrlButton (ctrlstr)
 Destroy a button control.
 getEdCtrlCheckState (ctrlstr)
 Get a check box control state.
 setEdCtrlCheckState (ctrlstr, state)
 Set a check box control state.
 setEdCtrlCheckEnable (ctrlstr, state)
 Enable or disable a check box control.
 cbEdCtrlCheckState (chk, p, state)
 Callback on check box control state change.
 setEdCtrlCheckCbState (ctrlstr, cbfun)
 Set the callback on check box control state change.
 getEdCtrlRadioState (ctrlstr)
 Get a radio box control state.
 setEdCtrlRadioState (ctrlstr, state)
 Set a radio box control state.
 setEdCtrlRadioEnable (ctrlstr, state)
 Enable or disable a radio box control.
 setEdCtrlRadioCbState (ctrlstr, cbfun)
 Set the callback on radio box control state change.
 crEdCtrlCheck (winstr, x, y, w, h, value, resize)
 Create a check box control.
 dsEdCtrlCheck (ctrlstr)
 Destroy a check box control.
 crEdCtrlRadio (winstr, x, y, w, h, value, resize)
 Create a radio box control.
 dsEdCtrlRadio (ctrlstr)
 Destroy a radio box control.
 getEdCtrlListNbElems (ctrlstr)
 Get the number of elements of a list control.
 getEdCtrlListElemByName (ctrlstr, name)
 Get an element of a list control by name.
 fillEdCtrlList (ctrlstr, lparam)
 Fill a list control with a list of elements.
 addEdCtrlList (ctrlstr, name, lval, type)
 Add an element to a list control.
 getEdCtrlListElems (ctrlstr)
 Get the elements of a list control.
 getEdCtrlListElem (ctrlstr, elt)
 Get parameters and type from an element name of a list control.
 refreshEdCtrlList (ctrlstr)
 Refresh a list control.
 delEdCtrlList (ctrlstr, elt)
 Remove an element from a list control.
 resetEdCtrlList (ctrlstr)
 Reset a list control.
 selectEdCtrlList (ctrlstr, name)
 Select an element from a list control.
 selectEdCtrlListByPos (ctrlstr, pos)
 Select an element from a list control using it's position.
 selectEdCtrlListByParams (ctrlstr, params)
 Select an element from a list control using it's parameters.
 getSelectedEdCtrlList (ctrlstr)
 Get the current selected element from a list control.
 setEdCtrlListEnable (ctrlstr, state)
 Enable or disable a list control.
 cbEdCtrlListDbClick (lst, p, pos, elem)
 Callback on list control double click.
 setEdCtrlListCbDbClick (ctrlstr, cbfun)
 Set the callback on list control double click.
 cbEdCtrlListClick (lst, p, pos, elem)
 Callback on list control click.
 setEdCtrlListCbClick (ctrlstr, cbfun)
 Set the callback on list control click.
 cbEdCtrlListKeyDown (listobj, p, key, code)
 Callback on list control key down.
 setEdCtrlListCbKeyDown (ctrlstr, cbfun)
 Set the callback on list control key down.
 cbEdCtrlListKeyUp (listobj, p, key)
 Callback on list control key up.
 setEdCtrlListCbKeyUp (ctrlstr, cbfun)
 Set the callback on list control key up.
 crEdCtrlList (winstr, x, y, w, h, flags, resize)
 Create a list control.
 dsEdCtrlList (ctrlstr)
 Destroy a list control.
 fillEdCtrlSelect (ctrlstr, lparam)
 addEdCtrlSelect (ctrlstr, param)
 resetEdCtrlSelect (ctrlstr)
 selectEdCtrlSelect (ctrlstr, name)
 selectEdCtrlSelectByPos (ctrlstr, pos)
 getSelectedEdCtrlSelect (ctrlstr)
 getSelectedEdCtrlSelectPos (ctrlstr)
 setEdCtrlSelectEnable (ctrlstr, state)
 cbEdCtrlSelect (sel, p, pos, elem)
 setEdCtrlSelectCb (ctrlstr, cbfun)
 crEdCtrlSelect (winstr, x, y, w, h, resize)
 dsEdCtrlSelect (ctrlstr)
 getEdCtrlTreePreviousSelectedItem (ctrlstr)
 getEdCtrlTreeSelectedItem (ctrlstr)
 getEdCtrlTreeFatherItem (ctrlstr, item)
 getEdCtrlTreeSonsItem (ctrlstr, item)
 isEdCtrlTreeItemSon (ctrlstr, item, father)
 cbEdCtrlTreeSelect (tree, p, item)
 cbEdCtrlTreeDrag (tree, p, item1, item2)
 setEdCtrlTreeCbDrag (ctrlstr, cbfun)
 cbEdCtrlTreeDbClick (tree, p, item, x, y)
 setEdCtrlTreeCbDbClick (ctrlstr, cbfun)
 setEdCtrlTreeCbSelect (ctrlstr, cbfun)
 cbEdCtrlTreeRclick (tree, p, item, x, y, btn)
 setEdCtrlTreeCbRclick (ctrlstr, cbfun)
 cbEdCtrlTreeKeyDown (tree, p, key, code)
 setEdCtrlTreeCbKeyDown (ctrlstr, cbfun)
 cbEdCtrlTreeKeyUp (tree, p, key)
 setEdCtrlTreeCbKeyUp (ctrlstr, cbfun)
 setEdCtrlTreeExpandAll (ctrlstr, mode)
 addEdCtrlTreeItem (ctrlstr, father, name, val, type, bitmappath)
 removeEdCtrlTreeSons (ctrlstr, item)
 delEdCtrlTreeItem (ctrlstr, item)
 refreshEdCtrlTreeSons (ctrlstr, item, sort)
 setEdCtrlTreeLabel (ctrlstr, item, val)
 moveEdCtrlTreeItem (ctrlstr, item, father)
 sizeEdCtrlTree (ctrlstr, x, y, w, h)
 getEdCtrlTreeItemByValue (ctrlstr, val)
 getEdCtrlTreeValueByItem (ctrlstr, item)
 getEdCtrlTreeFullValuesByItem (ctrlstr, item)
 getEdCtrlTreeFullValuesByValue (ctrlstr, val)
 getEdCtrlTreeRootItem (ctrlstr)
 getEdCtrlTreeBrothers (ctrlstr, item)
 selEdCtrlTreeItemByValue (ctrlstr, val)
 selEdCtrlTreeItem (ctrlstr, item)
 resetEdCtrlTree (ctrlstr)
 crEdCtrlTree (winstr, x, y, w, h, resize)
 dsEdCtrlTree (ctrlstr)
 cbEdCtrlBitmapCursorMove (cmpbmp, ctrlstr, x, y, mask)
 cbEdCtrlBitmapResize (cmpbmp, ctrlstr, w, h)
 selectEdCtrlBitmapList (ctrlstr, pos)
 getEdCtrlBitmapListValbyPos (ctrlstr, pos)
 cbEdCtrlBitmapListClick (cmpbmp, param, x, y, btn, mask)
 cbEdCtrlBitmapListDbClick (cmpbmp, param, x, y, btn, mask)
 refreshEdCtrlBitmapListBitmap (ctrlstr)
 setEdCtrlBitmapListBitmap (ctrlstr, pos, bmppath)
 setEdCtrlBitmapListCbClick (ctrlstr, cbfun)
 setEdCtrlBitmapListCbDbClick (ctrlstr, cbfun)
 addEdCtrlBitmapList (ctrlstr, name, bmppath, val)
 resetEdCtrlBitmapList (ctrlstr)
 setEdCtrlBitmapListElemSize (ctrlstr, w, h, marge)
 cbEdCtrlBitmapListSize (cont, ctrlstr, state, w, h)
 crEdCtrlBitmapList (winstr, x, y, w, h, bw, bh, marge, resize)
 dsEdCtrlBitmapList (ctrlstr)
 cbEdCtrlBitmapResizeResource (cmpbmp, ctrlstr, w, h, oldval)
 cbEdCtrlBitmapResizeGridResource (cmpbmp, p, w, h, oldval)
 setEdCtrlBitmap (ctrlstr, bmppath)
 getEdCtrlBitmapBuffer (ctrlstr)
 setEdCtrlBitmapColor (ctrlstr, bgcolor)
 paintEdCtrlBitmap (ctrlstr)
 crEdCtrlBitmap (winstr, x, y, w, h, bmppath, bgcolor, resize)
 crEdCtrlGrid (winstr, x, y, w, h, bgcolor, dotcolor, dotspace, resize)
 dsEdCtrlBitmap (ctrlstr)
 cbEdCtrlFloatChange (txt, p)
 getEdCtrlFloatValue (ctrlstr)
 setEdCtrlFloatValue (ctrlstr, val)
 setEdCtrlFloatMinValue (ctrlstr, val)
 setEdCtrlFloatMaxValue (ctrlstr, val)
 setEdCtrlFloatValueWithoutCallback (ctrlstr, val)
 setEdCtrlFloatEnable (ctrlstr, state)
 setEdCtrlFloatCbChange (ctrlstr, cbfun)
 cbEdCtrlFloatValidate (txt, p, val)
 setEdCtrlFloatCbValidate (ctrlstr, cbfun)
 cbEdCtrlFloatUpClick (cmproll, ctrlstr, x, y, btn, mask)
 cbEdCtrlFloatDownClick (cmproll, ctrlstr, x, y, btn, mask)
 cbEdCtrlFloatUnClick (cont, ctrlstr, x, y, btn, mask)
 cbEdCtrlFloatLeave (cont, ctrlstr)
 cbEdCtrlFloatDrag (cont, ctrlstr, x, y, mask)
 crEdCtrlFloat (winstr, x, y, w, h, value, minval, maxval, incre, nb0, themestr, resize)
 dsEdCtrlFloat (ctrlstr)
 crEdCtrl3D (winstr, x, y, w, h, resize)
 dsEdCtrl3D (ctrlstr)
 fillEdColorMapRuller (ctrlstr, color)
 cbEdColorMapValueChange (ctrlstr, val, p)
 cbEdColorMapExaValueChange (ctrlstr, val, p)
 cbEdColorMapCrossCursorMove (cont, p, x, y, mask)
 cbEdColorMapCrossCursorClick (cont, p, x, y, btn, mask)
 cbEdColorMapRulerCursorMove (cont, p, x, y, mask)
 cbEdColorMapRulerCursorClick (cont, p, x, y, btn, mask)
 cbEdColorMapOk (ctrlstr, param)
 cbEdColorMapCancel (ctrlstr, param)
 cbEdColorMapScreenPickerTimer (tmr, param)
 cbEdColorMapScreenPickerClick (cont, param, x, y, btn, m)
 cbEdColorMapScreenPicker (tbstr, cmproll, btn, mask, p)
 cbEdColorMapDestroy (winstr, p)
 crEdColorMap (chan, fatherstr, color, mode, name, themestr, cbfun)
 updateEdCtrlColorButton (ctrlstr, color)
 cbEdCtrlColorButtonSelect (color, ctrlstr)
 getEdCtrlColorButtonColor (ctrlstr)
 cbEdCtrlColorButtonMapDestroy (winstr, ctrlstr)
 cbEdCtrlColorButton (btn, ctrlstr)
 setEdCtrlColorButtonCb (ctrlstr, cbfun)
 crEdCtrlColorButton (winstr, x, y, w, h, color, mode, resize, themestr)
 dsEdCtrlColorButton (ctrlstr)
 paintEdCtrlModuleEditor (ctrlstr)
 findEdCtrlModuleEditorRoundLink (ctrlstr, srcmboxstr, dstmboxstr)
 calcEdCtrlModuleEditorRoundLinkPos (x1, y1, w1, h1, x2, y2, w2, h2)
 updateEdCtrlModuleEditorRoundLinkPos (ctrlstr)
 drawEdCtrlModuleEditorLinkPrivate (buffer, x1, y1, x2, y2, width, color)
 calcEdCtrlModuleEditorLink (x1, y1, w1, h1, x2, y2, w2, h2)
 drawEdCtrlModuleEditorLink (ctrlstr, linkstr)
 refreshEdCtrlModuleEditorLinks (ctrlstr)
 dsEdCtrlModuleEditorRoundLink (ctrlstr, rlinkstr)
 chkCtrlModuleEditorBox (ctrlstr, mboxstr, add, paint)
 chkCtrlModuleEditorRoundLink (ctrlstr, rlinktr)
 cbEdCtrlModuleEditorRoundLinkClick (cmpbmp, p, x, y, btn, mask)
 setEdCtrlModuleEditorRoundLinkCbClick (ctrlstr, cbfun)
 cbEdCtrlModuleEditorRoundLinkUnClick (cmpbmp, p, x, y, btn, mask)
 setEdCtrlModuleEditorRoundLinkCbUnClick (ctrlstr, cbfun)
 cbEdCtrlModuleEditorRoundLinkDbClick (cmpbmp, p, x, y, btn, mask)
 setEdCtrlModuleEditorRoundLinkCbDbClick (ctrlstr, cbfun)
 setEdCtrlModuleEditorRoundLinkCbDestroy (ctrlstr, cbfun)
 setEdCtrlModuleEditorRoundLinkCbUpdate (ctrlstr, cbfun)
 setEdCtrlModuleEditorRoundLinkFlag (rlinkstr, flag)
 getEdCtrlModuleEditorRoundLinkFlag (rlinkstr)
 cbEdModuleEditorRoundLinkToolTipHide (node, p, bubble)
 cbEdModuleEditorRoundLinkToolTipShow (node, p, bubble, dx, dy)
 setEdCtrlModuleEditorRoundLinkTooltip (ctrlstr, rlinkstr, bubble)
 crEdCtrlModuleEditorRoundLink (ctrlstr, linkstr)
 getEdCtrlModuleEditorRoundLinkByLink (ctrlstr, linkstr)
 removeEdCtrlModuleEditorLinkFromRoundLink (ctrlstr, linkstr, refresh)
 dsEdCtrlModuleEditorLink (ctrlstr, linkstr, refresh)
 crEdCtrlModuleEditorLink (ctrlstr, srcmboxstr, dstmboxstr, lp, param)
 getEdCtrlModuleEditorBoxOptimizedPos (mestr, mboxstr, x, y)
 cbEdCtrlModuleEditorWheel (cont, ctrlstr, x, y, delta, btn)
 setEdCtrlModuleEditorMouseLink (cont, ctrlstr, rec)
 setEdCtrlModuleEditorMouseSelection (cont, ctrlstr, rec)
 cbCtrlModuleEditorCursorMove (cont, ctrlstr, dx, dy, btn)
 calcEdModuleEditorBoxSquare (ctrlstr)
 cbCtrlModuleEditorBoxCursorMove (cont, p, x, y, btn)
 getEdModuleEditorBoxesInArea (ctrlstr, x1, y1, x2, y2)
 cbCtrlModuleEditorUnClick (cont, ctrlstr, x, y, btn, mask)
 cbCtrlModuleEditorClick (cont, ctrlstr, x, y, btn, mask)
 cbCtrlModuleEditorDbClick (cont, ctrlstr, x, y, btn, mask)
 cbCtrlModuleEditorKeyDown (cont, ctrlstr, key, code)
 cbCtrlModuleEditorKeyUp (cont, ctrlstr, key)
 selectCtrlModuleEditorBox (ctrlstr, mboxstr, add)
 cbEdCtrlModuleEditorBoxMenu (elt, p)
 crEdCtrlModuleEditorBoxMenu (ctrlstr, mboxstr)
 setEdCtrlModuleEditorBoxMenu (ctrlstr, mboxstr, mode, l)
 resetEdCtrlModuleEditorBoxMenu (ctrlstr, mboxstr)
 cbEdModuleEditorBoxToolTipHide (node, p, bubble)
 cbEdModuleEditorBoxToolTipShow (node, p, bubble, dx, dy)
 setEdCtrlModuleEditorBoxTooltip (ctrlstr, mboxstr, bubble)
 setEdCtrlModuleEditorBoxFlags (mboxstr, flags)
 getEdCtrlModuleEditorBoxFlags (mboxstr)
 delEdCtrlModuleEditorBoxMenu (ctrlstr, mboxstr, mode, name, name2)
 delEdCtrlModuleEditorBoxMenuStartWith (ctrlstr, mboxstr, mode, name)
 addEdCtrlModuleEditorBoxMenu (ctrlstr, mboxstr, mode, lp)
 sortEdCtrlModuleEditorBoxMenu (ctrlstr, mboxstr)
 cbEdCtrlModuleEditorBoxClick (cmpbmp, p, x, y, btn, mask)
 cbEdCtrlModuleEditorBoxDbClick (cmpbmp, p, x, y, btn, mask)
 cbEdCtrlModuleEditorBoxUnClick (cmpbmp, p, x, y, btn, mask)
 setEdCtrlModuleEditorBoxPos (ctrlstr, mboxstr, px, py)
 selectEdCtrlModuleEditorBoxes (ctrlstr)
 setEdCtrlModuleEditorBoxLabel (ctrlstr, mboxstr, label)
 crEdCtrlModuleEditorBox (ctrlstr, name, label, lp, px, py, icon, mode)
 getEdCtrlModuleEditorBoxByName (ctrlstr, name)
 getEdCtrlModuleEditorSelectedBox (ctrlstr)
 getEdCtrlModuleEditorSelectedRoundLink (ctrlstr)
 dsEdCtrlModuleEditorBox (ctrlstr, mboxstr)
 setEdCtrlModuleEditorLinkMode (ctrlstr, mode)
 getEdCtrlModuleEditorLinkMode (ctrlstr)
 resetEdCtrlModuleEditor (ctrlstr)
 setEdCtrlModuleEditorCbBoxMenu (ctrlstr, cbfun)
 setEdCtrlModuleEditorCbBoxSelect (ctrlstr, cbfun)
 setEdCtrlModuleEditorCbBoxClick (ctrlstr, cbfun)
 setEdCtrlModuleEditorCbBoxUnClick (ctrlstr, cbfun)
 setEdCtrlModuleEditorCbBoxDbClick (ctrlstr, cbfun)
 setEdCtrlModuleEditorCbBoxMove (ctrlstr, cbfun)
 setEdCtrlModuleEditorCbSeletedBoxMoving (ctrlstr, cbfun)
 setEdCtrlModuleEditorCbClick (ctrlstr, cbfun)
 setEdCtrlModuleEditorCbUnClick (ctrlstr, cbfun)
 setEdCtrlModuleEditorCbDbClick (ctrlstr, cbfun)
 setEdCtrlModuleEditorCbKeyDown (ctrlstr, cbfun)
 setEdCtrlModuleEditorCbKeyUp (ctrlstr, cbfun)
 cbEdCtrlModuleEditorSize (winstr, w, h, ctrlstr)
 cbEdCtrlModuleEditorScroll (winstr, x, y, ctrlstr)
 crEdCtrlModuleEditor (winstr, surfw, surfh, snap, mode, themestr)
 dsEdCtrlModuleEditor (ctrlstr)
 dsEdWindowCtrlList (lctrl)
 setEdCtrlSize (ctrlstr, w, h)

Variables

var iG2DDEFAULTBACKGROUNDCOLOR = 0x373737
var iG2DDEFAULTFONTCOLOR = 0x0
var iG2DDEFAULTFRAMEFONTCOLOR = 0xffffff
var iG2DDEFAULTMODULEEDITORBGCOLOR = 0x7d7d7d
var iG2DDEFAULTMODULEEDITORDOTCOLOR = 0xffffff
var iG2DDEFAULTMODULEEDITORBOXBORDEROFFCOLOR = 0xeeeeee
var iG2DDEFAULTMODULEEDITORBOXBORDERONCOLOR = 0xffffff
var iG2DDEFAULTMODULEEDITORBOXOFFCOLOR = 0x373737
var iG2DDEFAULTMODULEEDITORBOXONCOLOR = 0x888888
var iG2DDEFAULTMODULEEDITORBOXTEXTONCOLOR = 0xffffff
var iG2DDEFAULTMODULEEDITORBOXTEXTOFFCOLOR = 0xeeeeee
var iG2DDEFAULTMODULEEDITORLINKOFFCOLOR = 0xaaaaaa
var iG2DDEFAULTMODULEEDITORLINKONCOLOR = 0xffffff
var iG2DDEFAULTMODULEEDITORROUNDLINKSIZE = 24
var iG2DDEFAULTMODULEEDITORBORDERWIDTH = 1
var sG2DDEFAULTRESOURCESPATH = "tools/os3dlib/res/"
var sG2DUPDOWNVALUECURSOR = "valuesupdown_cursor.bmp"
var sG2DHCOLORPICKERCURSOR = "colorpicker_cursor.bmp"
var sG2DHSIZECURSOR = "hsize_cursor.bmp"
var sG2DWSIZECURSOR = "wsize_cursor.bmp"
var sG2DDEFAULTCHKTAB = "edit/chktab.png"
var sG2DDEFAULTCLOSETAB = "edit/btnclosetab.png"
var sG2DDEFAULTBTNTABLEFT = "edit/btnleft.png"
var sG2DDEFAULTBTNTABRIGHT = "edit/btnright.png"
var sG2DDEFAULTBTNVALUP = "edit/btnup.png"
var sG2DDEFAULTBTNVALDOWN = "edit/btndown.png"
var sG2DDEFAULTBTNCOLORPICKER = "edit/btncolorpicker.png"
var sG2DDEFAULTCHKFRAMEFOLD = "edit/chkframeminmax.png"
var sG2DCOLORMAP = "edit/work.png"
var sG2DCOLORMAPCROSS = "edit/cross.png"
typeof EdDefaultTheme = EdTheme
var EDWIN_RESIZE_NONE = 0
var EDWIN_RESIZE_LW = 1
 left border is at a flexible distance from the left border of the parent zone
var EDWIN_RESIZE_MW = 2
 width is a flexible value
var EDWIN_RESIZE_RW = 4
 right border is at a flexible distance from the right border of the parent zone
var EDWIN_RESIZE_LH = 8
 top border is at a flexible distance from the top border of the parent zone
var EDWIN_RESIZE_MH = 16
 height is a flexible value
var EDWIN_RESIZE_RH = 32
 bottom border is at a flexible distance from the bottom border of the parent zone
var EDWIN_RESIZE_ALL = 64
 all flexible
var EDWIN_DIALOG = 1
var EDWIN_POPUP = 2
var EDWIN_FRAME = 4
var EDWIN_GROUP = 8
var EDWIN_TAB = 16
var EDWIN_MODAL = 32
proto crEdWindow = fun [Chn EdWindow I I I I I I I S] EdWindow
proto dsEdWindow = fun [EdWindow] I
proto resizeEdWindowVirtualSize = fun [EdWindow] I
proto getEdWindowToolBarSize = fun [EdWindow] [I I]
proto setEdWindowVisible = fun [EdWindow I] I
proto dsEdWindowCtrlList = fun [[EdControl r1]] I
var ETB_HORIZONTAL = 1
var ETB_VERTICAL = 2
var ETB_ALIGN_LEFT = 1
var ETB_ALIGN_RIGHT = 2
var ETB_ALIGN_TOP = 4
var ETB_ALIGN_BOTTOM = 8
proto focusEdTab = fun [EdTabBar EdTab] I
proto dsEdTab = fun [EdTabBar EdTab] I
var ETAB_CLOSEBTN = 1
proto cbEdColorMapExaValueChange = fun [EdControl S [I I [I I I] EdControl EdControl EdControl EdControl EdControl EdControl EdControl EdControl CompBitmap ObjCursor]] I
typeof tmrEdColorMapMousePicker = Timer

Typedef Documentation

typedef struct mkEdTheme EdTheme
typedef struct mkEdTreeItem EdTreeItem
typedef struct mkEdControl EdControl
typedef struct mkEdModuleEditor EdModuleEditor
typedef struct mkEdModuleBox EdModuleBox
typedef struct mkEdModuleRoundLink EdModuleRoundLink
typedef struct mkEdModuleLink EdModuleLink
typedef struct mkEdWindow EdWindow
typedef struct mkEdToolBar EdToolBar
typedef struct mkEdTabBar EdTabBar
typedef struct mkEdTab EdTab

Function Documentation

G2DgetFtoA ( float  ,
nb   
)

Convert a float into an number of zero limited string.

Prototype: fun [F I] S

Parameters:
F : float to convert
I : number of 0 after the coma
Returns:
S : float in string
G2Dlcat ( ,
 
)

Concat two list to one.

Prototype: fun [[u0 r1] [u0 r1]] [u0 r1]

Parameters:
[u0 r1] : first list to concat
[u0 r1] : second list to concat
Returns:
[u0 r1] : concatened list
G2DisInList ( ,
 
)

Test if an element exist in a list.

Prototype: fun [[u0 r1] u0] I

Parameters:
[u0 r1] : list
u0 : elem to find
Returns:
I : 1 if found else 0
G2DremoveFromList ( ,
elt   
)

Remove an element from a list.

Prototype: fun [[u0 r1] u0] [u0 r1]

Parameters:
[u0 r1] : list
u0 : element to remove
Returns:
[u r1] : list without the element
G2DremoveStringFromList ( ,
elt   
)

Remove a string from a list case unsensivity.

Prototype: fun [[S r1] S] [S r1]

Parameters:
[S r1] : string list
S : string to remove
Returns:
[S r1] : list without the element
G2DremoveEdIdxFromList ( ,
idx   
)

Remove an element from an int indexed list.

Prototype: fun [[[I u0] r1] I] [[I u0] r1]

Parameters:
[[I u0] r1] : list
I : index
Returns:
[[I u0] r1] : list without the indexed element
G2DremoveEdSidFromList ( ,
sid   
)

Remove an element from an string indexed list.

Prototype: fun [[[S u0] r1] S] [[S u0] r1]

Parameters:
[[S u0] r1] : list
S : string index
Returns:
[[S u0] r1] : list without the indexed element
G2DremoveEdSidFromListi ( ,
sid   
)

Remove an element from an string indexed list case unsensivity.

Prototype: fun [[[S u0] r1] S] [[S u0] r1]

Parameters:
[[S u0] r1] : list
S : string index
Returns:
[[S u0] r1] : list without the indexed element
G2DgetElemFromListByIndex ( ,
idx   
)

Get an element from an indexed list by index.

Prototype: fun [[[I u0] r1] I] [I u0]

Parameters:
[[I u0] r1] : list
I : index
Returns:
[I u0] : the element if found else return NIL
G2DgetStrWidth ( font  ,
str   
)

Get the width size of a string calculated using font.

Prototype: fun [ObjFont S] I

Parameters:
ObjFont : font
S : string to calculate
Returns:
I : width in pixel size
G2DgetStringSize2 ( font  ,
txtList  ,
,
 
)

Get the width and height size of a string list calculated using font.

Used by G2DgetStringSize, you shoud use G2DgetStringSize only Prototype: fun [ObjFont [S r1] I I] [I I]

Parameters:
ObjFont : font
[S r1] : string list to calculate
I : should be 0
I : should be 0
Returns:
[I I] : [width height] in pixel size
G2DgetStringSize ( font  ,
str   
)

Get the width and height size of a string calculated using font.

Prototype: fun [ObjFont S] [I I]

Parameters:
ObjFont : font
S : string to calculate
Returns:
[I I] : [width height] in pixel size
G2DgetAbreviation ( str  ,
size  ,
font  ,
endstr   
)

Get a cutted string limited by pixel size with a possible concated string at end.

Prototype: fun [S I ObjFont S] S

Parameters:
S : string to cut
I : max width in pixel
ObjFont : font used
S : string concatened with the cutted string ("...")
Returns:
S : the cutted string
G2DbBmp_HResize ( resBmp  ,
orgBmp  ,
resBmp8  ,
orgBmp8  ,
nbCol  ,
numCol  ,
trans  ,
borders   
)
G2DbBmp_VResize ( resBmp  ,
orgBmp  ,
resBmp8  ,
orgBmp8  ,
nbLine  ,
numLine  ,
trans  ,
borders   
)
G2DbBmp_DrawText ( bmp  ,
text  ,
tabl  ,
size  ,
pos  ,
colors  ,
numLine  ,
numCol   
)
G2DbBmp_stretchButtonText ( chan  ,
text  ,
size  ,
colors  ,
borders  ,
tabl  ,
img  ,
right   
)
G2DcbResizeNode ( cbmp  ,
,
,
,
oldval   
)
G2DcreateNode ( container  ,
node  ,
pos  ,
width  ,
height  ,
flags  ,
color  ,
opacity  ,
inline  ,
linecolor   
)

Create a CompBitmap as layer with border, backcolor and opacity.

Prototype: fun [Chn ObjNode [I I] I I I I I I I] ObjNode

Parameters:
Chn : channel
ObjNode : father node
[I I] : [x y] position
I : width
I : height
I : CompBitmap flags
I : background color
I : opacity 0 to 100
I : border size
I : border color
Returns:
ObjNode : ObjNode of the layer
makeEdThemeResources ( chan   ) 

Create a new theme structure with default values.

Prototype: fun [Chn] EdTheme

Parameters:
Chn : channel
Returns:
EdTheme : theme structure
setEdColorMapResources ( themestr  ,
cmap  ,
mapcross  ,
btnpicker  ,
curpicker   
)

Set the color map control theme resources.

Prototype: fun [EdTheme S S S S] I

Parameters:
EdTheme : theme structure
S : colormap png path in scol partition
S : cross selection png path in scol partition
S : button color picker png path in scol partition
S : cursor color picker path in scol partition
Returns:
I : 0
setEdToolBarResources ( themestr  ,
backcolor   
)

Set the toolbar control theme resources.

Prototype: fun [EdTheme I] I

Parameters:
EdTheme : theme structure
I : background color
Returns:
I : 0
setEdTabResources ( themestr  ,
backcolor  ,
tabcheck  ,
tabclose  ,
tableft  ,
tabright  ,
fontname  ,
fontsize  ,
fontcolor   
)

Set the tabs control theme resources.

Prototype: fun [EdTheme I S S S S S I I] I

Parameters:
EdTheme : theme structure
I : background color
S : Tab check png path in scol partition
S : Tab close button png path in scol partition
S : Tab left button png path in scol partition
S : Tab right button png path in scol partition
S : font face name
I : font size
I : font color
Returns:
I : 0
setEdFloatResources ( themestr  ,
upbtn  ,
downbtn  ,
cursize   
)

Set the float control theme resources.

Prototype: fun [EdTheme S S S] I

Parameters:
EdTheme : theme structure
S : up button png path in scol partition
S : down button png path in scol partition
S : arrows cursor bmp path in scol partition
Returns:
I : 0
setEdFrameResources ( themestr  ,
backcolor  ,
foldbtn  ,
fontname  ,
fontsize  ,
fontcolor  ,
barheight   
)

Set the frame control theme resources.

Prototype: fun [EdTheme I S S I I I] I

Parameters:
EdTheme : theme structure
I : background color
S : fold (minimize / restore) button png path in scol partition
S : font face name
I : font size
I : font color
I : title bar height
Returns:
I : 0
addEdThemeResource ( themestr  ,
resname  ,
path   
)

Add an indexed resource to the theme.

Prototype: fun [EdTheme S S] I

Parameters:
EdTheme : theme structure
S : resource name index
S : png path in scol partition
Returns:
I : 0
delEdThemeResource ( themestr  ,
resname   
)

Del an indexed resource in the theme.

Prototype: fun [EdTheme S] I

Parameters:
EdTheme : theme structure
S : resource name index
Returns:
I : 0
getEdThemeResource ( themestr  ,
resname   
)

Get an indexed resource from the theme.

Prototype: fun [EdTheme S] AlphaBitmap

Parameters:
EdTheme : theme structure
S : resource name index
Returns:
AlphaBitmap : resource AlphaBitmap
delEdTheme ( themestr   ) 

Destroy a theme structure and his resources.

Prototype: fun [EdTheme] I

Parameters:
EdTheme : theme structure
Returns:
I : 0
resetEdTabPosition ( tabbarstr   ) 

Re-position all tabs on tab bar.

Private

Prototype: fun [EdTabBar] I

Parameters:
EdTabBar : tab bar structure
Returns:
I : 0
getEdTabsLength ( tabbarstr  ,
pos   
)

Get the width of the tab bar from a tab position.

Private

Prototype: fun [EdTabBar I] I

Parameters:
EdTabBar : tab bar structure
I : tab position
Returns:
I : width size
getEdLastVisibleTabs ( tabbarstr   ) 

Get last visible tab position.

Private

Prototype: fun [EdTabBar] I

Parameters:
EdTabBar : tab bar structure
Returns:
I : last visible position
getEdBestTabsByLength ( tabbarstr  ,
,
pos   
)

Get the best pos for the scrolled tab bar.

Private

Prototype: fun [EdTabBar I I] I

Parameters:
EdTabBar : tab bar structure
I : real width of the tab
I : tab position
Returns:
I : best position
activateEdTabBarScroll ( tabbarstr   ) 

Show or hide the scrolling arrows if needed.

Private

Prototype: fun [EdTabBar] I

Parameters:
EdTabBar : tab bar structure
Returns:
I : 0
cbEdTabClick ( cmpchk  ,
param  ,
,
,
btn  ,
mask   
)

Not used.

private

Prototype: fun [CompCheck u0 I I I I] I

Returns:
I : 0
cbEdTabUnClick ( cmpchk  ,
param  ,
,
,
btn  ,
mask   
)

Unclick call back on a tab.

Private

Prototype: fun [CompCheck [EdTabBar EdTab] I I I I] I

Returns:
I : 0
cbEdTabResize ( cmpchk  ,
,
,
 
)

Not used.

Private

Prototype: fun [CompCheck u0 I I] I

Returns:
I : 0
cbEdCloseTabClick ( cmproll  ,
param  ,
,
,
btn  ,
mask   
)

Callback for the close button.

Private

Prototype: fun [CompRollOver u0 I I I I] I

Returns:
I : 0
setEdTabCbClose ( tabstr  ,
cbfun   
)

Callback for the close button.

Private

Prototype: fun [EdTab fun [EdTab] I] I

Returns:
I : 0
changeEdTabCheck ( tabbarstr  ,
tabstr   
)

Update the tab check.

Private

Prototype: fun [EdTabBar EdTab] I

Returns:
I : 0
focusEdTab ( tabbarstr  ,
tabstr   
)

Focus the specified tab.

Private

Prototype: fun [EdTabBar EdTab] I

Parameters:
EdTabBar : tab bar structure
EdTab : tab structure
Returns:
I : 0
cbEdTabBarScrollLeft ( cmpbtn  ,
tabbarstr  ,
,
,
btn  ,
mask   
)

Callback on scroll left click.

Private

Prototype: fun [CompRollOver EdTabBar I I I I] I

Returns:
I : 0
cbEdTabBarScrollRight ( cmpbtn  ,
tabbarstr  ,
,
,
btn  ,
mask   
)

Callback on scroll right click.

Private

Prototype: fun [CompRollOver EdTabBar I I I I] I

Returns:
I : 0
makeEdTabBarScroll ( tabbarstr   ) 

Create the tab bar scroll interface.

Private

Prototype: fun [EdTabBar] I

Returns:
I : 0
cbEdToolBarToolTipHide ( node  ,
,
bubble   
)

Hide a toolbar tooltip.

Private

Prototype: fun [ObjNode EdToolBar S] I

Parameters:
ObjNode : node of tooltip
EdToolBar : tool bar structure
S : tooltip text
Returns:
I : 0
cbEdToolBarToolTipShow ( node  ,
,
bubble  ,
dx  ,
dy   
)

Show a toolbar tooltip.

Private

Prototype: fun [ObjNode EdToolBar S I I] I

Parameters:
ObjNode : node of tooltip
EdToolBar : tool bar structure
S : tooltip text
I : X position
I : Y position
Returns:
I : 0
cbEdToolBarTextResize ( ctext  ,
param  ,
,
 
)

Callback on toolbar text resize.

Private not used

Prototype: fun [CompText [EdToolBar u0] I I] I

Returns:
I : 0
cbEdToolBarCheckClick ( check  ,
param  ,
,
,
btn  ,
mask   
)

Callback on toolbar check click.

Private

Prototype: fun [CompCheck [EdToolBar fun [EdToolBar CompCheck I I I] I] I I I I] I

Returns:
I : 0
cbEdToolBarCheckIn ( croll  ,
param  ,
,
,
mask   
)

Callback on toolbar check cursor in.

Private not used

Prototype: fun [CompCheck [EdToolBar u0] I I I] I

Returns:
I : 0
cbEdToolBarCheckOut ( croll  ,
param  ,
,
,
mask   
)

Callback on toolbar check cursor out.

Private not used

Prototype: fun [CompCheck [EdToolBar u0] I I I] I

Returns:
I : 0
cbEdToolBarCheckResize ( croll  ,
param  ,
,
 
)

Callback on toolbar check resize.

Private not used

Prototype: fun [CompCheck [EdToolBar u0] I I] I

Returns:
I : 0
cbEdToolBarButtonClick ( croll  ,
param  ,
,
,
btn  ,
mask   
)

Callback on toolbar button click.

Private

Prototype: fun [CompRollOver [EdToolBar fun [EdToolBar CompRollOver I I] I] I I I I] I

Returns:
I : 0
cbEdToolBarButtonIn ( croll  ,
param  ,
,
,
mask   
)

Callback on toolbar button cursor in.

Private not used

Prototype: fun [CompRollOver [EdToolBar u0] I I I] I

Returns:
I : 0
cbEdToolBarButtonOut ( croll  ,
param  ,
,
,
mask   
)

Callback on toolbar button cursor out.

Private not used

Prototype: fun [CompRollOver [EdToolBar u0] I I I] I

Returns:
I : 0
cbEdToolBarButtonResize ( croll  ,
param  ,
,
 
)

Callback on toolbar button resize.

Private not used

Prototype: fun [CompRollOver [EdToolBar u0] I I] I

Returns:
I : 0
cbEdToolBarBmpClick ( bmp  ,
,
,
,
btn  ,
mask   
)

Callback on toolbar bitmap click.

Private

Prototype: fun [CompBitmap [EdToolBar fun [EdToolBar CompBitmap I I] I] I I I I] I

Returns:
I : 0
cbEdToolBarBmpDbClick ( bmp  ,
,
,
,
btn  ,
mask   
)

Callback on toolbar bitmap double click.

Private

Prototype: fun [CompBitmap [EdToolBar fun [EdToolBar I I I] I] I I I I] I

Returns:
I : 0
dsEdToolBar ( win  ,
tbstr   
)

Destroy a toolbar from a window.

Private

Prototype: fun [EdWindow EdToolBar] I

Parameters:
EdWindow : window structure
EdToolBar : tool bar structure
Returns:
I : 0
dsEdToolBarList (  ) 

Destroy a toolbar list.

Private

Prototype: fun [[EdToolBar r1]] I

Parameters:
[EdToolBar r1] : tool bar structure list
Returns:
I : 0
cbEdToolBarDbClick ( cont  ,
,
,
,
btn  ,
mask   
)

Callback on toolbar double click.

Private

Prototype: fun [ObjContainer [EdToolBar fun [EdToolBar I I I I] I] I I I I] I

Returns:
I : 0
cbEdToolBarClick ( cont  ,
,
,
,
btn  ,
mask   
)

Callback on toolbar click.

Private

Prototype: fun [ObjContainer [EdToolBar fun [EdToolBar I I I I] I] I I I I] I

Returns:
I : 0
crEdToolBar ( chan  ,
father  ,
,
,
,
,
hmargin  ,
vmargin  ,
bgcolor  ,
mode   
)

Create a toolbar on a window.

Private

Prototype: fun [Chn EdWindow I I I I I I I I] EdToolBar

Parameters:
Chn : channel
EdWindow : window where to put the toolbar
I : X position
I : Y position
I : width
I : height
I : horizontal margin between elements
I : vertical margin between elements
I : toolbar background color
I : mode flag (ETB_HORIZONTAL, ETB_VERTICAL)
Returns:
EdToolBar : the new toolbar
calcEdWindowGroupSonPos ( winstr   ) 

Calculate the needed Y position of a window from the other group windows.

Private

Prototype: fun [EdWindow] I

Parameters:
EdWindow : window structure
Returns:
I : new y pos
updateEdGroupWindowSons ( winstr   ) 

Move group windows from the other group windows.

Private

Prototype: fun [EdWindow] I

Parameters:
EdWindow : window structure
Returns:
I : 0
getEdFrameYpos ( winstr   ) 

Calculate a frame window Y position in a group windows.

Private

Prototype: fun [EdWindow] I

Parameters:
EdWindow : window structure
Returns:
I : Y position
calcEdCoord ( winstr   ) 

Calculate coordinates of a window according to the mother window.

Private

Prototype: fun [EdWindow] [I I I I I I]

Parameters:
EdWindow : window structure
Returns:
[I I I I I I] : window coords
calcEdWindowDim ( typ  ,
x1  ,
,
x2  ,
 
)

Calculate a position with respect to the resize flags.

Private

Prototype: fun [I I I I I] [I I]

Returns:
[I I] : size
calcEdWindowSizePos ( winstr   ) 

Calculate a window position and size according to its resize flags.

Private

Prototype: fun [EdWindow] [I I I I]

Parameters:
EdWindow : window structure
Returns:
[I I I I] : x y window pos and w h size
calcEdCtrlSizePos ( ctrlstr   ) 

Calculate a control position and size according to its resize flags.

Private

Prototype: fun [EdControl] [I I I I]

Parameters:
EdControl : control structure
Returns:
[I I I I] : x y control pos and w h size
getEdVirtualWindowSize ( winstr   ) 

Get a virtual window size.

Private

Prototype: fun [EdWindow] [I I]

Parameters:
EdWindow : window structure
Returns:
[I I] : w h window size
getEdVirtualWindowPos ( winstr   ) 

Get a virtual window position.

Private

Prototype: fun [EdWindow] [I I]

Parameters:
EdWindow : window structure
Returns:
[I I] : x y window position
getEdWindowSize ( winstr   ) 

Get a window size.

Private

Prototype: fun [EdWindow] [I I]

Parameters:
EdWindow : window structure
Returns:
[I I] : w h window size
getEdWindowPos ( winstr   ) 

Get a window position.

Private

Prototype: fun [EdWindow] [I I]

Parameters:
EdWindow : window structure
Returns:
[I I] : x y window position
getEdWindowPosSize ( winstr   ) 

Get a window position and size.

Private

Prototype: fun [EdWindow] [I I I I]

Parameters:
EdWindow : window structure
Returns:
[I I I I] : x y window position and w h size
getEdWindowExPosSize ( winstr   ) 

Get a window position and size with borders.

Private

Prototype: fun [EdWindow] [I I I I]

Parameters:
EdWindow : window structure
Returns:
[I I I I] : x y window position and w h size
getEdWindowResizeFlags ( winstr   ) 

Get a window resize flags.

Private

Prototype: fun [EdWindow] I

Parameters:
EdWindow : window structure
Returns:
I : resize flags
resizeEdWindowVirtualSize ( winstr   ) 

Resize a virtual window according to the sons windows size.

Private

Prototype: fun [EdWindow] I

Parameters:
EdWindow : window structure
Returns:
I : 0
resizeEdWindow ( winstr   ) 

Resize a window according to its type, state and resize flags.

Private

Prototype: fun [EdWindow] I

Parameters:
EdWindow : window structure
Returns:
I : 0
cbEdVirtualWindowSize ( win  ,
winstr  ,
wv  ,
hv   
)

Callback on virtual window resize.

Private

Prototype: fun [ObjWin EdWindow I I] I

Parameters:
ObjWin : window object
EdWindow : window structure
I : width
I : height
Returns:
I : 0
cbEdVirtualWindowMove ( win  ,
winstr  ,
,
 
)

Callback on virtual window move.

Private

Prototype: fun [ObjWin EdWindow I I] I

Parameters:
ObjWin : window object
EdWindow : window structure
I : X position
I : Y position
Returns:
I : 0
cbEdWindowMove ( win  ,
winstr  ,
,
 
)

Callback on window move.

Private

Prototype: fun [ObjWin EdWindow I I] I

Parameters:
ObjWin : window object
EdWindow : window structure
I : X position
I : Y position
Returns:
I : 0
updateEdCtrlSize ( winstr   ) 

Update all controls size according to the mother window.

Private

Prototype: fun [ObjWin EdWindow I I] I

Parameters:
ObjWin : window object
EdWindow : window structure
I : X position
I : Y position
Returns:
I : 0
cbEdWindowSize ( win  ,
winstr  ,
,
 
)

Callback on window resize.

Private

Prototype: fun [ObjWin EdWindow I I] I

Parameters:
ObjWin : window object
EdWindow : window structure
I : width
I : height
Returns:
I : 0
cbEdWindowKeyDown ( win  ,
winstr  ,
key  ,
scode   
)

Callback on window key down.

Private

Prototype: fun [ObjWin EdWindow I I] I

Parameters:
ObjWin : window object
EdWindow : window structure
I : key
I : ascii code
Returns:
I : 0
cbEdWindowDropFile ( win  ,
winstr  ,
,
,
lp   
)

Callback on window drop file.

Private

Prototype: fun [ObjWin EdWindow I I [P r1]] I

Parameters:
ObjWin : window object
EdWindow : window structure
I : X position
I : Y position
[P r1] : files list
Returns:
I : 0
cbEdWindowKeyUp ( win  ,
winstr  ,
key   
)

Callback on window key up.

Private

Prototype: fun [ObjWin EdWindow I] I

Parameters:
ObjWin : window object
EdWindow : window structure
I : key
Returns:
I : 0
cbEdWindowClose ( win  ,
winstr   
)

Callback on window close.

Private

Prototype: fun [ObjWin EdWindow] I

Parameters:
ObjWin : window object
EdWindow : window structure
Returns:
I : 0
cbEdWindowDestroy ( win  ,
winstr   
)

Callback on window destroy.

Private

Prototype: fun [ObjWin EdWindow] I

Parameters:
ObjWin : window object
EdWindow : window structure
Returns:
I : 0
cbEdVirtualWindowWheel ( win  ,
winstr  ,
,
,
delta  ,
btn   
)

Callback on virtual window mouse wheel.

Private

Prototype: fun [ObjWin EdWindow I I I I] I

Parameters:
ObjWin : window object
EdWindow : window structure
I : X position
I : Y position
I : wheel delta
I : mouse button, 1 left, 2 right, 16 middle
Returns:
I : 0
cbEdVirtualWindowCursorMove ( win  ,
winstr  ,
dx  ,
dy  ,
btn   
)

Callback on virtual window mouse move.

Private

Prototype: fun [ObjWin EdWindow I I I I] I

Parameters:
ObjWin : window object
EdWindow : window structure
I : X position
I : Y position
I : mouse button, 1 left, 2 right, 16 middle
Returns:
I : 0
cbEdVirtualWindowClick ( win  ,
winstr  ,
dx  ,
dy  ,
btn   
)

Callback on virtual window mouse click.

Private

Prototype: fun [ObjWin EdWindow I I I I] I

Parameters:
ObjWin : window object
EdWindow : window structure
I : X position
I : Y position
I : mouse button, 1 left, 2 right, 16 middle
Returns:
I : 0
cbEdVirtualWindowUnClick ( win  ,
winstr  ,
,
,
btn   
)

Callback on virtual window mouse unclick.

Private

Prototype: fun [ObjWin EdWindow I I I I] I

Parameters:
ObjWin : window object
EdWindow : window structure
I : X position
I : Y position
I : mouse button, 1 left, 2 right, 16 middle
Returns:
I : 0
cbEdWindowCursorMove ( win  ,
winstr  ,
,
,
btn   
)

Callback on mouse cursor move.

Private

Prototype: fun [ObjWin EdWindow I I I] I

Parameters:
ObjWin : window object
EdWindow : window structure
I : X position
I : Y position
I : mouse button
Returns:
I : 0
cbEdWindowClick ( win  ,
winstr  ,
,
,
btn   
)

Callback on mouse click.

Private

Prototype: fun [ObjWin EdWindow I I I] I

Parameters:
ObjWin : window object
EdWindow : window structure
I : X position
I : Y position
I : mouse button
Returns:
I : 0
cbEdWindowUnClick ( win  ,
winstr  ,
,
,
btn   
)

Callback on mouse unclick.

Private

Prototype: fun [ObjWin EdWindow I I I] I

Parameters:
ObjWin : window object
EdWindow : window structure
I : X position
I : Y position
I : mouse button
Returns:
I : 0
cbEdFrameMinMax ( tbstr  ,
check  ,
btn  ,
mask  ,
state  ,
winstr   
)

Callback on a frame window minimize/maximize click.

Private

Prototype: fun [EdTabBar CompCheck I I I EdWindow] I

Parameters:
EdTabBar : toolbar
CompCheck : minimize/maximize control check
I : mouse button
I : keyboard mask
I : minimize/maximize control check state
EdWindow : window structure
Returns:
I : 0
cbEdDbClickFrameWindowTitle ( cont  ,
param  ,
,
,
btn  ,
mask   
)

Callback on a frame window toolbar double click.

Private

Prototype: fun [ObjContainer [EdWindow CompCheck] I I I ] I

Parameters:
ObjContainer : toolbar background container
[EdWindow CompCheck] : window structure and minimize/maximize control check
I : X click position
I : Y click position
I : mouse button
I : keyboard mask
Returns:
I : 0
getEdCtrlLabel ( ctrlstr   ) 
getEdCtrlText ( ctrlstr   ) 
getEdCtrlEditText ( ctrlstr   ) 
getEdCtrlTextLine ( ctrlstr   ) 
getEdCtrlButton ( ctrlstr   ) 
getEdCtrlCheck ( ctrlstr   ) 
getEdCtrlRadio ( ctrlstr   ) 
getEdCtrlList ( ctrlstr   ) 
getEdCtrlTree ( ctrlstr   ) 
getEdCtrlSelect ( ctrlstr   ) 
getEdCtrlFloat ( ctrlstr   ) 
getEdCtrlView3d ( ctrlstr   ) 
cbEdCtrlTextChange ( txt  ,
 
)

Callback on text control value change.

Private

Prototype: fun [ObjText [EdControl fun [EdControl S] I]] I

Parameters:
ObjText : text object
[EdControl fun [EdControl S] I] : text control structure and user callback
Returns:
I : 0
cbEdCtrlEditTextChange ( txt  ,
 
)

Callback on edit text control value change.

Private

Prototype: fun [ObjText [EdControl fun [EdControl S] I]] I

Parameters:
ObjText : text object
[EdControl fun [EdControl S] I] : edit text control structure and user callback
Returns:
I : 0
cbEdCtrlTextLineChange ( txt  ,
 
)

Callback on text line control value change.

Private

Prototype: fun [ObjText [EdControl fun [EdControl S] I]] I

Parameters:
ObjText : text object
[EdControl fun [EdControl S] I] : text line control structure and user callback
Returns:
I : 0
cbEdCtrlTextLineValidate ( txt  ,
,
val   
)

Callback on text line control validate.

Private

Prototype: fun [ObjText [EdControl fun [EdControl S] I]] I

Parameters:
ObjText : text object
[EdControl fun [EdControl S] I] : text line control structure and user callback
Returns:
I : 0
cbEdCtrlButton ( btn  ,
 
)

Callback on button control click.

Private

Prototype: fun [ObjButton [EdControl fun [EdControl] I]] I

Parameters:
ObjButton : button object
[EdControl fun [EdControl] I] : button control structure and callback
Returns:
I : 0
cbEdCtrlCheckState ( chk  ,
,
state   
)

Callback on check box control state change.

Private

Prototype: fun [ObjCheck [EdControl fun [EdControl I] I]] I

Parameters:
ObjCheck : check object
[EdControl fun [EdControl I] I] : check box control structure and callback
Returns:
I : 0
cbEdCtrlListDbClick ( lst  ,
,
pos  ,
elem   
)

Callback on list control double click.

Private

Prototype: fun [ObjList [EdControl fun [EdControl I S [S r1] I] I] I S] I

Parameters:
ObjList : list object
[EdControl fun [EdControl I S [S r1] I] I] : list control structure and callback
I : position
S : name
Returns:
I : 0
cbEdCtrlListClick ( lst  ,
,
pos  ,
elem   
)

Callback on list control click.

Private

Prototype: fun [ObjList [EdControl fun [EdControl I S [S r1] I] I] I S] I

Parameters:
ObjList : list object
[EdControl fun [EdControl I S [S r1] I] I] : list control structure and callback
I : position
S : name
Returns:
I : 0
cbEdCtrlListKeyDown ( listobj  ,
,
key  ,
code   
)

Callback on list control key down.

Private

Prototype: fun [ObjList [EdControl fun [EdControl I S [S r1] I I I] I] I S] I

Parameters:
ObjList : list object
[EdControl fun [EdControl I S [S r1] I I I] I] : list control structure and callback
I : key code
I : ascii code
Returns:
I : 0
cbEdCtrlListKeyUp ( listobj  ,
,
key   
)

Callback on list control key up.

Private

Prototype: fun [ObjList [EdControl fun [EdControl I S [S r1] I I] I] I S] I

Parameters:
ObjList : list object
[EdControl fun [EdControl I S [S r1] I I] I] : list control structure and callback
I : key code
Returns:
I : 0
fillEdCtrlSelect ( ctrlstr  ,
lparam   
)
addEdCtrlSelect ( ctrlstr  ,
param   
)
resetEdCtrlSelect ( ctrlstr   ) 
selectEdCtrlSelect ( ctrlstr  ,
name   
)
selectEdCtrlSelectByPos ( ctrlstr  ,
pos   
)
getSelectedEdCtrlSelect ( ctrlstr   ) 
getSelectedEdCtrlSelectPos ( ctrlstr   ) 
setEdCtrlSelectEnable ( ctrlstr  ,
state   
)
cbEdCtrlSelect ( sel  ,
,
pos  ,
elem   
)
setEdCtrlSelectCb ( ctrlstr  ,
cbfun   
)
crEdCtrlSelect ( winstr  ,
,
,
,
,
resize   
)
dsEdCtrlSelect ( ctrlstr   ) 
getEdCtrlTreePreviousSelectedItem ( ctrlstr   ) 
getEdCtrlTreeSelectedItem ( ctrlstr   ) 
getEdCtrlTreeFatherItem ( ctrlstr  ,
item   
)
getEdCtrlTreeSonsItem ( ctrlstr  ,
item   
)
isEdCtrlTreeItemSon ( ctrlstr  ,
item  ,
father   
)
cbEdCtrlTreeSelect ( tree  ,
,
item   
)
cbEdCtrlTreeDrag ( tree  ,
,
item1  ,
item2   
)
setEdCtrlTreeCbDrag ( ctrlstr  ,
cbfun   
)
cbEdCtrlTreeDbClick ( tree  ,
,
item  ,
,
 
)
setEdCtrlTreeCbDbClick ( ctrlstr  ,
cbfun   
)
setEdCtrlTreeCbSelect ( ctrlstr  ,
cbfun   
)
cbEdCtrlTreeRclick ( tree  ,
,
item  ,
,
,
btn   
)
setEdCtrlTreeCbRclick ( ctrlstr  ,
cbfun   
)
cbEdCtrlTreeKeyDown ( tree  ,
,
key  ,
code   
)
setEdCtrlTreeCbKeyDown ( ctrlstr  ,
cbfun   
)
cbEdCtrlTreeKeyUp ( tree  ,
,
key   
)
setEdCtrlTreeCbKeyUp ( ctrlstr  ,
cbfun   
)
setEdCtrlTreeExpandAll ( ctrlstr  ,
mode   
)
addEdCtrlTreeItem ( ctrlstr  ,
father  ,
name  ,
val  ,
type  ,
bitmappath   
)
removeEdCtrlTreeSons ( ctrlstr  ,
item   
)
delEdCtrlTreeItem ( ctrlstr  ,
item   
)
refreshEdCtrlTreeSons ( ctrlstr  ,
item  ,
sort   
)
setEdCtrlTreeLabel ( ctrlstr  ,
item  ,
val   
)
moveEdCtrlTreeItem ( ctrlstr  ,
item  ,
father   
)
sizeEdCtrlTree ( ctrlstr  ,
,
,
,
 
)
getEdCtrlTreeItemByValue ( ctrlstr  ,
val   
)
getEdCtrlTreeValueByItem ( ctrlstr  ,
item   
)
getEdCtrlTreeFullValuesByItem ( ctrlstr  ,
item   
)
getEdCtrlTreeFullValuesByValue ( ctrlstr  ,
val   
)
getEdCtrlTreeRootItem ( ctrlstr   ) 
getEdCtrlTreeBrothers ( ctrlstr  ,
item   
)
selEdCtrlTreeItemByValue ( ctrlstr  ,
val   
)
selEdCtrlTreeItem ( ctrlstr  ,
item   
)
resetEdCtrlTree ( ctrlstr   ) 
crEdCtrlTree ( winstr  ,
,
,
,
,
resize   
)
dsEdCtrlTree ( ctrlstr   ) 
cbEdCtrlBitmapCursorMove ( cmpbmp  ,
ctrlstr  ,
,
,
mask   
)
cbEdCtrlBitmapResize ( cmpbmp  ,
ctrlstr  ,
,
 
)
selectEdCtrlBitmapList ( ctrlstr  ,
pos   
)
getEdCtrlBitmapListValbyPos ( ctrlstr  ,
pos   
)
cbEdCtrlBitmapListClick ( cmpbmp  ,
param  ,
,
,
btn  ,
mask   
)
cbEdCtrlBitmapListDbClick ( cmpbmp  ,
param  ,
,
,
btn  ,
mask   
)
refreshEdCtrlBitmapListBitmap ( ctrlstr   ) 
setEdCtrlBitmapListBitmap ( ctrlstr  ,
pos  ,
bmppath   
)
setEdCtrlBitmapListCbClick ( ctrlstr  ,
cbfun   
)
setEdCtrlBitmapListCbDbClick ( ctrlstr  ,
cbfun   
)
addEdCtrlBitmapList ( ctrlstr  ,
name  ,
bmppath  ,
val   
)
resetEdCtrlBitmapList ( ctrlstr   ) 
setEdCtrlBitmapListElemSize ( ctrlstr  ,
,
,
marge   
)
cbEdCtrlBitmapListSize ( cont  ,
ctrlstr  ,
state  ,
,
 
)
crEdCtrlBitmapList ( winstr  ,
,
,
,
,
bw  ,
bh  ,
marge  ,
resize   
)
dsEdCtrlBitmapList ( ctrlstr   ) 
cbEdCtrlBitmapResizeResource ( cmpbmp  ,
ctrlstr  ,
,
,
oldval   
)
cbEdCtrlBitmapResizeGridResource ( cmpbmp  ,
,
,
,
oldval   
)
setEdCtrlBitmap ( ctrlstr  ,
bmppath   
)
getEdCtrlBitmapBuffer ( ctrlstr   ) 
setEdCtrlBitmapColor ( ctrlstr  ,
bgcolor   
)
paintEdCtrlBitmap ( ctrlstr   ) 
crEdCtrlBitmap ( winstr  ,
,
,
,
,
bmppath  ,
bgcolor  ,
resize   
)
crEdCtrlGrid ( winstr  ,
,
,
,
,
bgcolor  ,
dotcolor  ,
dotspace  ,
resize   
)
dsEdCtrlBitmap ( ctrlstr   ) 
cbEdCtrlFloatChange ( txt  ,
 
)
getEdCtrlFloatValue ( ctrlstr   ) 
setEdCtrlFloatValue ( ctrlstr  ,
val   
)
setEdCtrlFloatMinValue ( ctrlstr  ,
val   
)
setEdCtrlFloatMaxValue ( ctrlstr  ,
val   
)
setEdCtrlFloatValueWithoutCallback ( ctrlstr  ,
val   
)
setEdCtrlFloatEnable ( ctrlstr  ,
state   
)
setEdCtrlFloatCbChange ( ctrlstr  ,
cbfun   
)
cbEdCtrlFloatValidate ( txt  ,
,
val   
)
setEdCtrlFloatCbValidate ( ctrlstr  ,
cbfun   
)
cbEdCtrlFloatUpClick ( cmproll  ,
ctrlstr  ,
,
,
btn  ,
mask   
)
cbEdCtrlFloatDownClick ( cmproll  ,
ctrlstr  ,
,
,
btn  ,
mask   
)
cbEdCtrlFloatUnClick ( cont  ,
ctrlstr  ,
,
,
btn  ,
mask   
)
cbEdCtrlFloatLeave ( cont  ,
ctrlstr   
)
cbEdCtrlFloatDrag ( cont  ,
ctrlstr  ,
,
,
mask   
)
crEdCtrlFloat ( winstr  ,
,
,
,
,
value  ,
minval  ,
maxval  ,
incre  ,
nb0  ,
themestr  ,
resize   
)
dsEdCtrlFloat ( ctrlstr   ) 
crEdCtrl3D ( winstr  ,
,
,
,
,
resize   
)
dsEdCtrl3D ( ctrlstr   ) 
fillEdColorMapRuller ( ctrlstr  ,
color   
)
cbEdColorMapValueChange ( ctrlstr  ,
val  ,
 
)
cbEdColorMapExaValueChange ( ctrlstr  ,
val  ,
 
)
cbEdColorMapCrossCursorMove ( cont  ,
,
,
,
mask   
)
cbEdColorMapCrossCursorClick ( cont  ,
,
,
,
btn  ,
mask   
)
cbEdColorMapRulerCursorMove ( cont  ,
,
,
,
mask   
)
cbEdColorMapRulerCursorClick ( cont  ,
,
,
,
btn  ,
mask   
)
cbEdColorMapOk ( ctrlstr  ,
param   
)
cbEdColorMapCancel ( ctrlstr  ,
param   
)
cbEdColorMapScreenPickerTimer ( tmr  ,
param   
)
cbEdColorMapScreenPickerClick ( cont  ,
param  ,
,
,
btn  ,
 
)
cbEdColorMapScreenPicker ( tbstr  ,
cmproll  ,
btn  ,
mask  ,
 
)
cbEdColorMapDestroy ( winstr  ,
 
)
crEdColorMap ( chan  ,
fatherstr  ,
color  ,
mode  ,
name  ,
themestr  ,
cbfun   
)
updateEdCtrlColorButton ( ctrlstr  ,
color   
)
cbEdCtrlColorButtonSelect ( color  ,
ctrlstr   
)
getEdCtrlColorButtonColor ( ctrlstr   ) 
cbEdCtrlColorButtonMapDestroy ( winstr  ,
ctrlstr   
)
cbEdCtrlColorButton ( btn  ,
ctrlstr   
)
setEdCtrlColorButtonCb ( ctrlstr  ,
cbfun   
)
crEdCtrlColorButton ( winstr  ,
,
,
,
,
color  ,
mode  ,
resize  ,
themestr   
)
dsEdCtrlColorButton ( ctrlstr   ) 
paintEdCtrlModuleEditor ( ctrlstr   ) 
findEdCtrlModuleEditorRoundLink ( ctrlstr  ,
srcmboxstr  ,
dstmboxstr   
)
calcEdCtrlModuleEditorRoundLinkPos ( x1  ,
y1  ,
w1  ,
h1  ,
x2  ,
y2  ,
w2  ,
h2   
)
updateEdCtrlModuleEditorRoundLinkPos ( ctrlstr   ) 
drawEdCtrlModuleEditorLinkPrivate ( buffer  ,
x1  ,
y1  ,
x2  ,
y2  ,
width  ,
color   
)
calcEdCtrlModuleEditorLink ( x1  ,
y1  ,
w1  ,
h1  ,
x2  ,
y2  ,
w2  ,
h2   
)
drawEdCtrlModuleEditorLink ( ctrlstr  ,
linkstr   
)
refreshEdCtrlModuleEditorLinks ( ctrlstr   ) 
dsEdCtrlModuleEditorRoundLink ( ctrlstr  ,
rlinkstr   
)
chkCtrlModuleEditorBox ( ctrlstr  ,
mboxstr  ,
add  ,
paint   
)
chkCtrlModuleEditorRoundLink ( ctrlstr  ,
rlinktr   
)
cbEdCtrlModuleEditorRoundLinkClick ( cmpbmp  ,
,
,
,
btn  ,
mask   
)
setEdCtrlModuleEditorRoundLinkCbClick ( ctrlstr  ,
cbfun   
)
cbEdCtrlModuleEditorRoundLinkUnClick ( cmpbmp  ,
,
,
,
btn  ,
mask   
)
setEdCtrlModuleEditorRoundLinkCbUnClick ( ctrlstr  ,
cbfun   
)
cbEdCtrlModuleEditorRoundLinkDbClick ( cmpbmp  ,
,
,
,
btn  ,
mask   
)
setEdCtrlModuleEditorRoundLinkCbDbClick ( ctrlstr  ,
cbfun   
)
setEdCtrlModuleEditorRoundLinkCbDestroy ( ctrlstr  ,
cbfun   
)
setEdCtrlModuleEditorRoundLinkCbUpdate ( ctrlstr  ,
cbfun   
)
setEdCtrlModuleEditorRoundLinkFlag ( rlinkstr  ,
flag   
)
getEdCtrlModuleEditorRoundLinkFlag ( rlinkstr   ) 
cbEdModuleEditorRoundLinkToolTipHide ( node  ,
,
bubble   
)
cbEdModuleEditorRoundLinkToolTipShow ( node  ,
,
bubble  ,
dx  ,
dy   
)
setEdCtrlModuleEditorRoundLinkTooltip ( ctrlstr  ,
rlinkstr  ,
bubble   
)
crEdCtrlModuleEditorRoundLink ( ctrlstr  ,
linkstr   
)
getEdCtrlModuleEditorRoundLinkByLink ( ctrlstr  ,
linkstr   
)
removeEdCtrlModuleEditorLinkFromRoundLink ( ctrlstr  ,
linkstr  ,
refresh   
)
dsEdCtrlModuleEditorLink ( ctrlstr  ,
linkstr  ,
refresh   
)
crEdCtrlModuleEditorLink ( ctrlstr  ,
srcmboxstr  ,
dstmboxstr  ,
lp  ,
param   
)
getEdCtrlModuleEditorBoxOptimizedPos ( mestr  ,
mboxstr  ,
,
 
)
cbEdCtrlModuleEditorWheel ( cont  ,
ctrlstr  ,
,
,
delta  ,
btn   
)
setEdCtrlModuleEditorMouseLink ( cont  ,
ctrlstr  ,
rec   
)
setEdCtrlModuleEditorMouseSelection ( cont  ,
ctrlstr  ,
rec   
)
cbCtrlModuleEditorCursorMove ( cont  ,
ctrlstr  ,
dx  ,
dy  ,
btn   
)
calcEdModuleEditorBoxSquare ( ctrlstr   ) 
cbCtrlModuleEditorBoxCursorMove ( cont  ,
,
,
,
btn   
)
getEdModuleEditorBoxesInArea ( ctrlstr  ,
x1  ,
y1  ,
x2  ,
y2   
)
cbCtrlModuleEditorUnClick ( cont  ,
ctrlstr  ,
,
,
btn  ,
mask   
)
cbCtrlModuleEditorClick ( cont  ,
ctrlstr  ,
,
,
btn  ,
mask   
)
cbCtrlModuleEditorDbClick ( cont  ,
ctrlstr  ,
,
,
btn  ,
mask   
)
cbCtrlModuleEditorKeyDown ( cont  ,
ctrlstr  ,
key  ,
code   
)
cbCtrlModuleEditorKeyUp ( cont  ,
ctrlstr  ,
key   
)
selectCtrlModuleEditorBox ( ctrlstr  ,
mboxstr  ,
add   
)
cbEdCtrlModuleEditorBoxMenu ( elt  ,
 
)
crEdCtrlModuleEditorBoxMenu ( ctrlstr  ,
mboxstr   
)
setEdCtrlModuleEditorBoxMenu ( ctrlstr  ,
mboxstr  ,
mode  ,
 
)
resetEdCtrlModuleEditorBoxMenu ( ctrlstr  ,
mboxstr   
)
cbEdModuleEditorBoxToolTipHide ( node  ,
,
bubble   
)
cbEdModuleEditorBoxToolTipShow ( node  ,
,
bubble  ,
dx  ,
dy   
)
setEdCtrlModuleEditorBoxTooltip ( ctrlstr  ,
mboxstr  ,
bubble   
)
setEdCtrlModuleEditorBoxFlags ( mboxstr  ,
flags   
)
getEdCtrlModuleEditorBoxFlags ( mboxstr   ) 
delEdCtrlModuleEditorBoxMenu ( ctrlstr  ,
mboxstr  ,
mode  ,
name  ,
name2   
)
delEdCtrlModuleEditorBoxMenuStartWith ( ctrlstr  ,
mboxstr  ,
mode  ,
name   
)
addEdCtrlModuleEditorBoxMenu ( ctrlstr  ,
mboxstr  ,
mode  ,
lp   
)
sortEdCtrlModuleEditorBoxMenu ( ctrlstr  ,
mboxstr   
)
cbEdCtrlModuleEditorBoxClick ( cmpbmp  ,
,
,
,
btn  ,
mask   
)
cbEdCtrlModuleEditorBoxDbClick ( cmpbmp  ,
,
,
,
btn  ,
mask   
)
cbEdCtrlModuleEditorBoxUnClick ( cmpbmp  ,
,
,
,
btn  ,
mask   
)
setEdCtrlModuleEditorBoxPos ( ctrlstr  ,
mboxstr  ,
px  ,
py   
)
selectEdCtrlModuleEditorBoxes ( ctrlstr   ) 
setEdCtrlModuleEditorBoxLabel ( ctrlstr  ,
mboxstr  ,
label   
)
crEdCtrlModuleEditorBox ( ctrlstr  ,
name  ,
label  ,
lp  ,
px  ,
py  ,
icon  ,
mode   
)
getEdCtrlModuleEditorBoxByName ( ctrlstr  ,
name   
)
getEdCtrlModuleEditorSelectedBox ( ctrlstr   ) 
getEdCtrlModuleEditorSelectedRoundLink ( ctrlstr   ) 
dsEdCtrlModuleEditorBox ( ctrlstr  ,
mboxstr   
)
setEdCtrlModuleEditorLinkMode ( ctrlstr  ,
mode   
)
getEdCtrlModuleEditorLinkMode ( ctrlstr   ) 
resetEdCtrlModuleEditor ( ctrlstr   ) 
setEdCtrlModuleEditorCbBoxMenu ( ctrlstr  ,
cbfun   
)
setEdCtrlModuleEditorCbBoxSelect ( ctrlstr  ,
cbfun   
)
setEdCtrlModuleEditorCbBoxClick ( ctrlstr  ,
cbfun   
)
setEdCtrlModuleEditorCbBoxUnClick ( ctrlstr  ,
cbfun   
)
setEdCtrlModuleEditorCbBoxDbClick ( ctrlstr  ,
cbfun   
)
setEdCtrlModuleEditorCbBoxMove ( ctrlstr  ,
cbfun   
)
setEdCtrlModuleEditorCbSeletedBoxMoving ( ctrlstr  ,
cbfun   
)
setEdCtrlModuleEditorCbClick ( ctrlstr  ,
cbfun   
)
setEdCtrlModuleEditorCbUnClick ( ctrlstr  ,
cbfun   
)
setEdCtrlModuleEditorCbDbClick ( ctrlstr  ,
cbfun   
)
setEdCtrlModuleEditorCbKeyDown ( ctrlstr  ,
cbfun   
)
setEdCtrlModuleEditorCbKeyUp ( ctrlstr  ,
cbfun   
)
cbEdCtrlModuleEditorSize ( winstr  ,
,
,
ctrlstr   
)
cbEdCtrlModuleEditorScroll ( winstr  ,
,
,
ctrlstr   
)
crEdCtrlModuleEditor ( winstr  ,
surfw  ,
surfh  ,
snap  ,
mode  ,
themestr   
)
dsEdCtrlModuleEditor ( ctrlstr   ) 
dsEdWindowCtrlList ( lctrl   ) 
setEdCtrlSize ( ctrlstr  ,
,
 
)

Variable Documentation

var iG2DDEFAULTFRAMEFONTCOLOR = 0xffffff
var sG2DDEFAULTRESOURCESPATH = "tools/os3dlib/res/"
var sG2DUPDOWNVALUECURSOR = "valuesupdown_cursor.bmp"
var sG2DHCOLORPICKERCURSOR = "colorpicker_cursor.bmp"
var sG2DHSIZECURSOR = "hsize_cursor.bmp"
var sG2DWSIZECURSOR = "wsize_cursor.bmp"
var sG2DDEFAULTCHKTAB = "edit/chktab.png"
var sG2DDEFAULTCLOSETAB = "edit/btnclosetab.png"
var sG2DDEFAULTBTNTABLEFT = "edit/btnleft.png"
var sG2DDEFAULTBTNTABRIGHT = "edit/btnright.png"
var sG2DDEFAULTBTNVALUP = "edit/btnup.png"
var sG2DDEFAULTBTNVALDOWN = "edit/btndown.png"
var sG2DDEFAULTBTNCOLORPICKER = "edit/btncolorpicker.png"
var sG2DDEFAULTCHKFRAMEFOLD = "edit/chkframeminmax.png"
var sG2DCOLORMAP = "edit/work.png"
var sG2DCOLORMAPCROSS = "edit/cross.png"
proto crEdWindow = fun [Chn EdWindow I I I I I I I S] EdWindow
proto dsEdWindow = fun [EdWindow] I
proto resizeEdWindowVirtualSize = fun [EdWindow] I
proto getEdWindowToolBarSize = fun [EdWindow] [I I]
proto setEdWindowVisible = fun [EdWindow I] I
proto dsEdWindowCtrlList = fun [[EdControl r1]] I
proto focusEdTab = fun [EdTabBar EdTab] I
proto dsEdTab = fun [EdTabBar EdTab] I
var ETAB_CLOSEBTN = 1
proto cbEdColorMapExaValueChange = fun [EdControl S [I I [I I I] EdControl EdControl EdControl EdControl EdControl EdControl EdControl EdControl CompBitmap ObjCursor]] I
typeof tmrEdColorMapMousePicker = Timer
 All Data Structures Files Functions Variables Typedefs
Generated on Mon Jul 5 21:30:13 2010 for OpenSpace3D libs by  doxygen 1.6.3