32#ifndef __SO3_OBJ_WIN_WIDGET_H__
33#define __SO3_OBJ_WIN_WIDGET_H__
41#define SO3_OBJ_WINDOW_WIDGET_TYPE "ObjWindowWidget"
49 ScolWindowHandle targetWindowHandle;
50 long lastWindowWithBordersWidth;
51 long lastWindowWithBordersHeight;
62 SObjWindowWidget(
SScene* targetScene,
const std::string& bitmapWidgetName,
const int& xPos,
const int& yPos,
const unsigned short& widgetWidth,
const unsigned short& widgetHeight,
SViewPort* targetViewport,
const unsigned int& widgetZOrder);
67 SObjWindowWidget(
SScene* targetScene,
const std::string& bitmapWidgetName,
const int& xPos,
const int& yPos,
const unsigned short& widgetWidth,
const unsigned short& widgetHeight,
SViewPort* targetViewport);
72 SObjWindowWidget(
SScene* targetScene,
const std::string& bitmapWidgetName,
const unsigned short& widgetWidth,
const unsigned short& widgetHeight,
SMaterial* targetMaterial,
const unsigned short& targetTechnique,
const unsigned short& targetPass,
const unsigned short& targetTextureUnit);
87 virtual void LoadURL(
const std::string& url);
92 virtual void LoadFile(
const std::string& file);
102 virtual void InjectMouseWheel(
const int& scrollX,
const int& scrollY,
const int& relativeScroll);
117 virtual void InjectTouchAdd(
const int& xPos,
const int& yPos,
const int& touchid);
127 virtual void InjectTouchUpdate(
const int& xPos,
const int& yPos,
const int& vx,
const int& vy,
const int& touchid);
132 virtual void InjectKeyEvent(
const UINT& msg,
const ScolWindowHandle& hwnd,
const WPARAM& wParam,
const LPARAM& lParam);
142 virtual void RunScriptFunction(
const std::string& functionName,
const std::vector<std::string>& argumentList);
186 virtual void SetSizeImpl(
const unsigned short& newWidth,
const unsigned short& newHeight);
195 void InjectMouseMessage(
const int& xPos,
const int& yPos,
const unsigned int& message,
const WPARAM& wParam = 0);
199 void CreateDevicesContexts();
203 void DestroyDevicesContexts();
207 void CreateMemoryBitmap(
const long& targetWindowWidth,
const long& targetWindowHeight);
211 void DestroyMemoryBitmap();
215 bool CheckWindowIsStillValid();
219 bool GetMinimizeMaximizeAnimation();
223 void SetMinimizeMaximizeAnimation(
const bool& status);