root/_Experimental/BF_GUI.cpp

/* [previous][next][first][last][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. Bounds
  2. 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)    /* [previous][next][first][last][top][bottom][index][help] */
  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)    /* [previous][next][first][last][top][bottom][index][help] */
  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 {

/* [previous][next][first][last][top][bottom][index][help] */