예제 #1
0
        /// <summary>
        /// The draw.
        /// </summary>
        /// <param name="context">
        /// The context.
        /// </param>
        /// <param name="skin">
        /// The skin.
        /// </param>
        /// <param name="layout">
        /// The layout.
        /// </param>
        public void Draw(IRenderContext context, ISkin skin, Rectangle layout)
        {
            skin.DrawForm(context, layout, this);
            foreach (var kv in this.LabelsWithLayouts(layout))
            {
                kv.Key.Draw(context, skin, kv.Value);
            }

            foreach (var kv in this.ChildrenWithLayouts(layout))
            {
                kv.Key.Draw(context, skin, kv.Value);
            }
        }
예제 #2
0
파일: Form.cs 프로젝트: johnsonc/Protogame
        /// <summary>
        /// The draw.
        /// </summary>
        /// <param name="context">
        /// The context.
        /// </param>
        /// <param name="skin">
        /// The skin.
        /// </param>
        /// <param name="layout">
        /// The layout.
        /// </param>
        public void Draw(IRenderContext context, ISkin skin, Rectangle layout)
        {
            skin.DrawForm(context, layout, this);
            foreach (var kv in this.LabelsWithLayouts(layout))
            {
                kv.Key.Draw(context, skin, kv.Value);
            }

            foreach (var kv in this.ChildrenWithLayouts(layout))
            {
                kv.Key.Draw(context, skin, kv.Value);
            }
        }