drawing.h 1.4 KB
Newer Older
Stepan Salenikovich's avatar
Stepan Salenikovich committed
1
/*
Sébastien Blin's avatar
Sébastien Blin committed
2
 *  Copyright (C) 2015-2019 Savoir-faire Linux Inc.
Stepan Salenikovich's avatar
Stepan Salenikovich committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
 *  Author: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA.
 */

#ifndef _DRAWING_H
#define _DRAWING_H

#include <gtk/gtk.h>
24
#include <string>
Stepan Salenikovich's avatar
Stepan Salenikovich committed
25

26
GdkPixbuf *ring_draw_fallback_avatar(int size, const std::string& letter, const char color = 0);
Stepan Salenikovich's avatar
Stepan Salenikovich committed
27

28 29
GdkPixbuf *ring_draw_conference_avatar(int size);

Stepan Salenikovich's avatar
Stepan Salenikovich committed
30 31
GdkPixbuf *ring_frame_avatar(GdkPixbuf *avatar);

32
GdkPixbuf *ring_draw_unread_messages(const GdkPixbuf *avatar, int unread_count);
Stepan Salenikovich's avatar
Stepan Salenikovich committed
33

34 35 36 37 38 39 40 41 42 43

enum class IconStatus {
    ABSENT,
    PRESENT,
    DISCONNECTED,
    TRYING,
    CONNECTED,
    INVALID
};
GdkPixbuf *ring_draw_status(const GdkPixbuf *avatar, IconStatus status);
aviau's avatar
aviau committed
44

45
#endif /* _DRAWING */