/** プールから作成。 */ public void InitializeFromPool(long a_drawpriority) { //rect this.rect.Set(0, 0, 0, 0); //drawpriority this.drawpriority = a_drawpriority; //eventplate this.eventplate = new Fee.EventPlate.Item(null, Fee.EventPlate.EventType.Button, this.drawpriority); this.eventplate.SetOnEventPlateOver(this, -1); //callbackparam_click this.callbackparam_click = null; //callbackparam_down this.callbackparam_down = null; //callbackparam_changeoverflag this.callbackparam_changeoverflag = null; //callbackparam_focuscheck this.callbackparam_focuscheck = null; //is_onover this.is_onover = false; //down_flag this.down_flag = false; //lock_flag this.lock_flag = false; //clip_flag this.clip_flag = false; //clip_rect this.clip_rect.Set(0, 0, 0, 0); //visible_flag this.visible_flag = true; //event_request this.event_request = 0; //mode this.mode = Button_Mode.Normal; //dragcancel_flag this.dragcancel_flag = false; //nofocus_flag this.nofocus_flag = false; //focus_flag this.focus_flag = false; }
/** モード。設定。 */ private void SetMode(Button_Mode a_mode) { if (this.mode != a_mode) { this.mode = a_mode; //コールバック。モード変更。 this.OnChangeMode(); } }