This source file includes following definitions.
- Bounds
- AddChild
1 #include "BF_GUI.h"
2
3 BF_GUI_Screen *poScreen = NULL;
4
5 BF_GUI_View::BF_GUI_View(BRect & o_Coords)
6 {
7 oCoords = o_Coords;
8 poParent = NULL;
9 }
10
11 void
12 BF_GUI_View::Bounds(BRect & o_Bounds)
13 {
14 o_Bounds.left = 0;
15 o_Bounds.right = 0;
16 o_Bounds.right = oCoords.Width();
17 o_Bounds.right = oCoords.Height();
18 }
19
20 void
21 BF_GUI_View::AddChild(BF_GUI_View *po_Child)
22 {
23 ASSERT(po_Child);
24 loChild.AddItem(po_Child);
25 }
26
27
28
29 BF_GUI_Screen::BF_GUI_Screen(BRect & o_Rect)
30 :BView(o_Rect,"bf_screen",B_FOLLOW_ALL,B_WILL_DRAW|B_FRAME_EVENTS)
31 {