/usr/include/budgie-desktop/popover.h is in budgie-core-dev 10.4+git20171031.10.g9f71bb8-1.2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | /*
* This file is part of budgie-desktop.
*
* Copyright © 2016-2017 Budgie Desktop Developers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*/
#pragma once
#include <glib-object.h>
#include <gtk/gtk.h>
G_BEGIN_DECLS
typedef struct _BudgiePopover BudgiePopover;
typedef struct _BudgiePopoverClass BudgiePopoverClass;
typedef struct _BudgiePopoverPrivate BudgiePopoverPrivate;
/**
* BudgiePopoverClass:
* @closed: Virtual closed signal
*/
struct _BudgiePopoverClass {
GtkWindowClass parent_class;
/* Marked for gtk-doc syntax */
void (*closed)(BudgiePopover *popover);
gpointer padding[12];
};
struct _BudgiePopover {
GtkWindow parent;
BudgiePopoverPrivate *priv;
};
/**
* BudgiePopoverPositionPolicy:
* @BUDGIE_POPOVER_POSITION_AUTOMATIC: Determine location based on the screen estate
* @BUDGIE_POPOVER_POSITION_TOPLEVEL_HINT: Use hints on widgets parent window
*
* The BudgiePopoverPositionPolicy determines how the #BudgiePopover will be
* placed on screen. The default policy (AUTOMATIC) will try to place the
* popover at a sensible location relative to the parent widget, and point
* the tail accordingly.
*
* The TOPLEVEL_HINT policy is designed for use with panels + docks, where the
* top level window owning the relative-to widget sets a CSS class on itself
* in accordance with the screen edge, i.e. top, left, bottom, right.
*/
typedef enum {
BUDGIE_POPOVER_POSITION_AUTOMATIC = 0,
BUDGIE_POPOVER_POSITION_TOPLEVEL_HINT,
} BudgiePopoverPositionPolicy;
#define BUDGIE_TYPE_POPOVER budgie_popover_get_type()
#define BUDGIE_POPOVER(o) (G_TYPE_CHECK_INSTANCE_CAST((o), BUDGIE_TYPE_POPOVER, BudgiePopover))
#define BUDGIE_IS_POPOVER(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), BUDGIE_TYPE_POPOVER))
#define BUDGIE_POPOVER_CLASS(o) \
(G_TYPE_CHECK_CLASS_CAST((o), BUDGIE_TYPE_POPOVER, BudgiePopoverClass))
#define BUDGIE_IS_POPOVER_CLASS(o) (G_TYPE_CHECK_CLASS_TYPE((o), BUDGIE_TYPE_POPOVER))
#define BUDGIE_POPOVER_GET_CLASS(o) \
(G_TYPE_INSTANCE_GET_CLASS((o), BUDGIE_TYPE_POPOVER, BudgiePopoverClass))
/*
* API Methods
*/
GtkWidget *budgie_popover_new(GtkWidget *relative_to);
void budgie_popover_set_position_policy(BudgiePopover *popover, BudgiePopoverPositionPolicy policy);
BudgiePopoverPositionPolicy budgie_popover_get_position_policy(BudgiePopover *popover);
GType budgie_popover_get_type(void);
G_END_DECLS
/*
* Editor modelines - https://www.wireshark.org/tools/modelines.html
*
* Local variables:
* c-basic-offset: 8
* tab-width: 8
* indent-tabs-mode: nil
* End:
*
* vi: set shiftwidth=8 tabstop=8 expandtab:
* :indentSize=8:tabSize=8:noTabs=true:
*/
|