~ubuntu-branches/ubuntu/natty/plee-the-bear/natty

« back to all changes in this revision

Viewing changes to bear-engine/core/src/gui/picture.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Julien Jorge, Julien Jorge
  • Date: 2010-11-17 20:13:34 UTC
  • mfrom: (6.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20101117201334-o4dp7uq437to7oxb
Tags: 0.5.1-1
[ Julien Jorge ]
* New upstream release (Closes: #565062, #546514).
* Add armhf architecture (Closes: #604689).
* Remove patches integrated upstream: rpath-editors.diff, rpath-game.diff,
  editors-menu-section.diff.
* Bump the Standard-Version, no changes.
* Update my email address.
* Set build dependency of libclaw to 1.6.0.
* Add the missing ${misc:Depends} in debian/control.
* List gettext translations in bear-factory.install and plee-the-bear.install.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
  Bear Engine
3
3
 
4
 
  Copyright (C) 2005-2009 Julien Jorge, Sebastien Angibaud
 
4
  Copyright (C) 2005-2010 Julien Jorge, Sebastien Angibaud
5
5
 
6
6
  This program is free software; you can redistribute it and/or modify it
7
7
  under the terms of the GNU General Public License as published by the
30
30
#ifndef __GUI_PICTURE_HPP__
31
31
#define __GUI_PICTURE_HPP__
32
32
 
33
 
#include "gui/visual_component.hpp"
 
33
#include "gui/scene_element.hpp"
34
34
#include "visual/sprite.hpp"
35
35
 
36
36
#include "gui/class_export.hpp"
44
44
     *        visual component.
45
45
     * \author Julien Jorge
46
46
     */
47
 
    class GUI_EXPORT picture : public visual_component
 
47
    class GUI_EXPORT picture:
 
48
      public scene_element
48
49
    {
49
50
    public:
50
 
      picture( visual_component* owner, visual::sprite* pict = NULL );
51
 
      ~picture();
52
 
 
53
 
      void set_picture( visual::sprite* pict );
54
 
      void set_stretch( bool b );
55
 
 
56
 
    private:
57
 
      void display( scene_element_list& e ) const;
58
 
 
59
 
      virtual void on_resized();
60
 
 
61
 
    private:
62
 
      /** \brief The sprite to render. */
63
 
      visual::sprite* m_sprite;
64
 
 
65
 
      /** \brief Tell if the sprite is stretched to fill the control. */
66
 
      bool m_stretch;
 
51
      picture
 
52
      ( visual_component* owner,
 
53
        const visual::sprite& pict = visual::sprite() );
 
54
 
 
55
      void set_picture( const visual::sprite& pict );
67
56
 
68
57
    }; // class picture
69
58
  } // namespace gui