model_server/gala/src/controlObjects.cxx
// determines the complete checkbox rectangle. If the rectangle is
// too small, minimum indicator size will be used (5*5) dots.
// in every other case indicator will be positioned at the left
// of the checkbox rectangle with X and Y offsets determined by
// IndicatorOffsets function.
determines the complete checkbox rectangle. If the rectangle is
too small, minimum indicator size will be used (5*5) dots.
in every other case indicator will be positioned at the left
of the checkbox rectangle with X and Y offsets determined by
IndicatorOffsets function.
determines the complete checkbox rectangle . If the rectangle is too small minimum indicator size will be used ( 5 * 5 ) dots . in every other case indicator will be positioned at the left of the checkbox rectangle with X and Y offsets determined by IndicatorOffsets function .
void gdListCheck::SetRect(vrect* newRect) {
	windowRect=*newRect;
	indicator.x=windowRect.x+x_shift;
	indicator.y=windowRect.y+y_shift;
	if(indicator.x>windowRect.x+windowRect.w)
		indicator.x=windowRect.x+windowRect.w;
	if(indicator.y>windowRect.y+windowRect.h)
		indicator.y=windowRect.y+windowRect.h;
	int d=windowRect.h-2*y_shift;
	if(d<5) d=5;
	indicator.w=indicator.h=d;
}
void gdListCheck :: SetRect ( vrect * newRect ) { windowRect = * newRect ; indicator . x = windowRect . x + x_shift ; indicator . y = windowRect . y + y_shift ; if ( indicator . x > windowRect . x + windowRect . w ) indicator . x = windowRect . x + windowRect . w ; if ( indicator . y > windowRect . y + windowRect . h ) indicator . y = windowRect . y + windowRect . h ; int d = windowRect . h - 2 * y_shift ; if ( d < 5 ) d = 5 ; indicator . w = indicator . h = d ; }
determines the complete checkbox rectangle.
determines the complete checkbox rectangle .