Example #1
0
 /// <summary>
 /// Returns the action fits to the position of a point in the specified rectangle.
 /// </summary>
 /// <param name="size">Tolerable limit size.</param>
 /// <param name="x">X point.</param>
 /// <param name="y">Y point.</param>
 /// <param name="sizeRect">Rectangle of sizes.</param>
 /// <param name="selectRect">Rectangle of selection.</param>
 /// <param name="isSelected">Indicates, is this rectangle selected or not?</param>
 /// <param name="locked">Indicates, is this ectangle locked or not?</param>
 /// <returns>Action.</returns>
 public static StiAction PointInRect(float size, float x, float y,
                                     RectangleF sizeRect, RectangleF selectRect, bool isSelected, bool locked)
 {
     return(PointInRect(size, x, y,
                        RectangleD.CreateFromRectangle(sizeRect),
                        RectangleD.CreateFromRectangle(selectRect),
                        isSelected, locked));
 }
Example #2
0
 public static void DrawString(Graphics g, string text, Font font, Brush brush,
                               RectangleF rect, StringFormat stringFormat, float angle)
 {
     DrawString(g, text, font, brush, RectangleD.CreateFromRectangle(rect), stringFormat, angle);
 }
Example #3
0
 /// <summary>
 /// Returns the gdi brush from the report brush.
 /// </summary>
 /// <param name="brush">Report brush.</param>
 /// <param name="rect">Rectangle for gradient.</param>
 /// <returns>Gdi brush.</returns>
 public static Brush GetBrush(StiBrush brush, RectangleF rect)
 {
     return(GetBrush(brush, RectangleD.CreateFromRectangle(rect)));
 }
Example #4
0
 /// <summary>
 /// Checks does the point fit into the position.
 /// </summary>
 /// <param name="x">X point.</param>
 /// <param name="y">Y point.</param>
 /// <param name="rect"></param>
 /// <returns>true, if the point fits to the position, and false, if not.</returns>
 public static bool PointInRect(float x, float y, RectangleF rect)
 {
     return(PointInRect(x, y, RectangleD.CreateFromRectangle(rect)));
 }