summaryrefslogtreecommitdiff
path: root/src/ui/sidebarwidget.h
blob: 1645207e2a304269d12c92685b24ca016993558f (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 {
    documentOutline_SidebarMode,
    bookmarks_SidebarMode,
    history_SidebarMode,
    identities_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);