[haiku-appserver] Re: Gfx Milestone reached!

  • From: Adi Oanca <adi-oanca@xxxxxxxxxxxxx>
  • To: haiku-appserver@xxxxxxxxxxxxx
  • Date: Thu, 16 Sep 2004 00:38:21 +0300

Cool!

        In the last few days I haven't had time for app_server. I have written 
dozen of tests for window layout engine, and I'm still writing when I 
have time.
        I know it's taking a bit long, but the nice thing is that I discover 
bugs and inconsistencies; also I'm doing things *right* - for example 
floating windows will preserve order per window when switching focus and 
back. When the time comes to merge code with app_server we can be sure 
the code is working properly.

Yours,
Adi.


DarkWyrm wrote:
> The attached screenshot (*definitely* worth a look) is brought to you 
> courtesy of the following test app code:
> class MyView : public BView
> {
> public:
>       MyView(BRect frame);
>       void Draw(BRect update);
> };
> 
> MyView::MyView(BRect frame)
>  : BView(frame,"MyView", B_FOLLOW_LEFT | B_FOLLOW_TOP, B_WILL_DRAW)
> {
> }
> 
> void MyView::Draw(BRect update)
> {
>       SetHighColor(0,0,255);
>       StrokeRect(Bounds(),B_SOLID_HIGH);
>       SetHighColor(255,0,0);
>       StrokeLine(Bounds().LeftTop(),Bounds().RightBottom(),B_SOLID_HIGH);
>       SetHighColor(0,255,0);
>       StrokeLine(Bounds().LeftBottom(),Bounds().RightTop(),B_SOLID_HIGH);
> }
> 
> class MyApp : public BApplication
> {
> public:
>       MyApp(void);
> };
> 
> MyApp::MyApp(void)
>  : BApplication("application/x-vnd.wgp-OBTestApp")
> {
>       BWindow *win=new 
> BWindow(BRect(100,100,200,200),"TestWindow1",B_DOCUMENT_WINDOW_LOOK,
>               B_NORMAL_WINDOW_FEEL,0);
>       win->AddChild(new MyView(BRect(0,0,50,50)));
>       win->Show();
> }
> 
> int main(void)
> {
>       MyApp app;
>       
>       app.Run();
> }

Other related posts: