FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
FB::Rect FB::PluginWindowWin::getWindowPosition ( ) const
virtual

Gets the position rect of the window.

Returns
The position rect of the window

Implements FB::PluginWindow.

Definition at line 318 of file PluginWindowWin.cpp.

319 {
320  RECT rect;
321  ::GetWindowRect(m_hWnd, &rect);
322  FB::Rect out = {
323  boost::numeric_cast<int32_t>(rect.top),
324  boost::numeric_cast<int32_t>(rect.left),
325  boost::numeric_cast<int32_t>(rect.bottom),
326  boost::numeric_cast<int32_t>(rect.right)};
327  return out;
328 }