Changed Visibility of Extension classes to internal

This commit is contained in:
miku-666
2023-07-17 19:12:34 +02:00
parent a6b01eaa35
commit a900f4670c
5 changed files with 9 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
namespace PckStudio.Extensions
{
public enum BlendMode
internal enum BlendMode
{
Add,
Subtract,

View File

@@ -7,7 +7,7 @@ using System.Text;
namespace PckStudio.Extensions
{
public struct GraphicsConfig
internal struct GraphicsConfig
{
public GraphicsConfig()
{

View File

@@ -2,27 +2,27 @@
namespace PckStudio.Extensions
{
struct ImageSection
internal struct ImageSection
{
public readonly Size Size;
public readonly Point Point;
public readonly Rectangle Area;
internal ImageSection(Size sectionSize, int index, ImageLayoutDirection layoutDirection)
internal ImageSection(Size originalSize, int index, ImageLayoutDirection layoutDirection)
{
switch(layoutDirection)
{
case ImageLayoutDirection.Horizontal:
{
Size = new Size(sectionSize.Height, sectionSize.Height);
Point = new Point(index * sectionSize.Height, 0);
Size = new Size(originalSize.Height, originalSize.Height);
Point = new Point(index * originalSize.Height, 0);
}
break;
case ImageLayoutDirection.Vertical:
{
Size = new Size(sectionSize.Width, sectionSize.Width);
Point = new Point(0, index * sectionSize.Width);
Size = new Size(originalSize.Width, originalSize.Width);
Point = new Point(0, index * originalSize.Width);
}
break;

View File

@@ -2,7 +2,7 @@
namespace PckStudio.Extensions
{
public static class ListExtensions
internal static class ListExtensions
{
public static IList<T> Swap<T>(this IList<T> list, int index1, int index2)
{

View File

@@ -34,6 +34,5 @@ namespace PckStudio.Extensions
string ext = Path.GetExtension(file.Filename);
return file.Filename.Remove(file.Filename.Length - (MipMap.Length + 1) - ext.Length) + ext;
}
}
}