31 #if GCONFIG_HAVE_CURSES
42 #if GCONFIG_HAVE_CURSES
48 if( !display.empty() )
49 return new ViewerWindowX( window_handler , config , dx , dy ) ;
52 #if GCONFIG_HAVE_CURSES
static std::string get(const std::string &name, const std::string &default_)
Returns the environment variable value or the given default.
virtual void display(int dx, int dy, int channels, const char *, size_t)=0
Displays the given image.
An abstract base class for a viewer window.
static bool enabled()
Returns true if test features are enabled.
A configuration structure for Gv::ViewerWindow.
A pimple-pattern implementation class for Gv::ViewerWindow that uses ansi escape sequences.
A pimple-pattern implementation class for ViewerWindow that uses X11.
static ViewerWindow * create(Handler &, ViewerWindow::Config, int image_dx, int image_dy)
A factory function that returns a new'ed ViewerWindow.
A callback interface for Gv::ViewerWindow.
A pimple-pattern implementation class for ViewerWindow that uses curses.