PlacesOpenFlags

public struct PlacesOpenFlags : OptionSet

These flags serve two purposes. First, the application can call gtk_places_sidebar_set_open_flags() using these flags as a bitmask. This tells the sidebar that the application is able to open folders selected from the sidebar in various ways, for example, in new tabs or in new windows in addition to the normal mode.

Second, when one of these values gets passed back to the application in the GtkPlacesSidebar::open-location signal, it means that the application should open the selected location in the normal way, in a new tab, or in a new window. The sidebar takes care of determining the desired way to open the location, based on the modifier keys that the user is pressing at the time the selection is made.

If the application never calls gtk_places_sidebar_set_open_flags(), then the sidebar will only use GTK_PLACES_OPEN_NORMAL in the GtkPlacesSidebar::open-location signal. This is the default mode of operation.

  • The corresponding value of the raw type

    Declaration

    Swift

    public var rawValue: UInt32
  • The equivalent raw Int value

    Declaration

    Swift

    @inlinable
    public var intValue: Int { get set }
  • int

    The equivalent raw gint value

    Declaration

    Swift

    @inlinable
    public var int: gint { get set }
  • The equivalent underlying GtkPlacesOpenFlags enum value

    Declaration

    Swift

    @inlinable
    public var value: GtkPlacesOpenFlags { get set }
  • Creates a new instance with the specified raw value

    Declaration

    Swift

    @inlinable
    public init(rawValue: UInt32)
  • Creates a new instance with the specified GtkPlacesOpenFlags enum value

    Declaration

    Swift

    @inlinable
    public init(_ enumValue: GtkPlacesOpenFlags)
  • Creates a new instance with the specified Int value

    Declaration

    Swift

    @inlinable
    public init<I>(_ intValue: I) where I : BinaryInteger
  • This is the default mode that GtkPlacesSidebar uses if no other flags are specified. It indicates that the calling application should open the selected location in the normal way, for example, in the folder view beside the sidebar.

    Declaration

    Swift

    public static let normal: PlacesOpenFlags
  • When passed to gtk_places_sidebar_set_open_flags(), this indicates that the application can open folders selected from the sidebar in new tabs. This value will be passed to the GtkPlacesSidebar::open-location signal when the user selects that a location be opened in a new tab instead of in the standard fashion.

    Declaration

    Swift

    public static let newTab: PlacesOpenFlags
  • Similar to GTK_PLACES_OPEN_NEW_TAB, but indicates that the application can open folders in new windows.

    Declaration

    Swift

    public static let newWindow: PlacesOpenFlags