[haiku-appserver] Gfx Milestone reached!

  • From: "DarkWyrm" <bpmagic@xxxxxxxxxxxxxxx>
  • To: haiku-appserver@xxxxxxxxxxxxx
  • Date: Mon, 13 Sep 2004 21:25:35 -0400 EDT

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();
}


--DW



-- Attached file included as plaintext by Ecartis --

Content-Transfer-Encoding: base64
Content-Disposition: Attachment
Content-Type: image/png; name=drawview.png

iVBORw0KGgoAAAANSUhEUgAAApwAAAIMCAMAAABv84zUAAABv1BMVEUzZqCYmJj//1BgYGD/ywCv
ewC3ggD//z//7CHbrgBJOgAAAACSdAC2kQBtVwAkHQDqtQD////Y2NiIiIjq6uro6Ojm5ubk5OTi
4uLf39/d3d3b29vZ2dnX19fV1dXS0tLQ0NBGRkbW1tZhYWE2NjaHh4dISEg3NzeXl5coKCjU1NTh
4eHOzs50dHRSUlIbGxsMDAxiYmJnZ2fa2trT09PPz8/MzMx/f38cHBwFBQUfHx+Dg4O8vLw8PDwH
Bw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IklTmKJk1jiJJY4iSVOYomTWOIkljiJJU5iiZNY4iSWOIklTmKJ
k1jiJJY4iSVOYomTWOIkljiJJU5iiZNY4iSWOIklTmKJk1jiJJY4iSVOYomTWOIkljiJJU5iiZNY
4iSWOIklTmKJk1jiJJY4iSVOYomTWOIkljiJJU5iiZNY4iSWOIklTmKJk1jiJJY4iSVOYomTWOIk
ljiJJU5iiZNY4iSWOIklTmKJk1jiJNahcUKnDomz6/84VG9pnNC5xXGehQCL4jwBERbECQAAAADQ
Q/8DWY+fmUTop0kAAAAASUVORK5CYII=

-- Binary/unsupported file stripped by Ecartis --
-- Type: application/x-be_attribute
-- File: BeOS Attributes




Other related posts: