32#ifndef __SO3_BITMAP_WIDGET_H__
33#define __SO3_BITMAP_WIDGET_H__
41#define SO3_BITMAP_WIDGET_TYPE "BitmapWidget"
48 unsigned int iLastWidth;
49 unsigned int iLastHeight;
57 SBitmapWidget(
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);
62 SBitmapWidget(
SScene* targetScene,
const std::string& bitmapWidgetName,
const int& xPos,
const int& yPos,
const unsigned short& widgetWidth,
const unsigned short& widgetHeight,
SViewPort* targetViewport);
67 SBitmapWidget(
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);
82 virtual void LoadURL(
const std::string& url);
87 virtual void LoadFile(
const std::string& file);
102 void UpdateRawData(PtrObjBitmap scolBitmap, PtrObjBitmap scolAlphaBitmap);
112 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);
142 virtual void InjectKeyEvent(
const UINT& msg,
const ScolWindowHandle& hwnd,
const WPARAM& wParam,
const LPARAM& lParam);
152 virtual void RunScriptFunction(
const std::string& functionName,
const std::vector<std::string>& argumentList);
182 virtual void SetSizeImpl(
const unsigned short& newWidth,
const unsigned short& newHeight);
191 void CheckSizeAndAlloc(
const unsigned int& newWidth,
const unsigned int& newHeight,
const bool& alpha);