mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
Remove ClutterLabel and ClutterEntry
Both ClutterLabel and ClutterEntry have been deprecated by ClutterText.
This commit is contained in:
parent
c8dbbfaacf
commit
39b575e6b4
File diff suppressed because it is too large
Load Diff
@ -1,165 +0,0 @@
|
|||||||
/*
|
|
||||||
* Clutter.
|
|
||||||
*
|
|
||||||
* An OpenGL based 'interactive canvas' library.
|
|
||||||
*
|
|
||||||
* Authored By Matthew Allum <mallum@openedhand.com>
|
|
||||||
* Neil Jagdish Patel <njp@o-hand.com
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006 OpenedHand
|
|
||||||
*
|
|
||||||
* This library is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
|
||||||
* License as published by the Free Software Foundation; either
|
|
||||||
* version 2 of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This library is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
|
|
||||||
#error "Only <clutter/clutter.h> can be included directly."
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef __CLUTTER_ENTRY_H__
|
|
||||||
#define __CLUTTER_ENTRY_H__
|
|
||||||
|
|
||||||
#include <clutter/clutter-actor.h>
|
|
||||||
#include <clutter/clutter-color.h>
|
|
||||||
#include <clutter/clutter-event.h>
|
|
||||||
#include <pango/pango.h>
|
|
||||||
|
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
|
||||||
|
|
||||||
#define CLUTTER_TYPE_ENTRY (clutter_entry_get_type ())
|
|
||||||
|
|
||||||
#define CLUTTER_ENTRY(obj) \
|
|
||||||
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
|
|
||||||
CLUTTER_TYPE_ENTRY, ClutterEntry))
|
|
||||||
|
|
||||||
#define CLUTTER_ENTRY_CLASS(klass) \
|
|
||||||
(G_TYPE_CHECK_CLASS_CAST ((klass), \
|
|
||||||
CLUTTER_TYPE_ENTRY, ClutterEntryClass))
|
|
||||||
|
|
||||||
#define CLUTTER_IS_ENTRY(obj) \
|
|
||||||
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
|
|
||||||
CLUTTER_TYPE_ENTRY))
|
|
||||||
|
|
||||||
#define CLUTTER_IS_ENTRY_CLASS(klass) \
|
|
||||||
(G_TYPE_CHECK_CLASS_TYPE ((klass), \
|
|
||||||
CLUTTER_TYPE_ENTRY))
|
|
||||||
|
|
||||||
#define CLUTTER_ENTRY_GET_CLASS(obj) \
|
|
||||||
(G_TYPE_INSTANCE_GET_CLASS ((obj), \
|
|
||||||
CLUTTER_TYPE_ENTRY, ClutterEntryClass))
|
|
||||||
|
|
||||||
typedef struct _ClutterEntry ClutterEntry;
|
|
||||||
typedef struct _ClutterEntryClass ClutterEntryClass;
|
|
||||||
typedef struct _ClutterEntryPrivate ClutterEntryPrivate;
|
|
||||||
|
|
||||||
struct _ClutterEntry
|
|
||||||
{
|
|
||||||
/*< private >*/
|
|
||||||
ClutterActor parent_instance;
|
|
||||||
|
|
||||||
ClutterEntryPrivate *priv;
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ClutterEntryClass:
|
|
||||||
* @paint_cursor: virtual function for subclasses to use to draw a custom
|
|
||||||
* cursor instead of the default one
|
|
||||||
* @text_changed: signal class handler for ClutterEntry::text-changed
|
|
||||||
* @cursor_event: signal class handler for ClutterEntry::cursor-event
|
|
||||||
* @activate: signal class handler for ClutterEntry::activate
|
|
||||||
*
|
|
||||||
* Class fo entry actors.
|
|
||||||
*
|
|
||||||
* Since: 0.4
|
|
||||||
*/
|
|
||||||
struct _ClutterEntryClass
|
|
||||||
{
|
|
||||||
/*< private >*/
|
|
||||||
ClutterActorClass parent_class;
|
|
||||||
|
|
||||||
/*< public >*/
|
|
||||||
/* vfuncs, not signals */
|
|
||||||
void (* paint_cursor) (ClutterEntry *entry);
|
|
||||||
|
|
||||||
/* signals */
|
|
||||||
void (* text_changed) (ClutterEntry *entry);
|
|
||||||
void (* cursor_event) (ClutterEntry *entry,
|
|
||||||
ClutterGeometry *geometry);
|
|
||||||
void (* activate) (ClutterEntry *entry);
|
|
||||||
|
|
||||||
/*< private >*/
|
|
||||||
/* padding for future */
|
|
||||||
void (*_clutter_entry_1) (void);
|
|
||||||
void (*_clutter_entry_2) (void);
|
|
||||||
void (*_clutter_entry_3) (void);
|
|
||||||
void (*_clutter_entry_4) (void);
|
|
||||||
};
|
|
||||||
|
|
||||||
GType clutter_entry_get_type (void) G_GNUC_CONST;
|
|
||||||
|
|
||||||
ClutterActor * clutter_entry_new (void);
|
|
||||||
ClutterActor * clutter_entry_new_full (const gchar *font_name,
|
|
||||||
const gchar *text,
|
|
||||||
const ClutterColor *color);
|
|
||||||
ClutterActor * clutter_entry_new_with_text (const gchar *font_name,
|
|
||||||
const gchar *text);
|
|
||||||
void clutter_entry_set_text (ClutterEntry *entry,
|
|
||||||
const gchar *text);
|
|
||||||
G_CONST_RETURN gchar *clutter_entry_get_text (ClutterEntry *entry);
|
|
||||||
void clutter_entry_set_font_name (ClutterEntry *entry,
|
|
||||||
const gchar *font_name);
|
|
||||||
G_CONST_RETURN gchar *clutter_entry_get_font_name (ClutterEntry *entry);
|
|
||||||
void clutter_entry_set_color (ClutterEntry *entry,
|
|
||||||
const ClutterColor *color);
|
|
||||||
void clutter_entry_get_color (ClutterEntry *entry,
|
|
||||||
ClutterColor *color);
|
|
||||||
PangoLayout * clutter_entry_get_layout (ClutterEntry *entry);
|
|
||||||
void clutter_entry_set_alignment (ClutterEntry *entry,
|
|
||||||
PangoAlignment alignment);
|
|
||||||
PangoAlignment clutter_entry_get_alignment (ClutterEntry *entry);
|
|
||||||
void clutter_entry_set_cursor_position (ClutterEntry *entry,
|
|
||||||
gint position);
|
|
||||||
gint clutter_entry_get_cursor_position (ClutterEntry *entry);
|
|
||||||
void clutter_entry_insert_unichar (ClutterEntry *entry,
|
|
||||||
gunichar wc);
|
|
||||||
void clutter_entry_delete_chars (ClutterEntry *entry,
|
|
||||||
guint len);
|
|
||||||
void clutter_entry_insert_text (ClutterEntry *entry,
|
|
||||||
const gchar *text,
|
|
||||||
gssize position);
|
|
||||||
void clutter_entry_delete_text (ClutterEntry *entry,
|
|
||||||
gssize start_pos,
|
|
||||||
gssize end_pos);
|
|
||||||
void clutter_entry_set_visible_cursor (ClutterEntry *entry,
|
|
||||||
gboolean visible);
|
|
||||||
gboolean clutter_entry_get_visible_cursor (ClutterEntry *entry);
|
|
||||||
|
|
||||||
void clutter_entry_set_visibility (ClutterEntry *entry,
|
|
||||||
gboolean visible);
|
|
||||||
gboolean clutter_entry_get_visibility (ClutterEntry *entry);
|
|
||||||
void clutter_entry_set_invisible_char (ClutterEntry *entry,
|
|
||||||
gunichar wc);
|
|
||||||
gunichar clutter_entry_get_invisible_char (ClutterEntry *entry);
|
|
||||||
void clutter_entry_set_max_length (ClutterEntry *entry,
|
|
||||||
gint max);
|
|
||||||
gint clutter_entry_get_max_length (ClutterEntry *entry);
|
|
||||||
|
|
||||||
#ifndef CLUTTER_DISABLE_DEPRECATED
|
|
||||||
void clutter_entry_handle_key_event (ClutterEntry *entry,
|
|
||||||
ClutterKeyEvent *kev);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
G_END_DECLS
|
|
||||||
|
|
||||||
#endif /* __CLUTTER_ENTRY_H__ */
|
|
File diff suppressed because it is too large
Load Diff
@ -1,128 +0,0 @@
|
|||||||
/*
|
|
||||||
* Clutter.
|
|
||||||
*
|
|
||||||
* An OpenGL based 'interactive canvas' library.
|
|
||||||
*
|
|
||||||
* Authored By Matthew Allum <mallum@openedhand.com>
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006 OpenedHand
|
|
||||||
*
|
|
||||||
* This library is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
|
||||||
* License as published by the Free Software Foundation; either
|
|
||||||
* version 2 of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This library is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Lesser General Public
|
|
||||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
|
|
||||||
#error "Only <clutter/clutter.h> can be included directly."
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef __CLUTTER_LABEL_H__
|
|
||||||
#define __CLUTTER_LABEL_H__
|
|
||||||
|
|
||||||
#include <clutter/clutter-actor.h>
|
|
||||||
#include <clutter/clutter-color.h>
|
|
||||||
#include <pango/pango.h>
|
|
||||||
|
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
|
||||||
|
|
||||||
#define CLUTTER_TYPE_LABEL (clutter_label_get_type ())
|
|
||||||
|
|
||||||
#define CLUTTER_LABEL(obj) \
|
|
||||||
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
|
|
||||||
CLUTTER_TYPE_LABEL, ClutterLabel))
|
|
||||||
|
|
||||||
#define CLUTTER_LABEL_CLASS(klass) \
|
|
||||||
(G_TYPE_CHECK_CLASS_CAST ((klass), \
|
|
||||||
CLUTTER_TYPE_LABEL, ClutterLabelClass))
|
|
||||||
|
|
||||||
#define CLUTTER_IS_LABEL(obj) \
|
|
||||||
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
|
|
||||||
CLUTTER_TYPE_LABEL))
|
|
||||||
|
|
||||||
#define CLUTTER_IS_LABEL_CLASS(klass) \
|
|
||||||
(G_TYPE_CHECK_CLASS_TYPE ((klass), \
|
|
||||||
CLUTTER_TYPE_LABEL))
|
|
||||||
|
|
||||||
#define CLUTTER_LABEL_GET_CLASS(obj) \
|
|
||||||
(G_TYPE_INSTANCE_GET_CLASS ((obj), \
|
|
||||||
CLUTTER_TYPE_LABEL, ClutterLabelClass))
|
|
||||||
|
|
||||||
typedef struct _ClutterLabel ClutterLabel;
|
|
||||||
typedef struct _ClutterLabelClass ClutterLabelClass;
|
|
||||||
typedef struct _ClutterLabelPrivate ClutterLabelPrivate;
|
|
||||||
|
|
||||||
struct _ClutterLabel
|
|
||||||
{
|
|
||||||
ClutterActor parent;
|
|
||||||
|
|
||||||
/*< private >*/
|
|
||||||
ClutterLabelPrivate *priv;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct _ClutterLabelClass
|
|
||||||
{
|
|
||||||
/*< private >*/
|
|
||||||
ClutterActorClass parent_class;
|
|
||||||
|
|
||||||
void (*_clutter_label_1) (void);
|
|
||||||
void (*_clutter_label_2) (void);
|
|
||||||
void (*_clutter_label_3) (void);
|
|
||||||
void (*_clutter_label_4) (void);
|
|
||||||
};
|
|
||||||
|
|
||||||
GType clutter_label_get_type (void) G_GNUC_CONST;
|
|
||||||
|
|
||||||
ClutterActor * clutter_label_new (void);
|
|
||||||
|
|
||||||
ClutterActor* clutter_label_new_full (const gchar *font_name,
|
|
||||||
const gchar *text,
|
|
||||||
const ClutterColor *color);
|
|
||||||
|
|
||||||
ClutterActor * clutter_label_new_with_text (const gchar *font_name,
|
|
||||||
const gchar *text);
|
|
||||||
void clutter_label_set_text (ClutterLabel *label,
|
|
||||||
const gchar *text);
|
|
||||||
G_CONST_RETURN gchar *clutter_label_get_text (ClutterLabel *label);
|
|
||||||
void clutter_label_set_font_name (ClutterLabel *label,
|
|
||||||
const gchar *font_name);
|
|
||||||
G_CONST_RETURN gchar *clutter_label_get_font_name (ClutterLabel *label);
|
|
||||||
void clutter_label_set_color (ClutterLabel *label,
|
|
||||||
const ClutterColor *color);
|
|
||||||
void clutter_label_get_color (ClutterLabel *label,
|
|
||||||
ClutterColor *color);
|
|
||||||
void clutter_label_set_ellipsize (ClutterLabel *label,
|
|
||||||
PangoEllipsizeMode mode);
|
|
||||||
PangoEllipsizeMode clutter_label_get_ellipsize (ClutterLabel *label);
|
|
||||||
void clutter_label_set_line_wrap (ClutterLabel *label,
|
|
||||||
gboolean wrap);
|
|
||||||
gboolean clutter_label_get_line_wrap (ClutterLabel *label);
|
|
||||||
void clutter_label_set_line_wrap_mode (ClutterLabel *label,
|
|
||||||
PangoWrapMode wrap_mode);
|
|
||||||
PangoWrapMode clutter_label_get_line_wrap_mode (ClutterLabel *label);
|
|
||||||
PangoLayout * clutter_label_get_layout (ClutterLabel *label);
|
|
||||||
void clutter_label_set_attributes (ClutterLabel *label,
|
|
||||||
PangoAttrList *attrs);
|
|
||||||
PangoAttrList * clutter_label_get_attributes (ClutterLabel *label);
|
|
||||||
void clutter_label_set_use_markup (ClutterLabel *label,
|
|
||||||
gboolean setting);
|
|
||||||
gboolean clutter_label_get_use_markup (ClutterLabel *label);
|
|
||||||
void clutter_label_set_alignment (ClutterLabel *label,
|
|
||||||
PangoAlignment alignment);
|
|
||||||
PangoAlignment clutter_label_get_alignment (ClutterLabel *label);
|
|
||||||
void clutter_label_set_justify (ClutterLabel *label,
|
|
||||||
gboolean justify);
|
|
||||||
gboolean clutter_label_get_justify (ClutterLabel *label);
|
|
||||||
|
|
||||||
G_END_DECLS
|
|
||||||
|
|
||||||
#endif /* __CLUTTER_LABEL_H__ */
|
|
Loading…
Reference in New Issue
Block a user