Sophie

Sophie

distrib > Mandriva > 2011.0 > i586 > media > contrib-release-debug > by-pkgid > cf0a4bc9dd41be5e72771c8857fae56f > files > 127

briquolo-debug-0.5.7-2mdv2011.0.i586.rpm

/*****************************************************************************
 *
 *  Copyright (C) 2003 Cédric Brégardis <cedric.bregardis@free.fr>
 *
 *  This file is part of BRIQUOLO
 *
 *  BRIQUOLO is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  BRIQUOLO is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with BRIQUOLO; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 *****************************************************************************/
#ifndef MOGL_INTERFACE
#define MOGL_INTERFACE

#include "MOGL_Action.h"

class MOGL_Interface: public MOGL_Action
{
  protected:
    /**
       Correspond au rapport <i>largeur/hauteur</i> de l'affichage.
    */
    float _Rapport;

    /**
       Correspond à la largeur et la hauteur de la fenêtre
    */
    unsigned int _Largeur, _Hauteur;

    /**
       Correspond au niveau de l'interface.
       Les interfaces sont affichée dans l'ordre de leur niveau.
     */
    unsigned int _Niveau;

    /**
       Indique si l'interface est cachée ou non.
     */
    bool _Cacher;
        
  public:
    /**
       Constructeur
     */
    MOGL_Interface();

    /**
       Permet de définir les dimension de la fenêtre.
    */
    virtual void SetDimension(unsigned int p_Largeur, unsigned int p_Hauteur);

    /**
       Méthode d'affichage. Cette méthode est abstraite.
    */
    virtual void Afficher()=0;

    /**
       Permet de récupérer le niveau d'affichage de l'interface.
       Ce niveau est indique l'ordre d'affichage des différents type d'interface.
       Plus le niveau est bas, plus l'interface est affichée en premier.
       Les classes spécialisant MOGL_Interface doivent dont spécifier MOGL_Interface::_Niveau
     */
    virtual unsigned int GetNiveau() const;

    /**
       Indique si l'interface est cachée.
       @return <i>true</i> si l'interface est cachée, <i>false</i> sinon.
     */
    virtual bool GetCacher() const;

    /**
       Permet de définir si l'interface doit être cachée ou non.
       @param p_Cacher : <i>true</i> pour cacher l'interface, <i>false</i> sinon.
     */
    virtual void SetCacher(bool p_Cacher);

    /**
       Destructeur
    */
    virtual ~MOGL_Interface();
        
        
};

#endif