Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Why struct instead of class?
Why struct instead of class? [message #21815] Sat, 06 June 2009 06:47 Go to previous message
jeremy_c is currently offline  jeremy_c
Messages: 175
Registered: August 2007
Location: Ohio, USA
Experienced Member
Why do the example use struct instead of class? i.e.

struct MyAppWindow : TopWindow {

    virtual void Paint(Draw& w) {

        w.DrawRect(GetSize(), SWhite);

        w.DrawText(20, 20, "Hello world!", Arial(30), Magenta);

    }

    

    MyAppWindow() {

        Title("My application").Zoomable().Sizeable();

    }

};


Jeremy
 
Read Message
Read Message
Read Message
Previous Topic: Heap Leaks Detected
Next Topic: Keyboard shortcut
Goto Forum:
  


Current Time: Tue May 14 01:58:38 CEST 2024

Total time taken to generate the page: 0.02549 seconds