/**
* @constructor
*/
function XUISwitch() {
}

XUISwitch.prototype = {
    //事件
    /**
     * 状态切换事件
     * @eventname XUI_SWITCH_STATECHANGE
     * @eventid 0x00001001
     */

    //接口
    /**
    * 开关
    * @param {String} strBgColorOn 开状态圆钮颜色
    * @param {String} strBgColorOff 关状态圆钮颜色
    * @param {String} strTxtColorON 开文本颜色
    * @param {String} strTxtColorOff 关文本颜色
    */
    SwitchButton:function (strBgColorOn,strBgColorOff,strTxtColorON,strTxtColorOff) {
    },

    /**
    * 背景颜色绘制
    * @param {Boolean} bDrawColor
    * @property {Boolean} BgDrawColor true
    */
    SetDrawColor:function (bDrawColor) {
    },

    /**
    * 背景是否以颜色绘制
    * @return {Boolean} 
    */
    IsDrawColor:function () {
    },

    /**
    * 背景颜色
    * @param {String} strColor 背景颜色
    * @property {Color} CtrlBgColor "0xff003440"
    */
    SetCtrlBgColor:function (strColor) {
    },

    /**
    * 获取背景颜色
    * @return {String} 
    */
    GetCtrlBgColor:function () {
    },

    /**
    * 背景图片
    * @param {ImageProp} strBgImg 背景图片
    * @property {ImageProp} CtrlBgImage "XUISwitch/images/bg1.jpg"
    */
    SetCtrlBgImage:function (strBgImg) {
    },

    /**
    * 获取背景图片
    * @return {String} 
    */
    GetCtrlBgImage:function () {
    },

    /**
    * 按钮文本大小
    * @param {Number} nvalue 按钮文本大小
    * @property {Number} SwitchBtnTextFontSize 14
    */
    SetSwitchBtnTextFontSize:function (nvalue) {
    },

    /**
    * 获取文本大小
    * @return {Number} 
    */
    GetSwitchBtnTextFontSize:function () {
    },

    /**
    * 开关颜色
    * @param {String} strColorOn 圆钮开状态颜色
    * @param {String} strColorOff 圆钮关状态颜色
    * @param {String} strTxtOn 开文本颜色
    * @param {String} strTxtOff 关文本颜色
    * @property {Collection} BtnAndTextColor ["0xff44bfff","0xff808080","0xffffffff","0xff808080"]
    */
    SetBtnAndTextColor:function (strColorOn,strColorOff,strTxtOn,strTxtOff) {
    },

    /**
    * 获取圆钮颜色
    * @return {String} 
    */
    GetSwitchBtnColor:function () {
    },

    /**
    * 获取文本颜色
    * @return {String} 
    */
    GetSwitchBtnTextColor:function () {
    },

    /**
    * 开关边框颜色
    * @param {String} strColorO 开时颜色
    * @param {String} strColorC 关时颜色
    * @property {Collection} SwitchBorderStateColor ["0xff2a81d1","0xff17355D"]
    */
    SetSwitchBorderStateColor:function (strColorO,strColorC) {
    },

    /**
    * 获取开关边框颜色
    * @return {Array}
    */
    GetSwitchBorderStateColor:function () {
    },

    /**
    * 开关轮廓颜色
    * @param {String} strColor 开关轮廓颜色
    * @property {Color} SwitchBorderColor "0xff2a81d1"
    */
    SetSwitchBorderColor:function (strColor) {
    },

    /**
    * 获取轮廓颜色
    * @return {String} 
    */
    GetSwitchBorderColor:function () {
    },

    /**
    * 圆按钮图片
    * @param {ImageProp} strPathOff 关状态图片
    * @param {ImageProp} strPathOn 开状态图片
    * @param {String} strOnColor 开文本颜色
    * @param {String} strOffColor 关文本颜色
    * @property {Collection} CircleBtnImg ["","","0xffffffff","0xff808080"]
    */
    SetCircleBtnImg:function (strPathOff,strPathOn,strOnColor,strOffColor) {
    },

    /**
    * 获取圆按钮图片
    * @return {String} 
    */
    GetCircleBtnImg:function () {
    },

    /**
    * 文本居左/右
    * @param {Boolean} bPos 0左1右
    * @property {Boolean} TextLeftOrRight true
    */
    SetTextLeftOrRight:function (bPos) {
    },

    /**
    * 获取文本位置
    * @return {Boolean} 
    */
    GetTextLeftOrRight:function () {
    },

    /**
    * 开关状态
    * @param {Boolean} bSwitch false是关true是开
    * @property {Boolean} SwitchBtnONorOff false
    */
    SetSwitchBtnONorOff:function (bSwitch) {
    },

    /**
    * 获取开关状态
    * @return {Boolean} 
    */
    GetSwitchBtnONorOff:function () {
    },

}