void Tab::operator=(const Tab& a) { this->ti.height = a.ti.height; this->ti.tabName = a.ti.tabName; this->ti.x0 = a.ti.x0; this->ti.y0 = a.ti.y0; this->ti.width = a.ti.width; this->ti.height = a.ti.height; this->ti.margin_x = a.ti.margin_x; this->ti.margin_y = a.ti.margin_y; this->set_select(a.is_selected()); memcpy(this->tbuf.prv_slct_buffer, a.tbuf.prv_slct_buffer, BUFFER_NUM_SIZE); memcpy(this->tbuf.descend_buffer, a.tbuf.descend_buffer, LCD_COLS); memcpy(this->tbuf.invert_buffer, a.tbuf.invert_buffer, BUFFER_NUM_SIZE); memcpy(this->tbuf.power_buffer, a.tbuf.power_buffer, BUFFER_NUM_SIZE); memcpy(this->tbuf.string_buffer, a.tbuf.string_buffer, BUFFER_NUM_SIZE); // this->UpdateDisplay(); // return this; }
BOOL operator==(const Tab& a, const Tab& b) { return ((a.ti.x0) == (b.ti.x0)) && ((a.ti.y0) == (b.ti.y0)) && (a.is_selected() == b.is_selected()) && ((a.ti.tabName) == (b.ti.tabName)); }