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 IconMBS class.
IconMBS.Constructor(f as folderitem, NoBadge as boolean = false)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Icon Service | MBS Picture Plugin | 2.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
The example "GetIcon.rb" shows how to get the file icons.
A custom icon is preferred (ID -16455).
NoBadge can be set to true to have no badges on the icon.
See also:
IconMBS.Constructor(type as string, creator as string)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Icon Service | MBS Picture Plugin | 2.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
The example "GetIcon.rb" shows how to get the predefined icons from the system.
See also:
IconMBS.Constructor(type as string, creator as string, extension as string, mime as string)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Icon Service | MBS Picture Plugin | 9.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
All parameters can be empty strings if you don't know this information.
Requires Mac OS X 10.3 to work properly.
See also:
IconMBS.DrawIconCGContext(CGContextHandle as Integer,x as Integer,y as Integer,width as Integer,height as Integer, align as Integer, transform as Integer, flags as Integer, labelColor as color)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Icon Service | MBS Picture Plugin | 8.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
You must make sure that the CGContext handle you pass in is valid. You can use CGContextMBS class for this and use GetCurrentCGContextMBS or Window.CGContextMBS to get a context. Please note that coordinates have the origin typically on the lower left.
Flags:
DrawNormal | 0 |
DrawNoImage | 2 |
DrawNoMask | 4 |
DrawSelected | 32768 |
None | 0 |
VerticalCenter | 1 |
Top | 2 |
Bottom | 3 |
HorizontalCenter | 4 |
AbsoluteCenter | 5 |
CenterTop | 6 |
CenterBottom | 7 |
Left | 8 |
CenterLeft | 9 |
TopLeft | 10 |
BottomLeft | 11 |
Right | 12 |
CenterRight | 13 |
TopRight | 14 |
BottomRight | 15 |
None | 0 |
Disabled | 1 |
Offline | 2 |
Open | 3 |
Label1 | &h0100 |
Label2 | &h0200 |
Label3 | &h0300 |
Label4 | &h0400 |
Label5 | &h0500 |
Label6 | &h0600 |
Label7 | &h0700 |
Selected | &h4000 |
SelectedDisabled | &h4001 |
SelectedOffline | &h4002 |
SelectedOpen | &h4003 |
IconMBS.GetBackground as IconMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Icon Service | MBS Picture Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Returns nil on any error.
Lasterror ist set.
IconMBS.GetForeground as IconMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Icon Service | MBS Picture Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Returns nil on any error.
Lasterror ist set.
IconMBS.IsIconRefMaskEmpty as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Icon Service | MBS Picture Plugin | 2.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Lasterror is set.
IconMBS.PointInIcon(pointx as Integer,pointy as Integer,x as Integer,y as Integer,width as Integer,height as Integer,align as Integer) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Icon Service | MBS Picture Plugin | 2.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
The coordinates for pointx/pointy and x/y must be in the same system.
Align constants:
None | 0 |
VerticalCenter | 1 |
Top | 2 |
Bottom | 3 |
HorizontalCenter | 4 |
AbsoluteCenter | 5 |
CenterTop | 6 |
CenterBottom | 7 |
Left | 8 |
CenterLeft | 9 |
TopLeft | 10 |
BottomLeft | 11 |
Right | 12 |
CenterRight | 13 |
TopRight | 14 |
BottomRight | 15 |
IconMBS.RectInIcon(rectx as Integer,recty as Integer,rectwidth as Integer,rectheight as Integer,x as Integer,y as Integer,width as Integer,height as Integer,align as Integer) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Icon Service | MBS Picture Plugin | 2.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
The coordinates for both rectangles must be in the same coordinate system.
Align constants:
None | 0 |
VerticalCenter | 1 |
Top | 2 |
Bottom | 3 |
HorizontalCenter | 4 |
AbsoluteCenter | 5 |
CenterTop | 6 |
CenterBottom | 7 |
Left | 8 |
CenterLeft | 9 |
TopLeft | 10 |
BottomLeft | 11 |
Right | 12 |
CenterRight | 13 |
TopRight | 14 |
BottomRight | 15 |
IconMBS.RetainCount as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Icon Service | MBS Picture Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
The items on this page are in the following plugins: MBS Picture Plugin.