Pioneer
VideoLink.h
Go to the documentation of this file.
1 // Copyright © 2008-2021 Pioneer Developers. See AUTHORS.txt for details
2 // Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
3 
4 #ifndef _VIDEOLINK_H
5 #define _VIDEOLINK_H
6 
7 #include "gui/Gui.h"
8 
9 class VideoLink : public Gui::Widget {
10 public:
11  VideoLink(float w, float h) :
12  m_width(w),
13  m_height(h) {}
14 
15  virtual void GetSizeRequested(float size[2])
16  {
17  size[0] = m_width;
18  size[1] = m_height;
19  }
20 
21 private:
22  float m_width, m_height;
23 };
24 
25 #endif
Definition: GuiWidget.h:14
float w
Definition: GuiWidget.h:93
float h
Definition: GuiWidget.h:93