Rename files contatining top level structs
This respects the naming convention of snake_case namespaces and TitleCase types.
This commit is contained in:
parent
8a9c2182ea
commit
e199bcba43
33 changed files with 66 additions and 66 deletions
|
@ -22,7 +22,7 @@ const std = @import("std");
|
|||
const c = @import("c.zig");
|
||||
const command = @import("command.zig");
|
||||
|
||||
const Server = @import("server.zig");
|
||||
const Server = @import("Server.zig");
|
||||
|
||||
/// Width of borders in pixels
|
||||
border_width: u32,
|
|
@ -21,11 +21,11 @@ const std = @import("std");
|
|||
|
||||
const c = @import("c.zig");
|
||||
|
||||
const LayerSurface = @import("layer_surface.zig");
|
||||
const LayerSurface = @import("LayerSurface.zig");
|
||||
const Log = @import("log.zig").Log;
|
||||
const Output = @import("output.zig");
|
||||
const Seat = @import("seat.zig");
|
||||
const View = @import("view.zig");
|
||||
const Output = @import("Output.zig");
|
||||
const Seat = @import("Seat.zig");
|
||||
const View = @import("View.zig");
|
||||
const ViewStack = @import("view_stack.zig").ViewStack;
|
||||
|
||||
const CursorMode = enum {
|
|
@ -21,7 +21,7 @@ const std = @import("std");
|
|||
|
||||
const c = @import("c.zig");
|
||||
|
||||
const DecorationManager = @import("decoration_manager.zig");
|
||||
const DecorationManager = @import("DecorationManager.zig");
|
||||
|
||||
// TODO: this needs to listen for destroy and free nodes from the deco list
|
||||
decoration_manager: *DecorationManager,
|
|
@ -21,8 +21,8 @@ const std = @import("std");
|
|||
|
||||
const c = @import("c.zig");
|
||||
|
||||
const Decoration = @import("decoration.zig");
|
||||
const Server = @import("server.zig");
|
||||
const Decoration = @import("Decoration.zig");
|
||||
const Server = @import("Server.zig");
|
||||
|
||||
server: *Server,
|
||||
|
|
@ -22,8 +22,8 @@ const std = @import("std");
|
|||
const c = @import("c.zig");
|
||||
|
||||
const Log = @import("log.zig").Log;
|
||||
const Seat = @import("seat.zig");
|
||||
const Server = @import("server.zig");
|
||||
const Seat = @import("Seat.zig");
|
||||
const Server = @import("Server.zig");
|
||||
|
||||
const default_seat_name = "default";
|
||||
|
|
@ -22,7 +22,7 @@ const std = @import("std");
|
|||
const c = @import("c.zig");
|
||||
|
||||
const Log = @import("log.zig").Log;
|
||||
const Seat = @import("seat.zig");
|
||||
const Seat = @import("Seat.zig");
|
||||
|
||||
seat: *Seat,
|
||||
wlr_input_device: *c.wlr_input_device,
|
|
@ -21,9 +21,9 @@ const std = @import("std");
|
|||
|
||||
const c = @import("c.zig");
|
||||
|
||||
const Box = @import("box.zig");
|
||||
const Box = @import("Box.zig");
|
||||
const Log = @import("log.zig").Log;
|
||||
const Output = @import("output.zig");
|
||||
const Output = @import("Output.zig");
|
||||
|
||||
output: *Output,
|
||||
wlr_layer_surface: *c.wlr_layer_surface_v1,
|
|
@ -22,11 +22,11 @@ const std = @import("std");
|
|||
const c = @import("c.zig");
|
||||
const render = @import("render.zig");
|
||||
|
||||
const Box = @import("box.zig");
|
||||
const LayerSurface = @import("layer_surface.zig");
|
||||
const Box = @import("Box.zig");
|
||||
const LayerSurface = @import("LayerSurface.zig");
|
||||
const Log = @import("log.zig").Log;
|
||||
const Root = @import("root.zig");
|
||||
const View = @import("view.zig");
|
||||
const Root = @import("Root.zig");
|
||||
const View = @import("View.zig");
|
||||
const ViewStack = @import("view_stack.zig").ViewStack;
|
||||
|
||||
root: *Root,
|
|
@ -22,9 +22,9 @@ const std = @import("std");
|
|||
const c = @import("c.zig");
|
||||
|
||||
const Log = @import("log.zig").Log;
|
||||
const Output = @import("output.zig");
|
||||
const Server = @import("server.zig");
|
||||
const View = @import("view.zig");
|
||||
const Output = @import("Output.zig");
|
||||
const Server = @import("Server.zig");
|
||||
const View = @import("View.zig");
|
||||
const ViewStack = @import("view_stack.zig").ViewStack;
|
||||
|
||||
/// Responsible for all windowing operations
|
|
@ -21,12 +21,12 @@ const std = @import("std");
|
|||
|
||||
const c = @import("c.zig");
|
||||
|
||||
const Cursor = @import("cursor.zig");
|
||||
const InputManager = @import("input_manager.zig");
|
||||
const Keyboard = @import("keyboard.zig");
|
||||
const LayerSurface = @import("layer_surface.zig");
|
||||
const Output = @import("output.zig");
|
||||
const View = @import("view.zig");
|
||||
const Cursor = @import("Cursor.zig");
|
||||
const InputManager = @import("InputManager.zig");
|
||||
const Keyboard = @import("Keyboard.zig");
|
||||
const LayerSurface = @import("LayerSurface.zig");
|
||||
const Output = @import("Output.zig");
|
||||
const View = @import("View.zig");
|
||||
const ViewStack = @import("view_stack.zig").ViewStack;
|
||||
|
||||
const FocusTarget = union(enum) {
|
|
@ -21,13 +21,13 @@ const std = @import("std");
|
|||
|
||||
const c = @import("c.zig");
|
||||
|
||||
const Config = @import("config.zig");
|
||||
const DecorationManager = @import("decoration_manager.zig");
|
||||
const InputManager = @import("input_manager.zig");
|
||||
const Config = @import("Config.zig");
|
||||
const DecorationManager = @import("DecorationManager.zig");
|
||||
const InputManager = @import("InputManager.zig");
|
||||
const Log = @import("log.zig").Log;
|
||||
const Output = @import("output.zig");
|
||||
const Root = @import("root.zig");
|
||||
const View = @import("view.zig");
|
||||
const Output = @import("Output.zig");
|
||||
const Root = @import("Root.zig");
|
||||
const View = @import("View.zig");
|
||||
const ViewStack = @import("view_stack.zig").ViewStack;
|
||||
|
||||
allocator: *std.mem.Allocator,
|
|
@ -21,12 +21,12 @@ const std = @import("std");
|
|||
|
||||
const c = @import("c.zig");
|
||||
|
||||
const Box = @import("box.zig");
|
||||
const Box = @import("Box.zig");
|
||||
const Log = @import("log.zig").Log;
|
||||
const Output = @import("output.zig");
|
||||
const Root = @import("root.zig");
|
||||
const Output = @import("Output.zig");
|
||||
const Root = @import("Root.zig");
|
||||
const ViewStack = @import("view_stack.zig").ViewStack;
|
||||
const XdgToplevel = @import("xdg_toplevel.zig");
|
||||
const XdgToplevel = @import("XdgToplevel.zig");
|
||||
|
||||
const ViewImpl = union(enum) {
|
||||
xdg_toplevel: XdgToplevel,
|
|
@ -21,7 +21,7 @@ const std = @import("std");
|
|||
|
||||
const c = @import("c.zig");
|
||||
|
||||
const XdgToplevel = @import("xdg_toplevel.zig");
|
||||
const XdgToplevel = @import("XdgToplevel.zig");
|
||||
|
||||
/// The toplevel this popup is a child of
|
||||
xdg_toplevel: *XdgToplevel,
|
|
@ -21,11 +21,11 @@ const std = @import("std");
|
|||
|
||||
const c = @import("c.zig");
|
||||
|
||||
const Box = @import("box.zig");
|
||||
const Box = @import("Box.zig");
|
||||
const Log = @import("log.zig").Log;
|
||||
const View = @import("view.zig");
|
||||
const View = @import("View.zig");
|
||||
const ViewStack = @import("view_stack.zig").ViewStack;
|
||||
const XdgPopup = @import("xdg_popup.zig");
|
||||
const XdgPopup = @import("XdgPopup.zig");
|
||||
|
||||
/// The view this xdg toplevel implements
|
||||
view: *View,
|
|
@ -15,7 +15,7 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
const Seat = @import("seat.zig");
|
||||
const Seat = @import("Seat.zig");
|
||||
|
||||
pub const Direction = enum {
|
||||
Next,
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
const c = @import("../c.zig");
|
||||
|
||||
const Arg = @import("../command.zig").Arg;
|
||||
const Seat = @import("../seat.zig");
|
||||
const Seat = @import("../Seat.zig");
|
||||
|
||||
/// Close the focused view, if any.
|
||||
pub fn close_view(seat: *Seat, arg: Arg) void {
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
const c = @import("../c.zig");
|
||||
|
||||
const Arg = @import("../command.zig").Arg;
|
||||
const Seat = @import("../seat.zig");
|
||||
const Seat = @import("../Seat.zig");
|
||||
|
||||
/// Exit the compositor, terminating the wayland session.
|
||||
pub fn exitCompositor(seat: *Seat, arg: Arg) void {
|
||||
|
|
|
@ -20,8 +20,8 @@ const std = @import("std");
|
|||
const c = @import("../c.zig");
|
||||
|
||||
const Arg = @import("../command.zig").Arg;
|
||||
const Output = @import("../output.zig");
|
||||
const Seat = @import("../seat.zig");
|
||||
const Output = @import("../Output.zig");
|
||||
const Seat = @import("../Seat.zig");
|
||||
|
||||
/// Focus either the next or the previous output, depending on the bool passed.
|
||||
/// Does nothing if there is only one output.
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
const c = @import("../c.zig");
|
||||
|
||||
const Arg = @import("../command.zig").Arg;
|
||||
const Seat = @import("../seat.zig");
|
||||
const Seat = @import("../Seat.zig");
|
||||
|
||||
/// Switch focus to the passed tags.
|
||||
pub fn focusTags(seat: *Seat, arg: Arg) void {
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
const c = @import("../c.zig");
|
||||
|
||||
const Arg = @import("../command.zig").Arg;
|
||||
const Seat = @import("../seat.zig");
|
||||
const View = @import("../view.zig");
|
||||
const Seat = @import("../Seat.zig");
|
||||
const View = @import("../View.zig");
|
||||
const ViewStack = @import("../view_stack.zig").ViewStack;
|
||||
|
||||
/// Focus either the next or the previous visible view, depending on the enum
|
||||
|
|
|
@ -20,7 +20,7 @@ const std = @import("std");
|
|||
const c = @import("../c.zig");
|
||||
|
||||
const Arg = @import("../command.zig").Arg;
|
||||
const Seat = @import("../seat.zig");
|
||||
const Seat = @import("../Seat.zig");
|
||||
|
||||
/// Modify the number of master views
|
||||
pub fn modifyMasterCount(seat: *Seat, arg: Arg) void {
|
||||
|
|
|
@ -20,7 +20,7 @@ const std = @import("std");
|
|||
const c = @import("../c.zig");
|
||||
|
||||
const Arg = @import("../command.zig").Arg;
|
||||
const Seat = @import("../seat.zig");
|
||||
const Seat = @import("../Seat.zig");
|
||||
|
||||
/// Modify the percent of the width of the screen that the master views occupy.
|
||||
pub fn modifyMasterFactor(seat: *Seat, arg: Arg) void {
|
||||
|
|
|
@ -20,8 +20,8 @@ const std = @import("std");
|
|||
const c = @import("../c.zig");
|
||||
|
||||
const Arg = @import("../command.zig").Arg;
|
||||
const Output = @import("../output.zig");
|
||||
const Seat = @import("../seat.zig");
|
||||
const Output = @import("../Output.zig");
|
||||
const Seat = @import("../Seat.zig");
|
||||
|
||||
/// Send the focused view to the the next or the previous output, depending on
|
||||
/// the bool passed. Does nothing if there is only one output.
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
const c = @import("../c.zig");
|
||||
|
||||
const Arg = @import("../command.zig").Arg;
|
||||
const Seat = @import("../seat.zig");
|
||||
const Seat = @import("../Seat.zig");
|
||||
|
||||
/// Set the tags of the focused view.
|
||||
pub fn setViewTags(seat: *Seat, arg: Arg) void {
|
||||
|
|
|
@ -21,7 +21,7 @@ const c = @import("../c.zig");
|
|||
|
||||
const Arg = @import("../command.zig").Arg;
|
||||
const Log = @import("../log.zig").Log;
|
||||
const Seat = @import("../seat.zig");
|
||||
const Seat = @import("../Seat.zig");
|
||||
|
||||
/// Spawn a program.
|
||||
pub fn spawn(seat: *Seat, arg: Arg) void {
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
const c = @import("../c.zig");
|
||||
|
||||
const Arg = @import("../command.zig").Arg;
|
||||
const Seat = @import("../seat.zig");
|
||||
const Seat = @import("../Seat.zig");
|
||||
|
||||
/// Make the focused view float or stop floating, depending on its current
|
||||
/// state.
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
const c = @import("../c.zig");
|
||||
|
||||
const Arg = @import("../command.zig").Arg;
|
||||
const Seat = @import("../seat.zig");
|
||||
const Seat = @import("../Seat.zig");
|
||||
|
||||
/// Toggle focus of the passsed tags.
|
||||
pub fn toggleTags(seat: *Seat, arg: Arg) void {
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
const c = @import("../c.zig");
|
||||
|
||||
const Arg = @import("../command.zig").Arg;
|
||||
const Seat = @import("../seat.zig");
|
||||
const Seat = @import("../Seat.zig");
|
||||
|
||||
/// Toggle the passed tags of the focused view
|
||||
pub fn toggleViewTags(seat: *Seat, arg: Arg) void {
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
const c = @import("../c.zig");
|
||||
|
||||
const Arg = @import("../command.zig").Arg;
|
||||
const Seat = @import("../seat.zig");
|
||||
const View = @import("../view.zig");
|
||||
const Seat = @import("../Seat.zig");
|
||||
const View = @import("../View.zig");
|
||||
const ViewStack = @import("../view_stack.zig").ViewStack;
|
||||
|
||||
/// Bump the focused view to the top of the stack. If the view on the top of
|
||||
|
|
|
@ -20,7 +20,7 @@ const std = @import("std");
|
|||
const c = @import("c.zig");
|
||||
|
||||
const Log = @import("log.zig").Log;
|
||||
const Server = @import("server.zig");
|
||||
const Server = @import("Server.zig");
|
||||
|
||||
pub fn main() !void {
|
||||
Log.init(Log.Debug);
|
||||
|
|
|
@ -19,11 +19,11 @@ const std = @import("std");
|
|||
|
||||
const c = @import("c.zig");
|
||||
|
||||
const Box = @import("box.zig");
|
||||
const LayerSurface = @import("layer_surface.zig");
|
||||
const Output = @import("output.zig");
|
||||
const Server = @import("server.zig");
|
||||
const View = @import("view.zig");
|
||||
const Box = @import("Box.zig");
|
||||
const LayerSurface = @import("LayerSurface.zig");
|
||||
const Output = @import("Output.zig");
|
||||
const Server = @import("Server.zig");
|
||||
const View = @import("View.zig");
|
||||
const ViewStack = @import("view_stack.zig").ViewStack;
|
||||
|
||||
pub fn renderOutput(output: *Output) void {
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
const View = @import("view.zig");
|
||||
const View = @import("View.zig");
|
||||
|
||||
/// A specialized doubly-linked stack that allows for filtered iteration
|
||||
/// over the nodes. T must be View or *View.
|
||||
|
|
Loading…
Reference in a new issue