Skip to content

Commit

Permalink
Add definitions for several member functions of the Window class.
Browse files Browse the repository at this point in the history
Added definitions for:

  Window::DrawLine
  Window::DrawText
  Window::GetView
  • Loading branch information
BartVandewoestyne committed Feb 12, 2024
1 parent 8b7e1d1 commit e3e1917
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions Structural_Patterns/Bridge/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,20 @@ void Window::Lower() {
// TODO
}

void DrawLine(const Point&, const Point&) {
// TODO
}

void Window::DrawRect (const Point& p1, const Point& p2) {
WindowImp* imp = GetWindowImp();
imp->DeviceRect(p1.X(), p1.Y(), p2.X(), p2.Y());
}

void Window::DrawPolygon(const Point[], int n)
{
void Window::DrawPolygon(const Point[], int n) {
// TODO
}

void DrawText(const char*, const Point&) {
// TODO
}

Expand All @@ -50,3 +57,8 @@ WindowImp* Window::GetWindowImp () {
}
return _imp;
}

View* Window::GetView() {
// TODO
return 0;
}

0 comments on commit e3e1917

Please sign in to comment.