Thursday, July 18, 2013

Should they be friends?


Is making console a friend to CFrame the only way I can determine whether the border is visible or not?
Or am I missing something?
Should we be making it a friend just to satisfy this portion of the program?

Thank you in advance!

void CLineEdit::draw(int Refresh) {
  CFrame::draw(Refresh);
  console.strdsp((char*)_data + _offset,
                 (_visible) ? absRow() + 1 : absRow(),
                 (_visible) ? absCol() + 1 : absCol(),
                 (_visible) ? width() - 2 : width());
}