oaTextAlign.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaTextAlign.h
00004 //
00005 // This file contains the definition for the oaTextAlign class. This class
00006 // implements an enumerated text-alignment type.
00007 //
00008 // *****************************************************************************
00009 // Except as specified in the OpenAccess terms of use of Cadence or Silicon
00010 // Integration Initiative, this material may not be copied, modified,
00011 // re-published, uploaded, executed, or distributed in any way, in any medium,
00012 // in whole or in part, without prior written permission from Cadence.
00013 //
00014 //                Copyright 2002-2005 Cadence Design Systems, Inc.
00015 //                           All Rights Reserved.
00016 //
00017 //  $Author: icftcm $
00018 //  $Revision: #1 $
00019 //  $Date: 2010/08/09 $
00020 //  $State: Exp $
00021 // *****************************************************************************
00022 // *****************************************************************************
00023 
00024 
00025 
00026 #if !defined(oaTextAlign_P)
00027 #define oaTextAlign_P
00028 
00029 
00030 
00031 // *****************************************************************************
00032 // Nested includes
00033 // *****************************************************************************
00034 #include "oaDesignDBTypes.h"
00035 
00036 
00037 
00038 // *****************************************************************************
00039 // Declare and define types in the OpenAccess namespace.
00040 // *****************************************************************************
00041 BEGIN_OA_NAMESPACE
00042 
00043 
00044 
00045 // *****************************************************************************
00046 // oaTextAlignEnum
00047 // *****************************************************************************
00048 #define oavNumTextAligns    9
00049 
00050 enum oaTextAlignEnum {
00051     oacUpperLeftTextAlign       = 0,
00052     oacCenterLeftTextAlign      = 1,
00053     oacLowerLeftTextAlign       = 2,
00054     oacUpperCenterTextAlign     = 3,
00055     oacCenterCenterTextAlign    = 4,
00056     oacLowerCenterTextAlign     = 5,
00057     oacUpperRightTextAlign      = 6,
00058     oacCenterRightTextAlign     = 7,
00059     oacLowerRightTextAlign      = 8
00060 };
00061 
00062 
00063 
00064 // *****************************************************************************
00065 // oaTextAlign
00066 // *****************************************************************************
00067 class OA_DESIGN_DLL_API oaTextAlign {
00068 public:
00069                             oaTextAlign(oaTextAlignEnum valueIn);
00070                             oaTextAlign(const oaString &name);
00071                             ~oaTextAlign();
00072 
00073     const oaString          &getName() const;
00074 
00075                             operator                oaTextAlignEnum() const;
00076 
00077 private:
00078     oaTextAlignEnum         value;
00079 
00080     static const oaString   names[];
00081 };
00082 
00083 
00084 
00085 END_OA_NAMESPACE
00086 
00087 #endif

Return to top of page