Project

General

Profile

OpenSpace3D libs
OpenSpace 3D libraries for plugITs and OS3D developer
Loading...
Searching...
No Matches

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.
 

Detailed Description

Bitmap control

Function Documentation

◆ setEdCtrlBitmapCbClick()

setEdCtrlBitmapCbClick ( ctrlstr  ,
cbfun   
)

Define the bitmap control cursor click callback.

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

Parameters
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
Returns
0

◆ setEdCtrlBitmapCbCursorMove()

setEdCtrlBitmapCbCursorMove ( ctrlstr  ,
cbfun   
)

Define the bitmap control cursor move callback.

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

Parameters
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
Returns
0

◆ setEdCtrlBitmap()

setEdCtrlBitmap ( ctrlstr  ,
bmppath   
)

Set a bitmap control bitmap path.

Prototype: fun [EdControl S] I

Parameters
EdControl: bitmap control structure
S: the new bitmap path
Returns
0

◆ setEdCtrlBitmap2()

setEdCtrlBitmap2 ( ctrlstr  ,
bmpbase   
)

Set a bitmap control bitmap.

Prototype: fun [EdControl ObjBitmap] I

Parameters
EdControl: bitmap control structure
ObjBitmap: bitmap to use
Returns
0

◆ getEdCtrlBitmapBuffer()

getEdCtrlBitmapBuffer ( ctrlstr  )

Get a bitmap control buffer.

Prototype: fun [EdControl] ObjBitmap

Parameters
EdControl: bitmap control structure
Returns
ObjBitmap : the bitmap buffer

◆ setEdCtrlBitmapColor()

setEdCtrlBitmapColor ( ctrlstr  ,
bgcolor   
)

Set a bitmap control background color.

Prototype: fun [EdControl I] I

Parameters
EdControl: bitmap control structure
I: the RGB background color
Returns
0

◆ paintEdCtrlBitmap()

paintEdCtrlBitmap ( ctrlstr  )

Paint a bitmap control.

Prototype: fun [EdControl] I

Parameters
EdControl: bitmap control structure
Returns
0

◆ crEdCtrlBitmap()

crEdCtrlBitmap ( winstr  ,
,
,
,
,
bmppath  ,
bgcolor  ,
resize   
)

Create a bitmap control.

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

Parameters
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
Returns
EdControl

◆ crEdCtrlBitmapExt()

crEdCtrlBitmapExt ( winstr  ,
,
,
,
,
bmppath  ,
bgcolor  ,
resize  ,
split   
)

Create a bitmap control.

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

Parameters
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
Returns
EdControl

◆ crEdCtrlBitmap2()

crEdCtrlBitmap2 ( winstr  ,
,
,
,
,
bmpbase  ,
bgcolor  ,
resize   
)

Create a bitmap control.

Prototype: fun [EdWindow I I I I ObjBitmap I I] EdControl

Parameters
EdWindow: parent control window
I: X position
I: Y position
I: width
I: height
ObjBitmap: bitmap to use
I: RGB background color
I: resize flags
Returns
EdControl

◆ cbEdCtrlBitmapResizeGridResource()

cbEdCtrlBitmapResizeGridResource ( cmpbmp  ,
,
,
,
oldval   
)

Create a bitmap control.

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

Parameters
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
Returns
EdControl

Callback on a bitmap control resource resize to paint a grid

Private

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

Returns
0

◆ crEdCtrlGrid()

crEdCtrlGrid ( winstr  ,
,
,
,
,
bgcolor  ,
dotcolor  ,
dotspace  ,
resize   
)

Create a bitmap control to display a grid.

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

Parameters
EdWindow: parent control window
I: X position
I: Y position
I: width
I: height
I: RGB background color
I: RGB grid dot color
I: dot space in pixel
I: resize flags
Returns
EdControl

◆ dsEdCtrlBitmap()

dsEdCtrlBitmap ( ctrlstr  )

Destroy a bitmap control.

Prototype: fun [EdControl] I

Parameters
EdControl: bitmap control structure
Returns
0