AsBundle

AsBundle — Object representing a single bundle used in a screenshot.

Stability Level

Stable, unless otherwise indicated

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── AsBundle

Includes

#include <appstream-glib.h>

Description

Screenshot may have multiple versions of an bundle in different resolutions or aspect ratios. This object allows access to the location and size of a single bundle.

See also: AsScreenshot

Functions

AS_TYPE_BUNDLE

#define AS_TYPE_BUNDLE (as_bundle_get_type ())

as_bundle_new ()

AsBundle *
as_bundle_new (void);

Creates a new AsBundle.

Returns

a AsBundle.

[transfer full]

Since: 0.3.5


as_bundle_kind_from_string ()

AsBundleKind
as_bundle_kind_from_string (const gchar *kind);

Converts the text representation to an enumerated value.

Parameters

kind

the string.

 

Returns

a AsBundleKind, or AS_BUNDLE_KIND_UNKNOWN for unknown.

[transfer full]

Since: 0.3.5


as_bundle_kind_to_string ()

const gchar *
as_bundle_kind_to_string (AsBundleKind kind);

Converts the enumerated value to an text representation.

Parameters

kind

the AsBundleKind.

 

Returns

string version of kind

Since: 0.3.5


as_bundle_get_id ()

const gchar *
as_bundle_get_id (AsBundle *bundle);

Gets the ID for this bundle.

Parameters

bundle

a AsBundle instance.

 

Returns

ID, e.g. "foobar-1.0.2"

Since: 0.3.5


as_bundle_get_kind ()

AsBundleKind
as_bundle_get_kind (AsBundle *bundle);

Gets the bundle kind.

Parameters

bundle

a AsBundle instance.

 

Returns

the AsBundleKind

Since: 0.3.5


as_bundle_set_id ()

void
as_bundle_set_id (AsBundle *bundle,
                  const gchar *id);

Sets the ID for this bundle.

Parameters

bundle

a AsBundle instance.

 

id

the URL.

 

Since: 0.3.5


as_bundle_set_kind ()

void
as_bundle_set_kind (AsBundle *bundle,
                    AsBundleKind kind);

Sets the bundle kind.

Parameters

bundle

a AsBundle instance.

 

kind

the AsBundleKind, e.g. AS_BUNDLE_KIND_THUMBNAIL.

 

Since: 0.3.5

Types and Values

struct AsBundleClass

struct AsBundleClass {
	GObjectClass		parent_class;
};

enum AsBundleKind

The bundle type.

Members

AS_BUNDLE_KIND_UNKNOWN

Type invalid or not known

 

AS_BUNDLE_KIND_LIMBA

Limba application bundle

 

AS_BUNDLE_KIND_XDG_APP

Desktop application deployment

 

AsBundle

typedef struct _AsBundle AsBundle;