/[enigma]/enigma/src/gui.cc
ViewVC logotype

Diff of /enigma/src/gui.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by dheck, Thu Mar 13 18:07:39 2003 UTC revision 1.4 by dheck, Sun Mar 23 17:28:31 2003 UTC
# Line 14  Line 14 
14   * You should have received a copy of the GNU General Public License along   * You should have received a copy of the GNU General Public License along
15   * with this program; if not, write to the Free Software Foundation, Inc.,   * with this program; if not, write to the Free Software Foundation, Inc.,
16   * 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.   * 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
17     *
18     * $Id$
19   */   */
20    
21  #include "gui.hh"  #include "gui.hh"
# Line 143  Button::draw(px::GC &gc, const px::Rect Line 145  Button::draw(px::GC &gc, const px::Rect
145              highlighted ? "h" : "");              highlighted ? "h" : "");
146      if (px::Surface *s = enigma::GetImage(bordername))      if (px::Surface *s = enigma::GetImage(bordername))
147          blit(gc, get_x(), get_y(), s);          blit(gc, get_x(), get_y(), s);
148        else {
149            set_color (gc, 0,0,0);
150            box (gc, r);
151            set_color (gc, 160,160,160);
152            frame (gc, r);
153            frame (gc, smaller(r, 1));
154        }
155  }  }
156    
157  //----------------------------------------  //----------------------------------------
# Line 225  TextButton::draw(px::GC &gc, const px::R Line 234  TextButton::draw(px::GC &gc, const px::R
234  //----------------------------------------  //----------------------------------------
235  ImageButton::ImageButton(const std::string &unselected,  ImageButton::ImageButton(const std::string &unselected,
236                           const std::string &selected)                           const std::string &selected)
237      : fname_sel(selected),  : fname_sel(selected),
238        fname_unsel(unselected)    fname_unsel(unselected)
239  {}  {}
240    
241  void  void
# Line 249  ImageButton::draw(px::GC &gc, const px:: Line 258  ImageButton::draw(px::GC &gc, const px::
258  //----------------------------------------  //----------------------------------------
259    
260  Menu::Menu()  Menu::Menu()
261  : active_widget(0)  : active_widget(0),
262  , quitp(false)    quitp(false),
263  , abortp(false)    abortp(false)
264  {}  {}
265    
266  Menu::~Menu()  Menu::~Menu()

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26