1
//============================================================================
5
// SS tttttt eeee ll ll aaaa
6
// SSSS tt ee ee ll ll aa
7
// SS tt eeeeee ll ll aaaaa -- "An Atari 2600 VCS Emulator"
8
// SS SS tt ee ll ll aa aa
9
// SSSS ttt eeeee llll llll aaaaa
11
// Copyright (c) 1995-2005 by Bradford W. Mott and the Stella team
13
// See the file "license" for information on usage and redistribution of
14
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
16
// $Id: TiaZoomWidget.hxx,v 1.4 2006/02/22 17:38:04 stephena Exp $
18
// Based on code from ScummVM - Scumm Interpreter
19
// Copyright (C) 2002-2004 The ScummVM project
20
//============================================================================
22
#ifndef TIA_ZOOM_WIDGET_HXX
23
#define TIA_ZOOM_WIDGET_HXX
29
#include "Command.hxx"
32
class TiaZoomWidget : public Widget, public CommandSender
35
TiaZoomWidget(GuiObject *boss, const GUI::Font& font, int x, int y);
36
virtual ~TiaZoomWidget();
39
void setPos(int x, int y);
42
void handleMouseDown(int x, int y, int button, int clickCount);
43
bool handleKeyDown(int ascii, int keycode, int modifiers);
44
void handleCommand(CommandSender* sender, int cmd, int data, int id);
46
void drawWidget(bool hilite);
47
bool wantsFocus() { return true; }
57
int myNumCols, myNumRows;
59
int myXCenter, myYCenter;