~ubuntu-branches/ubuntu/karmic/moon/karmic

« back to all changes in this revision

Viewing changes to src/size.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-14 12:01:08 UTC
  • Revision ID: james.westby@ubuntu.com-20090214120108-06539vb25vhbd8bn
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 
2
/*
 
3
 * size.cpp: specialized code for dealing with SizeChangedEventArgs
 
4
 *
 
5
 * Copyright 2007 Novell, Inc. (http://www.novell.com)
 
6
 *
 
7
 * See the LICENSE file included with the distribution for details.
 
8
 *
 
9
 */
 
10
 
 
11
#ifdef HAVE_CONFIG_H
 
12
#include <config.h>
 
13
#endif
 
14
 
 
15
#include "size.h"
 
16
 
 
17
SizeChangedEventArgs::SizeChangedEventArgs (Size prev_size, Size new_size)
 
18
{
 
19
        this->prev_size = prev_size;
 
20
        this->new_size = new_size;
 
21
}
 
22
 
 
23
void
 
24
size_changed_event_args_get_prev_size (SizeChangedEventArgs *args, Size *prev_size)
 
25
{
 
26
        *prev_size = args->GetPrevSize ();
 
27
}
 
28
 
 
29
void
 
30
size_changed_event_args_get_new_size  (SizeChangedEventArgs *args, Size *new_size)
 
31
{
 
32
        *new_size = args->GetNewSize ();
 
33
}