var searchIndex = {}; searchIndex["rect"] = {"doc":"Helper methods for computing simple rectangle layout.","items":[[8,"Rect","rect","Helper methods for computing simple rectangle layout.",null,null],[16,"Scalar","","The internal scalar type.",0,null],[10,"from_x_y_w_h","","Creates new rectangle from x, y, w, h.",0,{"inputs":[{"name":"scalar"},{"name":"scalar"},{"name":"scalar"},{"name":"scalar"}],"output":{"name":"self"}}],[11,"from_u32","","Converts from u32 rectangle.",0,null],[11,"from_i32","","Converts from i32 rectangle.",0,null],[10,"x","","Gets x.",0,null],[10,"y","","Gets y.",0,null],[10,"w","","Gets w.",0,null],[10,"h","","Gets h.",0,null],[10,"set_x","","Sets x.",0,null],[10,"set_y","","Sets y.",0,null],[10,"set_w","","Sets w.",0,null],[10,"set_h","","Sets h.",0,null],[11,"xy","","Returns x and y.",0,null],[11,"wh","","Returns w and h.",0,null],[11,"xw","","Return x and w.",0,null],[11,"yh","","Returns y and h.",0,null],[11,"x1x2","","Returns left and right.",0,null],[11,"y1y2","","Returns top and bottom.",0,null],[11,"p1p2","","Returns upper left and lower right corner.",0,null],[11,"xywh","","Returns x, y, w, h.",0,null],[11,"center","","Returns the center of the rectangle.",0,null],[11,"is_empty","","Returns true if the rectangle is empty.",0,null],[11,"margin","","Computes a margin rectangle.\nIf the margin is too large, an empty rectangle in the middle is returned.",0,null],[11,"split_left","","Splits from the left side of rectangle up to a factor.",0,null],[11,"split_right","","Splits from the right side of rectangle.",0,null],[11,"split_top","","Splits from the top side of rectangle.",0,null],[11,"split_bottom","","Splits from the bottom side of the rectangle.",0,null]],"paths":[[8,"Rect"]]}; initSearch(searchIndex);