// Generated by gmmproc 2.77.0 -- DO NOT MODIFY!


#include <glibmm.h>

#include <gdkmm/dragsurfacesize.h>
#include <gdkmm/private/dragsurfacesize_p.h>


/* Copyright (C) 2023 The gtkmm Development Team
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
 */

#include <gdk/gdk.h>
#include <utility> // std::move(), std::swap()

namespace Gdk
{

DragSurfaceSize::operator bool() const
{
  return gobj();
}

DragSurfaceSize::DragSurfaceSize(GdkDragSurfaceSize* gobject)
:
  gobject_(gobject)
{}

DragSurfaceSize::DragSurfaceSize(DragSurfaceSize&& other) noexcept
:
  gobject_(std::move(other.gobject_))
{
  other.gobject_ = nullptr;
}

DragSurfaceSize& DragSurfaceSize::operator=(DragSurfaceSize&& other) noexcept
{
  DragSurfaceSize temp(std::move(other));
  std::swap(gobject_, temp.gobject_);
  return *this;
}

DragSurfaceSize::~DragSurfaceSize() noexcept
{
  // The Gdk::DragSurfaceSize instance does not own the wrapped GdkDragSurfaceSize
  // instance. GdkDragSurfaceSize is a private gtk struct with no public create,
  // copy or free functions.
}

} // namespace Gdk

namespace
{
} // anonymous namespace


namespace Gdk
{


void DragSurfaceSize::set_size(int width, int height)
{
  gdk_drag_surface_size_set_size(gobj(), width, height);
}


} // namespace Gdk


