LinuxIconMBS methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to LinuxIconMBS module.

LinuxIconMBS.FileIcon(file as FolderItem, size as integer = 48) as Picture

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Linux MBS Linux Plugin 19.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Queries file icon for file.
Example
dim f2 as FolderItem = SpecialFolder.Desktop
Canvas2.Backdrop = LinuxIconMBS.FileIcon(f2, Canvas2.Width)

Returns nil in case of error.

Some examples using this method:

LinuxIconMBS.FilePreview(file as FolderItem, size as integer = 48) as Picture

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Linux MBS Linux Plugin 19.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Queries preview icon for file.

Returns nil in case of error.

Some examples using this method:

LinuxIconMBS.FileThumbnail(file as FolderItem) as FolderItem

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Linux MBS Linux Plugin 19.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
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

Returns nil in case of error.
Otherwise this may be URL for png file with thumbnail.

Some examples using this method:

LinuxIconMBS.GenericIconName(MimeType as String) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Linux MBS Linux Plugin 19.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Queries generic icon name for mime type.

LinuxIconMBS.Icon(MimeType as String, size as integer = 48) as Picture

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Linux MBS Linux Plugin 19.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Queries icon for mime type.
Example
Canvas1.Backdrop = LinuxIconMBS.Icon("image/jpeg", Canvas1.Width)

Returns nil in case of error.

LinuxIconMBS.SymbolicIcon(MimeType as String, size as integer = 48) as Picture

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Linux MBS Linux Plugin 19.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Queries symbolic icon for given mime type.
Example
Canvas3.Backdrop = LinuxIconMBS.SymbolicIcon("image/jpeg", Canvas3.Width)

Returns nil in case of error.

Some examples using this method:

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


💬 Ask a question or report a problem