AlpTapAndHoldButton
[UI Widgets]


Detailed Description

AlpTapAndHoldButton is GtkButton with an additional tap-and-hold signal.


Data Structures

struct  _AlpTapAndHoldButton
struct  _AlpTapAndHoldButtonClass

Defines

#define ALP_IS_TAPANDHOLDBUTTON(obj)   (G_TYPE_CHECK_INSTANCE_TYPE((obj), ALP_TYPE_TAPANDHOLDBUTTON))
#define ALP_IS_TAPANDHOLDBUTTON_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), ALP_TYPE_TAPANDHOLDBUTTON))
#define ALP_TAPANDHOLDBUTTON(obj)   (G_TYPE_CHECK_INSTANCE_CAST((obj), ALP_TYPE_TAPANDHOLDBUTTON, AlpTapAndHoldButton))
#define ALP_TAPANDHOLDBUTTON_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass), ALP_TYPE_TAPANDHOLDBUTTON, AlpTapAndHoldButtonClass))
#define ALP_TAPANDHOLDBUTTON_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS((obj), ALP_TYPE_TAPANDHOLDBUTTON, AlpTapAndHoldButtonClass))
#define ALP_TYPE_TAPANDHOLDBUTTON   (alp_tap_and_hold_button_get_type())

Typedefs

typedef _AlpTapAndHoldButton AlpTapAndHoldButton
typedef _AlpTapAndHoldButtonClass AlpTapAndHoldButtonClass
typedef _AlpTapAndHoldButtonPrivate AlpTapAndHoldButtonPrivate

Functions

gboolean alp_tap_and_hold_button_get_emit_tap_and_hold (AlpTapAndHoldButton *button)
 Returns whether the button will emit a tap and hold signal.
GType alp_tap_and_hold_button_get_type (void) G_GNUC_CONST
 Gets GType of an AlpTapAndHoldButton.
GtkWidget * alp_tap_and_hold_button_new ()
 Creates a new AlpTapAndHoldButton widget.
GtkWidget * alp_tap_and_hold_button_new_from_stock (const gchar *stock_id)
 Creates a new AlpTapAndHoldButton widget containing the image and text from a stock item, such as GTK_STOCK_OK.
GtkWidget * alp_tap_and_hold_button_new_with_label (const gchar *label)
 Creates a new AlpTapAndHoldButton widget with a GtkLabel child containing the given text.
void alp_tap_and_hold_button_set_emit_tap_and_hold (AlpTapAndHoldButton *button, gboolean emit_tap_and_hold)
 Sets whether the button will emit a tap and hold signal.
const gchar * alp_tap_and_hold_button_tap_and_hold_property_string ()
 Gets the string for the tap-and-hold property.
const gchar * alp_tap_and_hold_button_tap_and_hold_signal_string ()
 Gets the string that's emitted when tap-and-hold happens.


Define Documentation

#define ALP_IS_TAPANDHOLDBUTTON obj   )     (G_TYPE_CHECK_INSTANCE_TYPE((obj), ALP_TYPE_TAPANDHOLDBUTTON))
 

#define ALP_IS_TAPANDHOLDBUTTON_CLASS klass   )     (G_TYPE_CHECK_CLASS_TYPE((klass), ALP_TYPE_TAPANDHOLDBUTTON))
 

#define ALP_TAPANDHOLDBUTTON obj   )     (G_TYPE_CHECK_INSTANCE_CAST((obj), ALP_TYPE_TAPANDHOLDBUTTON, AlpTapAndHoldButton))
 

#define ALP_TAPANDHOLDBUTTON_CLASS klass   )     (G_TYPE_CHECK_CLASS_CAST((klass), ALP_TYPE_TAPANDHOLDBUTTON, AlpTapAndHoldButtonClass))
 

#define ALP_TAPANDHOLDBUTTON_GET_CLASS obj   )     (G_TYPE_INSTANCE_GET_CLASS((obj), ALP_TYPE_TAPANDHOLDBUTTON, AlpTapAndHoldButtonClass))
 

#define ALP_TYPE_TAPANDHOLDBUTTON   (alp_tap_and_hold_button_get_type())
 


Typedef Documentation

typedef struct _AlpTapAndHoldButton AlpTapAndHoldButton
 

typedef struct _AlpTapAndHoldButtonClass AlpTapAndHoldButtonClass
 

typedef struct _AlpTapAndHoldButtonPrivate AlpTapAndHoldButtonPrivate
 


Function Documentation

gboolean alp_tap_and_hold_button_get_emit_tap_and_hold AlpTapAndHoldButton button  ) 
 

Returns whether the button will emit a tap and hold signal.

Parameters:
[in] button An AlpTapAndHoldButton
Returns:
TRUE if the button will emit the tap and hold signal, FALSE otherwise

GType alp_tap_and_hold_button_get_type void   ) 
 

Gets GType of an AlpTapAndHoldButton.

Returns:
a new AlpTapAndHoldButton

GtkWidget* alp_tap_and_hold_button_new  ) 
 

Creates a new AlpTapAndHoldButton widget.

Returns:
a new AlpTapAndHoldButton

GtkWidget* alp_tap_and_hold_button_new_from_stock const gchar *  stock_id  ) 
 

Creates a new AlpTapAndHoldButton widget containing the image and text from a stock item, such as GTK_STOCK_OK.

Parameters:
[in] label The text you want the GtkLabel to hold
Returns:
a new AlpTapAndHoldButton

GtkWidget* alp_tap_and_hold_button_new_with_label const gchar *  label  ) 
 

Creates a new AlpTapAndHoldButton widget with a GtkLabel child containing the given text.

Parameters:
[in] label The text you want the GtkLabel to hold
Returns:
a new AlpTapAndHoldButton

void alp_tap_and_hold_button_set_emit_tap_and_hold AlpTapAndHoldButton button,
gboolean  emit_tap_and_hold
 

Sets whether the button will emit a tap and hold signal.

Parameters:
[in] button An AlpTapAndHoldButton
[in] emit_tap_and_hold TRUE if the button should emit the tap and hold signal, FALSE otherwise

const gchar* alp_tap_and_hold_button_tap_and_hold_property_string  ) 
 

Gets the string for the tap-and-hold property.

Returns:
pointer to a constant text string
Remarks:
Useful with routines like g_object_set_property()

const gchar* alp_tap_and_hold_button_tap_and_hold_signal_string  ) 
 

Gets the string that's emitted when tap-and-hold happens.

Returns:
pointer to a constant text string
Remarks:
Sample usage:
     GtkWidget *the_button = alp_tap_and_hold_button_new_with_label(
          "Press me!");
     const gchar* ths = alp_tap_and_hold_button_tap_and_hold_signal_string();
     g_signal_connect(G_OBJECT(the_button), ths,
          G_CALLBACK(tap_and_hold_proc), NULL);
     alp_tap_and_hold_button_set_emit_tap_and_hold(
          ALP_TAPANDHOLDBUTTON(the_button), TRUE);


Generated on Wed Jul 30 07:06:43 2008 by Doxygen 1.4.6 for ALP SDK + Hiker Documentation

Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.