Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::UI::Widget::Texture Class Reference

#include <texture.h>

Public Member Functions

 Texture ()=default
 
 Texture (Geom::IntPoint const &size)
 
 Texture (GLuint id, Geom::IntPoint const &size)
 
 Texture (Texture &&other) noexcept
 
Textureoperator= (Texture &&other) noexcept
 
 ~Texture ()
 
GLuint id () const
 
Geom::IntPoint const & size () const
 
 operator bool () const
 
void clear ()
 
void invalidate ()
 

Private Member Functions

void _reset () noexcept
 
void _movefrom (Texture &other) noexcept
 

Private Attributes

GLuint _id = 0
 
Geom::IntPoint _size
 

Detailed Description

Definition at line 11 of file texture.h.

Constructor & Destructor Documentation

◆ Texture() [1/4]

Inkscape::UI::Widget::Texture::Texture ( )
default

◆ Texture() [2/4]

Inkscape::UI::Widget::Texture::Texture ( Geom::IntPoint const &  size)

◆ Texture() [3/4]

Inkscape::UI::Widget::Texture::Texture ( GLuint  id,
Geom::IntPoint const &  size 
)
inline

Definition at line 21 of file texture.h.

◆ Texture() [4/4]

Inkscape::UI::Widget::Texture::Texture ( Texture &&  other)
inlinenoexcept

Definition at line 24 of file texture.h.

References _movefrom().

◆ ~Texture()

Inkscape::UI::Widget::Texture::~Texture ( )
inline

Definition at line 26 of file texture.h.

References _reset().

Member Function Documentation

◆ _movefrom()

void Inkscape::UI::Widget::Texture::_movefrom ( Texture other)
inlineprivatenoexcept

Definition at line 42 of file texture.h.

References _id, and _size.

Referenced by operator=(), and Texture().

◆ _reset()

void Inkscape::UI::Widget::Texture::_reset ( )
inlineprivatenoexcept

Definition at line 41 of file texture.h.

References _id.

Referenced by clear(), operator=(), and ~Texture().

◆ clear()

void Inkscape::UI::Widget::Texture::clear ( )
inline

Definition at line 34 of file texture.h.

References _id, and _reset().

Referenced by Inkscape::UI::Widget::GLGraphics::setup_stores_pipeline().

◆ id()

GLuint Inkscape::UI::Widget::Texture::id ( ) const
inline

Definition at line 29 of file texture.h.

References _id.

Referenced by Inkscape::UI::Widget::GLGraphics::paint_widget().

◆ invalidate()

void Inkscape::UI::Widget::Texture::invalidate ( )

Definition at line 41 of file texture.cpp.

References _id, and Inkscape::UI::Widget::have_glinvalidateteximage().

◆ operator bool()

Inkscape::UI::Widget::Texture::operator bool ( ) const
inlineexplicit

Definition at line 31 of file texture.h.

References _id.

◆ operator=()

Texture & Inkscape::UI::Widget::Texture::operator= ( Texture &&  other)
inlinenoexcept

Definition at line 25 of file texture.h.

References _movefrom(), and _reset().

◆ size()

Geom::IntPoint const & Inkscape::UI::Widget::Texture::size ( ) const
inline

Definition at line 30 of file texture.h.

References _size.

Referenced by Texture().

Member Data Documentation

◆ _id

GLuint Inkscape::UI::Widget::Texture::_id = 0
private

Definition at line 38 of file texture.h.

Referenced by _movefrom(), _reset(), clear(), id(), invalidate(), operator bool(), and Texture().

◆ _size

Geom::IntPoint Inkscape::UI::Widget::Texture::_size
private

Definition at line 39 of file texture.h.

Referenced by _movefrom(), and size().


The documentation for this class was generated from the following files: