clutter-4: Add custom.vala and metadata files

This commit is contained in:
Corentin Noël 2020-03-12 12:14:21 +01:00
parent 4b70b49ac3
commit 471dce619e
2 changed files with 279 additions and 0 deletions

View File

@ -0,0 +1,42 @@
namespace Clutter {
public struct Color {
[CCode (cname = "clutter_color_from_hls")]
public Color.from_hls (float hue, float luminance, float saturation);
[CCode (cname = "clutter_color_from_pixel")]
public Color.from_pixel (uint32 pixel);
[CCode (cname = "clutter_color_from_string")]
public Color.from_string (string str);
[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 {
}
}

237
vapi/Clutter-4.metadata Normal file
View File

@ -0,0 +1,237 @@
// Non mini-object
ActorBox struct
Color struct
Fog struct
Geometry struct
Knot struct
Margin struct
PaintVolume struct
PathNode struct
Perspective struct
Point struct
Rect struct
Size struct
Units struct
Vertex struct
*.ref unowned
init.argv unowned
init_with_args
.argv unowned
Actor
.apply_transform.matrix ref
.get_abs_allocation_vertices.verts out=false
.get_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"
InitError errordomain=false
redraw skip
// 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
.queue_redraw#signal skip
.queue_redraw#virtual_method skip
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
.lower virtual
.raise virtual
.*_child_meta#virtual_method virtual
.foreach_with_internals#virtual_method virtual
// Default values
Container
.lower.sibling nullable default=null
.raise.sibling nullable default=null
Stage.read_pixels
.width default=-1
.height default=-1
Text
.position_to_coords.line_height default=null
// Reparented funcs methods can't be instance methods
feature_available skip
feature_get_all skip
FeatureFlags.texture_npot skip
// Skipped by g-i for unknown reasons
LayoutManager
.create_child_meta skip=false
Model
.insert_row skip=false
// Variadic arguments
Actor
.animate skip=false
.animate_with_alpha skip=false
.animate_with_timeline skip=false
Animator
.set skip=false
Box
.pack skip=false
.pack_after skip=false
.pack_at skip=false
.pack_before skip=false
Container
.add_valist skip=false
.child_get skip=false
.child_set skip=false
.remove skip=false
.remove_valist 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
ListModel
.new skip=false
Model
.append skip=false
.insert skip=false
.prepend skip=false
ModelIter
.get skip=false
.set skip=false
Script
.get_objects skip=false
// Changing error domains
Texture
.new_from_file throws="Clutter.TextureError"
// Skipped upstream for unknown reasons
Alpha.register_func skip=false
TimeoutPool skip=false
Interval.register_progress_func skip=false
frame_source_* skip=false
get_option_group skip=false
get_option_group_without_init skip=false
threads_add_frame_source skip=false
threads_add_frame_source_full skip=false
threads_add_idle skip=false
threads_add_idle_full skip=false
threads_set_lock_functions 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
Color
.new skip
Margin
.new skip
Size
.init skip
Vertex.new skip
// Class methods
container_class_find_child_property skip
container_class_list_child_properties skip
// Move symbols
get_actor_by_gid parent="Clutter.Actor" name="get_by_gid"
get_input_device_for_id parent="Clutter.InputDevice" name="get_for_id"
color_from_* skip
units_from_* skip
// Struct return values
color_get_static nullable
// Upstream
Effect
.get_paint_volume.volume out
Event
.get_position.position out
Text
.cursor_event.geometry out
// Remove for clutter-2.0
/////////////////////////
Stage
.event name="emit_event"
.capture.captures out array_length_idx=3 type="Clutter.Capture[]"
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"
KeyEvent struct=false base_type="Clutter.Event"
MotionEvent struct=false base_type="Clutter.Event"
ScrollEvent struct=false base_type="Clutter.Event"
StageStateEvent struct=false base_type="Clutter.Event"
TouchEvent 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
*VERSION* skip=false
PATH_RELATIVE skip=false
PRIORITY_REDRAW skip=false
// Clutter devs don't like us creating nested namespaces
frame_source_* name="frame_source_(.+)" parent="Clutter.FrameSource"
value_* name="value_(.+)" parent="Clutter.Value"
threads_* name="threads_(.+)" parent="Clutter.Threads"
threads_add_frame_source name="add" parent="Clutter.Threads.FrameSource"
threads_add_frame_source_full name="add_full" parent="Clutter.Threads.FrameSource"
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"
util_next_p2 name="next_power_of_2" parent="Clutter.Util"
// Backwards compatibility
Color.alloc symbol_type="function"
Point.alloc symbol_type="function"
Rect.alloc symbol_type="function"
Size.alloc symbol_type="function"
Vertex.alloc symbol_type="function"
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"