summaryrefslogtreecommitdiff
path: root/src/ui/sidebarwidget.h
blob: 3ff20b7f164a206f25bfa6140c7a21541ae199c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include "widget.h"

enum iSidebarMode {
    bookmarks_SidebarMode,
    history_SidebarMode,
    identities_SidebarMode,
    documentOutline_SidebarMode,
    max_SidebarMode
};

iDeclareWidgetClass(SidebarWidget)
iDeclareObjectConstruction(SidebarWidget)

void                setMode_SidebarWidget   (iSidebarWidget *, enum iSidebarMode mode);

enum iSidebarMode   mode_SidebarWidget      (const iSidebarWidget *);
int                 width_SidebarWidget     (const iSidebarWidget *);
void                setWidth_SidebarWidget  (iSidebarWidget *, int width);