µGFX  2.9
version 2.9
gwin_widget.h File Reference

Detailed Description

GWIN Widgets header file.

Definition in file gwin_widget.h.

#include "gwin_button.h"
#include "gwin_slider.h"
#include "gwin_checkbox.h"
#include "gwin_radio.h"
#include "gwin_label.h"
#include "gwin_list.h"
#include "gwin_progressbar.h"
#include "gwin_keyboard.h"
#include "gwin_textedit.h"

Go to the source code of this file.

Data Structures

struct  GColorSet
 The GColorSet structure. More...
 
struct  GWidgetStyle
 The GWidgetStyle structure. More...
 
struct  GWidgetInit
 The structure to initialise a widget. More...
 
struct  GWidgetObject
 The GWIN Widget structure. More...
 
struct  GEventGWin
 A Generic GWIN Event. More...
 

Functions

void gwinWidgetClearInit (GWidgetInit *pwi)
 Clear a GWidgetInit structure to all zero's. More...
 
void gwinSetDefaultStyle (const GWidgetStyle *pstyle, gBool updateAll)
 Set the default style for widgets created hereafter. More...
 
const GWidgetStylegwinGetDefaultStyle (void)
 Get the current default style. More...
 
void gwinSetText (GHandle gh, const char *text, gBool useAlloc)
 Set the text of a widget. More...
 
const char * gwinGetText (GHandle gh)
 Get the text of a widget. More...
 
void gwinPrintg (GHandle gh, const char *fmt,...)
 Set the text of a widget using a printf style format. More...
 
gBool gwinIsWidget (GHandle gh)
 Check whether a handles is a widget handle or not. More...
 
void gwinSetTag (GHandle gh, WidgetTag tag)
 Set the tag of a widget. More...
 
WidgetTag gwinGetTag (GHandle gh)
 Get the tag of a widget. More...
 
void gwinSetStyle (GHandle gh, const GWidgetStyle *pstyle)
 Set the style of a widget. More...
 
const GWidgetStylegwinGetStyle (GHandle gh)
 Get the style of a widget. More...
 
void gwinSetCustomDraw (GHandle gh, CustomWidgetDrawFunction fn, void *param)
 Set the routine to perform a custom widget drawing. More...
 
gBool gwinAttachListener (GListener *pl)
 Attach a Listener to listen for widget events. More...
 
gBool gwinAttachToggle (GHandle gh, gU16 role, gU16 instance)
 Attach a toggle to a widget. More...
 
gBool gwinDetachToggle (GHandle gh, gU16 role)
 Detach a toggle from a widget. More...
 
gBool gwinAttachDial (GHandle gh, gU16 role, gU16 instance)
 Attach a toggle to a widget. More...
 
gBool gwinSetFocus (GHandle gh)
 Set the keyboard focus to a specific window. More...
 
GHandle gwinGetFocus (void)
 Get the widget that is currently in focus. More...
 

Variables

const GWidgetStyle BlackWidgetStyle
 We define a couple of GWidgetStyle's that you can use in your application. The Black style is the default style if you don't specify one. More...
 

Macros

#define GEVENT_GWIN_OPEN   (GEVENT_GWIN_FIRST+0x00)
 The list of predefined GWIN events. More...
 

Typedefs

typedef void(* CustomWidgetDrawFunction) (struct GWidgetObject *gw, void *param)
 Defines a custom drawing function for a widget. More...
 
typedef gU16 WidgetTag
 Defines a the type of a tag on a widget. More...
 
typedef struct GColorSet GColorSet
 The GColorSet structure. More...
 
typedef struct GWidgetStyle GWidgetStyle
 The GWidgetStyle structure. More...
 
typedef struct GWidgetInit GWidgetInit
 The structure to initialise a widget. More...
 
typedef struct GWidgetObject GWidgetObject
 The GWIN Widget structure. More...
 
typedef struct GEventGWin GEventGWin
 A Generic GWIN Event. More...