using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace BansheeEngine
{
/** @addtogroup GUI
* @{
*/
///
/// Holds data used for displaying content in a GUIElement. Content can consist of a string, image, a tooltip or none of
/// those.
///
[StructLayout(LayoutKind.Sequential), SerializeObject]
public partial struct GUIContent
{
/// Initializes the struct with default values.
public static GUIContent Default()
{
GUIContent value = new GUIContent();
value.text = null;
value.images = new GUIContentImages();
value.tooltip = null;
return value;
}
/// Constructs content with just a string.
public GUIContent(LocString text)
{
this.text = text;
this.images = new GUIContentImages();
this.tooltip = null;
}
/// Constructs content with a string and a tooltip.
public GUIContent(LocString text, LocString tooltip)
{
this.text = text;
this.images = new GUIContentImages();
this.tooltip = tooltip;
}
/// Constructs content with just an image.
public GUIContent(GUIContentImages image)
{
this.text = null;
this.images = image;
this.tooltip = null;
}
/// Constructs content with an image and a tooltip.
public GUIContent(GUIContentImages image, LocString tooltip)
{
this.text = null;
this.images = image;
this.tooltip = tooltip;
}
/// Constructs content with a string and an image.
public GUIContent(LocString text, GUIContentImages image)
{
this.text = text;
this.images = image;
this.tooltip = null;
}
/// Constructs content with a string, an image and a tooltip.
public GUIContent(LocString text, GUIContentImages image, LocString tooltip)
{
this.text = text;
this.images = image;
this.tooltip = tooltip;
}
public LocString text;
public GUIContentImages images;
public LocString tooltip;
}
/** @} */
}