From 9794d200b33b438feaf76c960e464b90dd911d58 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Mon, 17 Jul 2023 18:31:58 +0200 Subject: FLUID: emulating RTTI and fixing type dependencies (Buttons) --- fluid/Fl_Type.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fluid/Fl_Type.h') diff --git a/fluid/Fl_Type.h b/fluid/Fl_Type.h index 711e0e992..d226c7b7e 100644 --- a/fluid/Fl_Type.h +++ b/fluid/Fl_Type.h @@ -1,7 +1,7 @@ // // Widget type header file for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2021 by Bill Spitzak and others. +// Copyright 1998-2023 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -197,6 +197,7 @@ public: virtual int is_public() const {return 1;} virtual ID id() const { return ID::Base_; } + virtual bool is_a(ID inID) { return (inID==ID::Base_); } const char* class_name(const int need_nest) const; const class Fl_Class_Type* is_in_class() const; -- cgit v1.2.3