#ifndef _GDKMM_POPUPSURFACEIMPL_H
#define _GDKMM_POPUPSURFACEIMPL_H
/* Copyright (C) 2020 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 .
*/
#include
#include
#include
namespace Gdk
{
/** %Gdk::PopupSurfaceImpl is a Gdk::Surface that implements the Gdk::Popup interface.
*
* The GdkPopup interface can be implemented by C classes that
* derive from GdkSurface. No public GTK class implements GdkPopup.
* Some GTK functions, such as gdk_surface_new_popup(), return an object
* of a class which is derived from GdkSurface and implements GdkPopup.
* Since that C class is not public, it's not wrapped in a C++ class.
* A C object of such a class can be wrapped in a %Gdk::PopupSurfaceImpl object.
* %Gdk::PopupSurfaceImpl does not directly correspond to any GTK class.
*
* This class is intended only for wrapping C objects returned from GTK functions.
*
* @see Gdk::Surface::create_popup()
* @newin{3,98}
*/
class GDKMM_API PopupSurfaceImpl : public Popup, public Surface
{
#ifndef DOXYGEN_SHOULD_SKIP_THIS
protected:
explicit PopupSurfaceImpl(GdkSurface* castitem);
friend class Surface_Class;
// noncopyable
PopupSurfaceImpl(const PopupSurfaceImpl&) = delete;
PopupSurfaceImpl& operator=(const PopupSurfaceImpl&) = delete;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
public:
PopupSurfaceImpl(PopupSurfaceImpl&& src) noexcept;
PopupSurfaceImpl& operator=(PopupSurfaceImpl&& src) noexcept;
~PopupSurfaceImpl() noexcept override;
};
} // namespace Gdk
#endif /* _GDKMM_POPUPSURFACEIMPL_H */