1 /* 2 * popup-menu-item-button: A button pop-up menu item 3 * 4 * Copyright 2012-2020 Stephan Haller <nomad@froevel.de> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 19 * MA 02110-1301, USA. 20 * 21 * 22 */ 23 24 #ifndef __LIBXFDASHBOARD_POPUP_MENU_ITEM_BUTTON__ 25 #define __LIBXFDASHBOARD_POPUP_MENU_ITEM_BUTTON__ 26 27 #if !defined(__LIBXFDASHBOARD_H_INSIDE__) && !defined(LIBXFDASHBOARD_COMPILATION) 28 #error "Only <libxfdashboard/libxfdashboard.h> can be included directly." 29 #endif 30 31 #include <libxfdashboard/label.h> 32 33 G_BEGIN_DECLS 34 35 #define XFDASHBOARD_TYPE_POPUP_MENU_ITEM_BUTTON (xfdashboard_popup_menu_item_button_get_type()) 36 #define XFDASHBOARD_POPUP_MENU_ITEM_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), XFDASHBOARD_TYPE_POPUP_MENU_ITEM_BUTTON, XfdashboardPopupMenuItemButton)) 37 #define XFDASHBOARD_IS_POPUP_MENU_ITEM_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), XFDASHBOARD_TYPE_POPUP_MENU_ITEM_BUTTON)) 38 #define XFDASHBOARD_POPUP_MENU_ITEM_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), XFDASHBOARD_TYPE_POPUP_MENU_ITEM_BUTTON, XfdashboardPopupMenuItemButtonClass)) 39 #define XFDASHBOARD_IS_POPUP_MENU_ITEM_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), XFDASHBOARD_TYPE_POPUP_MENU_ITEM_BUTTON)) 40 #define XFDASHBOARD_POPUP_MENU_ITEM_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), XFDASHBOARD_TYPE_POPUP_MENU_ITEM_BUTTON, XfdashboardPopupMenuItemButtonClass)) 41 42 typedef struct _XfdashboardPopupMenuItemButton XfdashboardPopupMenuItemButton; 43 typedef struct _XfdashboardPopupMenuItemButtonClass XfdashboardPopupMenuItemButtonClass; 44 typedef struct _XfdashboardPopupMenuItemButtonPrivate XfdashboardPopupMenuItemButtonPrivate; 45 46 /** 47 * XfdashboardPopupMenuItemButton: 48 * 49 * The #XfdashboardPopupMenuItemButton structure contains only private data and 50 * should be accessed using the provided API 51 */ 52 struct _XfdashboardPopupMenuItemButton 53 { 54 /*< private >*/ 55 /* Parent instance */ 56 XfdashboardLabel parent_instance; 57 58 /* Private structure */ 59 XfdashboardPopupMenuItemButtonPrivate *priv; 60 }; 61 62 /** 63 * XfdashboardPopupMenuItemButtonClass: 64 * 65 * The #XfdashboardPopupMenuItemButtonClass structure contains only private data 66 */ 67 struct _XfdashboardPopupMenuItemButtonClass 68 { 69 /*< private >*/ 70 /* Parent class */ 71 XfdashboardLabelClass parent_class; 72 73 /*< public >*/ 74 /* Virtual functions */ 75 }; 76 77 /* Public API */ 78 GType xfdashboard_popup_menu_item_button_get_type(void) G_GNUC_CONST; 79 80 ClutterActor* xfdashboard_popup_menu_item_button_new(void); 81 ClutterActor* xfdashboard_popup_menu_item_button_new_with_text(const gchar *inText); 82 83 G_END_DECLS 84 85 #endif /* __LIBXFDASHBOARD_POPUP_MENU_ITEM_BUTTON__ */ 86