xbmc
GUIWindowVisualisation.h
1 /*
2  * Copyright (C) 2005-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "guilib/GUIWindow.h"
12 #include "music/tags/MusicInfoTag.h"
13 #include "utils/Stopwatch.h"
14 
16  public CGUIWindow
17 {
18 public:
20  bool OnMessage(CGUIMessage& message) override;
21  bool OnAction(const CAction &action) override;
22  void FrameMove() override;
23 protected:
24  EVENT_RESULT OnMouseEvent(const CPoint &point, const CMouseEvent &event) override;
25 
26  CStopWatch m_initTimer;
27  CStopWatch m_lockedTimer;
28  bool m_bShowPreset;
29  MUSIC_INFO::CMusicInfoTag m_tag; // current tag info, for finding when the info manager updates
30 };
31 
Definition: Stopwatch.h:14
EVENT_RESULT
Results of OnMouseEvent() Any value not equal to EVENT_RESULT_UNHANDLED indicates that the event was ...
Definition: GUIControl.h:60
EVENT_RESULT OnMouseEvent(const CPoint &point, const CMouseEvent &event) override
Perform a mouse action.
Definition: GUIWindowVisualisation.cpp:184
class encapsulating information regarding a particular user action to be sent to windows and controls...
Definition: Action.h:22
Definition: GUIMessage.h:365
void FrameMove() override
Main update function, called every frame prior to rendering Any window that requires updating on a fr...
Definition: GUIWindowVisualisation.cpp:206
Definition: GUIWindow.h:58
Definition: GUIWindowVisualisation.h:15
bool OnAction(const CAction &action) override
Definition: GUIWindowVisualisation.cpp:37
Definition: MusicInfoTag.h:27
Simple class for mouse events.
Definition: Key.h:114