![]() |
Public API Reference |
#include <csbackgr.h>
Public Methods | |
csBackground () | |
Create a black background object. More... | |
~csBackground () | |
Destroy the object. More... | |
void | Free () |
Free the background. More... | |
void | SetTexture (iTextureHandle *iTex) |
Set background texture. More... | |
iTextureHandle * | GetTexture () |
Query background texture. More... | |
void | SetColor (int iIndex, csRGBcolor &iColor) |
Set Nth (0-3) color of the background. More... | |
csRGBcolor & | GetColor (int iIndex) |
Get Nth (0-3) color of the background. More... | |
void | SetColor (int iColor) |
Set the flat color of this background. More... | |
int | GetColor () |
Get the flat color of this background. More... | |
void | SetType (csBackgroundType iType) |
Set background type. More... | |
csBackgroundType | GetType () |
Query background type. More... | |
void | Draw (csComponent &This, int x, int y, int w, int h, int xorg, int yorg, uint8 iAlpha) |
Draw the background. More... |
This is not a component; it is mainly meant for use by skins.
Definition at line 54 of file csbackgr.h.
|
Create a black background object.
|
|
Destroy the object.
|
|
Draw the background.
|
|
Free the background.
Definition at line 73 of file csbackgr.h. References SetTexture. |
|
Get the flat color of this background.
Definition at line 96 of file csbackgr.h. |
|
Get Nth (0-3) color of the background.
Definition at line 88 of file csbackgr.h. |
|
Query background texture.
Definition at line 80 of file csbackgr.h. |
|
Query background type.
Definition at line 104 of file csbackgr.h. References csBackgroundType. |
|
Set the flat color of this background.
Definition at line 92 of file csbackgr.h. References csbgColor. |
|
Set Nth (0-3) color of the background.
Definition at line 84 of file csbackgr.h. References csbgGradient. |
|
Set background texture.
Referenced by Free. |
|
Set background type.
Definition at line 100 of file csbackgr.h. References csBackgroundType. |