UWindow
Class UWindowBitmap

source: e:\games\UnrealTournament\UWindow\Classes\UWindowBitmap.uc
Core.Object
   |
   +--UWindow.UWindowBase
      |
      +--UWindow.UWindowWindow
         |
         +--UWindow.UWindowBitmap
Direct Known Subclasses:None

class UWindowBitmap
extends UWindow.UWindowWindow


Variables
 Region R
 Texture T
 bool bCenter
 bool bStretch


Function Summary
 void Paint(Canvas C, float X, float Y)



Source Code


00001	class UWindowBitmap extends UWindowWindow;
00002	
00003	var Texture T;
00004	var Region	R;
00005	var bool	bStretch;
00006	var bool	bCenter;
00007	
00008	
00009	function Paint(Canvas C, float X, float Y)
00010	{
00011		if(bStretch)
00012		{
00013			DrawStretchedTextureSegment(C, 0, 0, WinWidth, WinHeight, R.X, R.Y, R.W, R.H, T);
00014		}
00015		else
00016		{
00017			if(bCenter)
00018			{
00019				DrawStretchedTextureSegment(C, (WinWidth - R.W)/2, (WinHeight - R.H)/2, R.W, R.H, R.X, R.Y, R.W, R.H, T);
00020			}
00021			else
00022			{
00023				DrawStretchedTextureSegment(C, 0, 0, R.W, R.H, R.X, R.Y, R.W, R.H, T);
00024			}
00025		}
00026	}
00027	
00028	defaultproperties
00029	{
00030	}

End Source Code