32#ifndef __SO3_FLASH_WIDGET_H__
33#define __SO3_FLASH_WIDGET_H__
41#define SO3_FLASH_WIDGET_TYPE "FlashWidget"
59#ifdef SO3_FLASH_ENABLE
66 typedef HRESULT (__stdcall *GetClassObject)(REFCLSID rclsid, REFIID riid, LPVOID * ppv);
72 ScolWindowHandle getTopWindow();
77 SFlashWidget(
SScene* targetScene,
const std::string& flashWidgetName,
const int& xPos,
const int& yPos,
const unsigned short& widgetWidth,
const unsigned short& widgetHeight,
SViewPort* targetViewport,
const unsigned int& widgetZOrder);
82 SFlashWidget(
SScene* targetScene,
const std::string& flashWidgetName,
const int& xPos,
const int& yPos,
const unsigned short& widgetWidth,
const unsigned short& widgetHeight,
SViewPort* targetViewport);
87 SFlashWidget(
SScene* targetScene,
const std::string& flashWidgetName,
const unsigned short& widgetWidth,
const unsigned short& widgetHeight,
SMaterial* targetMaterial,
const unsigned short& targetTechnique,
const unsigned short& targetPass,
const unsigned short& targetTextureUnit);
102 virtual void LoadURL(
const std::string& url);
107 virtual void LoadFile(
const std::string& file);
117 virtual void InjectMouseWheel(
const int& scrollX,
const int& scrollY,
const int& relativeScroll);
127 virtual void InjectTouchAdd(
const int& xPos,
const int& yPos,
const int& touchid);
137 virtual void InjectTouchUpdate(
const int& xPos,
const int& yPos,
const int& vx,
const int& vy,
const int& touchid);
147 virtual void InjectKeyEvent(
const UINT& msg,
const ScolWindowHandle& hwnd,
const WPARAM& wParam,
const LPARAM& lParam);
182 void Seek(
const long& seekFrame);
197 virtual void RunScriptFunction(
const std::string& functionName,
const std::vector<std::string>& argumentList);
222 virtual void SetSizeImpl(
const unsigned short& newWidth,
const unsigned short& newHeight);
232 virtual void setZOrder(
unsigned short zorder);
297 virtual void setLoop(
bool shouldLoop);
302 virtual void setTransparent(
bool isWidgetTransparent,
bool useAlphaHack =
false);
327 virtual const std::string&
getName()
const;
342 virtual void unbind(
const std::wstring& funcName);
372 virtual void focus();
377 virtual void move(
int deltaX,
int deltaY);
387 virtual void getUVScale(
float& uScale,
float& vScale)
const;
417 UINT MouseButtonMessageConverter(
const int& button,
const bool& pressed);
_HikariExport std::vector< FlashValue > Arguments
@ SO3_FLASH_SCALE_EXACTFIT
@ SO3_FLASH_SCALE_NOBORDER
@ SO3_FLASH_SCALE_SHOWALL
@ SO3_FLASH_QUALITY_AUTOHIGH
@ SO3_FLASH_QUALITY_MEDIUM
@ SO3_FLASH_QUALITY_AUTOLOW