Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] GC operations outside paint callback


Is it valid for an application to render directly on a GC, outside a paint callback? E.g., given the code below am I guaranteed to get the expected line on all SWT implementations? I don't think this is spec'd anywhere. Is this "implementation dependent" behavior?

shell = new Shell()
shell.open()
gc = new GC(shell);
gc.drawLine(0, 0, 10, 0);

The JUnit tests don't call GC operations inside a paint callback but they also don't test if a call actually rendered the expected output.

Thanks, Knut

Back to the top