![]() |
![]() |
![]() |
Mex Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
#define MEX_PAINT_TEXTURE_FRAME_ALL #define MEX_PAINT_TEXTURE_FRAME_NOC gint (*MexActorSortFunc) (ClutterActor *a
,ClutterActor *b
,gpointer userdata
); enum MexPaintTextureFrameFlags; MexContent * mex_action_get_content (MxAction *action
); MexModel * mex_action_get_context (MxAction *action
); void mex_action_set_content (MxAction *action
,MexContent *content
); void mex_action_set_context (MxAction *action
,MexModel *model
); gboolean mex_actor_has_focus (MxFocusManager *manager
,ClutterActor *actor
); MexContent * mex_content_from_uri (const gchar *uri
); gchar * mex_date_to_string (GDateTime *date
); gulong mex_g_signal_connect_object (gpointer instance
,const gchar *detailed_signal
,GCallback c_handler
,gpointer gobject
,GConnectFlags connect_flags
); const char * mex_get_data_dir (void
); GKeyFile * mex_get_settings_key_file (void
); gint mex_model_sort_alpha_cb (MexContent *a
,MexContent *b
,gpointer bool_reverse
); gint mex_model_sort_smart_cb (MexContent *a
,MexContent *b
,gpointer bool_reverse
); gint mex_model_sort_time_cb (MexContent *a
,MexContent *b
,gpointer bool_reverse
); 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_print_date (GDateTime *date
,const gchar *prefix
); void mex_push_focus (MxFocusable *actor
); void mex_replace_border_image (CoglHandle *texture_p
,MxBorderImage *image
,MxBorderImage **image_p
,CoglHandle *material_p
); extern const gchar *mex_shader_box_blur; void mex_style_load_default (void
); GQuark mex_tile_shadow_quark (void
);
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;
MexContent * mex_action_get_content (MxAction *action
);
|
A MxAction |
Returns : |
The MexContent linked to that action. [transfer none] |
MexModel * mex_action_get_context (MxAction *action
);
|
A MxAction |
Returns : |
The MexModel linked to that action. [transfer none] |
gboolean mex_actor_has_focus (MxFocusManager *manager
,ClutterActor *actor
);
Evaluates whether the actor has focus or not.
|
The current MxFocusManager |
|
The actor that you wish query if it is focused |
Returns : |
True if the actor is focused |
MexContent * mex_content_from_uri (const gchar *uri
);
Creates a new MexContent from any given uri and tries to guess at some metadata.
|
A valid uri for some media |
Returns : |
A new MexContent. [transfer full] |
gulong mex_g_signal_connect_object (gpointer instance
,const gchar *detailed_signal
,GCallback c_handler
,gpointer gobject
,GConnectFlags connect_flags
);
Connects a GCallback function to a signal for a particular object, as if
with g_signal_connect()
. Additionally, arranges for the signal handler to be
disconnected if gobject
is destroyed.
This is similar to g_signal_connect_data()
, but uses a closure which
ensures that the gobject
stays alive during the call to c_handler
by temporarily adding a reference count to gobject
.
This is similar to g_signal_connect_object()
, but doesn't have the
documented bug that everyone is too scared to fix. Also, it does not allow
you to pass in NULL as gobject
This is intended to be a convenient way for objects to use themselves as user_data for callbacks without having to explicitly disconnect all the handlers in their finalizers.
|
the instance to connect to. |
|
a string of the form "signal-name::detail". |
|
the GCallback to connect. |
|
the object to pass as data to c_handler . |
|
a combination of GConnectFlags. Only
G_CONNECT_AFTER and G_CONNECT_SWAPPED are supported by this function. |
Returns : |
the handler id |
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 |
GKeyFile * mex_get_settings_key_file (void
);
Note setting backend is to be rewritten in future versions
gint mex_model_sort_alpha_cb (MexContent *a
,MexContent *b
,gpointer bool_reverse
);
gint mex_model_sort_smart_cb (MexContent *a
,MexContent *b
,gpointer bool_reverse
);
gint mex_model_sort_time_cb (MexContent *a
,MexContent *b
,gpointer bool_reverse
);
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_replace_border_image (CoglHandle *texture_p
,MxBorderImage *image
,MxBorderImage **image_p
,CoglHandle *material_p
);