summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/ActiveWindow.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-09-15 00:53:01 +0200
committerAki <please@ignore.pl>2022-09-15 00:53:01 +0200
commitce550f08fa91598612c016ebebc89c4af2e9505e (patch)
tree46be504b3831acc213b2da7feae38b1f1f6768ed /StarsEx/ActiveWindow.cpp
parent5310ea3564fe98b2940a63b72621b79de9290f77 (diff)
downloadstarshatter-ce550f08fa91598612c016ebebc89c4af2e9505e.zip
starshatter-ce550f08fa91598612c016ebebc89c4af2e9505e.tar.gz
starshatter-ce550f08fa91598612c016ebebc89c4af2e9505e.tar.bz2
Renamed EventDispatch and EventTarget by adding UI prefix
Diffstat (limited to 'StarsEx/ActiveWindow.cpp')
-rw-r--r--StarsEx/ActiveWindow.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/StarsEx/ActiveWindow.cpp b/StarsEx/ActiveWindow.cpp
index 4c99ef8..e5e8e33 100644
--- a/StarsEx/ActiveWindow.cpp
+++ b/StarsEx/ActiveWindow.cpp
@@ -13,7 +13,7 @@
#include <vector>
#include "ActiveWindow.h"
-#include "EventDispatch.h"
+#include "UIEventDispatch.h"
#include "Color.h"
#include "Bitmap.h"
#include "Font.h"
@@ -85,7 +85,7 @@ ActiveWindow::~ActiveWindow()
void
ActiveWindow::Show()
{
- EventDispatch* dispatch = EventDispatch::GetInstance();
+ UIEventDispatch* dispatch = UIEventDispatch::GetInstance();
if (dispatch)
dispatch->Register(this);
@@ -109,7 +109,7 @@ ActiveWindow::Show()
void
ActiveWindow::Hide()
{
- EventDispatch* dispatch = EventDispatch::GetInstance();
+ UIEventDispatch* dispatch = UIEventDispatch::GetInstance();
if (dispatch) {
dispatch->Unregister(this);
focus = false;
@@ -896,7 +896,7 @@ Rect ActiveWindow::TargetRect() const
void ActiveWindow::SetFocus()
{
- EventDispatch* dispatch = EventDispatch::GetInstance();
+ UIEventDispatch* dispatch = UIEventDispatch::GetInstance();
if (dispatch)
dispatch->SetFocus(this);
@@ -906,7 +906,7 @@ void ActiveWindow::SetFocus()
void ActiveWindow::KillFocus()
{
- EventDispatch* dispatch = EventDispatch::GetInstance();
+ UIEventDispatch* dispatch = UIEventDispatch::GetInstance();
if (dispatch)
dispatch->KillFocus(this);
@@ -919,7 +919,7 @@ void ActiveWindow::KillFocus()
ActiveWindow*
ActiveWindow::GetCapture()
{
- EventDispatch* dispatch = EventDispatch::GetInstance();
+ UIEventDispatch* dispatch = UIEventDispatch::GetInstance();
if (dispatch)
return (ActiveWindow*) dispatch->GetCapture();
@@ -931,7 +931,7 @@ ActiveWindow::GetCapture()
bool
ActiveWindow::SetCapture()
{
- EventDispatch* dispatch = EventDispatch::GetInstance();
+ UIEventDispatch* dispatch = UIEventDispatch::GetInstance();
if (dispatch)
return dispatch->CaptureMouse(this) == 1;
@@ -943,7 +943,7 @@ ActiveWindow::SetCapture()
int
ActiveWindow::ReleaseCapture()
{
- EventDispatch* dispatch = EventDispatch::GetInstance();
+ UIEventDispatch* dispatch = UIEventDispatch::GetInstance();
if (dispatch)
return dispatch->ReleaseMouse(this);