Changeset 213:36f5cb12e1a2 for dwt/custom/StyleRange.d
- Timestamp:
- 05/17/08 11:34:28 (8 months ago)
- Files:
-
- dwt/custom/StyleRange.d (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dwt/custom/StyleRange.d
r212 r213 1 1 /******************************************************************************* 2 * Copyright (c) 2000, 200 6IBM Corporation and others.2 * Copyright (c) 2000, 2007 IBM Corporation and others. 3 3 * All rights reserved. This program and the accompanying materials 4 4 * are made available under the terms of the Eclipse Public License v1.0 … … 47 47 public int fontStyle = DWT.NORMAL; 48 48 49 /++50 + DWT extension for clone implementation51 +/52 protected this( StyleRange other ){53 super( other );54 start = other.start;55 length = other.length;56 fontStyle = other.fontStyle;57 }58 59 49 /** 60 50 * Create a new style range with no styles … … 63 53 */ 64 54 public this() { 65 super(null, null, null); 55 } 56 57 /** 58 * Create a new style range from an existing text style. 59 * 60 *@param style the text style to copy 61 * 62 *@since 3.4 63 */ 64 public this(TextStyle style) { 65 super(style); 66 66 } 67 67 … … 145 145 if (underline) return false; 146 146 if (strikeout) return false; 147 if (borderStyle !is DWT.NONE) return false; 147 148 return true; 148 149 }
