Xojo Conferences
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

LinuxIconMBS.FileIcon(file as FolderItem, size as integer = 48) as Picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Linux MBS Linux Plugin 19.1 Yes Yes Yes Yes No
Function: Queries file icon for file.
Example:
dim f2 as FolderItem = SpecialFolder.Desktop
Canvas2.Backdrop = LinuxIconMBS.FileIcon(f2, Canvas2.Width)
Notes: Returns nil in case of error.

Feedback, Comments & Corrections

LinuxIconMBS.FilePreview(file as FolderItem, size as integer = 48) as Picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Linux MBS Linux Plugin 19.1 Yes Yes Yes Yes No
Function: Queries preview icon for file.
Notes: Returns nil in case of error.

Feedback, Comments & Corrections

LinuxIconMBS.FileThumbnail(file as FolderItem) as FolderItem
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Linux MBS Linux Plugin 19.1 Yes Yes Yes Yes No
Function: Queries thumbnail path for a given file.
Example:
// make an image file
dim p as picture = logoMBS(500) // from Main plugin
dim f as FolderItem = SpecialFolder.Desktop.Child("MBS.jpg")
p.Save(f, p.SaveAsJPEG, 90)

// show thumbnail
dim ThumbnailFile as FolderItem = LinuxIconMBS.FileThumbnail(f)
if ThumbnailFile <> nil then
Canvas6.Backdrop = Picture.Open(ThumbnailFile)
end if
Notes:
Returns nil in case of error.
Otherwise this may be URL for png file with thumbnail.

Feedback, Comments & Corrections

LinuxIconMBS.GenericIconName(MimeType as String) as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Linux MBS Linux Plugin 19.1 Yes Yes Yes Yes No
Function: Queries generic icon name for mime type.

Feedback, Comments & Corrections

LinuxIconMBS.Icon(MimeType as String, size as integer = 48) as Picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Linux MBS Linux Plugin 19.1 Yes Yes Yes Yes No
Function: Queries icon for mime type.
Example:
Canvas1.Backdrop = LinuxIconMBS.Icon("image/jpeg", Canvas1.Width)
Notes: Returns nil in case of error.

Feedback, Comments & Corrections

LinuxIconMBS.SymbolicIcon(MimeType as String, size as integer = 48) as Picture
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Linux MBS Linux Plugin 19.1 Yes Yes Yes Yes No
Function: Queries symbolic icon for given mime type.
Example:
Canvas3.Backdrop = LinuxIconMBS.SymbolicIcon("image/jpeg", Canvas3.Width)
Notes: Returns nil in case of error.

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Linux Plugin.




Links
MBS Xojo blog