MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / SaveBounds

Method SaveBounds

Source/Editor/Modules/WindowsModule.cs:504–517  ·  view source on GitHub ↗
(XmlWriter writer, Window win)

Source from the content-addressed store, hash-verified

502 }
503
504 private static void SaveBounds(XmlWriter writer, Window win)
505 {
506 writer.WriteStartElement("Bounds");
507 {
508 var bounds = win.ClientBounds;
509 writer.WriteAttributeString("X", bounds.X.ToString(CultureInfo.InvariantCulture));
510 writer.WriteAttributeString("Y", bounds.Y.ToString(CultureInfo.InvariantCulture));
511 writer.WriteAttributeString("Width", bounds.Width.ToString(CultureInfo.InvariantCulture));
512 writer.WriteAttributeString("Height", bounds.Height.ToString(CultureInfo.InvariantCulture));
513 writer.WriteAttributeString("IsMaximized", win.IsMaximized.ToString());
514 writer.WriteAttributeString("IsMinimized", win.IsMinimized.ToString());
515 }
516 writer.WriteEndElement();
517 }
518
519 private static Rectangle LoadBounds(XmlElement node, ref bool isMaximized, ref bool isMinimized)
520 {

Callers

nothing calls this directly

Calls 1

ToStringMethod · 0.45

Tested by

no test coverage detected