Updated Easy::Emoji.
Added visible_in_picker().
This commit is contained in:
parent
920421edf1
commit
26f43a1682
|
@ -45,3 +45,8 @@ const string Emoji::url() const
|
||||||
{
|
{
|
||||||
return get_string("url");
|
return get_string("url");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Emoji::visible_in_picker() const
|
||||||
|
{
|
||||||
|
return get_bool("visible_in_picker");
|
||||||
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ namespace Mastodon
|
||||||
namespace Easy
|
namespace Easy
|
||||||
{
|
{
|
||||||
/*!
|
/*!
|
||||||
* @brief Class to hold emojis
|
* @brief Class to hold emojis.
|
||||||
*
|
*
|
||||||
* @since before 0.11.0
|
* @since before 0.11.0
|
||||||
*/
|
*/
|
||||||
|
@ -47,25 +47,32 @@ namespace Easy
|
||||||
virtual bool valid() const override;
|
virtual bool valid() const override;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @brief Returns the shortcode of the emoji
|
* @brief Returns the shortcode of the emoji.
|
||||||
*
|
*
|
||||||
* @since before 0.11.0
|
* @since before 0.11.0
|
||||||
*/
|
*/
|
||||||
const string shortcode() const;
|
const string shortcode() const;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @brief Returns the URL to the emoji static image
|
* @brief Returns the URL to the emoji static image.
|
||||||
*
|
*
|
||||||
* @since before 0.11.0
|
* @since before 0.11.0
|
||||||
*/
|
*/
|
||||||
const string static_url() const;
|
const string static_url() const;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @brief Returns the URL to the emoji image
|
* @brief Returns the URL to the emoji image.
|
||||||
*
|
*
|
||||||
* @since before 0.11.0
|
* @since before 0.11.0
|
||||||
*/
|
*/
|
||||||
const string url() const;
|
const string url() const;
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* @brief Returns if the emoji is visible in the picker.
|
||||||
|
*
|
||||||
|
* @since 0.106.0
|
||||||
|
*/
|
||||||
|
bool visible_in_picker() const;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue
Block a user