|
OpenSpace3D libs
OpenSpace 3D libraries for plugITs and OS3D developer
|
Functions | |
| setEdCtrlBitmapCbClick (ctrlstr, cbfun) | |
| Define the bitmap control cursor click callback. | |
| setEdCtrlBitmapCbCursorMove (ctrlstr, cbfun) | |
| Define the bitmap control cursor move callback. | |
| setEdCtrlBitmap (ctrlstr, bmppath) | |
| Set a bitmap control bitmap path. | |
| setEdCtrlBitmap2 (ctrlstr, bmpbase) | |
| Set a bitmap control bitmap. | |
| getEdCtrlBitmapBuffer (ctrlstr) | |
| Get a bitmap control buffer. | |
| setEdCtrlBitmapColor (ctrlstr, bgcolor) | |
| Set a bitmap control background color. | |
| paintEdCtrlBitmap (ctrlstr) | |
| Paint a bitmap control. | |
| crEdCtrlBitmap (winstr, x, y, w, h, bmppath, bgcolor, resize) | |
| Create a bitmap control. | |
| crEdCtrlBitmapExt (winstr, x, y, w, h, bmppath, bgcolor, resize, split) | |
| Create a bitmap control. | |
| crEdCtrlBitmap2 (winstr, x, y, w, h, bmpbase, bgcolor, resize) | |
| Create a bitmap control. | |
| cbEdCtrlBitmapResizeGridResource (cmpbmp, p, w, h, oldval) | |
| Create a bitmap control. | |
| crEdCtrlGrid (winstr, x, y, w, h, bgcolor, dotcolor, dotspace, resize) | |
| Create a bitmap control to display a grid. | |
| dsEdCtrlBitmap (ctrlstr) | |
| Destroy a bitmap control. | |
Bitmap control
| setEdCtrlBitmapCbClick | ( | ctrlstr | , |
| cbfun | |||
| ) |
Define the bitmap control cursor click callback.
Prototype: fun [EdControl fun [EdControl I I I I] u0] I
| EdControl | : bitmap control structure |
| fun | [EdControl I I I I] u0 : validation callback |
| - | EdControl : the same bitmap control structure |
| - | I : X coordinate in the bitmap |
| - | I : Y coordinate in the bitmap |
| - | I : Mouse button clicked. Can be any of LBUTTON, MBUTTON or RBUTTON |
| - | I : Mask. Can be a combination of any of MK_LBUTTON, MK_MBUTTON, MK_RBUTTON, MK_CONTROL and MK_SHIFT |
| setEdCtrlBitmapCbCursorMove | ( | ctrlstr | , |
| cbfun | |||
| ) |
Define the bitmap control cursor move callback.
Prototype: fun [EdControl fun [EdControl I I I] u0] I
| EdControl | : bitmap control structure |
| fun | [EdControl I I I] u0 : validation callback |
| - | EdControl : the same bitmap control structure |
| - | I : X coordinate in the bitmap |
| - | I : Y coordinate in the bitmap |
| - | I : Mask. Can be a combination of any of MK_LBUTTON, MK_MBUTTON, MK_RBUTTON, MK_CONTROL and MK_SHIFT |
| setEdCtrlBitmap | ( | ctrlstr | , |
| bmppath | |||
| ) |
| setEdCtrlBitmap2 | ( | ctrlstr | , |
| bmpbase | |||
| ) |
| getEdCtrlBitmapBuffer | ( | ctrlstr | ) |
| setEdCtrlBitmapColor | ( | ctrlstr | , |
| bgcolor | |||
| ) |
| paintEdCtrlBitmap | ( | ctrlstr | ) |
| crEdCtrlBitmap | ( | winstr | , |
| x | , | ||
| y | , | ||
| w | , | ||
| h | , | ||
| bmppath | , | ||
| bgcolor | , | ||
| resize | |||
| ) |
| crEdCtrlBitmapExt | ( | winstr | , |
| x | , | ||
| y | , | ||
| w | , | ||
| h | , | ||
| bmppath | , | ||
| bgcolor | , | ||
| resize | , | ||
| split | |||
| ) |
Create a bitmap control.
Prototype: fun [EdWindow I I I I S I I I] EdControl
| EdWindow | : parent control window |
| I | : X position |
| I | : Y position |
| I | : width |
| I | : height |
| S | : the bitmap path, use nil for plain color |
| I | : RGB background color |
| I | : resize flags |
| I | : strech mode, 0 streched, 1 splited, 2 fit |
| crEdCtrlBitmap2 | ( | winstr | , |
| x | , | ||
| y | , | ||
| w | , | ||
| h | , | ||
| bmpbase | , | ||
| bgcolor | , | ||
| resize | |||
| ) |
| cbEdCtrlBitmapResizeGridResource | ( | cmpbmp | , |
| p | , | ||
| w | , | ||
| h | , | ||
| oldval | |||
| ) |
Create a bitmap control.
Prototype: fun [EdWindow I I I I S I I] EdControl
| EdWindow | : parent control window |
| ObjContainer | : container to create the bitmap in |
| I | : X position in the container |
| I | : Y position int the container |
| I | : width |
| I | : height |
| S | : the bitmap path, use nil for plain color |
| I | : RGB background color |
| I | : resize flags |
Callback on a bitmap control resource resize to paint a grid
Private
Prototype: fun [CompBitmap [EdControl I] I I [I I I I]] I
| crEdCtrlGrid | ( | winstr | , |
| x | , | ||
| y | , | ||
| w | , | ||
| h | , | ||
| bgcolor | , | ||
| dotcolor | , | ||
| dotspace | , | ||
| resize | |||
| ) |