프로퍼티 | 타입 | 설명 | |
---|---|---|---|
Cleanup | void | ||
DrawBorder | void | ||
FinalizeBorder | void | ||
FreeResourcesAndRegEvent | void | ||
GUIPropertyManager_OnPropertyChanged | void | ||
OnListTexturesDisposedEvent | void | ||
OnPackedTexturesDisposedEvent | void | ||
ParseParameters | int[] | ||
ReleaseTexture | void | ||
UnsubscribeAndReleaseListTextures | void | ||
UnsubscribeListTextures | void | ||
UnsubscribeOnPropertyChanged | void |
메소드 | 설명 | |
---|---|---|
AllocResources ( ) : void |
Allocate the DirectX resources needed for rendering this GUIImage.
|
|
Animate ( float timePassed, Animator animator ) : void | ||
BeginAnimation ( ) : void | ||
CanFocus ( ) : bool |
Returns if the control can have the focus.
|
|
Dispose ( ) : void |
Free the DirectX resources needed for rendering this GUIImage.
|
|
FinalizeConstruction ( ) : void |
This function is called after all of the XmlSkinnable fields have been filled with appropriate data. Use this to do any construction work other than simple data member assignments, for example, initializing new reference types, extra calculations, etc..
|
|
GUIImage ( int dwParentID ) : System | ||
GUIImage ( int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight, string strTexture, Color color ) : System | ||
GUIImage ( int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight, string strTexture, Color color, int border, int strBorderPosition, bool borderTextureRotate, bool borderTextureRepeat, Color borderColor ) : System | ||
GUIImage ( int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight, string strTexture, long dwColorKey ) : System |
The constructor of the GUIImage class.
|
|
GUIImage ( int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight, string strTexture, long dwColorKey, int border, int strBorderPosition, bool borderTextureRepeat, bool borderTextureRotate, long dwBorderColorKey ) : System | ||
GetCenter ( float ¢erX, float ¢erY ) : void | ||
LockMemoryImageTexture ( Bitmap &bitmap ) : bool | ||
Refresh ( ) : void | ||
RemoveMemoryImageTexture ( ) : void | ||
Render ( float timePassed ) : void |
Renders the Image
|
|
RenderRect ( float timePassed, Rectangle rectSrc, Rectangle rectDst ) : void | ||
ScaleToScreenResolution ( ) : void |
Does any scaling on the inital size\position values to fit them to screen resolution.
|
|
Select ( int frameNumber ) : void |
If the texture holds more then 1 frame (like an animated gif) then you can select the current frame with this method
|
|
SetBorder ( string border, BorderPosition position, bool textureRepeat, bool textureRotate, string textureFilename, long colorKey, bool hasCorners, bool cornerTextureRotate ) : void | ||
SetFileName ( string fileName ) : void |
Set the filename of the texture and re-allocates the DirectX resources for this GUIImage.
|
|
SetItems ( int iItems ) : void |
If the texture has more then 1 frame like an animated gif then you can specify the max# of frames to play with this method
|
|
SetMemoryImageSize ( int width, int height ) : void | ||
SetPosition ( int dwPosX, int dwPosY ) : void | ||
UnLockMemoryImageTexture ( ) : void | ||
UpdateVisibility ( ) : void |
메소드 | 설명 | |
---|---|---|
Animate ( ) : void |
This function will do the animation (when texture is an animated gif) by switching from frame 1->frame2->frame 3->...
|
|
Calculate ( ) : void |
Sets the state to render the image
|
|
Update ( ) : void |
메소드 | 설명 | |
---|---|---|
Cleanup ( ) : void | ||
DrawBorder ( bool flip ) : void | ||
FinalizeBorder ( ) : void | ||
FreeResourcesAndRegEvent ( ) : void | ||
GUIPropertyManager_OnPropertyChanged ( string tag, string tagValue ) : void | ||
OnListTexturesDisposedEvent ( object sender, EventArgs e ) : void | ||
OnPackedTexturesDisposedEvent ( object sender, EventArgs e ) : void | ||
ParseParameters ( string valueText ) : int[] | ||
ReleaseTexture ( string file ) : void | ||
UnsubscribeAndReleaseListTextures ( ) : void | ||
UnsubscribeListTextures ( ) : void | ||
UnsubscribeOnPropertyChanged ( ) : void |
public Animate ( float timePassed, Animator animator ) : void | ||
timePassed | float | |
animator | Animator | |
리턴 | void |
public GUIImage ( int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight, string strTexture, Color color ) : System | ||
dwParentID | int | |
dwControlId | int | |
dwPosX | int | |
dwPosY | int | |
dwWidth | int | |
dwHeight | int | |
strTexture | string | |
color | Color | |
리턴 | System |
public GUIImage ( int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight, string strTexture, Color color, int border, int strBorderPosition, bool borderTextureRotate, bool borderTextureRepeat, Color borderColor ) : System | ||
dwParentID | int | |
dwControlId | int | |
dwPosX | int | |
dwPosY | int | |
dwWidth | int | |
dwHeight | int | |
strTexture | string | |
color | Color | |
border | int | |
strBorderPosition | int | |
borderTextureRotate | bool | |
borderTextureRepeat | bool | |
borderColor | Color | |
리턴 | System |
public GUIImage ( int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight, string strTexture, long dwColorKey ) : System | ||
dwParentID | int | The parent of this GUIImage control. |
dwControlId | int | The ID of this GUIImage control. |
dwPosX | int | The X position of this GUIImage control. |
dwPosY | int | The Y position of this GUIImage control. |
dwWidth | int | The width of this GUIImage control. |
dwHeight | int | The height of this GUIImage control. |
strTexture | string | The filename of the texture of this GUIImage control. |
dwColorKey | long | The color that indicates transparancy. |
리턴 | System |
public GUIImage ( int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight, string strTexture, long dwColorKey, int border, int strBorderPosition, bool borderTextureRepeat, bool borderTextureRotate, long dwBorderColorKey ) : System | ||
dwParentID | int | |
dwControlId | int | |
dwPosX | int | |
dwPosY | int | |
dwWidth | int | |
dwHeight | int | |
strTexture | string | |
dwColorKey | long | |
border | int | |
strBorderPosition | int | |
borderTextureRepeat | bool | |
borderTextureRotate | bool | |
dwBorderColorKey | long | |
리턴 | System |
public GetCenter ( float ¢erX, float ¢erY ) : void | ||
centerX | float | |
centerY | float | |
리턴 | void |
public LockMemoryImageTexture ( Bitmap &bitmap ) : bool | ||
bitmap | Bitmap | |
리턴 | bool |
public RenderRect ( float timePassed, Rectangle rectSrc, Rectangle rectDst ) : void | ||
timePassed | float | |
rectSrc | Rectangle | |
rectDst | Rectangle | |
리턴 | void |
public SetBorder ( string border, BorderPosition position, bool textureRepeat, bool textureRotate, string textureFilename, long colorKey, bool hasCorners, bool cornerTextureRotate ) : void | ||
border | string | |
position | BorderPosition | |
textureRepeat | bool | |
textureRotate | bool | |
textureFilename | string | |
colorKey | long | |
hasCorners | bool | |
cornerTextureRotate | bool | |
리턴 | void |
public SetMemoryImageSize ( int width, int height ) : void | ||
width | int | |
height | int | |
리턴 | void |
public SetPosition ( int dwPosX, int dwPosY ) : void | ||
dwPosX | int | |
dwPosY | int | |
리턴 | void |