/*
 * Copyright (C) 2024 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

syntax = "proto2";

package perfetto.protos;

message ViewCapture {
  optional int32 package_name_iid = 1;
  optional int32 window_name_iid = 2;
  repeated View views = 3;

  message View {
    optional int32 id = 1;
    optional int32 parent_id = 2;
    optional int32 hashcode = 3;
    optional int32 view_id_iid = 4;
    optional int32 class_name_iid = 5;

    optional int32 left = 6;
    optional int32 top = 7;
    optional int32 width = 8;
    optional int32 height = 9;
    optional int32 scroll_x = 10;
    optional int32 scroll_y = 11;

    optional float translation_x = 12;
    optional float translation_y = 13;
    optional float scale_x = 14;
    optional float scale_y = 15;
    optional float alpha = 16;

    optional bool will_not_draw = 17;
    optional bool clip_children = 18;
    optional int32 visibility = 19;

    optional float elevation = 20;
  }
}
