gala/vapi/mutter-mtk-13.vapi

122 lines
4.7 KiB
Vala
Raw Normal View History

2023-08-29 13:37:34 +03:00
/* mutter-mtk-13.vapi generated by vapigen, do not modify. */
[CCode (cprefix = "Mtk", gir_namespace = "Mtk", gir_version = "13", lower_case_cprefix = "mtk_")]
namespace Mtk {
2024-01-13 03:03:36 +03:00
#if HAS_MUTTER46
[CCode (cheader_filename = "mtk/mtk.h", ref_function = "mtk_region_ref", type_id = "mtk_region_get_type ()", unref_function = "mtk_region_unref")]
[Compact]
public class Region {
public Mtk.Region apply_matrix_transform_expand (Graphene.Matrix transform);
2024-01-13 03:03:36 +03:00
public bool contains_point (int x, int y);
public Mtk.RegionOverlap contains_rectangle (Mtk.Rectangle rect);
public Mtk.Region copy ();
public static Mtk.Region create ();
public static Mtk.Region create_rectangle (Mtk.Rectangle rect);
public static Mtk.Region create_rectangles (Mtk.Rectangle rects, int n_rects);
public Mtk.Region crop_and_scale (Graphene.Rect src_rect, int dst_width, int dst_height);
2024-01-13 03:03:36 +03:00
public bool equal (Mtk.Region other);
public Mtk.Rectangle? get_extents ();
public Mtk.Rectangle? get_rectangle (int nth);
public void intersect (Mtk.Region other);
public void intersect_rectangle (Mtk.Rectangle rect);
public bool is_empty ();
public int num_rectangles ();
public unowned Mtk.Region @ref ();
public Mtk.Region scale (int scale);
2024-01-13 03:03:36 +03:00
public void subtract (Mtk.Region other);
public void subtract_rectangle (Mtk.Rectangle rect);
public void translate (int dx, int dy);
public void union (Mtk.Region other);
public void union_rectangle (Mtk.Rectangle rect);
public void unref ();
}
#endif
2023-08-29 13:37:34 +03:00
[CCode (cheader_filename = "mtk/mtk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "mtk_rectangle_get_type ()")]
public struct Rectangle {
public int x;
public int y;
public int width;
public int height;
#if HAS_MUTTER46
[CCode (cname = "MTK_RECTANGLE_MAX_STACK_RECTS")]
public const int MAX_STACK_RECTS;
#endif
2023-08-29 13:37:34 +03:00
[CCode (has_construct_function = false, type = "MtkRectangle*")]
public Rectangle (int x, int y, int width, int height);
public int area ();
public bool contains_rect (Mtk.Rectangle inner_rect);
public Mtk.Rectangle? copy ();
public bool could_fit_rect (Mtk.Rectangle inner_rect);
#if HAS_MUTTER46
public void crop_and_scale (Graphene.Rect src_rect, int dst_width, int dst_height, Mtk.Rectangle dest);
#endif
2023-08-29 13:37:34 +03:00
public bool equal (Mtk.Rectangle src2);
public void free ();
public static Mtk.Rectangle from_graphene_rect (Graphene.Rect rect, Mtk.RoundingStrategy rounding_strategy);
public bool horiz_overlap (Mtk.Rectangle rect2);
public bool intersect (Mtk.Rectangle src2, out Mtk.Rectangle dest);
#if HAS_MUTTER46
public bool is_adjacent_to (Mtk.Rectangle other);
#endif
2023-08-29 13:37:34 +03:00
public bool overlap (Mtk.Rectangle rect2);
#if HAS_MUTTER46
public void scale_double (double scale, Mtk.RoundingStrategy rounding_strategy, Mtk.Rectangle dest);
#endif
2023-08-29 13:37:34 +03:00
public Graphene.Rect? to_graphene_rect ();
public Mtk.Rectangle union (Mtk.Rectangle rect2);
public bool vert_overlap (Mtk.Rectangle rect2);
}
2024-01-13 03:03:36 +03:00
#if HAS_MUTTER46
[CCode (cheader_filename = "mtk/mtk.h", has_type_id = false)]
public struct RegionBuilder {
[CCode (array_length_cname = "n_levels")]
public weak Mtk.Region levels[16];
public int n_levels;
[CCode (cname = "MTK_REGION_BUILDER_MAX_LEVELS")]
public const int MAX_LEVELS;
public void add_rectangle (int x, int y, int width, int height);
public Mtk.Region finish ();
public void init ();
}
[CCode (cheader_filename = "mtk/mtk.h", has_type_id = false)]
public struct RegionIterator {
public weak Mtk.Region region;
public Mtk.Rectangle rectangle;
public bool line_start;
public bool line_end;
public int i;
public bool at_end ();
public void init (Mtk.Region region);
public void next ();
}
2024-01-13 03:03:36 +03:00
[CCode (cheader_filename = "mtk/mtk.h", cprefix = "MTK_REGION_OVERLAP_", has_type_id = false)]
public enum RegionOverlap {
OUT,
IN,
PART
}
#endif
2023-08-29 13:37:34 +03:00
[CCode (cheader_filename = "mtk/mtk.h", cprefix = "MTK_ROUNDING_STRATEGY_", has_type_id = false)]
public enum RoundingStrategy {
SHRINK,
GROW,
ROUND
}
[CCode (cheader_filename = "mtk/mtk.h")]
[Version (replacement = "Rectangle.from_graphene_rect")]
public static Mtk.Rectangle rectangle_from_graphene_rect (Graphene.Rect rect, Mtk.RoundingStrategy rounding_strategy);
2024-01-13 03:03:36 +03:00
#if HAS_MUTTER46
[CCode (cheader_filename = "mtk/mtk.h")]
[Version (replacement = "Region.create")]
public static Mtk.Region region_create ();
[CCode (cheader_filename = "mtk/mtk.h")]
[Version (replacement = "Region.create_rectangle")]
public static Mtk.Region region_create_rectangle (Mtk.Rectangle rect);
[CCode (cheader_filename = "mtk/mtk.h")]
[Version (replacement = "Region.create_rectangles")]
public static Mtk.Region region_create_rectangles (Mtk.Rectangle rects, int n_rects);
#endif
2023-08-29 13:37:34 +03:00
[CCode (cheader_filename = "mtk/mtk.h")]
public static void x11_errors_deinit ();
}