gtkmm  4.16.0
Public Member Functions | Protected Attributes | List of all members
Gdk::DragSurfaceSize Class Reference

Information for computing drag surface size. More...

#include <gdkmm/dragsurfacesize.h>

Public Member Functions

 DragSurfaceSize (GdkDragSurfaceSize* gobject)
 
 DragSurfaceSize (const DragSurfaceSize& other)=delete
 
DragSurfaceSizeoperator= (const DragSurfaceSize& other)=delete
 
 DragSurfaceSize (DragSurfaceSize&& other) noexcept
 
DragSurfaceSizeoperator= (DragSurfaceSize&& other) noexcept
 
 ~DragSurfaceSize () noexcept
 
 operator bool () const
 Checks if this instance is valid. More...
 
GdkDragSurfaceSize* gobj ()
 Provides access to the underlying C object. More...
 
const GdkDragSurfaceSize* gobj () const
 Provides access to the underlying C object. More...
 
void set_size (int width, int height)
 Sets the size the drag surface prefers to be resized to. More...
 

Protected Attributes

GdkDragSurfaceSize* gobject_
 

Detailed Description

Information for computing drag surface size.

Gdk::DragSurfaceSize contains information that is useful to compute the size of a drag surface.

Since gtkmm 4.12:

Constructor & Destructor Documentation

Gdk::DragSurfaceSize::DragSurfaceSize ( GdkDragSurfaceSize *  gobject)
explicit
Gdk::DragSurfaceSize::DragSurfaceSize ( const DragSurfaceSize other)
delete
Gdk::DragSurfaceSize::DragSurfaceSize ( DragSurfaceSize&&  other)
noexcept
Gdk::DragSurfaceSize::~DragSurfaceSize ( )
noexcept

Member Function Documentation

GdkDragSurfaceSize* Gdk::DragSurfaceSize::gobj ( )
inline

Provides access to the underlying C object.

const GdkDragSurfaceSize* Gdk::DragSurfaceSize::gobj ( ) const
inline

Provides access to the underlying C object.

Gdk::DragSurfaceSize::operator bool ( ) const
explicit

Checks if this instance is valid.

It is valid if and only if it contains a pointer to a GdkDragSurfaceSize. For instance,

if (size)
do_something()
DragSurfaceSize& Gdk::DragSurfaceSize::operator= ( const DragSurfaceSize other)
delete
DragSurfaceSize& Gdk::DragSurfaceSize::operator= ( DragSurfaceSize&&  other)
noexcept
void Gdk::DragSurfaceSize::set_size ( int  width,
int  height 
)

Sets the size the drag surface prefers to be resized to.

Since gtkmm 4.12:
Parameters
widthThe width.
heightThe height.

Member Data Documentation

GdkDragSurfaceSize* Gdk::DragSurfaceSize::gobject_
protected