WGL_XBMC
The GUILabel class is a derivative of the GUIControl class
GUILabel is designed to be used to show just text (with no images) on the screen
This class class inheirents the standard functions and varibles for being a GUIControl
The GUIControl class is a derivative of the GUIControl class
GUIControl is designed to be used as a base class new controls
This class class has the standard functions and varibles for a control
Constructor for an GUIlabel class.
Specifies the control's id. The value this takes depends on the control type, and the window that you are using the control on.
Specifies where the left edge of the button should be drawn.
Specifies where the top edge of the button should be drawn.
Specifies the width of the button. The texturefocus and texturenofocus images will be resized to fit into this width.
Specifies the height of the button. The texturefocus and texturenofocus images will be resized to fit into this height.
The label / text used on the button.
Specifies the horizontal alignment of a Label on the button, Use HorizontalAlignment.
Specifies the BitmapFont to use for the label.
SetTextColor function for an GUILabel
This function is used to set the text color and shadow color (shadow color not used yet)
Specifies the color the text should be, a Color object
Specifies the shadowcolor the text should be, a Color object (not rendered)
TypeName function for an GUILabel
This function returns a string with the name of the type in this case GUILabel
TypeName function for an GUIImage
This function returns a string with the name of the type in this case GUIImage
Bitmap font class for XNA
A dictionary of all currently defined fonts
Create a new font from the info in the specified font descriptor (XML) file
Font descriptor file (.xml)
Create a new font from the info in the specified font descriptor (XML) file
Content manager
Font descriptor file (.xml)
Destructor for BitmapFont. Remove font from list of active fonts.
Dispose of all of the non-managed resources for this object
Reset the font when the device has changed
The new device
Should we kern adjacent characters?
Calculate the width of the given string.
String format
String format arguments
Width (in pixels) of the string
Calculate the number of characters that fit in the given width.
Maximum string width
String
Number of characters that fit
Width of substring
Current pen position
Set the current pen position
X-coord
Y-coord
Current color used for drawing text
Draw the given string at (x,y).
The text color is inherited from the last draw command (default=White).
X-coord
Y-coord
String format
String format args
Width of string (in pixels)
Draw the given string at (x,y) using the specified color
X-coord
Y-coord
Text color
String format
String format args
Width of string (in pixels)
Draw the given string using the specified color.
The text drawing location is immediately after the last drawn text (default=0,0).
Text color
String format
String format args
Width of string (in pixels)
Draw the given string at (x,y).
The text drawing location is immediately after the last drawn text (default=0,0).
The text color is inherited from the last draw command (default=White).
String format
String format args
Width of string (in pixels)
Draw the given string at vOrigin using the specified color
(x,y) coord
Text color
String format
String format args
Width of string (in pixels)
Private version of DrawString that expects the string to be formatted already
(x,y) coord
Text color
String
Width of string (in pixels)
Get the kern value for the given pair of characters
Left character
Right character
Amount to kern (in pixels)
Draw text formatted to fit in the specified rectangle
The rectangle to fit the text
Text color
String format
String format args
Save the current font rendering state
Struct to store the save state
Restore the font rendering state
Previously saved font state
Temporarily override the font's SpriteBatch with the given SpriteBatch.
The new SpriteBatch (or null to reset)
When drawing text using the SpriteBatch override, Begin/End will not be called on the SpriteBatch.
Use null to reset back to the font's original SpriteBatch.
Return the font associated with the given name.
Name of the font
The font
Load the font data from an XML font descriptor file
XML node list containing the entire font descriptor file
Load the data from the "font" node
XML node list containing the "font" node's children
Load the data from the "bitmaps" node
XML node list containing the "bitmaps" node's children
Load the data from the "glyphs" node
XML node list containing the "glyphs" node's children
Load the data from the "kernpairs" node
XML node list containing the "kernpairs" node's children
Get the XML attribute value
XML node
Attribute name
Attribute value, or the empty string if the attribute doesn't exist
The name of this font
The name of the font file
Enable/disable kerning
Distance from top of font to the baseline
Distance from top to bottom of the font
The depth at which to draw the font
The text alignment. This is only used by the TextBox routines
Current pen position
Current color used for drawing text
Save font rendering state so that it can be saved/restored
Info for each glyph in the font - where to find the glyph image and
other properties
Info for each font bitmap
The GUIButton class is a derivative of the GUIControl class
GUIButton is designed to be used as a button (it features a focus and no focus texture)
This class class inheirents the standard functions and varibles for being a GUIControl
Constructor for an GUIButton class.
Sprite Batch
The current Graphic Device
Specifies the control's id. The value this takes depends on the control type, and the window that you are using the control on. Obviously they should be unique for buttons, given that they are navigatible, and you want the onup, onleft etc. to make sense.
Specifies where the left edge of the button should be drawn.
Specifies where the top edge of the button should be drawn.
Specifies the width of the button. The texturefocus and texturenofocus images will be resized to fit into this width.
Specifies the height of the button. The texturefocus and texturenofocus images will be resized to fit into this height.
The label / text used on the button.
Specifies the image file which should be displayed when the button has focus.
Specifies the image file which should be displayed when the button does not have focus.
Specifies the horizontal alignment of a Label on the button, Use HorizontalAlignment.
Specifies the vertical alignment of a Label on the button, Use VerticalAlignment.
Specifies the BitmapFont to use for the label.
Constructor for an GUIButton class.
Sprite Batch
The current Graphic Device
Specifies the control's id. The value this takes depends on the control type, and the window that you are using the control on. There are special control id's that must be present in each window. Any other controls that the skinner adds can be any id they like. Obviously they should be unique for buttons, given that they are navigatible, and you want the onup, onleft etc. to make sense.
Specifies where the left edge of the button should be drawn.
Specifies where the top edge of the button should be drawn.
Specifies the width of the button. The texturefocus and texturenofocus images will be resized to fit into this width.
Specifies the height of the button. The texturefocus and texturenofocus images will be resized to fit into this height.
The label / text used on the button.
Specifies the 2D Texture which should be displayed when the button has focus.
Specifies the 2D Texture which should be displayed when the button does not have focus.
Specifies the horizontal alignment of a Label on the button, Use HorizontalAlignment.
Specifies the vertical alignment of a Label on the button, Use VerticalAlignment.
Specifies the BitmapFont to use for the label.
SetTextColor function for an GUIButton
This function is used to set the text color and shadow color (shadow color not used yet)
Specifies the color the text should be, a Color object
Specifies the shadowcolor the text should be, a Color object (not rendered)
TypeName function for an GUIButton
This function returns a string with the name of the type in this case GUIButton