Welcome to mirror list, hosted at ThFree Co, Russian Federation.

events.cpp « render - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1730ceeb8c841103b0ce092711963d7beca74e16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include "events.hpp"

#ifndef USE_DRAPE
PaintEvent::PaintEvent(Drawer * drawer,
                       core::CommandsQueue::Environment const * env)
    : m_drawer(drawer),
      m_env(env),
      m_isCancelled(false),
      m_isEmptyDrawing(true)
{}

Drawer * PaintEvent::drawer() const
{
  return m_drawer;
}

void PaintEvent::cancel()
{
  ASSERT(m_env == 0, ());
  m_isCancelled = true;
}

bool PaintEvent::isCancelled() const
{
  if (m_env)
    return m_env->IsCancelled();
  else
    return m_isCancelled;
}

bool PaintEvent::isEmptyDrawing() const
{
  return m_isEmptyDrawing;
}

void PaintEvent::setIsEmptyDrawing(bool flag)
{
  m_isEmptyDrawing = flag;
}
#endif // USE_DRAPE