libeek: share a single drawing context among each clutter elements
A new class EekClutterDrawingContext maintains the context used to draw actors. Single EekClutterDrawingContext instance is shared by EekClutterKeyboard, EekClutterSection, EekClutterKey, and EekClutterKeyActor.
This commit is contained in:
		@ -20,6 +20,7 @@
 | 
			
		||||
#ifndef EEK_CLUTTER_SECTION_H
 | 
			
		||||
#define EEK_CLUTTER_SECTION_H 1
 | 
			
		||||
 | 
			
		||||
#include "eek-clutter-drawing-context.h"
 | 
			
		||||
#include "eek-clutter-key.h"
 | 
			
		||||
#include "eek-section.h"
 | 
			
		||||
 | 
			
		||||
@ -49,8 +50,9 @@ struct _EekClutterSectionClass
 | 
			
		||||
    EekSectionClass parent_class;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
GType               eek_clutter_section_get_type  (void) G_GNUC_CONST;
 | 
			
		||||
ClutterActor       *eek_clutter_section_get_actor (EekClutterSection *section);
 | 
			
		||||
GType         eek_clutter_section_get_type  (void) G_GNUC_CONST;
 | 
			
		||||
EekSection *  eek_clutter_section_new       (EekClutterDrawingContext *context);
 | 
			
		||||
ClutterActor *eek_clutter_section_get_actor (EekClutterSection        *section);
 | 
			
		||||
 | 
			
		||||
G_END_DECLS
 | 
			
		||||
#endif  /* EEK_CLUTTER_SECTION_H */
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user