Wld: export only member functions for ./configure --enable-shared (#872)

This commit is contained in:
ManoloFLTK
2023-12-26 16:00:16 +01:00
parent 1d73c0195c
commit bb5cb5b6d4
2 changed files with 5 additions and 4 deletions
@@ -27,7 +27,7 @@
#include <wayland-client.h> // for wl_list
class FL_EXPORT Fl_Wayland_Graphics_Driver : public Fl_Cairo_Graphics_Driver {
class Fl_Wayland_Graphics_Driver : public Fl_Cairo_Graphics_Driver {
public:
struct draw_buffer {
unsigned char *buffer;
@@ -63,7 +63,8 @@ public:
static void buffer_commit(struct wld_window *window, struct flCairoRegion *r = NULL);
static void cairo_init(struct draw_buffer *buffer, int width, int height, int stride,
cairo_format_t format);
static struct draw_buffer *offscreen_buffer(Fl_Offscreen);
// used by class Fl_Wayland_Gl_Window_Driver
static FL_EXPORT struct draw_buffer *offscreen_buffer(Fl_Offscreen);
static const cairo_user_data_key_t key;
static Fl_Image_Surface *custom_offscreen(int w, int h, struct wld_buffer **buffer);
};
@@ -46,7 +46,7 @@ typedef struct _cairo_rectangle_int cairo_rectangle_int_t;
class Fl_Wayland_Plugin;
class FL_EXPORT Fl_Wayland_Window_Driver : public Fl_Window_Driver
class Fl_Wayland_Window_Driver : public Fl_Window_Driver
{
friend class Fl_Wayland_Gl_Window_Driver;
private:
@@ -77,7 +77,7 @@ public:
void decorated_win_size(int &w, int &h);
void shape_bitmap_(Fl_Image* b);
void shape_alpha_(Fl_Image* img, int offset) FL_OVERRIDE;
int wld_scale();
FL_EXPORT int wld_scale(); // used by class Fl_Wayland_Gl_Window_Driver
cairo_rectangle_int_t *subRect() { return subRect_; } // getter
void subRect(cairo_rectangle_int_t *r); // setter
void checkSubwindowFrame();