mex-utils

mex-utils

Synopsis

enum                MexPaintTextureFrameFlags;
#define             MEX_PAINT_TEXTURE_FRAME_ALL
#define             MEX_PAINT_TEXTURE_FRAME_NOC
gint                (*MexActorSortFunc)                 (ClutterActor *a,
                                                         ClutterActor *b,
                                                         gpointer userdata);
void                mex_style_load_default              (void);
void                mex_paint_texture_frame             (gfloat x,
                                                         gfloat y,
                                                         gfloat width,
                                                         gfloat height,
                                                         gfloat tex_width,
                                                         gfloat tex_height,
                                                         gfloat top,
                                                         gfloat right,
                                                         gfloat bottom,
                                                         gfloat left,
                                                         MexPaintTextureFrameFlags flags);
void                mex_push_focus                      (MxFocusable *actor);
void                mex_action_set_content              (MxAction *action,
                                                         MexContent *content);
MexContent *        mex_action_get_content              (MxAction *action);
void                mex_action_set_context              (MxAction *action,
                                                         MexModel *model);
MexModel *          mex_action_get_context              (MxAction *action);
gint                mex_model_sort_alpha_cb             (MexContent *a,
                                                         MexContent *b,
                                                         gpointer bool_reverse);
gint                mex_model_sort_time_cb              (MexContent *a,
                                                         MexContent *b,
                                                         gpointer bool_reverse);
gint                mex_model_sort_smart_cb             (MexContent *a,
                                                         MexContent *b,
                                                         gpointer bool_reverse);
void                mex_print_date                      (GDateTime *date,
                                                         const gchar *prefix);
gchar *             mex_date_to_string                  (GDateTime *date);
extern              const gchar *mex_shader_box_blur;
GQuark              mex_tile_shadow_quark               (void);
void                mex_replace_border_image            (CoglHandle *texture_p,
                                                         MxBorderImage *image,
                                                         MxBorderImage **image_p,
                                                         CoglHandle *material_p);
const char *        mex_get_data_dir                    (void);
gboolean            mex_actor_has_focus                 (MxFocusManager *manager,
                                                         ClutterActor *actor);
MexContent *        mex_content_from_uri                (const gchar *uri);
GKeyFile *          mex_get_settings_key_file           (void);

Object Hierarchy

  GFlags
   +----MexPaintTextureFrameFlags

Description

Details

enum MexPaintTextureFrameFlags

typedef enum
{
  MEX_TEXTURE_FRAME_EMPTY        = 0,
  MEX_TEXTURE_FRAME_TOP_LEFT     = 1 << 0,
  MEX_TEXTURE_FRAME_TOP          = 1 << 1,
  MEX_TEXTURE_FRAME_TOP_RIGHT    = 1 << 2,
  MEX_TEXTURE_FRAME_LEFT         = 1 << 3,
  MEX_TEXTURE_FRAME_MIDDLE       = 1 << 4,
  MEX_TEXTURE_FRAME_RIGHT        = 1 << 5,
  MEX_TEXTURE_FRAME_BOTTOM_LEFT  = 1 << 6,
  MEX_TEXTURE_FRAME_BOTTOM       = 1 << 7,
  MEX_TEXTURE_FRAME_BOTTOM_RIGHT = 1 << 8
} MexPaintTextureFrameFlags;

MEX_PAINT_TEXTURE_FRAME_ALL

#define             MEX_PAINT_TEXTURE_FRAME_ALL

MEX_PAINT_TEXTURE_FRAME_NOC

#define             MEX_PAINT_TEXTURE_FRAME_NOC

MexActorSortFunc ()

gint                (*MexActorSortFunc)                 (ClutterActor *a,
                                                         ClutterActor *b,
                                                         gpointer userdata);

mex_style_load_default ()

void                mex_style_load_default              (void);

mex_paint_texture_frame ()

void                mex_paint_texture_frame             (gfloat x,
                                                         gfloat y,
                                                         gfloat width,
                                                         gfloat height,
                                                         gfloat tex_width,
                                                         gfloat tex_height,
                                                         gfloat top,
                                                         gfloat right,
                                                         gfloat bottom,
                                                         gfloat left,
                                                         MexPaintTextureFrameFlags flags);

mex_push_focus ()

void                mex_push_focus                      (MxFocusable *actor);

mex_action_set_content ()

void                mex_action_set_content              (MxAction *action,
                                                         MexContent *content);

mex_action_get_content ()

MexContent *        mex_action_get_content              (MxAction *action);

action :

A MxAction

Returns :

The MexContent linked to that action. [transfer none]

mex_action_set_context ()

void                mex_action_set_context              (MxAction *action,
                                                         MexModel *model);

mex_action_get_context ()

MexModel *          mex_action_get_context              (MxAction *action);

action :

A MxAction

Returns :

The MexModel linked to that action. [transfer none]

mex_model_sort_alpha_cb ()

gint                mex_model_sort_alpha_cb             (MexContent *a,
                                                         MexContent *b,
                                                         gpointer bool_reverse);

mex_model_sort_time_cb ()

gint                mex_model_sort_time_cb              (MexContent *a,
                                                         MexContent *b,
                                                         gpointer bool_reverse);

mex_model_sort_smart_cb ()

gint                mex_model_sort_smart_cb             (MexContent *a,
                                                         MexContent *b,
                                                         gpointer bool_reverse);

mex_print_date ()

void                mex_print_date                      (GDateTime *date,
                                                         const gchar *prefix);

mex_date_to_string ()

gchar *             mex_date_to_string                  (GDateTime *date);

mex_shader_box_blur

extern const gchar *mex_shader_box_blur;

mex_tile_shadow_quark ()

GQuark              mex_tile_shadow_quark               (void);

mex_replace_border_image ()

void                mex_replace_border_image            (CoglHandle *texture_p,
                                                         MxBorderImage *image,
                                                         MxBorderImage **image_p,
                                                         CoglHandle *material_p);

mex_get_data_dir ()

const char *        mex_get_data_dir                    (void);

Gets the data directory for media explorer. Use this rather than anything else as this ensures greater compatibility.

Returns :

Path to mex data directory

mex_actor_has_focus ()

gboolean            mex_actor_has_focus                 (MxFocusManager *manager,
                                                         ClutterActor *actor);

Evaluates whether the actor has focus or not.

manager :

The current MxFocusManager

actor :

The actor that you wish query if it is focused

Returns :

True if the actor is focused

mex_content_from_uri ()

MexContent *        mex_content_from_uri                (const gchar *uri);

Creates a new MexContent from any given uri and tries to guess at some metadata.

uri :

A valid uri for some media

Returns :

A new MexContent. [transfer full]

mex_get_settings_key_file ()

GKeyFile *          mex_get_settings_key_file           (void);

Note setting backend is to be rewritten in future versions