/** プールから作成。 */ 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; }
/** プールへ削除。 */ public void DeleteToPool() { //OnDelete this.eventplate.OnDelete(); //コールバック解除。 this.callbackparam_click = null; this.callbackparam_down = null; this.callbackparam_changeoverflag = null; this.callbackparam_focuscheck = null; //ターゲット解除。 Fee.Ui.Ui.GetInstance().UnSetTargetRequest(this); //ダウン解除。 if (Fee.Ui.Ui.GetInstance().GetDownButtonInstance() == this) { Fee.Ui.Ui.GetInstance().SetDownButtonInstance(null); } }