コード例 #1
0
 public override void UpdateShape()
 {
     switch (buttonType)
     {
     default:
     case CaptionButtonType.Close:
         if (buttonDescriptor != null)
         {
             buttonDescriptor.UpdateShape(ShapeDescriptor.ComputeShape(this, Shape.Rectangle));
         }
         if (crossDescriptor != null)
         {
             crossDescriptor.UpdateShape(ShapeDescriptor.Join(
                                             Shapes.DrawLine(4, Color.AntiqueWhite,
                                                             crossTopLeftAbsolutePosition,
                                                             crossTopLeftAbsolutePosition +
                                                             new Vector2(DefaultCrossWidth, DefaultCrossWidth)),
                                             Shapes.DrawLine(4, Color.AntiqueWhite,
                                                             crossTopLeftAbsolutePosition +
                                                             new Vector2(0, DefaultCrossWidth),
                                                             crossTopLeftAbsolutePosition +
                                                             new Vector2(DefaultCrossWidth, 0)
                                                             ))
                                         );
         }
         break;
     }
 }
コード例 #2
0
 public override void UpdateShape()
 {
     if (shape != Shape.Custom && shape != Shape.None && shapeDescriptor != null)
     {
         shapeDescriptor.UpdateShape(ShapeDescriptor.ComputeShape(this, shape));
         shapeDescriptor.Depth = new Depth(depth.WindowLayer, depth.ComponentLayer, depth.ZOrder, depth.UserDepth);
     }
 }
コード例 #3
0
 public override void UpdateShape()
 {
     base.UpdateShape();
     // Updates sub-parts shapes
     boxDescriptor.UpdateShape(Shapes.DrawFullRectangle(absolutePosition, boxSize,
                                                        innerAreaColor, shadingMode, borderSize, borderColor,
                                                        borderStyle, Border.All ^ Border.Right));
 }
コード例 #4
0
        public void ComputeVertices()
        {
            base.UpdateStatus();
            progressAreaSize.Width = (int)(progress * (size.Width - borderSize * 2));
            progressAreaDescriptor.UpdateShape(
                Shapes.DrawRectangle(progressAreaAbsolutePosition, progressAreaSize, colorArray.Highlighted));
            shapeDescriptors[1] = progressAreaDescriptor;

            //progressAreaDescriptor.Depth = new Depth(windowOrder, 1, 0);
        }
コード例 #5
0
        public override void UpdateShape()
        {
            boxDescriptor.UpdateShape(
                Shapes.DrawRectangularOutline(absolutePosition, new Size(DefaultCheckBoxSize, DefaultCheckBoxSize),
                                              borderSize, borderColor, borderStyle, Border.All));
            checkDescriptor.UpdateShape(
                Shapes.DrawPolyLine(borderSize, (isSelected ? colorArray.Selected : Color.Transparent), false,
                                    checkTopLeftAbsolutePosition, checkBottomPositionAbsolutePosition,
                                    checkTopRightAbsolutePosition));
            //shapeDescriptors[0] = boxDescriptor;
            //shapeDescriptors[1] = checkDescriptor;

            //boxDescriptor.Depth = new Depth(windowId, layer, zOrder);
            //checkDescriptor.Depth = new Depth(windowId, layer, zOrder + 1);
        }
コード例 #6
0
 public override void UpdateShape()
 {
     cellDescriptor.UpdateShape(Shapes.DrawFullRectangle(absolutePosition, size, innerAreaColor, shadingMode,
                                                         borderSize, borderColor, borderStyle, style.Borders));
 }
コード例 #7
0
 public override void UpdateShape()
 {
     sliderDescriptor.UpdateShape(Shapes.DrawFullRectangle(
                                      sliderAbsolutePosition, sliderSize, innerAreaColor, Shapes.ShadeTopToBottom,
                                      borderSize, borderColor, borderStyle));
 }
コード例 #8
0
 public override void UpdateShape()
 {
     buttonDescriptor.UpdateShape(ShapeDescriptor.ComputeShape(this, Shape.Rectangle));
 }