示例#1
0
 /// <param name="t">The string to measure.</param>
 protected Vector2 MeasureString(string t) => GuiHelper.MeasureString(t);
示例#2
0
 /// <summary>
 /// Cleans up the drawing limits that were set by SetScissor.
 /// </summary>
 public virtual void ResetScissor()
 {
     GuiHelper.ResetScissor(_oldScissor);
 }
示例#3
0
        // Group: Private Functions

        /// <summary>
        /// Draws a string using the Font, FontSize and UI scale.
        /// </summary>
        /// <param name="t">The string to draw.</param>
        /// <param name="p">The position for the string.</param>
        /// <param name="c">The color for the string.</param>
        protected void DrawString(string t, Vector2 p, Color c) => GuiHelper.DrawString(t, p, c);
示例#4
0
 /// <summary>
 /// Sets the drawing limits for this component.
 /// </summary>
 public virtual void SetScissor()
 {
     _oldScissor = _s.GraphicsDevice.ScissorRectangle;
     GuiHelper.SetScissor(ClippingRect);
 }