• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/tcl-105/tk/tk/generic/ttk/

Lines Matching refs:layout

4  * Generic layout processing.
581 * Create a layout tree from a template.
601 * Convert a Tcl list into a layout template.
719 * Build a layout template tree from a statically defined
844 Ttk_Layout layout = (Ttk_Layout)ckalloc(sizeof(*layout));
845 layout->style = style;
846 layout->recordPtr = recordPtr;
847 layout->optionTable = optionTable;
848 layout->tkwin = tkwin;
849 layout->root = root;
850 return layout;
853 void Ttk_FreeLayout(Ttk_Layout layout)
855 Ttk_FreeLayoutNode(layout->root);
856 ckfree((ClientData)layout);
861 * Create a layout from the specified theme and style name.
862 * Returns: New layout, 0 on error.
935 void Ttk_RebindSublayout(Ttk_Layout layout, void *recordPtr)
937 layout->recordPtr = recordPtr;
942 * Look up an option from a layout's associated option.
945 Ttk_Layout layout, const char *optionName, Ttk_State state)
948 layout->style,layout->recordPtr,layout->optionTable,optionName,state);
955 Ttk_Style Ttk_LayoutStyle(Ttk_Layout layout)
957 return layout->style;
964 Ttk_Layout layout, Ttk_LayoutNode *node,
968 Ttk_Layout layout, Ttk_LayoutNode *node, Ttk_State state,
975 layout->style, layout->recordPtr,layout->optionTable, layout->tkwin,
979 Ttk_NodeListSize(layout,node->child,state,&subWidth,&subHeight);
989 Ttk_Layout layout, Ttk_LayoutNode *node,
998 Ttk_NodeSize(layout, node, state, &width, &height, &unused);
999 Ttk_NodeListSize(layout, node->next, state, &restWidth, &restHeight);
1017 * Returns the internal padding of a layout node.
1020 Ttk_Layout layout, Ttk_LayoutNode *node)
1025 layout->style, layout->recordPtr, layout->optionTable, layout->tkwin,
1032 * Returns the inner area of a specified layout node,
1035 Ttk_Box Ttk_LayoutNodeInternalParcel(Ttk_Layout layout, Ttk_LayoutNode *node)
1037 Ttk_Padding padding = Ttk_LayoutNodeInternalPadding(layout, node);
1042 * Compute requested size of a layout.
1045 Ttk_Layout layout, Ttk_State state, int *widthPtr, int *heightPtr)
1047 Ttk_NodeListSize(layout, layout->root, state, widthPtr, heightPtr);
1051 Ttk_Layout layout, Ttk_LayoutNode *node, int *widthPtr, int *heightPtr)
1054 Ttk_NodeSize(layout, node, 0/*state*/, widthPtr, heightPtr, &unused);
1062 * Compute parcel for each node in a layout tree
1066 Ttk_Layout layout, Ttk_LayoutNode *node, Ttk_State state, Ttk_Box cavity)
1075 Ttk_NodeSize(layout, node, state, &width, &height, &padding);
1085 Ttk_PlaceNodeList(layout,node->child, state, childBox);
1090 void Ttk_PlaceLayout(Ttk_Layout layout, Ttk_State state, Ttk_Box b)
1092 Ttk_PlaceNodeList(layout, layout->root, state, b);
1101 * Draw a layout tree.
1104 Ttk_Layout layout, Ttk_State state, Ttk_LayoutNode *node, Drawable d)
1115 Ttk_DrawNodeList(layout, substate, node->child, d);
1119 layout->style,layout->recordPtr,layout->optionTable,layout->tkwin,
1123 Ttk_DrawNodeList(layout, substate, node->child, d);
1127 void Ttk_DrawLayout(Ttk_Layout layout, Ttk_State state, Drawable d)
1129 Ttk_DrawNodeList(layout, state, layout->root, d);
1158 Ttk_Element Ttk_IdentifyElement(Ttk_Layout layout, int x, int y)
1160 return IdentifyNode(layout->root, x, y);
1196 Ttk_Element Ttk_FindElement(Ttk_Layout layout, const char *nodeName)
1198 return FindNode(layout->root, nodeName);
1203 * Find the internal parcel of a named element within a given layout.
1206 Ttk_Box Ttk_ClientRegion(Ttk_Layout layout, const char *elementName)
1208 Ttk_Element element = Ttk_FindElement(layout, elementName);
1210 ? Ttk_LayoutNodeInternalParcel(layout, element)
1211 : Ttk_WinBox(layout->tkwin)
1237 void Ttk_PlaceElement(Ttk_Layout layout, Ttk_Element node, Ttk_Box b)
1241 Ttk_PlaceNodeList(layout, node->child, 0,
1242 Ttk_PadBox(b, Ttk_LayoutNodeInternalPadding(layout, node)));