xbmc
GUIVideoControl.h
Go to the documentation of this file.
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 
16 #include "GUIControl.h"
17 
23  public CGUIControl
24 {
25 public:
26  CGUIVideoControl(int parentID, int controlID, float posX, float posY, float width, float height);
27  ~CGUIVideoControl(void) override;
28  CGUIVideoControl* Clone() const override { return new CGUIVideoControl(*this); }
29 
30  void Process(unsigned int currentTime, CDirtyRegionList &dirtyregions) override;
31  void Render() override;
32  void RenderEx() override;
33  EVENT_RESULT OnMouseEvent(const CPoint &point, const CMouseEvent &event) override;
34  bool CanFocus() const override;
35  bool CanFocusFromPoint(const CPoint &point) const override;
36 };
37 
Base class for controls.
Definition: GUIControl.h:75
bool CanFocusFromPoint(const CPoint &point) const override
Test whether we can focus a control from a point on screen.
Definition: GUIVideoControl.cpp:105
Definition: GUIVideoControl.h:22
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: GUIVideoControl.cpp:85
void Process(unsigned int currentTime, CDirtyRegionList &dirtyregions) override
Definition: GUIVideoControl.cpp:28
Simple class for mouse events.
Definition: Key.h:114