Merge branch 'master' into andreasfelix/launch-or-focus

This commit is contained in:
Felix Andreas 2022-02-01 15:18:47 +01:00 committed by GitHub
commit 0dfdcaffbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
26 changed files with 1127 additions and 162 deletions

View File

@ -155,6 +155,17 @@ if mutter41_dep.found()
vala_flags = ['--define', 'HAS_MUTTER338', '--define', 'HAS_MUTTER40', '--define', 'HAS_MUTTER41']
endif
mutter42_dep = dependency('libmutter-10', version: ['>= 42', '< 43'], required: false)
if mutter42_dep.found()
libmutter_dep = dependency('libmutter-10', version: '>= 42')
mutter_dep = [
libmutter_dep,
dependency('mutter-cogl-10'), dependency('mutter-cogl-pango-10'),
dependency('mutter-clutter-10')
]
vala_flags = ['--define', 'HAS_MUTTER338', '--define', 'HAS_MUTTER40', '--define', 'HAS_MUTTER41', '--define', 'HAS_MUTTER42']
endif
if mutter_dep.length() == 0
error ('No supported mutter library found!')
endif

View File

@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: beat-box\n"
"Report-Msgid-Bugs-To: https://github.com/elementary/gala/issues\n"
"POT-Creation-Date: 2021-12-01 22:41+0000\n"
"PO-Revision-Date: 2020-08-25 13:13+0000\n"
"PO-Revision-Date: 2022-01-11 03:35+0000\n"
"Last-Translator: p-bo <pavel.borecki@gmail.com>\n"
"Language-Team: Czech <https://l10n.elementary.io/projects/desktop/gala/cs/>\n"
"Language: cs\n"
@ -16,7 +16,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
"X-Generator: Weblate 3.9.1\n"
"X-Generator: Weblate 4.4.2\n"
"X-Launchpad-Export-Date: 2017-02-21 05:47+0000\n"
#: src/ScreenshotManager.vala:256
@ -24,41 +24,34 @@ msgid "Screenshots"
msgstr "Snímky obrazovky"
#: src/ScreenshotManager.vala:336
#, fuzzy
#| msgid "Screenshots"
msgid "Screenshot taken"
msgstr "Snímky obrazovky"
msgstr "Snímky obrazovky pořízen"
#: src/WindowManager.vala:2053
#, fuzzy
#| msgid "Display Settings…"
msgid "Keep new display settings?"
msgstr "Nastavení zobrazení…"
msgstr "Ponechat nová nastavení zobrazení?"
#: src/WindowManager.vala:2054
msgid "Changes will automatically revert after 30 seconds."
msgstr ""
msgstr "Změny budou za 30 sekund automaticky vzaty zpět."
#: src/WindowManager.vala:2057
#, fuzzy
#| msgid "System Settings…"
msgid "Keep Settings"
msgstr "Nastavení systému…"
msgstr "Ponechat nastavení"
#: src/WindowManager.vala:2058
msgid "Use Previous Settings"
msgstr ""
msgstr "Použít předchozí nastavení"
#. / TRANSLATORS: %s represents a timestamp here
#: src/WindowManager.vala:2084
#, fuzzy, c-format
#| msgid "Screenshots"
#, c-format
msgid "Screenshot from %s"
msgstr "Snímky obrazovky"
msgstr "Snímky obrazovky pořízený %s"
#: daemon/MenuDaemon.vala:115
msgid "Hide"
msgstr ""
msgstr "Skrýt"
#: daemon/MenuDaemon.vala:128
msgid "Move"
@ -85,10 +78,8 @@ msgid "Move to Workspace Right"
msgstr "Přesunout na plochu vpravo"
#: daemon/MenuDaemon.vala:176
#, fuzzy
#| msgid "Screenshots"
msgid "Take Screenshot"
msgstr "Snímky obrazovky"
msgstr "Zachytit snímek obrazovky"
#: daemon/MenuDaemon.vala:184
msgid "Close"
@ -96,7 +87,7 @@ msgstr "Zavřít"
#: daemon/MenuDaemon.vala:223
msgid "Untile"
msgstr ""
msgstr "Zrušit titulek"
#: daemon/MenuDaemon.vala:223
msgid "Unmaximize"
@ -144,7 +135,7 @@ msgstr "Vylepšení:"
#: data/gala.appdata.xml.in:17
msgid "Use access portal for display settings confirmation dialog"
msgstr ""
msgstr "Použit přístup portálu pro zobrazení dialogu potvrzení nastavení"
#: data/gala.appdata.xml.in:18 data/gala.appdata.xml.in:34
#: data/gala.appdata.xml.in:43 data/gala.appdata.xml.in:56
@ -156,62 +147,58 @@ msgstr "Aktualizovány překlady"
#: data/gala.appdata.xml.in:24
msgid "Fixes:"
msgstr ""
msgstr "Opravy:"
#: data/gala.appdata.xml.in:26
msgid "Fix shadow clipping on server-side decorated windows"
msgstr ""
msgstr "Opraveno ořezávání stínování u oken orámovaných na straně serveru"
#: data/gala.appdata.xml.in:30
msgid "Support for high-resolution scroll events"
msgstr ""
msgstr "Podpora pro jemné posouvání"
#: data/gala.appdata.xml.in:31
msgid "Redesigned Alt + Tab switcher"
msgstr ""
msgstr "Předělaný přepínač Alt+Tab"
#: data/gala.appdata.xml.in:32
#, fuzzy
#| msgid "Dims parent windows when spawning modal dialogs"
msgid "Dim the parents of modal dialogs"
msgstr "Ztmavit rodičovské okno při vyvolávání modálních dialogů"
msgstr "Ztmavení nadřazených oken modálních dialogů"
#: data/gala.appdata.xml.in:33
msgid "Dialogs fall down on parents instead of shooting out"
msgstr ""
msgstr "Dialogy odpadnou na nadřazené namísto jejich odstřelení"
#: data/gala.appdata.xml.in:42
#, fuzzy
#| msgid "Fix potential crash when taking screenshots"
msgid "Fix a potential crash when taking screenshots"
msgstr "Opraveno potenciální pádů při pořizování snímků obrazovky"
msgstr "Opraveny potenciální pády při pořizování snímků obrazovky"
#: data/gala.appdata.xml.in:49
msgid "New features:"
msgstr ""
msgstr "Nové funkce:"
#: data/gala.appdata.xml.in:51
msgid "Stash the picture-in-picture window by pushing it off screen"
msgstr ""
msgstr "Stash okno obraz-v-obraze vytlačením mimo obrazovku"
#: data/gala.appdata.xml.in:55
#, fuzzy
#| msgid "Fix potential crash when taking screenshots"
msgid "Fix a potential crash while changing wallpapers"
msgstr "Opraveno potenciální pádů při pořizování snímků obrazovky"
msgstr "Opraveny potenciální pády při změně pozadí plochy"
#: data/gala.appdata.xml.in:64
msgid ""
"Include window decorations in screenshots for server-side decorated windows"
msgstr ""
"V případě oken orámovaných na straně serveru zahrnout při pořizování snímku "
"i tato orámování"
#: data/gala.appdata.xml.in:73
msgid "Add multitouch gestures"
msgstr ""
msgstr "Přidána vícedotyková gesta"
#: data/gala.appdata.xml.in:74
msgid "Show window titles in multitasking view"
msgstr ""
msgstr "Ve víceúlohové zobrazení jsou zobrazovány titulky oken"
#: data/gala.appdata.xml.in:75
msgid "Close the Alt + Tab switcher by pressing Esc without releasing Alt"
@ -229,29 +216,27 @@ msgstr "Při kliknutí pravým tlačítkem na pozadí zobrazit kontextovou nabí
#: data/gala.appdata.xml.in:78
msgid "New Dwell Click and Locate Pointer animations"
msgstr ""
msgstr "Nové animace Prodlévající kliknutí a Najít ukazatel"
#: data/gala.appdata.xml.in:79
msgid "Add Take Screenshot to window context menu"
msgstr ""
msgstr "Do kontextové nabídky okna přidáno pořízení snímku obrazovky"
#: data/gala.appdata.xml.in:80
#, fuzzy
#| msgid "Fix potential crash when taking screenshots"
msgid "Always play shutter sound when taking screenshots"
msgstr "Opraveno potenciální pádů při pořizování snímků obrazovky"
msgstr "Při pořizování snímků obrazovky vždy přehrát zvuk závěrky fotoaparátu"
#: data/gala.appdata.xml.in:81
msgid "Minor visual improvements"
msgstr ""
msgstr "Drobná vylepšení vzhledu"
#: data/gala.appdata.xml.in:82
msgid "HiDPI fixes"
msgstr ""
msgstr "Opravy ohledně ultra vysokých rozlišení (HiDPI)"
#: data/gala.appdata.xml.in:83
msgid "Performance improvements"
msgstr ""
msgstr "Zlepšení výkonu"
#: data/gala.appdata.xml.in:92
msgid ""

View File

@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: noise\n"
"Report-Msgid-Bugs-To: https://github.com/elementary/gala/issues\n"
"POT-Creation-Date: 2021-12-01 22:41+0000\n"
"PO-Revision-Date: 2021-12-23 14:19+0000\n"
"PO-Revision-Date: 2021-12-27 16:55+0000\n"
"Last-Translator: Ryo Nakano <ryonakaknock3@gmail.com>\n"
"Language-Team: Japanese <https://l10n.elementary.io/projects/desktop/gala/ja/"
">\n"
@ -198,7 +198,7 @@ msgstr "マルチタッチジェスチャーを追加"
#: data/gala.appdata.xml.in:74
msgid "Show window titles in multitasking view"
msgstr "マルチタスキング画面でウィンドウのタイトルを表示するように変更"
msgstr "“マルチタスク画面”でウィンドウのタイトルを表示するように変更"
#: data/gala.appdata.xml.in:75
msgid "Close the Alt + Tab switcher by pressing Esc without releasing Alt"

View File

@ -8,8 +8,8 @@ msgstr ""
"Project-Id-Version: gala\n"
"Report-Msgid-Bugs-To: https://github.com/elementary/gala/issues\n"
"POT-Creation-Date: 2021-12-01 22:41+0000\n"
"PO-Revision-Date: 2021-07-05 11:21+0000\n"
"Last-Translator: Ryo Nakano <ryonakaknock3@gmail.com>\n"
"PO-Revision-Date: 2022-01-15 13:42+0000\n"
"Last-Translator: Niels Van Laerhoven <niels1995@gmail.com>\n"
"Language-Team: Dutch <https://l10n.elementary.io/projects/desktop/gala/nl/>\n"
"Language: nl\n"
"MIME-Version: 1.0\n"
@ -24,37 +24,34 @@ msgid "Screenshots"
msgstr "Screenshots"
#: src/ScreenshotManager.vala:336
#, fuzzy
#| msgid "Screenshots"
msgid "Screenshot taken"
msgstr "Screenshots"
msgstr "Schermafbeelding genomen"
#: src/WindowManager.vala:2053
msgid "Keep new display settings?"
msgstr ""
msgstr "Nieuwe scherminstellingen behouden?"
#: src/WindowManager.vala:2054
msgid "Changes will automatically revert after 30 seconds."
msgstr ""
msgstr "Veranderingen zullen automatisch worden teruggedraaid na 30 seconden."
#: src/WindowManager.vala:2057
msgid "Keep Settings"
msgstr ""
msgstr "Instellingen behouden"
#: src/WindowManager.vala:2058
msgid "Use Previous Settings"
msgstr ""
msgstr "Vorige instellingen terugzetten"
#. / TRANSLATORS: %s represents a timestamp here
#: src/WindowManager.vala:2084
#, fuzzy, c-format
#| msgid "Screenshots"
#, c-format
msgid "Screenshot from %s"
msgstr "Screenshots"
msgstr "Schermafbeelding van %s"
#: daemon/MenuDaemon.vala:115
msgid "Hide"
msgstr ""
msgstr "Verbergen"
#: daemon/MenuDaemon.vala:128
msgid "Move"
@ -81,10 +78,8 @@ msgid "Move to Workspace Right"
msgstr "Verplaats naar rechter werkblad"
#: daemon/MenuDaemon.vala:176
#, fuzzy
#| msgid "Screenshots"
msgid "Take Screenshot"
msgstr "Screenshots"
msgstr "Schermafbeelding nemen"
#: daemon/MenuDaemon.vala:184
msgid "Close"
@ -92,7 +87,7 @@ msgstr "Sluiten"
#: daemon/MenuDaemon.vala:223
msgid "Untile"
msgstr ""
msgstr "Stop met tegelen"
#: daemon/MenuDaemon.vala:223
msgid "Unmaximize"
@ -104,15 +99,15 @@ msgstr "Maximaliseren"
#: daemon/MenuDaemon.vala:291
msgid "Change Wallpaper…"
msgstr ""
msgstr "Verander achtergrond…"
#: daemon/MenuDaemon.vala:308
msgid "Display Settings…"
msgstr ""
msgstr "Scherminstellingen…"
#: daemon/MenuDaemon.vala:325
msgid "System Settings…"
msgstr ""
msgstr "Systeeminstellingen…"
#: data/gala.appdata.xml.in:7
msgid "Multitasking &amp; Window Management"
@ -140,7 +135,7 @@ msgstr "Verbeteringen:"
#: data/gala.appdata.xml.in:17
msgid "Use access portal for display settings confirmation dialog"
msgstr ""
msgstr "Gebruik toegangsportaal om scherminstellingen te bevestigen"
#: data/gala.appdata.xml.in:18 data/gala.appdata.xml.in:34
#: data/gala.appdata.xml.in:43 data/gala.appdata.xml.in:56
@ -152,101 +147,102 @@ msgstr "Bijgewerkte vertalingen"
#: data/gala.appdata.xml.in:24
msgid "Fixes:"
msgstr ""
msgstr "Fixes:"
#: data/gala.appdata.xml.in:26
msgid "Fix shadow clipping on server-side decorated windows"
msgstr ""
msgstr "Los schaduwclipping op bij door de server gedecoreerde vensters"
#: data/gala.appdata.xml.in:30
msgid "Support for high-resolution scroll events"
msgstr ""
msgstr "Ondersteuning voor scrolevenementen met een hoge resolutie"
#: data/gala.appdata.xml.in:31
msgid "Redesigned Alt + Tab switcher"
msgstr ""
msgstr "Vernieuwde Alt + Tab schakelaar"
#: data/gala.appdata.xml.in:32
#, fuzzy
#| msgid "Dims parent windows when spawning modal dialogs"
msgid "Dim the parents of modal dialogs"
msgstr ""
"Dim de hoofdvensters als een daaraan gehecht dialoogvenster wordt geopend"
msgstr "Verdimt de ouders van modale dialoogvensters"
#: data/gala.appdata.xml.in:33
msgid "Dialogs fall down on parents instead of shooting out"
msgstr ""
msgstr "Dialoogvensters vallen neer op ouders in plaats van omhoog te schieten"
#: data/gala.appdata.xml.in:42
#, fuzzy
#| msgid "Fix potential crash when taking screenshots"
msgid "Fix a potential crash when taking screenshots"
msgstr "Een mogelijke crash verholpen bij het maken van screenshots"
#: data/gala.appdata.xml.in:49
msgid "New features:"
msgstr ""
msgstr "Nieuwe functionaliteit:"
#: data/gala.appdata.xml.in:51
msgid "Stash the picture-in-picture window by pushing it off screen"
msgstr ""
"Verberg het picture-in-picture venster door het van het scherm af te duwen"
#: data/gala.appdata.xml.in:55
#, fuzzy
#| msgid "Fix potential crash when taking screenshots"
msgid "Fix a potential crash while changing wallpapers"
msgstr "Een mogelijke crash verholpen bij het maken van screenshots"
msgstr ""
"Een mogelijke crash verholpen bij het veranderen van het "
"bureaubladachtergrond"
#: data/gala.appdata.xml.in:64
msgid ""
"Include window decorations in screenshots for server-side decorated windows"
msgstr ""
"Begrijp vensterdecoraties in op schermafbeeldingen van door de server "
"gedecoreerde vensters"
#: data/gala.appdata.xml.in:73
msgid "Add multitouch gestures"
msgstr ""
msgstr "Multitouch-gebaren zijn toegevoegd"
#: data/gala.appdata.xml.in:74
msgid "Show window titles in multitasking view"
msgstr ""
msgstr "Toon venstertitels in het multitasking overzicht"
#: data/gala.appdata.xml.in:75
msgid "Close the Alt + Tab switcher by pressing Esc without releasing Alt"
msgstr ""
"Sluit de Alt + Tab schakelaar door op Esc te drukken zonder Alt lost te laten"
#: data/gala.appdata.xml.in:76
msgid "Increase maximum zoom level and provide feedback when unable to zoom"
msgstr ""
"Maximaal zoomniveau verhoogt en geef feedback wanneer inzoomen niet mogelijk "
"is"
#: data/gala.appdata.xml.in:77
msgid "Show a context menu when secondary clicking the background"
msgstr ""
msgstr "Toon een contextmenu met een secondaire muisklik op de achtergrond"
#: data/gala.appdata.xml.in:78
msgid "New Dwell Click and Locate Pointer animations"
msgstr ""
msgstr "Nieuwe Zwevend Klikken en Vind Aanwijzer animaties"
#: data/gala.appdata.xml.in:79
msgid "Add Take Screenshot to window context menu"
msgstr ""
msgstr "Voeg Neem Schermafbeelding toe aan het contextmenu van vensters"
#: data/gala.appdata.xml.in:80
#, fuzzy
#| msgid "Fix potential crash when taking screenshots"
msgid "Always play shutter sound when taking screenshots"
msgstr "Een mogelijke crash verholpen bij het maken van screenshots"
msgstr ""
"Speel altijd het camerasluiter geluid af bij het nemen van een "
"schermafbeelding"
#: data/gala.appdata.xml.in:81
msgid "Minor visual improvements"
msgstr ""
msgstr "Kleine visuele verbeteringen"
#: data/gala.appdata.xml.in:82
msgid "HiDPI fixes"
msgstr ""
msgstr "HiDPI fixes"
#: data/gala.appdata.xml.in:83
msgid "Performance improvements"
msgstr ""
msgstr "Prestatie verbeteringen"
#: data/gala.appdata.xml.in:92
msgid ""

View File

@ -56,7 +56,7 @@ namespace Gala {
}
}
void swap_background_actor () {
void swap_background_actor (bool animate) {
return_if_fail (new_background_actor != null);
var old_background_actor = background_actor;
@ -66,22 +66,27 @@ namespace Gala {
if (old_background_actor == null)
return;
var transition = new Clutter.PropertyTransition ("opacity");
transition.set_from_value (255);
transition.set_to_value (0);
transition.duration = FADE_ANIMATION_TIME;
transition.progress_mode = Clutter.AnimationMode.EASE_OUT_QUAD;
transition.remove_on_complete = true;
transition.completed.connect (() => {
if (animate) {
var transition = new Clutter.PropertyTransition ("opacity");
transition.set_from_value (255);
transition.set_to_value (0);
transition.duration = FADE_ANIMATION_TIME;
transition.progress_mode = Clutter.AnimationMode.EASE_OUT_QUAD;
transition.remove_on_complete = true;
transition.completed.connect (() => {
old_background_actor.destroy ();
changed ();
});
old_background_actor.add_transition ("fade-out", transition);
} else {
old_background_actor.destroy ();
changed ();
});
old_background_actor.add_transition ("fade-out", transition);
}
}
void update_background_actor () {
void update_background_actor (bool animate = true) {
if (new_background_actor != null) {
// Skip displaying existing background queued for load
new_background_actor.destroy ();
@ -108,7 +113,7 @@ namespace Gala {
#endif
if (background.is_loaded) {
swap_background_actor ();
swap_background_actor (animate);
return;
}
@ -117,13 +122,15 @@ namespace Gala {
SignalHandler.disconnect (background, handler);
background.set_data<ulong> ("background-loaded-handler", 0);
swap_background_actor ();
swap_background_actor (animate);
});
background.set_data<ulong> ("background-loaded-handler", handler);
}
public void set_size (float width, float height) {
background_actor.set_size (width, height);
if (width != background_actor.width || height != background_actor.height) {
update_background_actor (false);
}
}
Meta.BackgroundActor create_background_actor () {

View File

@ -61,6 +61,10 @@ namespace Gala {
}
public virtual signal void show () {
if (portal == null) {
return;
}
path = new ObjectPath (GALA_DIALOG_PATH + "/%i".printf (Random.int_range (0, int.MAX)));
string parent_handler = "";
var app_id = "";

View File

@ -88,7 +88,6 @@ namespace Gala {
Actor? prev_parent = null;
Actor close_button;
Actor icon_container;
Cogl.Material dummy_material;
uint show_close_button_timeout = 0;
@ -103,8 +102,6 @@ namespace Gala {
canvas.draw.connect (draw);
content = canvas;
dummy_material = new Cogl.Material ();
drag_action = new DragDropAction (DragDropActionType.SOURCE | DragDropActionType.DESTINATION, "multitaskingview-window");
drag_action.actor_clicked.connect (() => selected ());
drag_action.drag_begin.connect (drag_begin);

View File

@ -157,6 +157,11 @@ namespace Gala {
set_position (primary_geometry.x, primary_geometry.y);
set_size (primary_geometry.width, primary_geometry.height);
foreach (var child in workspaces.get_children ()) {
unowned WorkspaceClone workspace_clone = (WorkspaceClone) child;
workspace_clone.update_size (primary_geometry);
}
}
/**

View File

@ -266,7 +266,7 @@ namespace Gala {
* itself at the location of the original window. Also adds the shadow
* effect and makes sure the shadow is updated on size changes.
*
* @param was_waiting Internal argument used to indicate that we had to
* @param was_waiting Internal argument used to indicate that we had to
* wait before the window's texture became available.
*/
void load_clone (bool was_waiting = false) {
@ -409,10 +409,16 @@ namespace Gala {
window_icon.opacity = 0;
set_window_icon_position (outer_rect.width, outer_rect.height);
window_icon.get_transition ("opacity").completed.connect (() => {
var transition = window_icon.get_transition ("opacity");
if (transition != null) {
transition.completed.connect (() => {
in_slot_animation = false;
place_widgets (outer_rect.width, outer_rect.height);
});
} else {
in_slot_animation = false;
place_widgets (outer_rect.width, outer_rect.height);
});
}
};
if (!animate || gesture_tracker == null || !with_gesture) {
@ -570,8 +576,6 @@ namespace Gala {
* at their positions inside the actor for a given width and height.
*/
public void place_widgets (int dest_width, int dest_height) {
Granite.CloseButtonPosition pos;
Granite.Widgets.Utils.get_default_close_button_position (out pos);
var scale_factor = InternalUtils.get_ui_scaling_factor ();
close_button.save_easing_state ();
@ -583,21 +587,15 @@ namespace Gala {
close_button.set_size (close_button_size, close_button_size);
close_button.y = -close_button.height * 0.33f;
switch (pos) {
case Granite.CloseButtonPosition.RIGHT:
close_button.x = dest_width - close_button.width * 0.5f;
break;
case Granite.CloseButtonPosition.LEFT:
close_button.x = -close_button.width * 0.5f;
break;
}
close_button.x = is_close_button_on_left () ?
-close_button.width * 0.5f :
dest_width - close_button.width * 0.5f;
bool show = has_pointer && !in_slot_animation;
close_button.opacity = show ? 255 : 0;
window_title.opacity = close_button.opacity;
window_title.set_text (window.get_title (), false);
window_title.set_text (window.get_title () ?? "", false);
window_title.set_max_width (dest_width - (TITLE_MAX_WIDTH_MARGIN * scale_factor));
set_window_title_position (dest_width, dest_height);
@ -739,7 +737,7 @@ namespace Gala {
/**
* When we cross an IconGroup, we animate to an even smaller size and slightly
* less opacity and add ourselves as temporary window to the group. When left,
* less opacity and add ourselves as temporary window to the group. When left,
* we reverse those steps.
*/
void drag_destination_crossed (Actor destination, bool hovered) {
@ -902,5 +900,16 @@ namespace Gala {
var y = InternalUtils.pixel_align (window_height - (WINDOW_ICON_SIZE * scale_factor) * 0.75f - (window_title.height / 2) - (18 * scale_factor));
window_title.set_position (x, y);
}
private static bool is_close_button_on_left () {
var layout = Meta.Prefs.get_button_layout ();
foreach (var button_function in layout.right_buttons) {
if (button_function == Meta.ButtonFunction.CLOSE) {
return false;
}
}
return true;
}
}
}

View File

@ -266,7 +266,7 @@ namespace Gala {
remove_window (window);
}
void update_size (Meta.Rectangle monitor_geometry) {
public void update_size (Meta.Rectangle monitor_geometry) {
if (window_container.width != monitor_geometry.width || window_container.height != monitor_geometry.height) {
window_container.set_size (monitor_geometry.width, monitor_geometry.height);
background.set_size (window_container.width, window_container.height);

View File

@ -0,0 +1,53 @@
namespace Clutter {
public struct Color {
[CCode (cname = "_vala_clutter_color_from_hls")]
public static Clutter.Color? from_hls (float hue, float luminance, float saturation) {
var color = Clutter.Color.alloc ();
color.init_from_hls (hue, luminance, saturation);
return color;
}
[CCode (cname = "_vala_clutter_color_from_pixel")]
public static Clutter.Color? from_pixel (uint32 pixel) {
var color = Clutter.Color.alloc ();
color.init_from_pixel (pixel);
return color;
}
[CCode (cname = "_vala_clutter_color_from_string")]
public static Clutter.Color? from_string (string str) {
var color = Clutter.Color.alloc ();
color.init_from_string (str);
return color;
}
[CCode (cname = "clutter_color_from_string")]
public bool parse_string (string str);
}
public interface Container : GLib.Object {
public void add (params Clutter.Actor[] actors);
[CCode (cname = "clutter_container_class_find_child_property")]
public class unowned GLib.ParamSpec find_child_property (string property_name);
[CCode (cname = "clutter_container_class_list_child_properties")]
public class unowned GLib.ParamSpec[] list_child_properties ();
}
public struct Units {
[CCode (cname = "clutter_units_from_cm")]
public Units.from_cm (float cm);
[CCode (cname = "clutter_units_from_em")]
public Units.from_em (float em);
[CCode (cname = "clutter_units_from_em_for_font")]
public Units.from_em_for_font (string font_name, float em);
[CCode (cname = "clutter_units_from_mm")]
public Units.from_mm (float mm);
[CCode (cname = "clutter_units_from_pixels")]
public Units.from_pixels (int px);
[CCode (cname = "clutter_units_from_pt")]
public Units.from_pt (float pt);
[CCode (cname = "clutter_units_from_string")]
public Units.from_string (string str);
}
[CCode (cheader_filename = "clutter/clutter.h", has_copy_function = false, has_destroy_function = false, has_type_id = false)]
public struct Capture {
}
}

192
vapi/Clutter-10.metadata Normal file
View File

@ -0,0 +1,192 @@
// Non mini-object
ActorBox struct
Color struct
Knot struct
Margin struct
PaintVolume struct
PathNode struct
Perspective struct
Units struct
*.ref unowned
Actor
.apply_transform.matrix ref
.get_abs_allocation_vertices.verts out=false
Canvas
.new symbol_type="constructor"
Event.type#method name="get_type"
Image
.new symbol_type="constructor"
// ???
Actor.has_pointer#method name="get_has_pointer"
ScriptError errordomain
ImageError errordomain
// Not all backing symbols are deprecated
Actor.pick deprecated=false
// Nullable return values
Actor
.get_parent nullable
value_get_color nullable
// method/virtual-method/signal don't match
Actor
.event#method name="emit_event"
.get_paint_volume#virtual_method name="get_paint_volume_vfunc"
.get_paint_volume#virtual_method.volume out
Container
.add_actor skip=false
.class_* skip
Text
.activate#method name="try_activate"
.insert_text#signal skip
TextBuffer.get_text#virtual_method name="get_text_with_length"
// virtual/abstract distinction
Container
.*_child_meta#virtual_method virtual
// Default values
Stage.read_pixels
.width default=-1
.height default=-1
Stage.paint_to_buffer
.data type="uint8[]"
Text
.position_to_coords.line_height default=null
// Reparented funcs methods can't be instance methods
feature_available skip
feature_get_all skip
// Skipped by g-i for unknown reasons
LayoutManager
.create_child_meta skip=false
// Variadic arguments
Backend
.get_cogl_context skip=false
Container
.child_get skip=false
.child_set skip=false
.remove skip=false
Interval
.new skip=false
.get_interval skip=false
.set_final skip=false
.set_initial skip=false
.set_interval skip=false
LayoutManager
.child_get skip=false
.child_set skip=false
Script
.get_objects skip=false
// Skipped upstream for unknown reasons
Interval.register_progress_func skip=false
threads_add_idle skip=false
threads_add_idle_full skip=false
threads_add_timeout skip=false
threads_add_timeout_full skip=false
// struct/class confusion
ActorBox
.new skip
.from_vertices skip
Units.from_* skip
Margin
.new skip
// Class methods
container_class_find_child_property skip
container_class_list_child_properties skip
// Move symbols
units_from_* skip
// Struct return values
color_get_static nullable
// Upstream
Event
.get_position.position out
FrameListenerIface skip
FrameClock.new skip
// Remove for clutter-2.0
/////////////////////////
StageView.layout skip
Stage
.event name="emit_event"
.paint_view.redraw_clip type="Cairo.Region"
Capture
.image type="Cairo.ImageSurface"
// *Event should be compact classes derived from Clutter.Event
Event.type skip=false
AnyEvent struct=false base_type="Clutter.Event"
ButtonEvent struct=false base_type="Clutter.Event"
CrossingEvent struct=false base_type="Clutter.Event"
DeviceEvent struct=false base_type="Clutter.Event"
IMEvent struct=false base_type="Clutter.Event"
KeyEvent struct=false base_type="Clutter.Event"
MotionEvent struct=false base_type="Clutter.Event"
PadButtonEvent struct=false base_type="Clutter.Event"
PadRingEvent struct=false base_type="Clutter.Event"
PadStripEvent struct=false base_type="Clutter.Event"
ProximityEvent struct=false base_type="Clutter.Event"
ScrollEvent struct=false base_type="Clutter.Event"
TouchEvent struct=false base_type="Clutter.Event"
TouchpadHoldEvent struct=false base_type="Clutter.Event"
TouchpadPinchEvent struct=false base_type="Clutter.Event"
TouchpadSwipeEvent struct=false base_type="Clutter.Event"
// Keysyms used to be CLUTTER_X instead of CLUTTER_KEY_X
*#constant skip
COGL skip=false
CURRENT_TIME skip=false
FLAVOUR skip=false
PATH_RELATIVE skip=false
PRIORITY_REDRAW skip=false
// Clutter devs don't like us creating nested namespaces
value_* name="value_(.+)" parent="Clutter.Value"
threads_* name="threads_(.+)" parent="Clutter.Threads"
threads_add_idle name="add" parent="Clutter.Threads.Idle"
threads_add_idle_full name="add_full" parent="Clutter.Threads.Idle"
threads_add_timeout name="add" parent="Clutter.Threads.Timeout"
threads_add_timeout_full name="add_full" parent="Clutter.Threads.Timeout"
// Backwards compatibility
Color.alloc symbol_type="function"
Color.from_hls name="init_from_hls"
Color.from_pixel name="init_from_pixel"
Color.from_string name="init_from_string"
Color.new name="from_rgba" symbol_type="function"
.alpha default=0
.blue default=0
.green default=0
.red default=0
Color.init
.alpha default=0
.blue default=0
.green default=0
.red default=0
BinAlignment deprecated=false deprecated_since=null
BinAlignment.* deprecated
BinAlignment.start deprecated=false
BinLayout.new.*_align default=Clutter.BinAlignment.START
// Possibly keep
KEY_* skip=false name="KEY_(.+)" type="uint" parent="Clutter.Key"

161
vapi/Cogl-10-custom.vala Normal file
View File

@ -0,0 +1,161 @@
namespace Cogl {
public struct Color {
[Version (since = "1.4")]
[CCode (cname="cogl_color_init_from_4f")]
public Color.from_4f (float red, float green, float blue, float alpha);
[Version (since = "1.4")]
[CCode (cname="cogl_color_init_from_4fv")]
public Color.from_4fv (float color_array);
[Version (since = "1.4")]
[CCode (cname="cogl_color_init_from_4ub")]
public Color.from_4ub (uint8 red, uint8 green, uint8 blue, uint8 alpha);
[Version (since = "1.16")]
[CCode (cname="cogl_color_init_from_hsl")]
public Color.from_hsl (float hue, float saturation, float luminance);
}
[Compact]
[CCode (cname = "CoglHandle", cheader_filename = "cogl/cogl.h", type_id = "cogl_handle_get_gtype ()", ref_function = "cogl_object_ref", unref_function = "cogl_object_unref")]
public class Shader : Cogl.Handle {
}
[CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_primitive_get_gtype ()")]
public class Primitive : Cogl.Object {
[CCode (has_construct_function = false)]
protected Primitive ();
[Version (since = "1.10")]
public Cogl.Primitive copy ();
[Version (since = "1.16")]
public void draw (Cogl.Framebuffer framebuffer, Cogl.Pipeline pipeline);
public int get_first_vertex ();
public Cogl.VerticesMode get_mode ();
[Version (since = "1.8")]
public int get_n_vertices ();
[CCode (has_construct_function = false)]
[Version (since = "1.6")]
public Primitive.p2 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP2[] data);
[CCode (has_construct_function = false)]
[Version (since = "1.6")]
public Primitive.p2c4 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP2C4[] data);
[CCode (has_construct_function = false)]
[Version (since = "1.6")]
public Primitive.p2t2 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP2T2[] data);
[CCode (has_construct_function = false)]
[Version (since = "1.6")]
public Primitive.p2t2c4 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP2T2C4[] data);
[CCode (has_construct_function = false)]
[Version (since = "1.6")]
public Primitive.p3 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP3[] data);
[CCode (has_construct_function = false)]
[Version (since = "1.6")]
public Primitive.p3c4 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP3C4[] data);
[CCode (has_construct_function = false)]
[Version (since = "1.6")]
public Primitive.p3t2 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP3T2[] data);
[CCode (has_construct_function = false)]
[Version (since = "1.6")]
public Primitive.p3t2c4 (Cogl.Context context, Cogl.VerticesMode mode, [CCode (array_length_cname = "n_vertices", array_length_pos = 2.5)] Cogl.VertexP3T2C4[] data);
public void set_first_vertex (int first_vertex);
public void set_mode (Cogl.VerticesMode mode);
[Version (since = "1.8")]
public void set_n_vertices (int n_vertices);
}
[Compact]
[CCode (cname = "CoglHandle", cheader_filename = "cogl/cogl.h", type_id = "cogl_handle_get_gtype ()", ref_function = "cogl_object_ref", unref_function = "cogl_object_unref")]
public class Program : Cogl.Handle {
}
[Compact]
[CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_handle_get_gtype ()", ref_function = "cogl_object_ref", unref_function = "cogl_object_unref")]
public class Handle {
[CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_material")]
[Version (deprecated = true, deprecated_since = "1.16")]
public bool is_material ();
[CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_program")]
[Version (deprecated = true, deprecated_since = "1.16")]
public bool is_program (Cogl.Handle handle);
[CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_shader")]
[Version (deprecated = true, deprecated_since = "1.16")]
public bool is_shader ();
[CCode (cheader_filename = "cogl/cogl.h", cname="cogl_is_texture")]
public bool is_texture ();
}
[CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)]
[Version (since = "1.6")]
public struct VertexP2 {
public float x;
public float y;
}
[CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)]
[Version (since = "1.6")]
public struct VertexP2C4 {
public float x;
public float y;
public uint8 r;
public uint8 g;
public uint8 b;
public uint8 a;
}
[CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)]
[Version (since = "1.6")]
public struct VertexP2T2 {
public float x;
public float y;
public float s;
public float t;
}
[CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)]
[Version (since = "1.6")]
public struct VertexP2T2C4 {
public float x;
public float y;
public float s;
public float t;
public uint8 r;
public uint8 g;
public uint8 b;
public uint8 a;
}
[CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)]
[Version (since = "1.6")]
public struct VertexP3 {
public float x;
public float y;
public float z;
}
[CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)]
[Version (since = "1.6")]
public struct VertexP3C4 {
public float x;
public float y;
public float z;
public uint8 r;
public uint8 g;
public uint8 b;
public uint8 a;
}
[CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)]
[Version (since = "1.6")]
public struct VertexP3T2 {
public float x;
public float y;
public float z;
public float s;
public float t;
}
[CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)]
[Version (since = "1.6")]
public struct VertexP3T2C4 {
public float x;
public float y;
public float z;
public float s;
public float t;
public uint8 r;
public uint8 g;
public uint8 b;
public uint8 a;
}
}

68
vapi/Cogl-10.metadata Normal file
View File

@ -0,0 +1,68 @@
* cheader_filename="cogl/cogl.h"
Color struct
_ColorSizeCheck skip
_TextureVertexSizeCheck skip
Color.equal.v1 type="Cogl.Color"
Color.equal.v2 type="Cogl.Color"
color_equal skip
Context.free_timestamp_query.query owned
texture_new_* name="texture_new_(.+)" parent="Cogl.Texture"
Texture
.get_data.data type="uint8[]"
.new_from_data.data type="uint8[]"
.set_data.data type="uint8[]"
.set_region.data type="uint8[]"
Texture2D
.new_from_data skip=false
.new_from_data.data array=true
shader_* name="shader_(.+)" parent="Cogl.Shader"
shader_* symbol_type="method" instance_idx=0
program_* name="program_(.+)" parent="Cogl.Program"
program_attach_shader symbol_type="method" instance_idx=0
program_get_uniform_location symbol_type="method" instance_idx=0
program_link symbol_type="method" instance_idx=0
program_set_uniform_1f symbol_type="method" instance_idx=0
program_set_uniform_1i symbol_type="method" instance_idx=0
program_set_uniform_float symbol_type="method" instance_idx=0
program_set_uniform_int symbol_type="method" instance_idx=0
program_set_uniform_matrix symbol_type="method" instance_idx=0
is_bitmap parent="Cogl.Object" symbol_type="method" instance_idx=0
is_program parent="Cogl.Handle"
is_shader parent="Cogl.Handle"
is_texture parent="Cogl.Object" symbol_type="method" instance_idx=0
is_context parent="Cogl.Object" symbol_type="method" instance_idx=0
is_framebuffer parent="Cogl.Object" symbol_type="method" instance_idx=0
is_frame_info parent="Cogl.Object" symbol_type="method" instance_idx=0
is_pipeline parent="Cogl.Object" symbol_type="method" instance_idx=0
is_texture_2d parent="Cogl.Object" symbol_type="method" instance_idx=0
is_texture_2d_sliced parent="Cogl.Object" symbol_type="method" instance_idx=0
create_program type="unowned Cogl.Program" name="create" parent="Cogl.Program"
create_shader type="unowned Cogl.Shader" name="create" parent="Cogl.Shader"
foreach_feature parent="Cogl.Context" symbol_type="method" instance_idx=0
get_graphics_reset_status parent="Cogl.Context" symbol_type="method" instance_idx=0
has_feature parent="Cogl.Context" symbol_type="method" instance_idx=0
Bitmap.error_quark parent="Cogl.BitmapError" name="quark"
Texture.error_quark parent="Cogl.TextureError" name="quark"
texture_error_quark skip
Scanout.error_quark parent="Cogl.ScanoutError" name="quark"
scanout_error_quark skip
BitmapError errordomain
BlendStringError errordomain
RendererError errordomain
SystemError errordomain
TextureError errordomain
FramebufferError errordomain
ScanoutError errordomain

181
vapi/Meta-10.metadata Normal file
View File

@ -0,0 +1,181 @@
* skip=false
*.* skip=false
* cheader_filename="meta/main.h"
Backend cheader_filename="meta/meta-backend.h"
Backend.gpu_added skip
get_backend parent="Meta.Backend" cheader_filename="meta/meta-backend.h"
Background cheader_filename="meta/meta-background.h"
Background.set_file.file nullable
BackgroundContent.new symbol_type="constructor"
BackgroundActor cheader_filename="meta/meta-background-actor.h"
BackgroundContent cheader_filename="meta/meta-background-content.h"
BackgroundGroup cheader_filename="meta/meta-background-group.h"
BackgroundImage cheader_filename="meta/meta-background-image.h"
BackgroundImageCache cheader_filename="meta/meta-background-image.h"
Barrier cheader_filename="meta/barrier.h"
BarrierDirection cheader_filename="meta/barrier.h"
BarrierEvent cheader_filename="meta/barrier.h"
ButtonFunction cheader_filename="meta/common.h"
ButtonLayout cheader_filename="meta/common.h"
Compositor cheader_filename="meta/compositor.h"
Compositor.sync_stack.stack type_arguments="Meta.Window"
get_feedback_group_for_display parent="Meta.Display" symbol_type="method" name="get_feedback_group" instance_idx=0 cheader_filename="meta/compositor-mutter.h"
get_stage_for_display parent="Meta.Display" symbol_type="method" name="get_stage" instance_idx=0 cheader_filename="meta/compositor-mutter.h"
get_top_window_group_for_display parent="Meta.Display" symbol_type="method" name="get_top_window_group" instance_idx=0 cheader_filename="meta/compositor-mutter.h"
get_window_group_for_display parent="Meta.Display" symbol_type="method" name="get_window_group" instance_idx=0 cheader_filename="meta/compositor-mutter.h"
disable_unredirect_for_display parent="Meta.Display" symbol_type="method" name="disable_unredirect" instance_idx=0 cheader_filename="meta/compositor-mutter.h"
enable_unredirect_for_display parent="Meta.Display" symbol_type="method" name="enable_unredirect" instance_idx=0 cheader_filename="meta/compositor-mutter.h"
get_window_actors parent="Meta.Display" symbol_type="method" instance_idx=0 cheader_filename="meta/compositor-mutter.h" type_arguments="Meta.WindowActor"
focus_stage_window parent="Meta.Display" symbol_type="method" instance_idx=0 cheader_filename="meta/compositor-mutter.h"
CompEffect cheader_filename="meta/compositor.h"
CloseDialog cheader_filename="meta/meta-close-dialog.h"
CloseDialogResponse cheader_filename="meta/meta-close-dialog.h"
Context cheader_filename="meta/meta-context.h"
Cursor cheader_filename="meta/common.h"
CursorTracker cheader_filename="meta/meta-cursor-tracker.h"
CursorTracker.get_for_display parent="Meta.Display" symbol_type="method" instance_idx=0 name="get_cursor_tracker"
CursorTracker.get_pointer.mods out
DebugTopic cheader_filename="meta/util.h"
Direction cheader_filename="meta/common.h"
Display cheader_filename="meta/display.h"
DisplayCorner cheader_filename="meta/display.h"
DisplayDirection cheader_filename="meta/display.h"
Dnd cheader_filename="meta/meta-dnd.h"
EdgeType cheader_filename="meta/boxes.h"
Edge cheader_filename="meta/boxes.h"
Frame cheader_filename="meta/types.h"
FrameBorders cheader_filename="meta/common.h"
FrameFlags cheader_filename="meta/common.h"
FrameType cheader_filename="meta/common.h"
GrabOp cheader_filename="meta/common.h"
Group cheader_filename="meta/group.h"
Group.property_notify.event type="X.Event" ref
IdleMonitor cheader_filename="meta/meta-idle-monitor.h"
IdleMonitorWatchFunc cheader_filename="meta/meta-idle-monitor.h"
InhibitShortcutsDialog cheader_filename="meta/meta-inhibit-shortcuts-dialog.h"
InhibitShortcutsDialogResponse cheader_filename="meta/meta-inhibit-shortcuts-dialog.h"
KeyBinding cheader_filename="meta/keybindings.h"
keybindings_set_custom_handler parent="Meta.KeyBinding" name="set_custom_handler" cheader_filename="meta/keybindings.h"
KeyBindingAction cheader_filename="meta/prefs.h"
KeyBindingFlags cheader_filename="meta/prefs.h"
KeyHandlerFunc cheader_filename="meta/prefs.h"
KeyHandlerFunc.event type="Clutter.KeyEvent?"
KeyHandlerFunc.window nullable
LaunchContext cheader_filename="meta/meta-launch-context.h"
LaterType cheader_filename="meta/util.h"
LocaleDirection cheader_filename="meta/util.h"
MaximizeFlags cheader_filename="meta/window.h"
ModalOptions cheader_filename="meta/meta-plugin.h"
MonitorManager cheader_filename="meta/meta-monitor-manager.h"
MonitorSwitchConfigType cheader_filename="meta/meta-monitor-manager.h"
MotionDirection cheader_filename="meta/common.h"
PadActionType cheader_filename="meta/display.h"
Plugin cheader_filename="meta/meta-plugin.h"
Plugin.xevent_filter.event type="X.Event" ref
PluginInfo cheader_filename="meta/meta-plugin.h"
Preference cheader_filename="meta/prefs.h"
PrefsChangedFunc cheader_filename="meta/prefs.h"
Rectangle cheader_filename="meta/boxes.h" struct
RemoteAccessController cheader_filename="meta/meta-remote-access-controller.h"
RemoteAccessHandle cheader_filename="meta/meta-remote-access-controller.h"
Selection cheader_filename="meta/meta-selection.h"
SelectionSource cheader_filename="meta/meta-selection-source.h"
SelectionSourceMemory cheader_filename="meta/meta-selection-source-memory.h"
SelectionType cheader_filename="meta/meta-selection-source.h"
Settings cheader_filename="meta/meta-settings.h"
Shadow cheader_filename="meta/meta-shadow-factory.h"
ShadowFactory cheader_filename="meta/meta-shadow-factory.h"
ShadowMode cheader_filename="meta/meta-window-actor.h"
ShadowParams cheader_filename="meta/meta-shadow-factory.h"
ShapedTexture cheader_filename="meta/meta-shaped-texture.h"
Side cheader_filename="meta/common.h"
SizeChange cheader_filename="meta/compositor.h"
SoundPlayer cheader_filename="meta/meta-sound-player.h"
StartupNotification cheader_filename="meta/meta-startup-notification.h"
StartupNotification.changed.object type="Meta.StartupSequence"
StartupNotification.get_sequences type_arguments="Meta.StartupSequence"
StartupSequence cheader_filename="meta/meta-startup-notification.h"
StackLayer cheader_filename="meta/common.h"
Stage cheader_filename="meta/meta-stage.h"
Stage.is_focused parent="Meta.Display" symbol_type="method" name="stage_is_focused" instance_idx=0 cheader_filename="meta/compositor-mutter.h"
Strut cheader_filename="meta/boxes.h"
TabList cheader_filename="meta/display.h"
TabShowType cheader_filename="meta/display.h"
Theme cheader_filename="meta/theme.h"
theme_get_default cheader_filename="meta/theme.h"
theme_new cheader_filename="meta/theme.h"
VirtualModifier cheader_filename="meta/common.h"
Workspace cheader_filename="meta/workspace.h"
WorkspaceManager cheader_filename="meta/meta-workspace-manager.h"
Window cheader_filename="meta/window.h"
Window.focus#signal name="focused"
Window.icon type="Cairo.Surface"
Window.mini_icon type="Cairo.Surface"
WindowActor cheader_filename="meta/meta-window-actor.h"
WindowClientType cheader_filename="meta/window.h"
WindowForeachFunc cheader_filename="meta/window.h"
WindowGroup cheader_filename="meta/meta-window-group.h"
WindowMenuType cheader_filename="meta/compositor.h"
WindowShape cheader_filename="meta/meta-window-shape.h"
WindowType cheader_filename="meta/window.h"
X11Display cheader_filename="meta/meta-x11-display.h"
rect skip
prefs_* parent="Meta.Prefs" name="prefs_(.+)" cheader_filename="meta/prefs.h"
g_utf8_strndup skip
preference_to_string cheader_filename="meta/prefs.h"
frame_type_to_string cheader_filename="meta/util.h"
topic_to_string parent="Meta.DebugTopic" name="to_string"
CURRENT_TIME cheader_filename="meta/common.h"
ICON_WIDTH cheader_filename="meta/common.h"
ICON_HEIGHT cheader_filename="meta/common.h"
MINI_ICON_WIDTH cheader_filename="meta/common.h"
MINI_ICON_HEIGHT cheader_filename="meta/common.h"
DEFAULT_ICON_NAME cheader_filename="meta/common.h"
PRIORITY_RESIZE cheader_filename="meta/common.h"
PRIORITY_BEFORE_REDRAW cheader_filename="meta/common.h"
PRIORITY_REDRAW cheader_filename="meta/common.h"
PRIORITY_PREFS_NOTIFY cheader_filename="meta/common.h"
VIRTUAL_CORE_POINTER_ID cheader_filename="meta/common.h"
VIRTUAL_CORE_KEYBOARD_ID cheader_filename="meta/common.h"
add_verbose_topic parent="Meta.Util" cheader_filename="meta/util.h"
bug parent="Meta.Util" cheader_filename="meta/util.h"
external_binding_name_for_action parent="Meta.Util" cheader_filename="meta/util.h"
fatal parent="Meta.Util" cheader_filename="meta/util.h"
get_locale_direction parent="Meta.Util" cheader_filename="meta/util.h"
is_syncing parent="Meta.Util" cheader_filename="meta/util.h"
is_verbose parent="Meta.Util" cheader_filename="meta/util.h"
is_wayland_compositor parent="Meta.Util" cheader_filename="meta/util.h"
later_add parent="Meta.Util" cheader_filename="meta/util.h"
later_remove parent="Meta.Util" cheader_filename="meta/util.h"
pop_no_msg_prefix parent="Meta.Util" cheader_filename="meta/util.h"
push_no_msg_prefix parent="Meta.Util" cheader_filename="meta/util.h"
remove_verbose_topic parent="Meta.Util" cheader_filename="meta/util.h"
show_dialog parent="Meta.Util" cheader_filename="meta/util.h"
show_dialog.columns type_arguments="string" nullable default=null
show_dialog.entries type_arguments="string" nullable default=null
show_dialog.transient_for default=0
show_dialog.icon_name nullable default=null
show_dialog.cancel_text nullable default=null
show_dialog.ok_text nullable default=null
show_dialog.display nullable default=null
show_dialog.timeout nullable default=null
unsigned_long_equal parent="Meta.Util" name="ulong_equal" cheader_filename="meta/util.h"
unsigned_long_equal.v1 type="ulong?"
unsigned_long_equal.v2 type="ulong?"
unsigned_long_hash parent="Meta.Util" name="ulong_hash" cheader_filename="meta/util.h"
unsigned_long_hash.v type="ulong?"
warning parent="Meta.Util" cheader_filename="meta/util.h"
create_context parent="Meta.Context" name="new" symbol_type="constructor" cheader_filename="meta/meta-context.h"
x11_error_trap_pop parent="Meta.X11Display" symbol_type="method" name="error_trap_pop" instance_idx=0 cheader_filename="meta/meta-x11-errors.h"
x11_error_trap_pop_with_return parent="Meta.X11Display" symbol_type="method" name="error_trap_pop_with_return" instance_idx=0 cheader_filename="meta/meta-x11-errors.h"
x11_error_trap_push parent="Meta.X11Display" symbol_type="method" name="error_trap_push" instance_idx=0 cheader_filename="meta/meta-x11-errors.h"
x11_init_gdk_display parent="Meta.X11Display" cheader_filename="meta/meta-x11-display.h"

1
vapi/libmutter-10.deps Symbolic link
View File

@ -0,0 +1 @@
libmutter-9.deps

1
vapi/libmutter-10.vapi Symbolic link
View File

@ -0,0 +1 @@
libmutter-9.vapi

View File

@ -137,14 +137,18 @@ namespace Meta {
#endif
[CCode (cheader_filename = "meta/util.h", cname = "meta_show_dialog")]
public static GLib.Pid show_dialog (string type, string message, string? timeout = null, string? display = null, string? ok_text = null, string? cancel_text = null, string? icon_name = null, int transient_for = 0, GLib.SList<string>? columns = null, GLib.SList<string>? entries = null);
#if !HAS_MUTTER42
[CCode (cheader_filename = "meta/util.h", cname = "meta_topic_real")]
public static void topic_real (Meta.DebugTopic topic, string format, ...);
#endif
[CCode (cheader_filename = "meta/util.h", cname = "meta_unsigned_long_equal")]
public static int ulong_equal ([CCode (type = "gconstpointer")] ulong? v1, [CCode (type = "gconstpointer")] ulong? v2);
[CCode (cheader_filename = "meta/util.h", cname = "meta_unsigned_long_hash")]
public static uint ulong_hash ([CCode (type = "gconstpointer")] ulong? v);
#if !HAS_MUTTER42
[CCode (cheader_filename = "meta/util.h", cname = "meta_verbose_real")]
public static void verbose_real (string format, ...);
#endif
[CCode (cheader_filename = "meta/util.h", cname = "meta_warning")]
public static void warning (string format, ...);
}
@ -159,16 +163,24 @@ namespace Meta {
public unowned Meta.IdleMonitor get_core_idle_monitor ();
#endif
public unowned Meta.Dnd get_dnd ();
#if HAS_MUTTER42
public unowned Meta.MonitorManager get_monitor_manager ();
#endif
public unowned Meta.RemoteAccessController get_remote_access_controller ();
public unowned Meta.Settings get_settings ();
public unowned Clutter.Actor get_stage ();
#if HAS_MUTTER42
public bool is_headless ();
#endif
public bool is_rendering_hardware_accelerated ();
public void lock_layout_group (uint idx);
public void set_keymap (string layouts, string variants, string options);
#if HAS_MUTTER41
public Meta.Context context { get; construct; }
#endif
#if !HAS_MUTTER42
public void set_numlock (bool numlock_state);
#endif
public signal void keymap_changed ();
public signal void keymap_layout_group_changed (uint object);
public signal void last_device_changed (Clutter.InputDevice object);
@ -352,6 +364,10 @@ namespace Meta {
public void terminate_with_error (GLib.Error error);
[NoAccessorMethod]
public string name { owned get; construct; }
#if HAS_MUTTER42
[NoAccessorMethod]
public bool unsafe_mode { get; set; }
#endif
}
#endif
[CCode (cheader_filename = "meta/meta-cursor-tracker.h", type_id = "meta_cursor_tracker_get_type ()")]
@ -365,6 +381,9 @@ namespace Meta {
public void get_pointer (out int x, out int y, out Clutter.ModifierType mods);
#endif
public bool get_pointer_visible ();
#if HAS_MUTTER42
public float get_scale ();
#endif
public unowned Cogl.Texture get_sprite ();
public void set_pointer_visible (bool visible);
#if HAS_MUTTER338
@ -444,6 +463,9 @@ namespace Meta {
public unowned Meta.X11Display get_x11_display ();
public uint grab_accelerator (string accelerator, Meta.KeyBindingFlags flags);
public bool is_pointer_emulating_sequence (Clutter.EventSequence? sequence);
#if HAS_MUTTER42
public GLib.List<weak Meta.Window> list_all_windows ();
#endif
public bool remove_keybinding (string name);
public void request_pad_osd (Clutter.InputDevice pad, bool edition_mode);
public void set_cursor (Meta.Cursor cursor);
@ -569,6 +591,10 @@ namespace Meta {
public void switch_config (Meta.MonitorSwitchConfigType config_type);
[NoAccessorMethod]
public Meta.Backend backend { owned get; construct; }
#if HAS_MUTTER42
[NoAccessorMethod]
public bool has_builtin_panel { get; }
#endif
#if HAS_MUTTER338
public bool panel_orientation_managed { get; }
#endif
@ -855,6 +881,9 @@ namespace Meta {
public unowned Meta.Workspace get_workspace ();
public X.Window get_xwindow ();
public void group_leader_changed ();
#if HAS_MUTTER42
public bool has_attached_dialogs ();
#endif
public bool has_focus ();
public bool is_above ();
public bool is_always_on_all_workspaces ();
@ -923,6 +952,10 @@ namespace Meta {
public string gtk_window_object_path { get; }
[NoAccessorMethod]
public Cairo.Surface icon { owned get; }
#if HAS_MUTTER42
[NoAccessorMethod]
public bool is_alive { get; }
#endif
[NoAccessorMethod]
public bool maximized_horizontally { get; }
[NoAccessorMethod]
@ -968,6 +1001,9 @@ namespace Meta {
public unowned Meta.Window get_meta_window ();
public unowned Meta.ShapedTexture get_texture ();
public bool is_destroyed ();
#if HAS_MUTTER42
public Clutter.Content? paint_to_content (Meta.Rectangle? clip) throws GLib.Error;
#endif
public void sync_visibility ();
#if HAS_MUTTER338
public void thaw ();
@ -1277,6 +1313,10 @@ namespace Meta {
KMS,
SCREEN_CAST,
REMOTE_DESKTOP,
#endif
#if HAS_MUTTER42
BACKEND,
RENDER,
#endif
DBUS
}
@ -1433,7 +1473,9 @@ namespace Meta {
CYCLE_PANELS,
CYCLE_PANELS_BACKWARD,
SHOW_DESKTOP,
#if !HAS_MUTTER42
PANEL_MAIN_MENU,
#endif
PANEL_RUN_DIALOG,
TOGGLE_RECORDING,
SET_SPEW_MARK,
@ -1745,10 +1787,6 @@ namespace Meta {
#endif
[CCode (cheader_filename = "meta/main.h")]
public static void clutter_init ();
#if HAS_MUTTER41
[CCode (cheader_filename = "meta/meta-context.h")]
public static Meta.Context create_context (string name);
#endif
[CCode (cheader_filename = "meta/main.h")]
public static void exit (Meta.ExitCode code);
#if !HAS_MUTTER41

View File

@ -286,3 +286,72 @@ if mutter41_dep.found()
output: 'libmutter-9.vapi'
)
endif
if mutter42_dep.found()
cogl_target = custom_target('mutter-cogl-10',
command: [
vapigen,
mutter_typelib_dir / 'Cogl-10.gir',
'--library=mutter-cogl-10',
'--pkg=gobject-2.0',
'--pkg=cairo',
'--pkg=graphene-gobject-1.0',
vapigen_args,
files('Cogl-10-custom.vala')
],
output: 'mutter-cogl-10.vapi'
)
cogl_pango_target = custom_target('mutter-cogl-pango-10',
command: [
vapigen,
mutter_typelib_dir / 'CoglPango-10.gir',
'--library=mutter-cogl-pango-10',
'--pkg=mutter-cogl-10',
'--pkg=pangocairo',
vapigen_args
],
depends: cogl_target,
output: 'mutter-cogl-pango-10.vapi'
)
clutter_target = custom_target('mutter-clutter-10',
command: [
vapigen,
mutter_typelib_dir / 'Clutter-10.gir',
'--library=mutter-clutter-10',
'--pkg=graphene-gobject-1.0',
'--pkg=mutter-cogl-10',
'--pkg=mutter-cogl-pango-10',
'--pkg=atk',
'--pkg=gio-2.0',
'--pkg=json-glib-1.0',
'--pkg=pangocairo',
vapigen_args,
files('Clutter-10-custom.vala')
],
depends: [ cogl_target, cogl_pango_target ],
output: 'mutter-clutter-10.vapi'
)
libmutter_target = custom_target('libmutter-10',
command: [
vapigen,
mutter_typelib_dir / 'Meta-10.gir',
'--library=libmutter-10',
'--pkg=graphene-gobject-1.0',
'--pkg=mutter-cogl-10',
'--pkg=mutter-cogl-pango-10',
'--pkg=mutter-clutter-10',
'--pkg=atk',
'--pkg=gio-2.0',
'--pkg=json-glib-1.0',
'--pkg=pangocairo',
'--pkg=gtk+-3.0',
'--pkg=x11',
'--pkg=xfixes-4.0',
vapigen_args
],
depends: [ cogl_target, cogl_pango_target, clutter_target ],
output: 'libmutter-10.vapi'
)
endif

View File

@ -0,0 +1,6 @@
atk
cairo
pango
json-glib-1.0
mutter-cogl-10
graphene-gobject-1.0

1
vapi/mutter-clutter-10.vapi Symbolic link
View File

@ -0,0 +1 @@
mutter-clutter-9.vapi

View File

@ -3,7 +3,6 @@
[CCode (cprefix = "Clutter", gir_namespace = "Clutter", gir_version = "1.0", lower_case_cprefix = "clutter_")]
namespace Clutter {
namespace Key {
[CCode (cheader_filename = "clutter/clutter.h", cname = "CLUTTER_KEY_0")]
public const uint @0;
[CCode (cheader_filename = "clutter/clutter.h", cname = "CLUTTER_KEY_1")]
@ -4629,6 +4628,11 @@ namespace Clutter {
public abstract class Action : Clutter.ActorMeta {
[CCode (has_construct_function = false)]
protected Action ();
#if HAS_MUTTER42
public Clutter.EventPhase get_phase ();
[NoWrapper]
public virtual bool handle_event (Clutter.Event event);
#endif
}
[CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_actor_get_type ()")]
public class Actor : GLib.InitiallyUnowned, Atk.Implementor, Clutter.Animatable, Clutter.Container, Clutter.Scriptable {
@ -4638,6 +4642,9 @@ namespace Clutter {
public Actor ();
[Version (since = "1.4")]
public void add_action (Clutter.Action action);
#if HAS_MUTTER42
public void add_action_full (string name, Clutter.EventPhase phase, Clutter.Action action);
#endif
[Version (since = "1.4")]
public void add_action_with_name (string name, Clutter.Action action);
[Version (since = "1.10")]
@ -4724,7 +4731,7 @@ namespace Clutter {
public void get_abs_allocation_vertices ([CCode (array_length = false)] Graphene.Point3D verts[4]);
public virtual unowned Atk.Object get_accessible ();
[Version (since = "1.4")]
public unowned Clutter.Action get_action (string name);
public unowned Clutter.Action? get_action (string name);
[Version (since = "1.4")]
public GLib.List<weak Clutter.Action> get_actions ();
[Version (since = "0.8")]
@ -4745,7 +4752,7 @@ namespace Clutter {
public static unowned Clutter.Actor get_by_gid (uint32 id_);
#endif
[Version (since = "1.10")]
public unowned Clutter.Actor get_child_at_index (int index_);
public unowned Clutter.Actor? get_child_at_index (int index_);
[Version (since = "1.12")]
#if HAS_MUTTER40
public Graphene.Matrix get_child_transform ();
@ -4759,11 +4766,11 @@ namespace Clutter {
[Version (since = "1.4")]
public bool get_clip_to_allocation ();
[Version (since = "1.4")]
public unowned Clutter.Constraint get_constraint (string name);
public unowned Clutter.Constraint? get_constraint (string name);
[Version (since = "1.4")]
public GLib.List<weak Clutter.Constraint> get_constraints ();
[Version (since = "1.10")]
public unowned Clutter.Content get_content ();
public unowned Clutter.Content? get_content ();
[Version (since = "1.10")]
public Clutter.ActorBox get_content_box ();
[Version (since = "1.10")]
@ -4785,11 +4792,11 @@ namespace Clutter {
[Version (since = "1.10")]
public Clutter.AnimationMode get_easing_mode ();
[Version (since = "1.4")]
public unowned Clutter.Effect get_effect (string name);
public unowned Clutter.Effect? get_effect (string name);
[Version (since = "1.4")]
public GLib.List<weak Clutter.Effect> get_effects ();
[Version (since = "1.10")]
public unowned Clutter.Actor get_first_child ();
public unowned Clutter.Actor? get_first_child ();
#if HAS_MUTTER338
public bool get_fixed_position (out float x, out float y);
#endif
@ -4802,9 +4809,9 @@ namespace Clutter {
public bool get_has_pointer ();
public float get_height ();
[Version (since = "1.10")]
public unowned Clutter.Actor get_last_child ();
public unowned Clutter.Actor? get_last_child ();
[Version (since = "1.10")]
public unowned Clutter.LayoutManager get_layout_manager ();
public unowned Clutter.LayoutManager? get_layout_manager ();
[Version (since = "1.10")]
public Clutter.Margin get_margin ();
[Version (since = "1.10")]
@ -4817,9 +4824,9 @@ namespace Clutter {
public float get_margin_top ();
[Version (since = "1.10")]
public int get_n_children ();
public unowned string get_name ();
public unowned string? get_name ();
[Version (since = "1.10")]
public unowned Clutter.Actor get_next_sibling ();
public unowned Clutter.Actor? get_next_sibling ();
[Version (since = "1.8")]
public Clutter.OffscreenRedirect get_offscreen_redirect ();
public uint8 get_opacity ();
@ -4852,7 +4859,7 @@ namespace Clutter {
[Version (since = "0.8")]
public virtual void get_preferred_width (float for_height, out float min_width_p, out float natural_width_p);
[Version (since = "1.10")]
public unowned Clutter.Actor get_previous_sibling ();
public unowned Clutter.Actor? get_previous_sibling ();
[Version (since = "0.6")]
public bool get_reactive ();
[Version (since = "1.2")]
@ -4898,7 +4905,7 @@ namespace Clutter {
[Version (since = "0.8")]
public void get_transformed_size (out float width, out float height);
[Version (since = "1.10")]
public unowned Clutter.Transition get_transition (string name);
public unowned Clutter.Transition? get_transition (string name);
[Version (since = "1.12")]
public void get_translation (out float translate_x, out float translate_y, out float translate_z);
public float get_width ();
@ -5083,7 +5090,7 @@ namespace Clutter {
public void set_margin_right (float margin);
[Version (since = "1.10")]
public void set_margin_top (float margin);
public void set_name (string name);
public void set_name (string? name);
[Version (since = "1.8")]
public void set_offscreen_redirect (Clutter.OffscreenRedirect redirect);
public void set_opacity (uint8 opacity);
@ -5707,6 +5714,7 @@ namespace Clutter {
public bool get_homogeneous ();
[Version (since = "1.12")]
public Clutter.Orientation get_orientation ();
[Version (deprecated = true)]
public bool get_pack_start ();
public uint get_spacing ();
#if !HAS_MUTTER338
@ -5731,6 +5739,7 @@ namespace Clutter {
public void set_homogeneous (bool homogeneous);
[Version (since = "1.12")]
public void set_orientation (Clutter.Orientation orientation);
[Version (deprecated = true)]
public void set_pack_start (bool pack_start);
public void set_spacing (uint spacing);
#if !HAS_MUTTER338
@ -5747,6 +5756,7 @@ namespace Clutter {
public bool homogeneous { get; set; }
[Version (since = "1.12")]
public Clutter.Orientation orientation { get; set; }
[Version (deprecated = true)]
public bool pack_start { get; set; }
public uint spacing { get; set; }
#if !HAS_MUTTER338
@ -5778,7 +5788,9 @@ namespace Clutter {
public class ButtonEvent : Clutter.Event {
public double axes;
public uint32 button;
#if !HAS_MUTTER42
public uint click_count;
#endif
public weak Clutter.InputDevice device;
#if HAS_MUTTER40
public uint32 evdev_code;
@ -5884,6 +5896,13 @@ namespace Clutter {
#endif
public virtual void update_preferred_size (Clutter.Actor actor, Clutter.Orientation direction, float for_size, ref float minimum_size, ref float natural_size);
}
#if HAS_MUTTER42
[CCode (cheader_filename = "clutter/clutter.h", has_type_id = false)]
[Compact]
public class Context {
public unowned Clutter.Backend get_backend ();
}
#endif
[CCode (cheader_filename = "clutter/clutter.h", has_type_id = false)]
[Compact]
[Version (since = "0.2")]
@ -6035,8 +6054,10 @@ namespace Clutter {
public double get_axes (out uint n_axes);
[Version (since = "1.0")]
public uint32 get_button ();
#if !HAS_MUTTER42
[Version (since = "1.0")]
public uint get_click_count ();
#endif
[Version (since = "0.4")]
public void get_coords (out float x, out float y);
[Version (since = "1.0")]
@ -6324,6 +6345,9 @@ namespace Clutter {
public class IMEvent : Clutter.Event {
public Clutter.EventFlags flags;
public uint32 len;
#if HAS_MUTTER42
public Clutter.PreeditResetMode mode;
#endif
public int32 offset;
public weak Clutter.Actor source;
public weak Clutter.Stage stage;
@ -6362,6 +6386,7 @@ namespace Clutter {
public class InputDevice : GLib.Object {
[CCode (has_construct_function = false)]
protected InputDevice ();
#if !HAS_MUTTER42
#if HAS_MUTTER338
[Version (since = "1.2")]
public unowned Clutter.Actor get_actor (Clutter.EventSequence? sequence);
@ -6383,6 +6408,7 @@ namespace Clutter {
public bool get_coords (Clutter.EventSequence? sequence, out Graphene.Point point);
[Version (since = "1.0")]
public int get_device_id ();
#endif
#endif
[Version (since = "1.6")]
public Clutter.InputMode get_device_mode ();
@ -6408,8 +6434,10 @@ namespace Clutter {
[Version (since = "1.16")]
public Clutter.ModifierType get_modifier_state ();
#endif
#if !HAS_MUTTER42
[Version (since = "1.6")]
public uint get_n_axes ();
#endif
#if HAS_MUTTER40
public int get_n_buttons ();
#else
@ -6573,7 +6601,11 @@ namespace Clutter {
[NoWrapper]
public virtual void set_cursor_location (Graphene.Rect rect);
public void set_input_panel_state (Clutter.InputPanelState state);
#if HAS_MUTTER42
public void set_preedit_text (string? preedit, uint cursor, Clutter.PreeditResetMode mode);
#else
public void set_preedit_text (string? preedit, uint cursor);
#endif
[NoWrapper]
public virtual void set_surrounding (string text, uint cursor, uint anchor);
[NoWrapper]
@ -6898,7 +6930,11 @@ namespace Clutter {
public double deceleration { get; set; }
public bool interpolate { get; set; }
public Clutter.PanAxis pan_axis { get; set; }
#if HAS_MUTTER42
public signal bool pan (Clutter.Actor actor, bool is_interpolated);
#else
public virtual signal bool pan (Clutter.Actor actor, bool is_interpolated);
#endif
public virtual signal void pan_stopped (Clutter.Actor actor);
}
[CCode (cheader_filename = "clutter/clutter.h", lower_case_csuffix = "param_units", type_id = "clutter_param_units_get_type ()")]
@ -6958,6 +6994,9 @@ namespace Clutter {
public void destroy ();
#if HAS_MUTTER40
public Graphene.Matrix get_transform ();
#if HAS_MUTTER42
public void log_overlap (Clutter.Actor actor);
#endif
public void log_pick (Clutter.ActorBox box, Clutter.Actor actor);
public void pop_clip ();
public void pop_transform ();
@ -7041,7 +7080,11 @@ namespace Clutter {
public class RotateAction : Clutter.GestureAction {
[CCode (has_construct_function = false, type = "ClutterAction*")]
public RotateAction ();
#if HAS_MUTTER42
public signal bool rotate (Clutter.Actor actor, double angle);
#else
public virtual signal bool rotate (Clutter.Actor actor, double angle);
#endif
}
[CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_script_get_type ()")]
[Version (since = "0.6")]
@ -7163,8 +7206,10 @@ namespace Clutter {
public void set_pointer_a11y_settings (Clutter.PointerA11ySettings settings);
public void uninhibit_unfocus ();
public virtual void warp_pointer (int x, int y);
#if !HAS_MUTTER42
[NoAccessorMethod]
public Clutter.Backend backend { owned get; construct; }
#endif
public bool touch_mode { get; }
public signal void device_added (Clutter.InputDevice object);
public signal void device_removed (Clutter.InputDevice object);
@ -7320,8 +7365,10 @@ namespace Clutter {
public int64 get_frame_counter ();
[Version (since = "0.6")]
public unowned Clutter.Actor get_key_focus ();
#if !HAS_MUTTER42
[Version (since = "1.2")]
public void get_minimum_size (out uint width, out uint height);
#endif
[Version (since = "1.8")]
public bool get_motion_events_enabled ();
public Clutter.Perspective get_perspective ();
@ -7336,7 +7383,10 @@ namespace Clutter {
[Version (since = "1.2")]
public bool get_use_alpha ();
#if HAS_MUTTER338
public bool paint_to_buffer (Cairo.RectangleInt rect, float scale, [CCode (array_length = false, type = "uint8_t*")] uint8[] data, int stride, Cogl.PixelFormat format, Clutter.PaintFlag paint_flags) throws GLib.Error;
public bool paint_to_buffer (Cairo.RectangleInt rect, float scale, [CCode (array_length = false)] uint8[] data, int stride, Cogl.PixelFormat format, Clutter.PaintFlag paint_flags) throws GLib.Error;
#if HAS_MUTTER42
public Clutter.Content paint_to_content (Cairo.RectangleInt rect, float scale, Clutter.PaintFlag paint_flags) throws GLib.Error;
#endif
public void paint_to_framebuffer (Cogl.Framebuffer framebuffer, Cairo.RectangleInt rect, float scale, Clutter.PaintFlag paint_flags);
#else
[Version (since = "0.4")]
@ -7375,7 +7425,9 @@ namespace Clutter {
public void set_title (string title);
[Version (since = "1.2")]
public void set_use_alpha (bool use_alpha);
#if HAS_MUTTER40
#if HAS_MUTTER42
public void update_device (Clutter.InputDevice device, Clutter.EventSequence sequence, Graphene.Point point, uint32 time, Clutter.Actor new_actor, Cairo.Region region, bool emit_crossing);
#elif HAS_MUTTER40
public void update_device (Clutter.InputDevice device, Clutter.EventSequence sequence, Graphene.Point point, uint32 time, Clutter.Actor new_actor, bool emit_crossing);
#endif
#if !HAS_MUTTER338
@ -7512,8 +7564,6 @@ namespace Clutter {
#endif
[NoAccessorMethod]
public int64 vblank_duration_us { get; construct; }
#if HAS_MUTTER41
#endif
}
#if !HAS_MUTTER338
[CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_state_get_type ()")]
@ -7561,7 +7611,11 @@ namespace Clutter {
[Version (deprecated = true, deprecated_since = "1.14", since = "1.8")]
public virtual signal void swept (Clutter.Actor actor, Clutter.SwipeDirection direction);
[Version (since = "1.14")]
#if HAS_MUTTER42
public signal bool swipe (Clutter.Actor actor, Clutter.SwipeDirection direction);
#else
public virtual signal bool swipe (Clutter.Actor actor, Clutter.SwipeDirection direction);
#endif
}
[CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_tap_action_get_type ()")]
[Version (since = "1.14")]
@ -7901,6 +7955,21 @@ namespace Clutter {
public float x;
public float y;
}
#if HAS_MUTTER42
[CCode (cheader_filename = "clutter/clutter.h", has_type_id = false)]
[Compact]
public class TouchpadHoldEvent : Clutter.Event {
public Clutter.EventFlags flags;
public uint32 n_fingers;
public Clutter.TouchpadGesturePhase phase;
public weak Clutter.Actor source;
public weak Clutter.Stage stage;
public uint32 time;
public Clutter.EventType type;
public float x;
public float y;
}
#endif
[CCode (cheader_filename = "clutter/clutter.h", has_type_id = false)]
[Compact]
[Version (since = "1.24")]
@ -8016,10 +8085,14 @@ namespace Clutter {
public ZoomAction ();
public Graphene.Point get_focal_point ();
public Graphene.Point get_transformed_focal_point ();
#if HAS_MUTTER42
public signal bool zoom (Clutter.Actor actor, Graphene.Point focal_point, double factor);
#else
public Clutter.ZoomAxis get_zoom_axis ();
public void set_zoom_axis (Clutter.ZoomAxis axis);
public Clutter.ZoomAxis zoom_axis { get; set; }
public virtual signal bool zoom (Clutter.Actor actor, Graphene.Point focal_point, double factor);
#endif
}
[CCode (cheader_filename = "clutter/clutter.h", type_cname = "ClutterAnimatableInterface", type_id = "clutter_animatable_get_type ()")]
public interface Animatable : GLib.Object {
@ -8064,23 +8137,29 @@ namespace Clutter {
public class unowned GLib.ParamSpec find_child_property (string property_name);
[Version (since = "0.8")]
public virtual unowned Clutter.ChildMeta get_child_meta (Clutter.Actor actor);
#if !HAS_MUTTER42
[Version (deprecated = true, deprecated_since = "1.10", since = "0.4")]
public GLib.List<weak Clutter.Actor> get_children ();
#endif
[CCode (cname = "clutter_container_class_list_child_properties")]
public class unowned GLib.ParamSpec[] list_child_properties ();
#if !HAS_MUTTER42
[CCode (vfunc_name = "lower")]
[Version (deprecated = true, deprecated_since = "1.10", since = "0.6")]
public virtual void lower_child (Clutter.Actor actor, Clutter.Actor? sibling = null);
[CCode (vfunc_name = "raise")]
[Version (deprecated = true, deprecated_since = "1.10", since = "0.6")]
public virtual void raise_child (Clutter.Actor actor, Clutter.Actor? sibling = null);
#endif
[Version (deprecated = true, deprecated_since = "1.10", since = "0.4")]
public void remove (...);
[CCode (vfunc_name = "remove")]
[Version (deprecated = true, deprecated_since = "1.10", since = "0.4")]
public abstract void remove_actor (Clutter.Actor actor);
#if !HAS_MUTTER42
[Version (deprecated = true, deprecated_since = "1.10", since = "0.6")]
public abstract void sort_depth_order ();
#endif
public virtual signal void actor_added (Clutter.Actor actor);
public virtual signal void actor_removed (Clutter.Actor actor);
[HasEmitter]
@ -8162,8 +8241,8 @@ namespace Clutter {
public void init (Clutter.Actor root);
[Version (since = "1.12")]
public bool is_valid ();
public bool next (out unowned Clutter.Actor child);
public bool prev (out unowned Clutter.Actor child);
public bool next (out unowned Clutter.Actor? child);
public bool prev (out unowned Clutter.Actor? child);
public void remove ();
}
[CCode (cheader_filename = "clutter/clutter.h", has_copy_function = false, has_destroy_function = false, has_type_id = false)]
@ -8573,6 +8652,13 @@ namespace Clutter {
#endif
FLAG_REPEATED
}
#if HAS_MUTTER42
[CCode (cheader_filename = "clutter/clutter.h", cprefix = "CLUTTER_PHASE_", type_id = "clutter_event_phase_get_type ()")]
public enum EventPhase {
CAPTURE,
BUBBLE
}
#endif
[CCode (cheader_filename = "clutter/clutter.h", cprefix = "CLUTTER_", type_id = "clutter_event_type_get_type ()")]
[Version (since = "0.4")]
public enum EventType {
@ -8599,6 +8685,9 @@ namespace Clutter {
TOUCH_CANCEL,
TOUCHPAD_PINCH,
TOUCHPAD_SWIPE,
#if HAS_MUTTER42
TOUCHPAD_HOLD,
#endif
PROXIMITY_IN,
PROXIMITY_OUT,
PAD_BUTTON_PRESS,
@ -8621,12 +8710,14 @@ namespace Clutter {
#if !HAS_MUTTER338
SWAP_THROTTLE,
#endif
#if !HAS_MUTTER42
STAGE_STATIC,
STAGE_CURSOR,
SHADERS_GLSL,
OFFSCREEN,
STAGE_MULTIPLE,
SWAP_EVENTS
SWAP_EVENTS,
#endif
SHADERS_GLSL
}
[CCode (cheader_filename = "clutter/clutter.h", cprefix = "CLUTTER_FLOW_", type_id = "clutter_flow_orientation_get_type ()")]
[Version (since = "1.2")]
@ -8678,6 +8769,7 @@ namespace Clutter {
TOP,
BOTTOM
}
#if !HAS_MUTTER42
[CCode (cheader_filename = "clutter/clutter.h", cprefix = "CLUTTER_INIT_", type_id = "clutter_init_error_get_type ()")]
[Version (since = "0.2")]
public enum InitError {
@ -8688,6 +8780,7 @@ namespace Clutter {
ERROR_INTERNAL;
public static GLib.Quark quark ();
}
#endif
[CCode (cheader_filename = "clutter/clutter.h", cprefix = "CLUTTER_INPUT_AXIS_", type_id = "clutter_input_axis_get_type ()")]
[Version (since = "1.6")]
public enum InputAxis {
@ -8980,6 +9073,13 @@ namespace Clutter {
DWELL,
GESTURE
}
#if HAS_MUTTER42
[CCode (cheader_filename = "clutter/clutter.h", cprefix = "CLUTTER_PREEDIT_RESET_", type_id = "clutter_preedit_reset_mode_get_type ()")]
public enum PreeditResetMode {
CLEAR,
COMMIT
}
#endif
[CCode (cheader_filename = "clutter/clutter.h", cprefix = "CLUTTER_REPAINT_FLAGS_", type_id = "clutter_repaint_flags_get_type ()")]
[Flags]
[Version (since = "1.10")]
@ -9191,6 +9291,7 @@ namespace Clutter {
POINTER,
TOUCHSCREEN
}
#if !HAS_MUTTER42
[CCode (cheader_filename = "clutter/clutter.h", cprefix = "CLUTTER_ZOOM_", type_id = "clutter_zoom_axis_get_type ()")]
[Version (since = "1.12")]
public enum ZoomAxis {
@ -9198,6 +9299,7 @@ namespace Clutter {
Y_AXIS,
BOTH
}
#endif
[CCode (cheader_filename = "clutter/clutter.h", cprefix = "CLUTTER_IMAGE_ERROR_INVALID_")]
[Version (since = "1.10")]
public errordomain ImageError {
@ -9309,17 +9411,21 @@ namespace Clutter {
[CCode (cheader_filename = "clutter/clutter.h")]
[Version (since = "1.0")]
public static unowned Pango.FontMap get_font_map ();
#if !HAS_MUTTER42
[CCode (cheader_filename = "clutter/clutter.h")]
[Version (since = "0.2")]
public static GLib.OptionGroup get_option_group ();
[CCode (cheader_filename = "clutter/clutter.h")]
[Version (since = "0.8")]
public static GLib.OptionGroup get_option_group_without_init ();
#endif
[CCode (cheader_filename = "clutter/clutter.h")]
[Version (since = "0.6")]
public static unowned string get_script_id (GLib.Object gobject);
#if !HAS_MUTTER42
[CCode (cheader_filename = "clutter/clutter.h")]
public static Clutter.InitError init ([CCode (array_length_cname = "argc", array_length_pos = 0.5)] ref unowned string[]? argv);
#endif
#if !HAS_MUTTER41
[CCode (cheader_filename = "clutter/clutter.h")]
[Version (since = "0.2")]

1
vapi/mutter-cogl-10.deps Symbolic link
View File

@ -0,0 +1 @@
mutter-cogl-9.deps

1
vapi/mutter-cogl-10.vapi Symbolic link
View File

@ -0,0 +1 @@
mutter-cogl-9.vapi

View File

@ -27,6 +27,10 @@ namespace Cogl {
[CCode (cheader_filename = "cogl/cogl.h", cname = "cogl_foreach_feature")]
[Version (since = "1.10")]
public void foreach_feature (Cogl.FeatureCallback callback);
#if HAS_MUTTER42
public void free_timestamp_query (owned Cogl.TimestampQuery query);
public int64 get_gpu_time_ns ();
#endif
#if !HAS_MUTTER40
[CCode (cheader_filename = "cogl/cogl.h", cname = "cogl_get_clock_time")]
[Version (since = "1.14")]
@ -45,6 +49,9 @@ namespace Cogl {
#endif
#if HAS_MUTTER40
public void set_named_pipeline (Cogl.PipelineKey key, Cogl.Pipeline? pipeline);
#endif
#if HAS_MUTTER42
public int64 timestamp_query_get_time_ns (Cogl.TimestampQuery query);
#endif
}
[CCode (cheader_filename = "cogl/cogl.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "cogl_frame_closure_get_gtype ()")]
@ -69,8 +76,14 @@ namespace Cogl {
#endif
[Version (since = "1.14")]
public float get_refresh_rate ();
#if HAS_MUTTER42
public int64 get_rendering_duration_ns ();
#endif
#if HAS_MUTTER40
public uint get_sequence ();
#if HAS_MUTTER42
public int64 get_time_before_buffer_swap_us ();
#endif
public bool is_hw_clock ();
public bool is_vsync ();
public bool is_zero_copy ();
@ -224,6 +237,7 @@ namespace Cogl {
[CCode (cheader_filename = "cogl/cogl.h", cname = "cogl_is_texture")]
public bool is_texture ();
}
#if !HAS_MUTTER42
[CCode (cheader_filename = "cogl/cogl.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "cogl_material_get_type ()")]
[Compact]
public class Material : Cogl.Handle {
@ -265,6 +279,7 @@ namespace Cogl {
[Compact]
public class MaterialLayer : Cogl.Handle {
}
#endif
[CCode (cheader_filename = "cogl/cogl.h", type_id = "cogl_object_get_gtype ()")]
public abstract class Object {
[CCode (has_construct_function = false)]
@ -353,6 +368,9 @@ namespace Cogl {
#endif
[Version (since = "2.0")]
public void hide ();
#if HAS_MUTTER42
public virtual void queue_damage_region (int rectangles, int n_rectangles);
#endif
[Version (since = "1.16")]
public void remove_dirty_callback (Cogl.OnscreenDirtyClosure closure);
[Version (since = "1.14")]
@ -620,6 +638,12 @@ namespace Cogl {
[Version (since = "1.16")]
public Texture2DSliced.from_bitmap (Cogl.Bitmap bmp, int max_waste);
}
#if HAS_MUTTER42
[CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)]
[Compact]
public class TimestampQuery {
}
#endif
#if HAS_MUTTER338
[CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)]
[Compact]
@ -751,13 +775,13 @@ namespace Cogl {
public interface Texture : Cogl.Object {
public bool allocate () throws GLib.Error;
[CCode (cheader_filename = "cogl/cogl.h", cname = "cogl_texture_new_from_bitmap")]
[Version (deprecated = true, deprecated_since = "1.18", since = "1.0")]
[Version (deprecated = true, deprecated_since = "1.18", replacement = "Texture.new_from_bitmap", since = "1.0")]
public static Cogl.Texture from_bitmap (Cogl.Bitmap bitmap, Cogl.TextureFlags flags, Cogl.PixelFormat internal_format);
[CCode (cheader_filename = "cogl/cogl.h", cname = "cogl_texture_new_from_data")]
[Version (deprecated = true, deprecated_since = "1.18", since = "0.8")]
[Version (deprecated = true, deprecated_since = "1.18", replacement = "Texture.new_from_data", since = "0.8")]
public static Cogl.Texture from_data (int width, int height, Cogl.TextureFlags flags, Cogl.PixelFormat format, Cogl.PixelFormat internal_format, int rowstride, [CCode (array_length = false)] uint8[] data);
[CCode (cheader_filename = "cogl/cogl.h", cname = "cogl_texture_new_from_file")]
[Version (deprecated = true, deprecated_since = "1.18", since = "0.8")]
[Version (deprecated = true, deprecated_since = "1.18", replacement = "Texture.new_from_file", since = "0.8")]
public static Cogl.Texture from_file (string filename, Cogl.TextureFlags flags, Cogl.PixelFormat internal_format) throws GLib.Error;
[Version (since = "1.18")]
public Cogl.TextureComponents get_components ();
@ -775,10 +799,12 @@ namespace Cogl {
public static Cogl.Texture new_from_data (int width, int height, Cogl.TextureFlags flags, Cogl.PixelFormat format, Cogl.PixelFormat internal_format, int rowstride, [CCode (array_length = false)] uint8[] data);
[Version (deprecated = true, deprecated_since = "1.18", since = "0.8")]
public static Cogl.Texture new_from_file (string filename, Cogl.TextureFlags flags, Cogl.PixelFormat internal_format) throws GLib.Error;
#if !HAS_MUTTER42
[Version (deprecated = true, deprecated_since = "1.18", since = "1.2")]
public Cogl.Texture new_from_sub_texture (int sub_x, int sub_y, int sub_width, int sub_height);
[Version (deprecated = true, deprecated_since = "1.18", since = "0.8")]
public static Cogl.Texture new_with_size (uint width, uint height, Cogl.TextureFlags flags, Cogl.PixelFormat internal_format);
#endif
[Version (since = "1.18")]
public void set_components (Cogl.TextureComponents components);
public bool set_data (Cogl.PixelFormat format, int rowstride, [CCode (array_length = false)] uint8[] data, int level) throws GLib.Error;
@ -787,9 +813,11 @@ namespace Cogl {
public bool set_region (int src_x, int src_y, int dst_x, int dst_y, uint dst_width, uint dst_height, int width, int height, Cogl.PixelFormat format, uint rowstride, [CCode (array_length = false)] uint8[] data);
[Version (since = "1.8")]
public bool set_region_from_bitmap (int src_x, int src_y, int dst_x, int dst_y, uint dst_width, uint dst_height, Cogl.Bitmap bitmap);
#if !HAS_MUTTER42
[CCode (cheader_filename = "cogl/cogl.h", cname = "cogl_texture_new_with_size")]
[Version (deprecated = true, deprecated_since = "1.18", since = "0.8")]
public static Cogl.Texture with_size (uint width, uint height, Cogl.TextureFlags flags, Cogl.PixelFormat internal_format);
#endif
}
[CCode (cheader_filename = "cogl/cogl.h")]
[SimpleType]
@ -828,6 +856,14 @@ namespace Cogl {
public float get_red ();
public uint8 get_red_byte ();
public float get_red_float ();
[Version (since = "1.4")]
public void init_from_4f (float red, float green, float blue, float alpha);
[Version (since = "1.4")]
public void init_from_4fv (float color_array);
[Version (since = "1.4")]
public void init_from_4ub (uint8 red, uint8 green, uint8 blue, uint8 alpha);
[Version (since = "1.16")]
public void init_from_hsl (float hue, float saturation, float luminance);
public void premultiply ();
[Version (since = "1.4")]
public void set_alpha (float alpha);
@ -945,6 +981,9 @@ namespace Cogl {
public struct TraceHead {
public uint64 begin_time;
public weak string name;
#if HAS_MUTTER42
public weak string description;
#endif
}
#endif
[CCode (cheader_filename = "cogl/cogl.h", has_type_id = false)]
@ -1093,6 +1132,12 @@ namespace Cogl {
#if HAS_MUTTER338
[CCode (cname = "COGL_FEATURE_ID_BLIT_FRAMEBUFFER")]
OGL_FEATURE_ID_BLIT_FRAMEBUFFER,
#endif
#if HAS_MUTTER42
[CCode (cname = "COGL_FEATURE_ID_TIMESTAMP_QUERY")]
OGL_FEATURE_ID_TIMESTAMP_QUERY,
[CCode (cname = "COGL_FEATURE_ID_GET_GPU_TIME")]
OGL_FEATURE_ID_GET_GPU_TIME,
#endif
[CCode (cname = "COGL_FEATURE_ID_TEXTURE_EGL_IMAGE_EXTERNAL")]
OGL_FEATURE_ID_TEXTURE_EGL_IMAGE_EXTERNAL
@ -1122,6 +1167,7 @@ namespace Cogl {
SHORT,
INT
}
#if !HAS_MUTTER42
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_MATERIAL_ALPHA_FUNC_", has_type_id = false)]
public enum MaterialAlphaFunc {
NEVER,
@ -1149,6 +1195,7 @@ namespace Cogl {
CLAMP_TO_EDGE,
AUTOMATIC
}
#endif
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_PIPELINE_ALPHA_FUNC_", has_type_id = false)]
public enum PipelineAlphaFunc {
NEVER,
@ -1204,12 +1251,24 @@ namespace Cogl {
ABGR_8888,
RGBA_1010102,
BGRA_1010102,
#if HAS_MUTTER42
XRGB_2101010,
#endif
ARGB_2101010,
#if HAS_MUTTER42
XBGR_2101010,
#endif
ABGR_2101010,
#if HAS_MUTTER338
RGBA_FP_16161616,
BGRA_FP_16161616,
#if HAS_MUTTER42
XRGB_FP_16161616,
#endif
ARGB_FP_16161616,
#if HAS_MUTTER42
XBGR_FP_16161616,
#endif
ABGR_FP_16161616,
#endif
RGBA_8888_PRE,
@ -1293,7 +1352,9 @@ namespace Cogl {
}
[CCode (cheader_filename = "cogl/cogl.h", cprefix = "COGL_WINSYS_FEATURE_", has_type_id = false)]
public enum WinsysFeature {
#if !HAS_MUTTER42
MULTIPLE_ONSCREEN,
#endif
#if !HAS_MUTTER338
SWAP_THROTTLE,
#endif
@ -1420,12 +1481,14 @@ namespace Cogl {
[CCode (cheader_filename = "cogl/cogl.h")]
[Version (since = "1.0")]
public static void flush ();
#if !HAS_MUTTER42
[CCode (cheader_filename = "cogl/cogl.h")]
[Version (deprecated = true, deprecated_since = "1.16")]
public static bool get_backface_culling_enabled ();
[CCode (cheader_filename = "cogl/cogl.h")]
[Version (deprecated = true, deprecated_since = "1.16")]
public static bool get_depth_test_enabled ();
#endif
[CCode (cheader_filename = "cogl/cogl.h")]
[Version (deprecated = true, deprecated_since = "1.16", since = "1.0")]
public static GLib.OptionGroup get_option_group ();
@ -1434,23 +1497,31 @@ namespace Cogl {
[Version (deprecated = true, deprecated_since = "1.18")]
public static GLib.Type gtype_matrix_get_type ();
#endif
#if !HAS_MUTTER42
[CCode (cheader_filename = "cogl/cogl.h")]
[Version (deprecated = true, deprecated_since = "1.16")]
public static void set_backface_culling_enabled (bool setting);
[CCode (cheader_filename = "cogl/cogl.h")]
[Version (deprecated = true, deprecated_since = "1.16")]
public static void set_depth_test_enabled (bool setting);
#endif
[CCode (cheader_filename = "cogl/cogl.h")]
public static void set_tracing_disabled_on_thread (GLib.MainContext main_context);
[CCode (cheader_filename = "cogl/cogl.h")]
public static void set_tracing_enabled_on_thread (GLib.MainContext main_context, string group, string filename);
[CCode (cheader_filename = "cogl/cogl.h")]
public static void set_tracing_enabled_on_thread_with_fd (GLib.MainContext main_context, string group, int fd);
#if HAS_MUTTER42
[CCode (cheader_filename = "cogl/cogl.h")]
public static void trace_describe (Cogl.TraceHead head, string description);
#endif
#if HAS_MUTTER338
[CCode (cheader_filename = "cogl/cogl.h")]
public static void trace_end (Cogl.TraceHead head);
#endif
#if !HAS_MUTTER42
[CCode (cheader_filename = "cogl/cogl.h")]
[Version (since = "1.10")]
public static uint32 x11_onscreen_get_window_xid (Cogl.Onscreen onscreen);
#endif
}

View File

@ -0,0 +1 @@
mutter-cogl-pango-9.vapi