/*--------------------------------------------------------------------------
  Project:  Manual 2D Library - m2d
  File:     uiResDefines.h

  Copyright (C)2007-2009 Nintendo  All Rights Reserved.

  These coded instructions, statements, and computer programs contain
  proprietary information of Nintendo of America Inc. and/or Nintendo
  Company Ltd., and are protected by Federal copyright law. They may
  not be disclosed to third parties or copied or duplicated in any form,
  in whole or in part, without the prior written consent of Nintendo.

  $Revision: 280 $
 *-------------------------------------------------------------------------*/

#ifndef NTMV_M2D_UIRESDEFINES_H_
#define NTMV_M2D_UIRESDEFINES_H_

#if _MSC_VER > 1000 || defined(__CWCC__)
#pragma once
#endif

#include <nitro/gx/gx.h>

// Archive name for identifying a UI resource
#define NTMV_M2D_UIARCID        "M2U"

// Path to the root directory of a UI resource
#define NTMV_M2D_UIROOTDIR      NTMV_M2D_UIARCID ":/data"

namespace ntmv
{
namespace m2d
{
namespace detail
{

const s16   PAGEHEADERVIEW_WIDTH        = 256;  // Page header width

const s16   PAGEHEADERVIEW_HEIGHT       =  18;  // Page header height

const s16   SCROLLINDICATOR_WIDTH       =  13;  // Scroll indicator width

const s16   SCROLLINDICATOR_HEIGHT      =   8;  // Scroll indicator height

const s16   TOCVIEWTOPCTRL_HEIGHT       =  23;  // Height of the top control panel for the Contents page

const s16   TOCVIEWBTMCTRL_HEIGHT       =  21;  // Height of the bottom control panel for the Contents page

const s16   TOCVIEW_WIDTH               = GX_LCD_SIZE_X;

const s16   TOCVIEW_HEIGHT_MAX          = GX_LCD_SIZE_Y;

const s16   TOCVIEW_HEIGHT_MIN          = TOCVIEWTOPCTRL_HEIGHT + TOCVIEWBTMCTRL_HEIGHT;

// Height of the PageView displayed on the Top Screen
const s16   UPPAGEVIEW_HEIGHT           = GX_LCD_SIZE_Y - PAGEHEADERVIEW_HEIGHT;

// Height of the PageView displayed on the Bottom Screen
const s16   DOWNPAGEVIEW_HEIGHT         = GX_LCD_SIZE_Y - TOCVIEW_HEIGHT_MIN;

// Height of the entire PageView
const s16   WHOLEPAGEVIEW_HEIGHT        = UPPAGEVIEW_HEIGHT + DOWNPAGEVIEW_HEIGHT;

// Minimum page height
const s16   PAGEHEIGHT_MIN              = UPPAGEVIEW_HEIGHT;

}   // namespace detail
}   // namespace m2d
}   // namespace ntmv

/* NTMV_M2D_UIRESDEFINES_H_ */
#endif
