Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages | Examples

backgrnd.h

00001 //  Copyright (c) 1996-2001 by Autodesk, Inc.
00002 //
00003 //  By using this code, you are agreeing to the terms and conditions of
00004 //  the License Agreement included in the documentation for this code.
00005 //
00006 //  AUTODESK MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AS TO THE CORRECTNESS
00007 //  OF THIS CODE OR ANY DERIVATIVE WORKS WHICH INCORPORATE IT. AUTODESK
00008 //  PROVIDES THE CODE ON AN "AS-IS" BASIS AND EXPLICITLY DISCLAIMS ANY
00009 //  LIABILITY, INCLUDING CONSEQUENTIAL AND INCIDENTAL DAMAGES FOR ERRORS,
00010 //  OMISSIONS, AND OTHER PROBLEMS IN THE CODE.
00011 //
00012 //  Use, duplication, or disclosure by the U.S. Government is subject to
00013 //  restrictions set forth in FAR 52.227-19 (Commercial Computer Software
00014 //  Restricted Rights) and DFAR 252.227-7013(c)(1)(ii) (Rights in Technical
00015 //  Data and Computer Software), as applicable.
00016 //
00017 
00018 #if !defined BACKGRND_HEADER
00019 #define BACKGRND_HEADER
00020 
00021 #include "whiptk/whipcore.h"
00022 #include "whiptk/attribute.h"
00023 #include "whiptk/color.h"
00024 
00025 class WT_File;
00026 
00031 
00032 
00039 class WHIPTK_API WT_Background : public WT_Attribute
00040 {
00041 
00042 private:
00043     WT_Color        m_color;
00044     enum
00045     {
00046         Getting_Color,
00047         Getting_Close_Paren
00048     } m_stage;
00049 
00050 public:
00051 
00053 
00054     WT_Background()
00055         : m_color(0,0,0,255)
00056         , m_stage(Getting_Color)
00057     { }
00058 
00060     WT_Background(WT_Color color)
00061         : m_color(color)
00062         , m_stage(Getting_Color)
00063     { }
00065 
00067     WT_ID            object_id() const;
00068     WT_Result        materialize(WT_Opcode const & opcode, WT_File & file);
00069     WT_Result        process(WT_File & file);
00070     WT_Result        skip_operand(WT_Opcode const & opcode, WT_File & file);
00071     WT_Result        serialize (WT_File & file) const;
00072     WT_Result        sync (WT_File & file) const;
00073     WT_Boolean       operator== (WT_Attribute const & attrib) const;
00075 
00077 
00078     void       set(
00079         WT_Color const & color 
00080         );
00082     WT_Color   color() const
00083         ;
00085 
00087 
00089     static WT_Result default_process(
00090         WT_Background & item, 
00091         WT_File & file 
00092         );
00093 };
00094 
00096 
00097 #endif // BACKGRND_HEADER

Generated on Tue May 17 12:07:43 2005 for Autodesk DWF Whip 2D Toolkit by  doxygen 1.4.1