xbmc
GUIWindowWeather.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 
14 {
15 public:
16  CGUIWindowWeather(void);
17  ~CGUIWindowWeather(void) override;
18  bool OnMessage(CGUIMessage& message) override;
19  void FrameMove() override;
20 
21 protected:
22  void OnInitWindow() override;
23 
24  void UpdateButtons();
25  void UpdateLocations();
26  void SetProperties();
27  void ClearProperties();
28  void SetLocation(int loc);
29 
30  unsigned int m_maxLocation = 0;
31 };
Definition: GUIWindowWeather.h:13
void SetLocation(int loc)
Sets the location to the specified index and refreshes the weather.
Definition: GUIWindowWeather.cpp:217
void OnInitWindow() override
Called on window open.
Definition: GUIWindowWeather.cpp:117
Definition: GUIMessage.h:365
Definition: GUIWindow.h:58
void FrameMove() override
Main update function, called every frame prior to rendering Any window that requires updating on a fr...
Definition: GUIWindowWeather.cpp:205