/* $Id: panel.h,v 1.4 2011/11/07 22:31:59 khorben Exp $ */ /* Copyright (c) 2011 Pierre Pronchery */ /* This file is part of DeforaOS Desktop Panel */ /* 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, version 3 of the License. * * 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, see . */ #ifndef PANEL_COMMON_H # define PANEL_COMMON_H # include # include "Panel.h" /* Panel */ /* types */ typedef enum _PanelMessage { PANEL_MESSAGE_SHOW = 0 } PanelMessage; typedef enum _PanelMessageShow { PANEL_MESSAGE_SHOW_PANEL_BOTTOM = 0, PANEL_MESSAGE_SHOW_PANEL_TOP, PANEL_MESSAGE_SHOW_SETTINGS } PanelMessageShow; typedef enum _PanelPosition { PANEL_POSITION_BOTTOM = 0x1, PANEL_POSITION_TOP = 0x2 } PanelPosition; # define PANEL_POSITION_DEFAULT PANEL_POSITION_BOTTOM typedef struct _PanelPrefs { char const * iconsize; int monitor; } PanelPrefs; /* constants */ # define PANEL_BORDER_WIDTH 4 # define PANEL_CLIENT_MESSAGE "DEFORAOS_DESKTOP_PANEL_CLIENT" # define PANEL_CONFIG_FILE ".panel" # define PANEL_ICON_SIZE_DEFAULT "panel-large" # define PANEL_ICON_SIZE_UNSET NULL # define PANEL_ICON_SIZE_SMALL "panel-small" # define PANEL_ICON_SIZE_SMALLER "panel-smaller" # define PANEL_ICON_SIZE_LARGE "panel-large" /* functions */ Panel * panel_new(PanelPrefs const * prefs); void panel_delete(Panel * panel); /* useful */ int panel_error(Panel * panel, char const * message, int ret); int panel_load(Panel * panel, PanelPosition position, char const * applet); void panel_show_preferences(Panel * panel, gboolean show); #endif /* !PANEL_COMMON_H */