I have read two C++ books from back to front. I swear. But the syntax in gtkmm tutorial threw my brain out because I have never seen this c++ syntax before.
It is:
I understand everything except for the second line. From my c++ understanding myArea's public method is being accessed but then the code implies that the function is an object (or structure itself) that then points to another function. Or is the function being treated like a variable and then accessing a function within that variable?
What the heck is going on here?
It is:
Code:
Gtk::DrawingArea myArea;
Cairo::RefPtr<Cairo::Context> myContext = myArea.get_window()->create_cairo_context();
myContext->set_source_rgb(1.0, 0.0, 0.0);
myContext->set_line_width(2.0);
I understand everything except for the second line. From my c++ understanding myArea's public method is being accessed but then the code implies that the function is an object (or structure itself) that then points to another function. Or is the function being treated like a variable and then accessing a function within that variable?
What the heck is going on here?