public static void Rect(IControlPropertiesValue Params, DrawRect rect, Graphics graf) { DrawRectMethods.DrawRectangle(Params["Rect", rect.Rect].As <Rectangle>(), graf, Params["Color"].AsColor(), Params["Width", rect.BorderSize].AsInteger(), Params["CornerRadius"].AsInteger(), Params["Sides", () => { return(new RectSides() { Full = true }); }].As <RectSides>()); }
public static void FillGradient(IControlPropertiesValue Params, DrawRect rect, Graphics graf) { DrawRectMethods.FillRectGradient(Params["Rect", rect.Rect].As <Rectangle>(), graf, Params["Color"].AsColor(), Params["Color2"].AsColor(), Params["Direction", SimpleDirection.Vertical].As <SimpleDirection>(), Params["CornerRadius"].AsInteger()); }
public static void FillRect(IControlPropertiesValue Params, DrawRect rect, Graphics graf) { DrawRectMethods.FillRect(Params["Rect", rect.Rect].As <Rectangle>(), graf, Params["Color"].AsColor(), Params["CornerRadius"].AsInteger()); }