... XmGetSecondaryResourceData - Online Linux Manual PageSection : library call

NAMEXmGetSecondaryResourceData — A function that provides access to secondary widget resource data .iX "XmGetSecondaryResourceData"

SYNOPSIS#include <Xm/Xm​.h> Cardinal XmGetSecondaryResourceData( WidgetClass widget_class, XmSecondaryResourceData **secondary_data_return);

DESCRIPTIONSome Motif widget classes (such as Gadget, Text, and VendorShell) have resources that are not accessible through the functions XtGetResourceList and XtGetConstraintResourceList​. In order to retrieve the descriptions of these resources, an application must use XmGetSecondaryResourceData​. When a widget class has such resources, this function provides descriptions of the resources in one or more data structures​. XmGetSecondaryResourceData takes a widget class argument and returns the number of these data structures associated with the widget class​. If the return value is greater than 0 (zero), the function allocates and fills an array of pointers to the corresponding data structures​. It returns this array at the address that is the value of the secondary_data_return argument​. The type XmSecondaryResourceData is a pointer to a structure with two members that are useful to an application: resources, of type XtResourceList, and num_resources, of type Cardinal​. The resources member is a list of the widget resources that are not accessible using Xt functions​. The num_resources member is the length of the resources list​. If the return value is greater than 0 (zero), XmGetSecondaryResourceData allocates memory that the application must free​. Use XtFree to free the resource list in each structure (the value of the resources member), the structures themselves, and the array of pointers to the structures (the array whose address is secondary_data_return)​. widget_class Specifies the widget class for which secondary resource data is to be retrieved​. secondary_data_return Specifies a pointer to an array of XmSecondaryResourceData pointers to be returned by this function​. If the widget class has no secondary resource data, for example, if the value returned by the function is 0 (zero), the function returns no meaningful value for this argument​.

RETURNReturns the number of secondary resource data structures associated with this widget class​.

EXAMPLEThe following example uses XmGetSecondaryResourceData to print the names of the secondary resources of the Motif Text widget and then frees the data allocated by the function: XmSecondaryResourceData * block_array; Cardinal num_blocks, i, j; if (num_blocks = XmGetSecondaryResourceData (xmTextWidgetClass, &block_array)) { for (i = 0; i < num_blocks; i++) { for (j = 0; j < block_array[i]->num_resources; j++) { printf("%s\n", block_array[i]->resources[j]​.resource_name); } XtFree((char*)block_array[i]->resources); XtFree((char*)block_array[i]); } XtFree((char*)block_array); }...
0
Johanes Gumabo
Data Size   :   9,804 byte
man-XmGetSecondaryResourceData.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 183,987
Visitor ID   :     :  
Visitor IP   :   3.138.134.77   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|XmGetSecondaryResourceData.3|2|..|... )         (parse_manual_page_|249|XmGetSecondaryResourceData.3|52|iX|.iX "XmGetSecondaryResourceData" )         (parse_manual_page_|249|XmGetSecondaryResourceData.3|128|..|... )