7 #ifndef __MYGUI_CANVAS_H__
8 #define __MYGUI_CANVAS_H__
32 Event(
bool _textureChanged,
bool _widgetResized,
bool _requested ) :
33 textureChanged( _textureChanged ),
34 widgetResized( _widgetResized ),
35 requested( _requested )
93 void createTexture(TextureResizeMode _resizeMode,
TextureUsage _usage = getDefaultTextureUsage(),
PixelFormat _format = getDefaultTextureFormat());
96 void createTexture(
int _width,
int _height, TextureResizeMode _resizeMode,
TextureUsage _usage = getDefaultTextureUsage(),
PixelFormat _format = getDefaultTextureFormat());
99 void createTexture(
const IntSize& _size, TextureResizeMode _resizeMode,
TextureUsage _usage = getDefaultTextureUsage(),
PixelFormat _format = getDefaultTextureFormat());
102 void destroyTexture();
105 void updateTexture();
114 bool isLocked()
const;
117 int getTextureRealWidth()
const;
120 int getTextureRealHeight()
const;
123 IntSize getTextureRealSize()
const;
126 int getTextureSrcWidth()
const;
129 int getTextureSrcHeight()
const;
132 IntSize getTextureSrcSize()
const;
138 const std::string& getTextureName()
const;
141 virtual void setSize(
const IntSize& _value);
143 virtual void setCoord(
const IntCoord& _value);
146 void setSize(
int _width,
int _height);
148 void setCoord(
int _left,
int _top,
int _width,
int _height);
151 TextureResizeMode getResizeMode()
const;
154 void setResizeMode(TextureResizeMode _value);
157 bool isTextureSrcSize()
const;
160 bool isTextureCreated()
const;
163 bool isTextureManaged()
const;
169 void setTextureManaged(
bool _value);
192 virtual void shutdownOverride();
193 virtual void initialiseOverride();
196 void _destroyTexture(
bool _sendEvent);
205 bool checkCreate(
int _width,
int _height)
const;
208 void resize(
const IntSize& _size);
214 void frameAdvise(
bool _advise);
217 void frameEntered(
float _time);
219 virtual void textureInvalidate(
ITexture* _texture);
250 #endif // __MYGUI_CANVAS_H__