캡션 » Api
setmousehovergradientinfo
Description
캡션에 마우스를 올렸을 때의 그라데이션 효과를 설정하는 API이다.
Parameters
Parameters |
Type |
Description |
classGradient |
class |
새로 설정할 gradient class |
Return Value
Remark
* 파라미터 classGradient class 정보
classGradient = function()
{
this.neffect = 0; // 그라데이션 효과
this.clrstart = 0; // 그라데이션 시작 색상
this.clrend = 0; // 그라데이션 끝 색상
}
** neffect에 설정가능한 값
0: none
1: vertical
2: horizontal
3: forwarddiagonal
4: backwarddiagonal
Example
function btn_mousehovergradienteffect_on_mouseup()
{
var clsGradient = caption.getmousehovergradientinfo();
if(clsGradient == null) {
return;
}
// 현재 설정되어 있는 그라데이션 효과의 시작색, 끝색 변경
clsGradient.clrstart = factory.rgb(255, 0, 0);
clsGradient.clrend = factory.rgb(255, 100, 100);
caption.setmousehovergradientinfo(clsGradient);
}
See Also
getmousehovergradientinfo
Viewer Ver.
9.1.1.1
Update Date
20210531