class MASKING_DLL_DECLSPEC Wallpaper
Similar to ClearScreen just that Wallpaper doesn't use a solid colour to clear the canvas but a wallpaper bitmap which can be drawn in one of several styles.
Inheritance:
Public Methods
-
Wallpaper()
- default constructor
-
virtual void SetStyle(WallpaperStyle s)
- Sets the wallpaper style to the selected style
-
virtual WallpaperStyle GetStyle()
- return the current wallpaper style
-
void Setup(int x, int y, int w, int h, int key, int flags, int i, WallpaperStyle s)
- These Setup() functions are basically just shortcuts for Image::Setup() and SetStyle()
-
void Setup(int x, int y, int w, int h, int key, int flags, const char* file, WallpaperStyle s)
- See above
-
void Setup(int x, int y, int w, int h, int key, int flags, const Bitmap& bmp, WallpaperStyle s)
- See above
Public Members
-
enum WallpaperStyle
- These are the available wallpaper styles.
Protected Fields
-
WallpaperStyle style
- The actual wallpaper style
Protected Methods
-
void MsgStart()
- Updates the size of the wallpaper when the dialog starts
-
void MsgInitSkin()
- Sets the default skin bitmap, style and background colour
-
void UpdateSize()
- Updates the size of the widget to match the size of the parent dialog
-
void Draw(Bitmap &canvas)
- Draws the wallpaper on the canvas with the selected style
Documentation
Similar to ClearScreen just that Wallpaper doesn't use a solid colour
to clear the canvas but a wallpaper bitmap which can be drawn in one of several styles.
Note that Wallpaper can be quite a lot slower than ClearScreen.
enum WallpaperStyle
-
These are the available wallpaper styles.
The wallpaper bitmap can be blitted in the centre of
the dialog's canvas or in its top left corner, it can be stretched over
the canvas or it can be tiled in one of two ways. The first uses a simple tiling
function while the other uses a special GUI tile function that only tile the
central area of the bitmap and uses the edges to create a border around the tiled area.
In styles that don't cover the entire screen the screen is first cleared to
the background colour defined by the skin.
The available wallpaper styles are:
CENTERED - the wallpaper bitmap is centered on the screen
TOPLEFT - the wallpaper is drawn once in the top left corner of the screen
STRETCHED - the wallpaper is stretched to fit onto the screen
TILED - the wallpaper is tiled across the screen (default)
TILED2 - the wallpaper is tiled using a special GUI tile function
WallpaperStyle style
-
The actual wallpaper style
void MsgStart()
-
Updates the size of the wallpaper when the dialog starts
void MsgInitSkin()
-
Sets the default skin bitmap, style and background colour
void UpdateSize()
-
Updates the size of the widget to match the size of the parent dialog
void Draw(Bitmap &canvas)
-
Draws the wallpaper on the canvas with the selected style
Wallpaper()
-
default constructor
virtual void SetStyle(WallpaperStyle s)
-
Sets the wallpaper style to the selected style
virtual WallpaperStyle GetStyle()
-
return the current wallpaper style
void Setup(int x, int y, int w, int h, int key, int flags, int i, WallpaperStyle s)
-
These Setup() functions are basically just shortcuts for Image::Setup() and SetStyle()
void Setup(int x, int y, int w, int h, int key, int flags, const char* file, WallpaperStyle s)
-
See above
void Setup(int x, int y, int w, int h, int key, int flags, const Bitmap& bmp, WallpaperStyle s)
-
See above
- This class has no child classes.
Alphabetic index Hierarchy of classes
Back to front page
|
page generated with DOC++