Lines Matching refs:section

274 XkbFreeGeomRows(XkbSectionPtr section, int first, int count, Bool freeAll)  in XkbFreeGeomRows()  argument
277 &section->num_rows, &section->sz_rows, in XkbFreeGeomRows()
278 (char **) &section->rows, in XkbFreeGeomRows()
287 XkbSectionPtr section = (XkbSectionPtr) section_in; in _XkbClearSection() local
289 if (section->rows != NULL) in _XkbClearSection()
290 XkbFreeGeomRows(section, 0, section->num_rows, TRUE); in _XkbClearSection()
291 if (section->doodads != NULL) { in _XkbClearSection()
292 XkbFreeGeomDoodads(section->doodads, section->num_doodads, TRUE); in _XkbClearSection()
293 section->doodads = NULL; in _XkbClearSection()
695 XkbAddGeomRow(XkbSectionPtr section, int sz_keys) in XkbAddGeomRow() argument
699 if ((!section) || (sz_keys < 0)) in XkbAddGeomRow()
701 if ((section->num_rows >= section->sz_rows) && in XkbAddGeomRow()
702 (_XkbAllocRows(section, 1) != Success)) in XkbAddGeomRow()
704 row = &section->rows[section->num_rows]; in XkbAddGeomRow()
708 section->num_rows++; in XkbAddGeomRow()
717 XkbSectionPtr section; in XkbAddGeomSection() local
721 for (i = 0, section = geom->sections; i < geom->num_sections; in XkbAddGeomSection()
722 i++, section++) { in XkbAddGeomSection()
723 if (section->name != name) in XkbAddGeomSection()
725 if (((sz_rows > 0) && (_XkbAllocRows(section, sz_rows) != Success)) || in XkbAddGeomSection()
727 (_XkbAllocDoodads(section, sz_doodads) != Success)) || in XkbAddGeomSection()
728 ((sz_over > 0) && (_XkbAllocOverlays(section, sz_over) != Success))) in XkbAddGeomSection()
730 return section; in XkbAddGeomSection()
735 section = &geom->sections[geom->num_sections]; in XkbAddGeomSection()
736 if ((sz_rows > 0) && (_XkbAllocRows(section, sz_rows) != Success)) in XkbAddGeomSection()
738 if ((sz_doodads > 0) && (_XkbAllocDoodads(section, sz_doodads) != Success)) { in XkbAddGeomSection()
739 if (section->rows) { in XkbAddGeomSection()
740 free(section->rows); in XkbAddGeomSection()
741 section->rows = NULL; in XkbAddGeomSection()
742 section->sz_rows = section->num_rows = 0; in XkbAddGeomSection()
746 section->name = name; in XkbAddGeomSection()
748 return section; in XkbAddGeomSection()
752 XkbAddGeomDoodad(XkbGeometryPtr geom, XkbSectionPtr section, Atom name) in XkbAddGeomDoodad() argument
759 if ((section != NULL) && (section->num_doodads > 0)) { in XkbAddGeomDoodad()
760 old = section->doodads; in XkbAddGeomDoodad()
761 nDoodads = section->num_doodads; in XkbAddGeomDoodad()
771 if (section) { in XkbAddGeomDoodad()
772 if ((section->num_doodads >= geom->sz_doodads) && in XkbAddGeomDoodad()
773 (_XkbAllocDoodads(section, 1) != Success)) { in XkbAddGeomDoodad()
776 doodad = &section->doodads[section->num_doodads++]; in XkbAddGeomDoodad()
795 XkbSectionPtr section; in XkbAddGeomOverlayKey() local
801 section = overlay->section_under; in XkbAddGeomOverlayKey()
802 if (row->row_under >= section->num_rows) in XkbAddGeomOverlayKey()
804 row_under = &section->rows[row->row_under]; in XkbAddGeomOverlayKey()
856 XkbAddGeomOverlay(XkbSectionPtr section, Atom name, int sz_rows) in XkbAddGeomOverlay() argument
861 if ((!section) || (name == None) || (sz_rows == 0)) in XkbAddGeomOverlay()
864 for (i = 0, overlay = section->overlays; i < section->num_overlays; in XkbAddGeomOverlay()
873 if ((section->num_overlays >= section->sz_overlays) && in XkbAddGeomOverlay()
874 (_XkbAllocOverlays(section, 1) != Success)) in XkbAddGeomOverlay()
876 overlay = &section->overlays[section->num_overlays]; in XkbAddGeomOverlay()
880 overlay->section_under = section; in XkbAddGeomOverlay()
881 section->num_overlays++; in XkbAddGeomOverlay()