xref: /haiku/src/apps/cortex/ValControl/ValCtrlLayoutEntry.cpp (revision b55a57da7173b9af0432bd3e148d03f06161d036)
1 // ValCtrlLayoutEntry.cpp
2 // e.moon 29jan99
3 
4 #include "ValCtrlLayoutEntry.h"
5 #include "ValControlSegment.h"
6 
7 #include <Debug.h>
8 #include <View.h>
9 
10 __USE_CORTEX_NAMESPACE
11 
12 /*static*/
13 ValCtrlLayoutEntry	ValCtrlLayoutEntry::decimalPoint(DECIMAL_POINT_ENTRY,
14 	LAYOUT_NO_PADDING);
15 
16 /*static*/
17 void
18 ValCtrlLayoutEntry::InitChildFrame(ValCtrlLayoutEntry& e)
19 {
20 	if (e.pView) {
21 //		PRINT((
22 //			"### ValCtrlLayoutEntry::InitChildFrame(): (%.1f,%.1f)-(%.1f,%.1f)\n",
23 //			e.frame.left, e.frame.top, e.frame.right, e.frame.bottom));
24 		e.pView->MoveTo(e.frame.LeftTop());
25 		e.pView->ResizeTo(e.frame.Width(), e.frame.Height());
26 	}
27 }
28