#ifndef IMAGES_TEXTLABEL_H
#define IMAGES_TEXTLABEL_H
/*
**  $VER: textlabel.h 1.1 (25.6.95)
**
**  Interface definitions for BOOPSI textlabel image objects.
**
**  (c) Copyright 1994,1995 Hartmut Goebel.
**      All Rights Reserved.
*/

#ifndef EXEC_TYPES_H
#include <exec/types.h>
#endif

#ifndef UTILITY_TAGITEM_H
#include <utility/tagitem.h>
#endif

#ifndef EXEC_LIBRARIES_H
#include <exec/libraries.h>
#endif

#ifndef INTUITION_CLASSES_H
#include <intuition/classes.h>
#endif

/***************************************************************************/

#define TEXTLABELIMAGE       "textlabel.image"

/***************************************************************************/

#define TLA_Dummy                (TAG_User + 50)

#define TLA_Underscore           (TLA_Dummy + 1)
        /* [IS...] (CHAR) - Character for determining the shortcut. */

#define TLA_Reverved0            (TLA_Dummy + 2)

#define TLA_Adjustment           (TLA_Dummy + 3)
        /* [IS...] (BYTEBITS) - Adjustment within the frame of
         * IM_DRAWFRAME. Defaults to adjustCenter. */

#define TLA_Key                  (TLA_Dummy + 4)
        /* [..G..] (CHAR) - Shortcut key of this label. */

#define TLA_Reserved1            (TLA_Dummy + 5)

#define TLA_Text                 (IA_Data)
        /* [IS...] (STRPTR) - pointer to a null terminated
         * array of character.  This attribute is required. */

#define TLA_Font                 (IA_Font)
        /* [IS...] (struct TextFont *) - Font to be used for
         * rendering the label strings.  Defaults to use
         * DrawInfo.font. */

#define TLA_DrawInfo             (SYSIA_DrawInfo)
        /* [IS...] (struct DrawInfoPtr *) - required if aFont is
         * ommitted. */

#define TLA_Mode                 (IA_Mode)
        /* [IS...] (SHORTSET) - Drawing mode to use. */


/***************************************************************************/

/* values for aAdjustment */
#define TLADJUST_Center         0

#define TLADJUST_HCenter        0
#define TLADJUST_HLeft          (1<<0)
#define TLADJUST_HRight         (1<<1)

#define TLADJUST_VCenter        0L
#define TLADJUST_VTop           (1<<2);
#define TLADJUST_VBottom        (1<<3);

/***************************************************************************/

#if INCLUDE_VERSION < 42
/* textlabel.image is an external class library.  OpenLibrary() returns
 * a pointer to a struct ClassLibrary, from which you can obtain the class
 * handle to create objects (textlabel.image is not a public class).
 */

struct ClassLibrary
{
    struct Library       cl_Lib;        /* Embedded library */
    UWORD                cl_pad;        /* Align the structure */
    Class               *cl_Class;      /* Class pointer */
};
#endif /* INCLUDE_VERSION */

/***************************************************************************/
#endif /* IMAGES_TEXTLABEL_H */
