This commit is contained in:
michaelp%netscape.com 1998-12-02 01:08:43 +00:00
Родитель 7ff8bfda1e
Коммит 0a0eebced5
3 изменённых файлов: 15 добавлений и 15 удалений

Просмотреть файл

@ -26,7 +26,7 @@ nsRegionGTK :: nsRegionGTK()
NS_INIT_REFCNT();
mRegion = nsnull;
mRegionType = eRegionType_empty;
mRegionType = eRegionComplexity_empty;
}
nsRegionGTK :: ~nsRegionGTK()
@ -44,7 +44,7 @@ NS_IMPL_RELEASE(nsRegionGTK)
nsresult nsRegionGTK :: Init(void)
{
mRegion = ::gdk_region_new(); //correct?
mRegionType = eRegionType_empty;
mRegionType = eRegionComplexity_empty;
return NS_OK;
}
@ -157,7 +157,7 @@ void nsRegionGTK :: Subtract(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHe
PRBool nsRegionGTK :: IsEmpty(void)
{
if (mRegionType == eRegionType_empty)
if (mRegionType == eRegionComplexity_empty)
return PR_TRUE;
return PR_FALSE;
@ -227,9 +227,9 @@ NS_IMETHODIMP nsRegionGTK :: GetRegionComplexity(nsRegionComplexity &aComplexity
void nsRegionGTK :: SetRegionType()
{
if (::gdk_region_empty(mRegion) == TRUE)
mRegionType = eRegionType_empty;
mRegionType = eRegionComplexity_empty;
else
mRegionType = eRegionType_rect ;
mRegionType = eRegionComplexity_rect ;
}
void nsRegionGTK :: SetRegionEmpty()

Просмотреть файл

@ -27,7 +27,7 @@ nsRegionMac :: nsRegionMac()
NS_INIT_REFCNT();
mRegion = nsnull;
mRegionType = eRegionType_empty;
mRegionType = eRegionComplexity_empty;
}
//---------------------------------------------------------------------
@ -48,7 +48,7 @@ NS_IMPL_RELEASE(nsRegionMac)
nsresult nsRegionMac :: Init(void)
{
mRegion = ::NewRgn();
mRegionType = eRegionType_empty;
mRegionType = eRegionComplexity_empty;
return NS_OK;
}
@ -168,7 +168,7 @@ RgnHandle thergn;
PRBool nsRegionMac :: IsEmpty(void)
{
if (mRegionType == eRegionType_empty)
if (mRegionType == eRegionComplexity_empty)
return PR_TRUE;
else
return PR_FALSE;
@ -247,9 +247,9 @@ NS_IMETHODIMP nsRegionMac :: GetRegionComplexity(nsRegionComplexity &aComplexity
void nsRegionMac :: SetRegionType()
{
if (::EmptyRgn(mRegion) == PR_TRUE)
mRegionType = eRegionType_empty;
mRegionType = eRegionComplexity_empty;
else
mRegionType = eRegionType_rect ;
mRegionType = eRegionComplexity_rect ;
}

Просмотреть файл

@ -25,7 +25,7 @@ nsRegionMotif :: nsRegionMotif()
NS_INIT_REFCNT();
mRegion = nsnull;
mRegionType = eRegionType_empty;
mRegionType = eRegionComplexity_empty;
}
nsRegionMotif :: ~nsRegionMotif()
@ -42,7 +42,7 @@ NS_IMPL_RELEASE(nsRegionMotif)
nsresult nsRegionMotif :: Init(void)
{
mRegion = ::XCreateRegion();
mRegionType = eRegionType_empty;
mRegionType = eRegionComplexity_empty;
return NS_OK;
}
@ -143,7 +143,7 @@ void nsRegionMotif :: Subtract(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 a
PRBool nsRegionMotif :: IsEmpty(void)
{
if (mRegionType == eRegionType_empty)
if (mRegionType == eRegionComplexity_empty)
return PR_TRUE;
return PR_FALSE;
@ -207,9 +207,9 @@ NS_IMETHODIMP nsRegionMotif :: GetRegionComplexity(nsRegionComplexity &aComplexi
void nsRegionMotif :: SetRegionType()
{
if (::XEmptyRegion(mRegion) == True)
mRegionType = eRegionType_empty;
mRegionType = eRegionComplexity_empty;
else
mRegionType = eRegionType_rect ;
mRegionType = eRegionComplexity_rect ;
}
void nsRegionMotif :: SetRegionEmpty()