diff options
Diffstat (limited to 'o3d/plugin/idl/pattern.idl')
-rw-r--r-- | o3d/plugin/idl/pattern.idl | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/o3d/plugin/idl/pattern.idl b/o3d/plugin/idl/pattern.idl index bed3daf..d8cbb6a7 100644 --- a/o3d/plugin/idl/pattern.idl +++ b/o3d/plugin/idl/pattern.idl @@ -1,5 +1,5 @@ /* - * Copyright 2010, Google Inc. + * Copyright 2011, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -38,6 +38,25 @@ namespace o2d { %] [nocpp, include="core/cross/cairo/pattern.h"] class Pattern : ObjectBase { %[ + Available resizing filters. + + \var Filter, + \li FAST, A high-performance filter, with quality similar to NEAREST + \li GOOD, A reasonable-performance filter, with quality similar to BILINEAR + \li BEST, The highest-quality available, performance may not be suitable + for interactive use + \li NEAREST, Nearest-neighbor filtering + \li BILINEAR, Linear interpolation in two dimensions + %] + enum Filter { + FAST, + GOOD, + BEST, + NEAREST, + BILINEAR + }; + + %[ Create a pattern that paints the content of a texture. \param pack The Pack to add the created object to. @@ -93,6 +112,11 @@ namespace o2d { double yy, double x0, double y0); + + %[ + The filter to use when resizing this Pattern. + %] + [setter] Filter filter; }; // Pattern } // namespace o2d |