rj-action-library/Runtime/UI/Styling/UIStyling.cs

26 lines
447 B
C#
Raw Normal View History

2024-08-09 13:52:49 +00:00
using Godot;
using Rokojori;
namespace Rokojori
{
public class UIStyling
{
public static bool CanPosition( Control control )
{
2024-09-14 06:41:52 +00:00
if ( control is UIRegion || control is UIImage || control is UIBorderImage || control is UIText )
2024-08-09 13:52:49 +00:00
{
return true;
}
return false;
}
public static bool HasInnerMargins( Control control )
{
return control is UIImage || control is UIText;
}
}
}