view src/edwidget.h @ 117:0612954ba99c default tip

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 06 Oct 2014 16:36:48 +0300
parents e2020fcc4c51
children
line wrap: on
line source

/*
 *        edwidget.h
 *        The class edwidget_c from which the edisplay widget are derived.
 *        AYM 1998-09-23
 */


#ifndef YH_EDWIDGET                /* DO NOT INSERT ANYTHING BEFORE THIS LINE */
#define YH_EDWIDGET


class edwidget_c
{
    public:
    void unset();
    void draw();                // Draw yourself
    void undraw();        // If you're drawn, undraw yourself
    int can_undraw();        // Can you undraw yourself ?
    int eed_to_clear();        // You need to undraw yself but can't ?
    void clear();                // Forget you're drawn
    int req_width();        // Tell me the width you'd like to have
    int req_height();        // Tell me the height you'd like 2 have
    void set_x0(int x0);        // This is your top left corner
    void set_y0(int y0);
    void set_x1(int x1);        // This is your bottom right corner
    void set_y1(int y1);
    int get_x0();                // Tell me where's your top left corner
    int get_y0();
    int get_x1();                // Tell me where's your bottom right c.
    int get_y1();
};


#endif /* DO NOT ADD ANYTHING AFTER THIS LINE */