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:

Wallpaper - Image - Widget - Rect


Public Methods

[more] Wallpaper()
default constructor
[more]virtual void SetStyle(WallpaperStyle s)
Sets the wallpaper style to the selected style
[more]virtual WallpaperStyle GetStyle()
return the current wallpaper style
[more]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()
[more]void Setup(int x, int y, int w, int h, int key, int flags, const char* file, WallpaperStyle s)
See above
[more]void Setup(int x, int y, int w, int h, int key, int flags, const Bitmap& bmp, WallpaperStyle s)
See above

Public Members

[more]enum WallpaperStyle
These are the available wallpaper styles.

Protected Fields

[more]WallpaperStyle style
The actual wallpaper style

Protected Methods

[more]void MsgStart()
Updates the size of the wallpaper when the dialog starts
[more]void MsgInitSkin()
Sets the default skin bitmap, style and background colour
[more]void UpdateSize()
Updates the size of the widget to match the size of the parent dialog
[more]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.
oenum 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

oWallpaperStyle style
The actual wallpaper style

ovoid MsgStart()
Updates the size of the wallpaper when the dialog starts

ovoid MsgInitSkin()
Sets the default skin bitmap, style and background colour

ovoid UpdateSize()
Updates the size of the widget to match the size of the parent dialog

ovoid Draw(Bitmap &canvas)
Draws the wallpaper on the canvas with the selected style

o Wallpaper()
default constructor

ovirtual void SetStyle(WallpaperStyle s)
Sets the wallpaper style to the selected style

ovirtual WallpaperStyle GetStyle()
return the current wallpaper style

ovoid 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()

ovoid Setup(int x, int y, int w, int h, int key, int flags, const char* file, WallpaperStyle s)
See above

ovoid 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++