TorqueScript Reference
Public Member Functions | List of all members
GuiColorPickerCtrl Class Reference

#include <guiColorPickerCtrl_ScriptBinding.h>

Inherits GuiControl.

Public Member Functions

String getSelectorPos ()
 
String getSelectorPosForColor (red|r/g/b/[a], green, blue, [alpha])
 
void setSelectorPos (x/y)
 
void updateColor ()
 
- Public Member Functions inherited from GuiControl
void addGuiControl (int controlId)
 
Integer findHitControl (int x, int y)
 
String getCenter ()
 
String getExtent (...)
 
String getGlobalCenter ()
 
String getGlobalPosition ()
 
String getMinExtent ()
 
Integer getParent ()
 
String getPosition ()
 
String getText ()
 
Boolean getTextExtend ()
 
Boolean getTextWrap ()
 
String getValue ()
 
Boolean isActive ()
 
Boolean isAwake ()
 
Boolean isVisible ()
 
void makeFirstResponder (isFirst)
 
void performClick ()
 
Boolean pointInControl (int x, int y)
 
void reorderChild (child1, child2)
 
void resize (int x, int y, int w, int h)
 
void setActive (isActive)
 
void setCanSave (bool canSave)
 
void setCenter (int x, int y)
 
void setExtent (int width, int height)
 
void setFirstResponder ()
 
void setPosition (int x, int y)
 
void setPositionGlobal (int x, int y)
 
void setProfile (GuiControlProfile p)
 
void setText (text)
 
void setTextExtend (setting)
 
void setTextID (id)
 
void setTextWrap (setting)
 
void setValue (value)
 
void setVisible (isVisible)
 

Member Function Documentation

◆ getSelectorPos()

String getSelectorPos ( )

Gets the current position of the selector.

Returns
(int x/int y) The position of the selector as a space-separated x, y coordinate.

◆ getSelectorPosForColor()

String getSelectorPosForColor ( red|r/g/b/  [a],
green  ,
blue   
)

Gets the selector position for the specified color. The display mode must be Horiz Color Range, Vert Color Range, or Blend Color Range.

Parameters
redThe red value between 0 and 1.
greenThe green value between 0 and 1.
blueThe blue value between 0 and 1.
alphaThe alpha value between 0 and 1. Alpha values control transparency.
Returns
(int x/int y) The position of the selector as a space-separated x, y coordinate.

◆ setSelectorPos()

void setSelectorPos ( x/  y)

Set the selector by position.

Parameters
(x/y)The space-separated coordinate to set the selector at.
Returns
No return value.

◆ updateColor()

void updateColor ( )

Forces an update of the pick color.

Returns
No return value.