picom/src/types.h

29 lines
584 B
C
Raw Normal View History

// SPDX-License-Identifier: MPL-2.0
// Copyright (c) 2018 Yuxuan Shui <yshuiv7@gmail.com>
#pragma once
/// Some common types
#include <stdint.h>
/// Enumeration type to represent switches.
typedef enum {
OFF = 0, // false
ON, // true
UNSET
} switch_t;
/// A structure representing margins around a rectangle.
typedef struct {
unsigned int top;
unsigned int left;
unsigned int bottom;
unsigned int right;
} margin_t;
typedef uint32_t opacity_t;
#define MARGIN_INIT \
{ 0, 0, 0, 0 }