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; } }
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); } }
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)); }
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); }
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); }
public override void UpdateShape() { cellDescriptor.UpdateShape(Shapes.DrawFullRectangle(absolutePosition, size, innerAreaColor, shadingMode, borderSize, borderColor, borderStyle, style.Borders)); }
public override void UpdateShape() { sliderDescriptor.UpdateShape(Shapes.DrawFullRectangle( sliderAbsolutePosition, sliderSize, innerAreaColor, Shapes.ShadeTopToBottom, borderSize, borderColor, borderStyle)); }
public override void UpdateShape() { buttonDescriptor.UpdateShape(ShapeDescriptor.ComputeShape(this, Shape.Rectangle)); }