Download

Support

lib/ewl_button.h File Reference

#include "ewl_stock.h"

Include dependency graph for ewl_button.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Data Structures

struct  Ewl_Button
 A simple Ewl_Widget to provide for a clickable button in the UI. More...

Defines

#define EWL_BUTTON(button)   ((Ewl_Button *) button)
#define EWL_BUTTON_IS(w)   (ewl_widget_type_is(EWL_WIDGET(w), EWL_BUTTON_TYPE))
#define EWL_BUTTON_TYPE   "button"

Typedefs

typedef Ewl_Button Ewl_Button

Functions

unsigned int ewl_button_alignment_get (Ewl_Button *b)
 Gets the alignment of the contents of the button.
void ewl_button_alignment_set (Ewl_Button *b, unsigned int align)
 Set the alignment of the contents of the button.
void ewl_button_cb_key_down (Ewl_Widget *w, void *ev, void *data)
unsigned int ewl_button_fill_policy_get (Ewl_Button *b)
 Retrieves the curernt file policy set on the button.
void ewl_button_fill_policy_set (Ewl_Button *b, unsigned int fill)
 Set the fill policy of the contents of the button.
const char * ewl_button_image_get (Ewl_Button *b)
 Get the image file used by the button.
void ewl_button_image_set (Ewl_Button *b, const char *file, const char *key)
 Set the image file file and the image key key to use.
void ewl_button_image_size_get (Ewl_Button *b, int *width, int *height)
 Get the size of the image inside the button.
void ewl_button_image_size_set (Ewl_Button *b, int width, int height)
 Set the size of the image inside the button.
int ewl_button_init (Ewl_Button *b)
 Initialize a button to starting values.
const char * ewl_button_label_get (Ewl_Button *b)
 Retrieve the label of the specified button.
void ewl_button_label_set (Ewl_Button *b, const char *l)
 Change the label of the specified button.
Ewl_Widgetewl_button_new (void)
 Allocate and initialize a new button.

Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sun Sep 27 01:48:56 2009