Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

palm/repeathandler.h File Reference

functions that deal with repeat items being clicked More...

#include <PalmOS.h>
#include <sections.h>

Go to the source code of this file.

Data Structures

struct  buttonmapping_tag
 the button mapping structure More...


Typedefs

typedef buttonmapping_tag buttonmapping_t
 the button mapping structure

typedef void(* bmPostHandler )(UInt16 button, buttonmapping_t *mapping, Int32 newValue)
 handler for post change operation


Functions

buttonmapping_tgetSpinnerFieldIndex (buttonmapping_t *map, UInt16 buttonControl, Boolean isButton) REPEATH_SECTION
 get a spinner field index

buttonmapping_tprocessRepeater (buttonmapping_t *map, UInt16 control, Boolean isButton, bmPostHandler post_handle) REPEATH_SECTION
 process a repeat button being pressed


Detailed Description

functions that deal with repeat items being clicked

This contains the routines that are used to deal with changes in repeater items being passed onto related fields.

Definition in file repeathandler.h.


Function Documentation

buttonmapping_t* getSpinnerFieldIndex buttonmapping_t   map,
UInt16    buttonControl,
Boolean    isButton
 

get a spinner field index

Parameters:
map  the list of mapping items
buttonControl  the button/spinner that was checked
isButton  is it a button (or a spinner)
Returns:
the item that was found or null.

Definition at line 19 of file repeathandler.c.

References buttonmapping_tag::down, buttonmapping_tag::field, UInt16, and buttonmapping_tag::up.

Referenced by processRepeater().

buttonmapping_t* processRepeater buttonmapping_t   map,
UInt16    control,
Boolean    isButton,
bmPostHandler    post_handle
 

process a repeat button being pressed

Parameters:
map  the list of items to process
control  the control that was clicked
isButton  is it a button
post_handle  function to call after processing value change
Returns:
the map item that was picked.

Definition at line 39 of file repeathandler.c.

References bmPostHandler, buttonmapping_tag::down, buttonmapping_tag::field, GetObjectPtr(), getSpinnerFieldIndex(), Int32, buttonmapping_tag::max, buttonmapping_tag::min, and UInt16.

Referenced by cnFieldContentChanged(), cnRepeatPressed(), dealFieldContentChange(), and dealRepeats().


Generated on Mon Aug 30 19:44:17 2004 for pocketcity by doxygen1.2.18