Class: Google::Apps::Card::V1::MaterialIcon
- Inherits:
-
Object
- Object
- Google::Apps::Card::V1::MaterialIcon
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/apps/card/v1/card.rb
Overview
A Google Material Icon, which includes over 2500+ options.
For example, to display a checkbox icon with customized weight and grade, write the following:
{
"name": "check_box",
"fill": true,
"weight": 300,
"grade": -25
}
Instance Attribute Summary collapse
-
#fill ⇒ ::Boolean
Whether the icon renders as filled.
-
#grade ⇒ ::Integer
Weight and grade affect a symbol’s thickness.
-
#name ⇒ ::String
The icon name defined in the Google Material Icon, for example,
check_box
. -
#weight ⇒ ::Integer
The stroke weight of the icon.
Instance Attribute Details
#fill ⇒ ::Boolean
Returns Whether the icon renders as filled. Default value is false.
To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.
1481 1482 1483 1484 |
# File 'proto_docs/google/apps/card/v1/card.rb', line 1481 class MaterialIcon include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#grade ⇒ ::Integer
Returns Weight and grade affect a symbol’s thickness. Adjustments to grade are more granular than adjustments to weight and have a small impact on the size of the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If any other value is specified, the default value is used.
To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.
1481 1482 1483 1484 |
# File 'proto_docs/google/apps/card/v1/card.rb', line 1481 class MaterialIcon include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#name ⇒ ::String
Returns The icon name defined in the Google Material
Icon, for example, check_box
. Any
invalid names are abandoned and replaced with empty string and
results in the icon failing to render.
1481 1482 1483 1484 |
# File 'proto_docs/google/apps/card/v1/card.rb', line 1481 class MaterialIcon include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#weight ⇒ ::Integer
Returns The stroke weight of the icon. Choose from 200, 300, 400, 500, 600, 700. If absent, default value is 400. If any other value is specified, the default value is used.
To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.
1481 1482 1483 1484 |
# File 'proto_docs/google/apps/card/v1/card.rb', line 1481 class MaterialIcon include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |