implemented cursor support in the DisplayDriverPainter

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12107 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2005-03-28 18:03:45 +00:00
parent 31f3fbc45c
commit e33b90ea35
9 changed files with 537 additions and 327 deletions
@@ -128,7 +128,7 @@ DisplayDriverPainter::CopyRegionList(BList* list, BList* pList,
if (!clipReg || !Lock())
return;
// This is the same implementation as in DisplayDriverImpl for now
// This is the same implementation as in DisplayDriverPainter for now
// since we're not using painter.... this won't do much good, will it?
// fPainter->ConstrainClipping(*clipReg);
@@ -755,6 +755,65 @@ DisplayDriverPainter::GetTruncatedStrings(const char **instrings,
printf("DisplayDriverPainter::GetTruncatedStrings()\n");
}
// HideCursor
void
DisplayDriverPainter::HideCursor()
{
fGraphicsCard->SetCursorVisible(false);
}
// IsCursorHidden
bool
DisplayDriverPainter::IsCursorHidden()
{
return !fGraphicsCard->IsCursorVisible();
}
// MoveCursorTo
void
DisplayDriverPainter::MoveCursorTo(const float &x, const float &y)
{
fGraphicsCard->MoveCursorTo(x, y);
}
// ShowCursor
void
DisplayDriverPainter::ShowCursor()
{
fGraphicsCard->SetCursorVisible(true);
}
// ObscureCursor
void
DisplayDriverPainter::ObscureCursor()
{
// TODO: I don't think this has anything to do with the DisplayDriver
// implement elsewhere!!
}
// SetCursor
void
DisplayDriverPainter::SetCursor(ServerCursor *cursor)
{
fGraphicsCard->SetCursor(cursor);
}
// GetCursorPosition
BPoint
DisplayDriverPainter::GetCursorPosition()
{
return fGraphicsCard->GetCursorPosition();
}
// IsCursorObscured
bool
DisplayDriverPainter::IsCursorObscured(bool state)
{
// TODO: I don't think this has anything to do with the DisplayDriver
// implement elsewhere!!
return false;
}
// Lock
bool
DisplayDriverPainter::Lock(bigtime_t timeout)