I have been looking into using a generic resizing and repositioning feature into my game, I am creating, based on the window size. My problem is I haven't found a proper function that will regulate a controls size and position based on it's parents original size, new size and set of directions (such as allow resize Y and or X, disallow resize w and or y, allow reposition x and or y, disallow reposition x and or y). I was considering making my own generic function for it and i probably could but when i tested at first it came up with only problematic results where the controls resized not properly. I don't expect anyone to create any code to do this I was just curious if there was a function already out there for it rather then reinventing the wheel.