* Copyright 2006-2007, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* Stephan Aßmus <superstippi@gmx.de>
*/
#include "ViewState.h"
#include "StateView.h"
mouse_info::mouse_info()
: buttons(0),
position(-1, -1),
transit(B_OUTSIDE_VIEW),
modifiers(::modifiers())
{
}
ViewState::ViewState(StateView* view)
: fView(view),
fMouseInfo(view->MouseInfo())
{
}
ViewState::ViewState(const ViewState& other)
: fView(other.fView),
fMouseInfo(other.fMouseInfo)
{
}
ViewState::~ViewState()
{
}
void
ViewState::Init()
{
}
void
ViewState::Cleanup()
{
}
void
ViewState::Draw(BView* into, BRect updateRect)
{
}
bool
ViewState::MessageReceived(BMessage* message, Command** _command)
{
return false;
}
void
ViewState::MouseDown(BPoint where, uint32 buttons, uint32 clicks)
{
}
void
ViewState::MouseMoved(BPoint where, uint32 transit, const BMessage* dragMessage)
{
}
Command*
ViewState::MouseUp()
{
return NULL;
}
void
ViewState::ModifiersChanged(uint32 modifiers)
{
}
bool
ViewState::HandleKeyDown(uint32 key, uint32 modifiers, Command** _command)
{
return false;
}
bool
ViewState::HandleKeyUp(uint32 key, uint32 modifiers, Command** _command)
{
return false;
}
bool
ViewState::UpdateCursor()
{
return false;
}