Fixed a quit bug in ViewDriver
Slightly improved ServerScreen::SupportsResolution Implemented a DPMS hack for ViewDriver and DirectDriver Moved various supporting classes from DisplayDriver.cpp to DisplaySupport.cpp Added server-side support for BWindow::SetSizeLimits git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8541 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -377,21 +377,44 @@ void WinBorder::ResizeBy(float x, float y)
|
||||
Layer::ResizeBy(x,y);
|
||||
}
|
||||
|
||||
bool WinBorder::IsHidden() const{
|
||||
bool WinBorder::IsHidden() const
|
||||
{
|
||||
if (fServerHidden)
|
||||
return true;
|
||||
|
||||
return Layer::IsHidden();
|
||||
}
|
||||
|
||||
void WinBorder::ServerHide(){
|
||||
void WinBorder::ServerHide()
|
||||
{
|
||||
fServerHidden = true;
|
||||
}
|
||||
|
||||
void WinBorder::ServerUnhide(){
|
||||
void WinBorder::ServerUnhide()
|
||||
{
|
||||
fServerHidden = false;
|
||||
}
|
||||
|
||||
void WinBorder::SetSizeLimits(float minwidth, float maxwidth, float minheight, float maxheight)
|
||||
{
|
||||
if(minwidth<0)
|
||||
minwidth=0;
|
||||
|
||||
if(minheight<0)
|
||||
minheight=0;
|
||||
|
||||
if(maxwidth<=minwidth)
|
||||
maxwidth=minwidth+1;
|
||||
|
||||
if(maxheight<=minheight)
|
||||
maxheight=minheight+1;
|
||||
|
||||
fMinWidth=minwidth;
|
||||
fMaxWidth=maxwidth;
|
||||
fMinHeight=minheight;
|
||||
fMaxHeight=maxheight;
|
||||
}
|
||||
|
||||
bool WinBorder::HasPoint(const BPoint& pt) const
|
||||
{
|
||||
return fFullVisible.Contains(pt);
|
||||
|
||||
Reference in New Issue
Block a user