Difference between revisions of "Jly Icons8"

From Jeremie Leroy - XOJO Controls Wiki
Jump to: navigation, search
m (1 revision imported)
 
(3 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
jly_Icons8 automatically handles the ScaleFactor for you.
 
jly_Icons8 automatically handles the ScaleFactor for you.
  
 +
Compatible with '''Desktop, Console''' and '''iOS''' applications.
  
  
Line 14: Line 15:
 
|-
 
|-
 
|class=titleClass colspan=1|Properties
 
|class=titleClass colspan=1|Properties
|-
 
|{{Property | name=callback | type=LoadIconDelegate | description= | readonly=no | newinversion= | version=1}}
 
|-
 
|{{Property | name=callbackiOS | type=LoadIconDelegateiOS | description= | readonly=no | newinversion= | version=1}}
 
 
|-
 
|-
 
|{{Property | name=Completed | type=Boolean | description= | readonly=no | newinversion= | version=1}}
 
|{{Property | name=Completed | type=Boolean | description= | readonly=no | newinversion= | version=1}}
 
|-
 
|-
|{{Property | name=IconColor | type=Color | description=The color of the icon that will be loaded with this instance of jly_Icons8. | readonly=no | newinversion= | version=1}}
+
|{{Property | name=IconColor | type=Color | description= | readonly=no | newinversion= | version=1}}
 
|-
 
|-
|{{Property | name=IconSize | type=Integer | description=The size of the icon that will be loaded with this instance of jly_Icons8. | readonly=no | newinversion= | version=1}}
+
|{{Property | name=IconSize | type=Integer | description= | readonly=no | newinversion= | version=1}}
 
|-
 
|-
|{{Property | name=IconStyle | type=jly_Icons8.Styles | description=The style of the icon that will be loaded with this instance of jly_Icons8. | readonly=no | newinversion= | version=1}}
+
|{{Property | name=IconStyle | type=jly_Icons8.Styles | description= | readonly=no | newinversion= | version=1}}
 
|-
 
|-
  
Line 36: Line 33:
 
|class=titleClass colspan=1|Shared Properties
 
|class=titleClass colspan=1|Shared Properties
 
|-
 
|-
|{{Property | name=globalScaleFactor | type=Double | description=This property isn't accessible on iOS because it is handled automatically. | readonly=no | newinversion= | version=1}}
+
|{{Property | name=globalScaleFactor | type=Double | description= | readonly=no | newinversion= | version=1}}
 
|-
 
|-
|{{Property | name=globalStyle | type=Styles | description=The style to use with [[jly_Icons8.LoadIconSimple|LoadIconSimple]] method. | readonly=no | newinversion= | version=1}}
+
|{{Property | name=globalStyle | type=Styles | description= | readonly=no | newinversion= | version=1}}
 
|-
 
|-
|{{Property | name=UseCache | type=Boolean | description=If True, the Icons8 class will cache all icons in | readonly=no | newinversion= | version=1}}
+
|{{Property | name=UseCache | type=Boolean | description= | readonly=no | newinversion= | version=1}}
 
|-
 
|-
  
Line 51: Line 48:
 
|class=titleClass colspan=1|Methods
 
|class=titleClass colspan=1|Methods
 
|-
 
|-
|{{Method | name=Constructor | params=style As Styles = Styles.ios, Size As Integer, aColor As Color= &c0 | description=The [[jly_Icons8.Constructor|Constructor]] for the class. | newinversion=}}
+
|{{Method | name=Constructor | params=style As Styles = Styles.ios, Size As Integer, aColor As Color= &c0 | description= | newinversion=}}
 
|-
 
|-
|{{Method | name=Destructor | description=The [[jly_Icons8.Destructor|Destructor]] for the class. | newinversion=}}
+
|{{Method | name=Destructor | description= | newinversion=}}
 
|-
 
|-
|{{Method | name=FindImageInCache | params=Name As Text, CheckExpiry As Boolean = True | description=Searches the cache to find an image by its URL. | returntype=Auto | newinversion=}}
+
|{{Method | name=FindImageInCache | params=Name As Text, CheckExpiry As Boolean = True | description= | returntype=Auto | newinversion=}}
 
|-
 
|-
|{{Method | name=IconURL | params=Name As Text | description=Returns the URL to the icon with the given parameters | returntype=Text | newinversion=}}
+
|{{Method | name=IconURL | params=Name As Text | description= | returntype=Text | newinversion=}}
 
|-
 
|-
|{{Method | name=LoadIcon | params=Name As Text, callback As Auto, moreData As Xojo.Core.Dictionary = nil, IgnoreCache As Boolean = False | description=Searches the icon in cache and loads it from the icons8 CDN if it wasn't found. | newinversion=}}
+
|{{Method | name=LoadIcon | params=Name As Text, callback As Auto, moreData As Xojo.Core.Dictionary = nil, IgnoreCache As Boolean = False | description= | newinversion=}}
 
|-
 
|-
|{{Method | name=LoadIconSimple | params=Name As Text, Size As Integer, control As Auto, aColor as Color = &c0 | description=The simplest way to set an image using Icons8. | returntype=jly_Icons8 | newinversion=}}
+
|{{Method | name=PreloadIcon | params=Name As Text, size As Integer = -1, IgnoreCache As Boolean = False | description= | newinversion=}}
|-
+
|{{Method | name=PreloadIcon | params=Name As Text, size As Integer = -1, IgnoreCache As Boolean = False | description=Preloads an icon based on IconSize, [[jly_Icons8.IconColor|IconColor]] and IconStyle. | newinversion=}}
+
 
|-
 
|-
  
Line 69: Line 64:
 
|}
 
|}
  
 +
 +
{| class=methodTable
 +
|-
 +
|class=titleClass colspan=1|Shared Methods
 +
|-
 +
|{{Method | name=LoadIconSimple | params=Name As Text, Size As Integer, control As Auto, aColor as Color = &c0 | description= | returntype=jly_Icons8 | newinversion=}}
 +
|-
 +
 +
|-
 +
|}
  
  
Line 74: Line 79:
  
  
==Styles==
+
'''Styles'''
  
 
The following styles are available from Icons8
 
The following styles are available from Icons8
Line 89: Line 94:
 
*nolan
 
*nolan
 
*dusk
 
*dusk
 +
==More Info==
 +
 +
 +
===Icons8===
 +
https://icons8.com
 +
 +
===Icons8 License===
 +
https://icons8.com/license/

Latest revision as of 17:26, 4 June 2017


A very handy class that gives access to 50,000+ icons from Icons8

The perfect tool for prototyping a design without having to include tens or hundreds of icons in your App, in both standard and HiDPI.

jly_Icons8 automatically handles the ScaleFactor for you.

Compatible with Desktop, Console and iOS applications.



Properties
Completed
IconColor
IconSize
IconStyle


Shared Properties
globalScaleFactor
globalStyle
UseCache


Methods
Constructor
Destructor
FindImageInCache
IconURL
LoadIcon
PreloadIcon


Shared Methods
LoadIconSimple


Enumerations

Styles

The following styles are available from Icons8

  • ios
  • win
  • win8
  • material
  • android4
  • color
  • office
  • ultraviolet
  • dotty
  • nolan
  • dusk

More Info

Icons8

https://icons8.com

Icons8 License

https://icons8.com/license/