.. oe:namespace:: OEDepict

.. oe:constnamespace:: OEAlignment

   This namespace contains constants that control how texts are
   aligned.

   .. seealso::

      * :oe:meth:`OEDepict::OEFont::GetAlignment` method
      * :oe:meth:`OEDepict::OEFont::SetAlignment` method
      * :oe:meth:`OEDepict::OEImageBase::DrawText`

   The :oe:constns:`OEDepict::OEAlignment` namespace contains the
   following constants:

   .. ################################################################
      #
      ################################################################

   .. oe:constant:: Default

      The default text alignment style is 
      :oe:const:`OEDepict::OEAlignment::Center`.


   .. ################################################################
      #
      ################################################################

   .. oe:constant:: Center

      The text is aligned to the center of the position passed as the 
      first parameter of the :oe:meth:`OEDepict::OEImageBase::DrawText`
      method. 
      (This position is marked with a red dot in
      :ref:`Figure: Example of using the 'Center' alignment<figure_OEAlignment_Center>`)

      .. _figure_OEAlignment_Center:

      .. figure:: ../images/OEAlignment_Center.*
         :align:  center

         **Example of using the 'Center' alignment**


   .. ################################################################
      #
      ################################################################

   .. oe:constant:: Left

      The text is left adjusted to the position passed as the 
      first parameter of the :oe:meth:`OEDepict::OEImageBase::DrawText`
      method. 
      (This position is marked with a red dot in
      :ref:`Figure: Example of using the 'Left' alignment<figure_OEAlignment_Left>`)

      .. _figure_OEAlignment_Left:

      .. figure:: ../images/OEAlignment_Left.*
         :align:  center

         **Example of using the 'Left' alignment**


   .. ################################################################
      #
      ################################################################

   .. oe:constant:: Right

      The text is right adjusted to the position passed as the 
      first parameter of the :oe:meth:`OEDepict::OEImageBase::DrawText`
      method. 
      (This position is marked with a red dot in
      :ref:`Figure: Example of using the 'Right' alignment<figure_OEAlignment_Right>`)

      .. _figure_OEAlignment_Right:

      .. figure:: ../images/OEAlignment_Right.*
         :align:  center

         **Example of using the 'Right' alignment**
