comparison dwt/widgets/Layout.d @ 37:642f460a0908

Fixed a lot of compile errors, a "hello world" app compiles now
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Fri, 10 Oct 2008 12:29:48 +0200
parents 2952d5604c0a
children d8635bb48c7c
comparison
equal deleted inserted replaced
36:db5a898b2119 37:642f460a0908
60 * @see Control#getBounds 60 * @see Control#getBounds
61 * @see Control#getSize 61 * @see Control#getSize
62 * @see Control#pack(bool) 62 * @see Control#pack(bool)
63 * @see "computeTrim, getClientArea for controls that implement them" 63 * @see "computeTrim, getClientArea for controls that implement them"
64 */ 64 */
65 protected abstract Point computeSize (Composite composite, int wHint, int hHint, bool flushCache); 65 public abstract Point computeSize (Composite composite, int wHint, int hHint, bool flushCache);
66 66
67 /** 67 /**
68 * Instruct the layout to flush any cached values 68 * Instruct the layout to flush any cached values
69 * associated with the control specified in the argument 69 * associated with the control specified in the argument
70 * <code>control</code>. 70 * <code>control</code>.
72 * @param control a control managed by this layout 72 * @param control a control managed by this layout
73 * @return true if the Layout has flushed all cached information associated with control 73 * @return true if the Layout has flushed all cached information associated with control
74 * 74 *
75 * @since 3.1 75 * @since 3.1
76 */ 76 */
77 protected bool flushCache (Control control) { 77 public bool flushCache (Control control) {
78 return false; 78 return false;
79 } 79 }
80 80
81 /** 81 /**
82 * Lays out the children of the specified composite 82 * Lays out the children of the specified composite
104 * </p> 104 * </p>
105 * 105 *
106 * @param composite a composite widget using this layout 106 * @param composite a composite widget using this layout
107 * @param flushCache <code>true</code> means flush cached layout values 107 * @param flushCache <code>true</code> means flush cached layout values
108 */ 108 */
109 protected abstract void layout (Composite composite, bool flushCache); 109 public abstract void layout (Composite composite, bool flushCache);
110 } 110 }