adwaita-swift/Sources/Core/Model/Enumerations/ScrollbarVisibility.swift
david-swift 2d12c57236
All checks were successful
Deploy Docs / publish (push) Successful in 20m49s
SwiftLint / SwiftLint (push) Successful in 4s
Set a scroll view's scroll bar policies
2024-10-26 18:44:31 +02:00

28 lines
703 B
Swift
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// ContentFit.swift
// Adwaita
//
// Created by david-swift on 19.07.24.
//
import CAdw
/// The visibility of a scroll bar.
public enum ScrollbarVisibility: UInt32 {
/// The scrollbar is always visible. The view size is independent of the content.
case alwaysVisible
/// The scrollbar will appear and disappear as necessary.
case automatic
/// The scrollbar should never appear. In this mode the content determines the size.
case never
/// Dont show a scrollbar, but dont force the size to follow the content.
case external
/// The ScrollbarVisibility value as a GtkPolicyType value.
var gtkValue: GtkPolicyType {
.init(rawValue)
}
}