Scol standard library package  0.3.1
Common and usefull functions for all Scol applications
Classes | Typedefs | Functions | Variables
colorselect.pkg File Reference

Scol select 2d OS colors API. More...

Classes

struct  COLORSELECT
 

Typedefs

typedef struct mkCOLORSELECT COLORSELECT
 

Functions

 A (id, r, g, b)
 
 C (id)
 
 colorselect_build (id)
 
 colorselect_cbApply (o, cs)
 
 colorselect_cbClickB (o, cs, x, y, btn)
 
 colorselect_cbClickG (o, cs, x, y, btn)
 
 colorselect_cbClickR (o, cs, x, y, btn)
 
 colorselect_cbClose (o, cs)
 
 colorselect_cbCopy (o, cs)
 
 colorselect_cbPaintB (o, cs)
 
 colorselect_cbPaintG (o, cs)
 
 colorselect_cbPaintR (o, cs)
 
 colorselect_cbWheelB (o, cs, x, y, dir, mask)
 
 colorselect_cbWheelG (o, cs, x, y, dir, mask)
 
 colorselect_cbWheelR (o, cs, x, y, dir, mask)
 
 colorselect_createShortDesc (cs)
 
 colorselect_destroy (id)
 
 colorselect_enable (id, state)
 
 colorselect_enabled (id)
 
 colorselect_getApplyClose (id)
 
 colorselect_getColor (id)
 
 colorselect_getFromID (id)
 
 colorselect_init (chn)
 
 colorselect_setApplyClose (id, flag)
 
 colorselect_setCbApply (id, cbfun)
 
 colorselect_setCbClose (id, cbfun)
 
 colorselect_setColor (id, r, g, b)
 
 colorselect_setIsInside (id, is)
 
 colorselect_setMargin (id, m)
 
 colorselect_setPosition (id, x, y)
 
 colorselect_setShortDesc (id, txt)
 
 colorselect_setTitle (id, title)
 
 colorselect_show (id, state)
 
 colorselect_shown (id)
 
 ColorSelectBuild (iId)
 Build the color dialog. More...
 
 ColorSelectDestroy (iId)
 Destroy the color dialog without user action. More...
 
 ColorSelectEnable (iId, iState)
 Enables / Disables a dialog color box. More...
 
 ColorSelectEnabled (iId)
 Returns if a color dialog box is enabled or disabled. More...
 
 ColorSelectGetApplyBehavior (iId)
 Sets if a click on the 'Apply' button closes the dialog too. More...
 
 ColorSelectGetButtonShow (iId)
 Returns if the "Cancel" and "Apply" buttons are shown. More...
 
 ColorSelectGetColor (iId)
 Gets the current color of the dialog sliders. More...
 
 ColorSelectGetDefaults ()
 Returns the default size and the default 'margin'. More...
 
 ColorSelectGetIsInside (iId)
 Gets if dialog is inside the parent window or not. More...
 
 ColorSelectInit (chn)
 Initializes a "color select" dialog box. This must always be called before other all. More...
 
 ColorSelectSaveSetting (iId)
 Save the current setting of a dialog to initialize a new dialog. More...
 
 ColorSelectSetApplyBehavior (iId, iClose)
 Sets if a click on the 'Apply' button closes the dialog too. More...
 
 ColorSelectSetButtonShow (iId, iState)
 Include or not the "Cancel" and the "Apply" buttons. More...
 
 ColorSelectSetCbApply (iId, funCb)
 Sets the 'Apply' callback. More...
 
 ColorSelectSetCbClose (iId, funCb)
 Sets the 'Close' callback. More...
 
 ColorSelectSetColor (iId, iRed, iGreen, iBlue)
 Sets the current color of the dialog sliders. More...
 
 ColorSelectSetIsInside (iId, iIsInside)
 Sets if dialog is inside the parent window or not. More...
 
 ColorSelectSetMargin (iId, iMargin)
 Set the 'margin' around each graphical element. More...
 
 ColorSelectSetPosition (iId, iX, iY)
 Sets the position of the dialog from the parent if set or from the screen. More...
 
 ColorSelectSetShortDesc (iId, szDesc)
 Sets the short description of the dialog. More...
 
 ColorSelectSetSize (iId, iWidth, iHeight)
 Sets the size of the dialog. More...
 
 ColorSelectSetTitle (iId, szTitle)
 Sets the title of the dialog. More...
 
 ColorSelectSetWindow (iId, oWin)
 Sets the parent window of a "color select" dialog box. More...
 
 ColorSelectShow (iId, iState)
 Showes / Hides a dialog color box. More...
 
 ColorSelectShown (iId)
 Returns if a color dialog box is shown or hidden. More...
 
 colorslect_cbPaint (o, cs)
 
 colorslect_copySetting (id)
 
 colorslect_getIsInside (id)
 
 coloselect_getButtonShow (id)
 
 coloselect_setButtonShow (id, state)
 
 coloselect_setSize (id, w, h)
 
 coloselect_setWin (id, win)
 
 CS_HIDE ()
 
 CS_MARGIN ()
 
 CS_MINHEIGHT ()
 
 CS_MINWIDTH ()
 
 CS_SHOW ()
 
 main ()
 

Variables

proto colorselect_createShortDesc =fun [COLORSELECT] ObjText
 
typeof ColorSelectList =[COLORSELECT r1]
 

Detailed Description

Scol select 2d OS colors API.

Author
Scol team
Version
0.1
colorselect.png