/* * DISTRHO Plugin Framework (DPF) * Copyright (C) 2012-2026 Filipe Coelho * * Permission to use, copy, modify, and/or distribute this software for any purpose with * or without fee is hereby granted, provided that the above copyright notice and this * permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD * TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #ifdef _MSC_VER // instantiated template classes whose methods are defined elsewhere # pragma warning(disable:4661) #endif #include "../Color.hpp" #include "../ImageBaseWidgets.hpp" #include "SubWidgetPrivateData.hpp" #include "TopLevelWidgetPrivateData.hpp" #include "WidgetPrivateData.hpp" #include "WindowPrivateData.hpp" START_NAMESPACE_DGL // -------------------------------------------------------------------------------------------------------------------- // Check for correct build config #ifdef DGL_CAIRO # error Build config error, Cairo requested while building Stub code #endif #ifdef DGL_OPENGL # error Build config error, OpenGL requested while building Stub code #endif #ifdef DGL_VULKAN # error Build config error, Vulkan requested while building Stub code #endif #ifdef DGL_USE_GLES2 # error Build config error, GLESv2 requested while building Stub code #endif #ifdef DGL_USE_GLES3 # error Build config error, GLESv3 requested while building Stub code #endif #ifdef DGL_USE_OPENGL3 # error Build config error, OpenGL3 requested while building Stub code #endif // -------------------------------------------------------------------------------------------------------------------- static void notImplemented(const char* const name) { d_stderr2("Stub function not implemented: %s", name); } // -------------------------------------------------------------------------------------------------------------------- // Color void Color::setFor(const GraphicsContext&, bool) { notImplemented("Color::setFor"); } // -------------------------------------------------------------------------------------------------------------------- // Line template void Line::draw(const GraphicsContext&, T) { notImplemented("Line::draw"); } #if DGL_ALLOW_DEPRECATED_METHODS template void Line::draw() { notImplemented("Line::draw"); } #endif // -------------------------------------------------------------------------------------------------------------------- // Circle template void Circle::draw(const GraphicsContext&) { notImplemented("Circle::draw"); } template void Circle::drawOutline(const GraphicsContext&, T) { notImplemented("Circle::drawOutline"); } #if DGL_ALLOW_DEPRECATED_METHODS template void Circle::draw() { notImplemented("Circle::draw"); } template void Circle::drawOutline() { notImplemented("Circle::drawOutline"); } #endif // -------------------------------------------------------------------------------------------------------------------- // Triangle template void Triangle::draw(const GraphicsContext&) { notImplemented("Triangle::draw"); } template void Triangle::drawOutline(const GraphicsContext&, T) { notImplemented("Triangle::drawOutline"); } #if DGL_ALLOW_DEPRECATED_METHODS template void Triangle::draw() { notImplemented("Triangle::draw"); } template void Triangle::drawOutline() { notImplemented("Triangle::drawOutline"); } #endif // -------------------------------------------------------------------------------------------------------------------- // Rectangle template void Rectangle::draw(const GraphicsContext&) { notImplemented("Rectangle::draw"); } template void Rectangle::drawOutline(const GraphicsContext&, T) { notImplemented("Rectangle::drawOutline"); } #if DGL_ALLOW_DEPRECATED_METHODS template void Rectangle::draw() { notImplemented("Rectangle::draw"); } template void Rectangle::drawOutline() { notImplemented("Rectangle::drawOutline"); } #endif // -------------------------------------------------------------------------------------------------------------------- void SubWidget::PrivateData::display(uint, uint, double) { } // -------------------------------------------------------------------------------------------------------------------- void TopLevelWidget::PrivateData::display() { } // -------------------------------------------------------------------------------------------------------------------- void Window::PrivateData::renderToPicture(const char*, const GraphicsContext&, uint, uint) { notImplemented("Window::PrivateData::renderToPicture"); } // -------------------------------------------------------------------------------------------------------------------- void Window::PrivateData::createContextIfNeeded() { } void Window::PrivateData::destroyContext() { } void Window::PrivateData::startContext() { } void Window::PrivateData::endContext() { } // -------------------------------------------------------------------------------------------------------------------- #ifndef DGL_GEOMETRY_CPP_INCLUDED template class Line; template class Line; template class Line; template class Line; template class Line; template class Line; template class Circle; template class Circle; template class Circle; template class Circle; template class Circle; template class Circle; template class Triangle; template class Triangle; template class Triangle; template class Triangle; template class Triangle; template class Triangle; template class Rectangle; template class Rectangle; template class Rectangle; template class Rectangle; template class Rectangle; template class Rectangle; #endif // -------------------------------------------------------------------------------------------------------------------- END_NAMESPACE_DGL