luminate-old/Sources/CGtkWidgets/include/aspect_container.h

31 lines
1.1 KiB
C

#ifndef ASPECT_CONTAINER_H
#define ASPECT_CONTAINER_H
#include <gtk/gtk.h>
G_BEGIN_DECLS
#define ASPECT_TYPE_CONTAINER (aspect_container_get_type())
#define ASPECT_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), ASPECT_TYPE_CONTAINER, AspectContainer))
#define ASPECT_IS_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), ASPECT_TYPE_CONTAINER))
typedef struct _AspectContainer AspectContainer;
typedef struct _AspectContainerClass AspectContainerClass;
struct _AspectContainerClass {
GtkWidgetClass parent_class;
};
GType aspect_container_get_type (void);
GtkWidget *aspect_container_new (float aspect_ratio);
void aspect_container_set_aspect_ratio (AspectContainer *self,
float ratio);
float aspect_container_get_aspect_ratio (AspectContainer *self);
void aspect_container_set_max_width (AspectContainer *self,
int max_width);
int aspect_container_get_max_width (AspectContainer *self);
G_END_DECLS
#endif /* ASPECT_CONTAINER_H */