<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Windows.Forms;

namespace CSharpGL
{
    /// <summary>
    /// 实现在OpenGL窗口中的UI布局
    /// </summary>
    public interface ILayout : ITreeNode<UIRenderer>
    {
        //event EventHandler afterLayout;

        /// <summary>
        /// the edges of the <see cref="GLCanvas"/> to which a UI’s rect is bound and determines how it is resized with its parent.
        /// <para>something like AnchorStyles.Left | AnchorStyles.Bottom.</para>
        /// </summary>
        System.Windows.Forms.AnchorStyles Anchor { get; set; }

        /// <summary>
        /// Gets or sets the space between viewport and SimpleRect.
        /// </summary>
        System.Windows.Forms.Padding Margin { get; set; }

        /// <summary>
        /// 相对于Parent左下角的位置(Left Down location)
        /// </summary>
        System.Drawing.Point Location { get; set; }

        /// <summary>
        /// Stores width when <see cref="Anchor"/>.Left &amp; <see cref="Anchor"/>.Right is <see cref="Anchor"/>.None.
        /// <para> and height when <see cref="Anchor"/>.Top &amp; <see cref="Anchor"/>.Bottom is <see cref="Anchor"/>.None.</para>
        /// </summary>
        System.Drawing.Size Size { get; set; }

        /// <summary>
        /// 
        /// </summary>
        System.Drawing.Size ParentLastSize { get; set; }

        /// <summary>
        /// 
        /// </summary>
        int zNear { get; set; }

        /// <summary>
        /// 
        /// </summary>
        int zFar { get; set; }

    }
}
<commit_msg>add comment<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Windows.Forms;

namespace CSharpGL
{
    /// <summary>
    /// Supports layout UI element in OpenGL canvas.
    /// 实现在OpenGL窗口中的UI布局
    /// </summary>
    public interface ILayout : ITreeNode<UIRenderer>
    {
        //event EventHandler afterLayout;

        /// <summary>
        /// the edges of the <see cref="GLCanvas"/> to which a UI’s rect is bound and determines how it is resized with its parent.
        /// <para>something like AnchorStyles.Left | AnchorStyles.Bottom.</para>
        /// </summary>
        System.Windows.Forms.AnchorStyles Anchor { get; set; }

        /// <summary>
        /// Gets or sets the space between viewport and SimpleRect.
        /// </summary>
        System.Windows.Forms.Padding Margin { get; set; }

        /// <summary>
        /// 相对于Parent左下角的位置(Left Down location)
        /// </summary>
        System.Drawing.Point Location { get; set; }

        /// <summary>
        /// Stores width when <see cref="Anchor"/>.Left &amp; <see cref="Anchor"/>.Right is <see cref="Anchor"/>.None.
        /// <para> and height when <see cref="Anchor"/>.Top &amp; <see cref="Anchor"/>.Bottom is <see cref="Anchor"/>.None.</para>
        /// </summary>
        System.Drawing.Size Size { get; set; }

        /// <summary>
        /// 
        /// </summary>
        System.Drawing.Size ParentLastSize { get; set; }

        /// <summary>
        /// 
        /// </summary>
        int zNear { get; set; }

        /// <summary>
        /// 
        /// </summary>
        int zFar { get; set; }

    }
}

{'fraction_non_alphanumeric': 0.1569820505019775, 'fraction_numerical': 0.0, 'mean_word_length': 1.7723440134907251, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2966043', 'n_tokens_mistral': 985, 'n_tokens_neox': 972, 'n_words': 258}