#include <wg_picture.h>
Inheritance diagram for wGui::CPicture:
Will take a picture file and display it The CPicture control does not do any sort of resizing, but it will clip the picture to the client rect
Definition at line 41 of file wg_picture.h.
wGui::CPicture::CPicture | ( | const CRect & | WindowRect, | |
CWindow * | pParent, | |||
const std::wstring & | sPictureFile, | |||
bool | bDrawBorder = false , |
|||
const CRGBColor & | BorderColor = DEFAULT_LINE_COLOR | |||
) |
Constructs a new picture control
WindowRect | A CRect that defines the outer limits of the control | |
pParent | A pointer to the parent window | |
sPictureFile | The picture resource, must be a bitmap (.bmp) | |
bDrawBorder | If true, it will draw a border around the picture, defaults to false | |
BorderColor | The color to use when drawing the border |
Definition at line 32 of file wg_picture.cpp.
References Draw(), wGui::CRect::Grow(), m_bDrawBorder, and wGui::CWindow::m_ClientRect.
wGui::CPicture::CPicture | ( | const CRect & | WindowRect, | |
CWindow * | pParent, | |||
const CBitmapResourceHandle & | hBitmap, | |||
bool | bDrawBorder = false , |
|||
const CRGBColor & | BorderColor = DEFAULT_LINE_COLOR | |||
) |
Constructs a new picture control
WindowRect | A CRect that defines the outer limits of the control | |
pParent | A pointer to the parent window | |
hBitmap | A handle for the bitmap resource | |
bDrawBorder | If true, it will draw a border around the picture, defaults to false | |
BorderColor | The color to use when drawing the border |
Definition at line 47 of file wg_picture.cpp.
References Draw(), wGui::CRect::Grow(), m_bDrawBorder, and wGui::CWindow::m_ClientRect.
void wGui::CPicture::SetWindowRect | ( | const CRect & | WindowRect | ) | [virtual] |
Giving a control a new WindowRect will move and resize the control
WindowRect | A CRect that defines the outer limits of the control |
Reimplemented from wGui::CWindow.
Definition at line 87 of file wg_picture.cpp.
References wGui::CRect::Grow(), wGui::CWindow::m_ClientRect, wGui::CWindow::m_WindowRect, wGui::CWindow::SetWindowRect(), and wGui::CRect::SizeRect().