Skip to content

Commit 8011ec2

Browse files
committed
Improved Window Control
Added basic set features to the window class so the user can edit the JFrame during runtime.
1 parent 4421e02 commit 8011ec2

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

src/studios/vanish/engine/Window.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,4 +390,21 @@ public GraphicsUnit GetNullGraphicsUnit()
390390
{
391391
return new GraphicsUnit(null, FieldOfView, Size, Resolution, FillMode, Camera, CalculateIntersections, RenderLights);
392392
}
393+
public void SetSize(Size _size)
394+
{
395+
Size = new Size(_size.Width, _size.Height);
396+
window.setSize(_size.Width, _size.Height);
397+
}
398+
public void SetMinimumSize(Size _size)
399+
{
400+
window.setMinimumSize(new Dimension(_size.Width, _size.Height));
401+
}
402+
public void SetTitle(String _title)
403+
{
404+
window.setTitle(_title);
405+
}
406+
public JFrame GetInnerWindow()
407+
{
408+
return window;
409+
}
393410
}

0 commit comments

Comments
 (0)