var searchIndex = {}; searchIndex["elmesque"] = {"doc":"","items":[[0,"color","elmesque","",null,null],[3,"Hsla","elmesque::color","The parts of HSL along with an alpha for transparency.",null,null],[12,"0","","",0,null],[12,"1","","",0,null],[12,"2","","",0,null],[12,"3","","",0,null],[3,"Rgba","","The parts of RGB along with an alpha for transparency.",null,null],[12,"0","","",1,null],[12,"1","","",1,null],[12,"2","","",1,null],[12,"3","","",1,null],[4,"Color","","Color supporting RGB and HSL variants.",null,null],[13,"Rgba","","Red, Green, Blue, Alpha - All values' scales represented between 0.0 and 1.0.",2,null],[13,"Hsla","","Hue, Saturation, Lightness, Alpha - all valuess scales represented between 0.0 and 1.0.",2,null],[4,"Gradient","","Linear or Radial Gradient.",null,null],[13,"Linear","","Takes a start and end point and then a series of color stops that indicate how to\ninterpolate between the start and end points.",3,null],[13,"Radial","","First takes a start point and inner radius. Then takes an end point and outer radius.\nIt then takes a series of color stops that indicate how to interpolate between the\ninner and outer circles.",3,null],[5,"rgba","","Create RGB colors with an alpha component for transparency.\nThe alpha component is specified with numbers between 0 and 1.",null,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"color"}}],[5,"rgb","","Create RGB colors from numbers between 0.0 and 1.0.",null,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"color"}}],[5,"rgba_bytes","","Create RGB colors from numbers between 0 and 255 inclusive.\nThe alpha component is specified with numbers between 0 and 1.",null,{"inputs":[{"name":"u8"},{"name":"u8"},{"name":"u8"},{"name":"f32"}],"output":{"name":"color"}}],[5,"rgb_bytes","","Create RGB colors from numbers between 0 and 255 inclusive.",null,{"inputs":[{"name":"u8"},{"name":"u8"},{"name":"u8"}],"output":{"name":"color"}}],[5,"hsla","","Create [HSL colors](http://en.wikipedia.org/wiki/HSL_and_HSV) with an alpha component for\ntransparency.",null,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"color"}}],[5,"hsl","","Create [HSL colors](http://en.wikipedia.org/wiki/HSL_and_HSV). This gives you access to colors\nmore like a color wheel, where all hues are arranged in a circle that you specify with radians.",null,{"inputs":[{"name":"f32"},{"name":"f32"},{"name":"f32"}],"output":{"name":"color"}}],[5,"grayscale","","Produce a gray based on the input. 0.0 is white, 1.0 is black.",null,{"inputs":[{"name":"f32"}],"output":{"name":"color"}}],[5,"greyscale","","Produce a gray based on the input. 0.0 is white, 1.0 is black.",null,{"inputs":[{"name":"f32"}],"output":{"name":"color"}}],[5,"random","","Construct a random color.",null,{"inputs":[],"output":{"name":"color"}}],[5,"f32_to_byte","","Convert an f32 color to a byte.",null,{"inputs":[{"name":"f32"}],"output":{"name":"u8"}}],[5,"rgb_to_hsl","","Pure function for converting rgb to hsl.",null,null],[5,"hsl_to_rgb","","Pure function for converting hsl to rgb.",null,null],[5,"linear","","Create a linear gradient.",null,null],[5,"radial","","Create a radial gradient.",null,null],[5,"light_red","","Built-in colors.",null,{"inputs":[],"output":{"name":"color"}}],[5,"red","","Scarlet Red - Regular - #CC0000",null,{"inputs":[],"output":{"name":"color"}}],[5,"dark_red","","Scarlet Red - Dark - #A30000",null,{"inputs":[],"output":{"name":"color"}}],[5,"light_orange","","Orange - Light - #FCAF3E",null,{"inputs":[],"output":{"name":"color"}}],[5,"orange","","Orange - Regular - #F57900",null,{"inputs":[],"output":{"name":"color"}}],[5,"dark_orange","","Orange - Dark - #CE5C00",null,{"inputs":[],"output":{"name":"color"}}],[5,"light_yellow","","Butter - Light - #FCE94F",null,{"inputs":[],"output":{"name":"color"}}],[5,"yellow","","Butter - Regular - #EDD400",null,{"inputs":[],"output":{"name":"color"}}],[5,"dark_yellow","","Butter - Dark - #C4A000",null,{"inputs":[],"output":{"name":"color"}}],[5,"light_green","","Chameleon - Light - #8AE234",null,{"inputs":[],"output":{"name":"color"}}],[5,"green","","Chameleon - Regular - #73D216",null,{"inputs":[],"output":{"name":"color"}}],[5,"dark_green","","Chameleon - Dark - #4E9A06",null,{"inputs":[],"output":{"name":"color"}}],[5,"light_blue","","Sky Blue - Light - #729FCF",null,{"inputs":[],"output":{"name":"color"}}],[5,"blue","","Sky Blue - Regular - #3465A4",null,{"inputs":[],"output":{"name":"color"}}],[5,"dark_blue","","Sky Blue - Dark - #204A87",null,{"inputs":[],"output":{"name":"color"}}],[5,"light_purple","","Plum - Light - #AD7FA8",null,{"inputs":[],"output":{"name":"color"}}],[5,"purple","","Plum - Regular - #75507B",null,{"inputs":[],"output":{"name":"color"}}],[5,"dark_purple","","Plum - Dark - #5C3566",null,{"inputs":[],"output":{"name":"color"}}],[5,"light_brown","","Chocolate - Light - #E9B96E",null,{"inputs":[],"output":{"name":"color"}}],[5,"brown","","Chocolate - Regular - #C17D11",null,{"inputs":[],"output":{"name":"color"}}],[5,"dark_brown","","Chocolate - Dark - #8F5902",null,{"inputs":[],"output":{"name":"color"}}],[5,"black","","Straight Black.",null,{"inputs":[],"output":{"name":"color"}}],[5,"white","","Straight White.",null,{"inputs":[],"output":{"name":"color"}}],[5,"light_gray","","Alluminium - Light",null,{"inputs":[],"output":{"name":"color"}}],[5,"gray","","Alluminium - Regular",null,{"inputs":[],"output":{"name":"color"}}],[5,"dark_gray","","Alluminium - Dark",null,{"inputs":[],"output":{"name":"color"}}],[5,"light_grey","","Aluminium - Light - #EEEEEC",null,{"inputs":[],"output":{"name":"color"}}],[5,"grey","","Aluminium - Regular - #D3D7CF",null,{"inputs":[],"output":{"name":"color"}}],[5,"dark_grey","","Aluminium - Dark - #BABDB6",null,{"inputs":[],"output":{"name":"color"}}],[5,"light_charcoal","","Charcoal - Light - #888A85",null,{"inputs":[],"output":{"name":"color"}}],[5,"charcoal","","Charcoal - Regular - #555753",null,{"inputs":[],"output":{"name":"color"}}],[5,"dark_charcoal","","Charcoal - Dark - #2E3436",null,{"inputs":[],"output":{"name":"color"}}],[6,"Colour","","Regional spelling alias.",null,null],[8,"Colorable","","Types that can be colored.",null,null],[10,"color","","Set the color of the widget.",4,null],[11,"rgba","","Set the color of the widget from rgba values.",4,null],[11,"rgb","","Set the color of the widget from rgb values.",4,null],[11,"hsla","","Set the color of the widget from hsla values.",4,null],[11,"hsl","","Set the color of the widget from hsl values.",4,null],[11,"decode","","",2,{"inputs":[{"name":"__d"}],"output":{"name":"result"}}],[11,"encode","","",2,null],[11,"fmt","","",2,null],[11,"clone","","",2,null],[11,"eq","","",2,null],[11,"ne","","",2,null],[11,"complement","","Produce a complementary color. The two colors will accent each other. This is the same as\nrotating the hue by 180 degrees.",2,null],[11,"luminance","","Calculate and return the luminance of the Color.",2,null],[11,"plain_contrast","","Return either black or white, depending which contrasts the Color the most. This will be\nuseful for determining a readable color for text on any given background Color.",2,null],[11,"to_hsl","","Extract the components of a color in the HSL format.",2,null],[11,"to_rgb","","Extract the components of a color in the RGB format.",2,null],[11,"to_fsa","","Extract the components of a color in the RGB format within a fixed-size array.",2,null],[11,"to_byte_fsa","","Same as `to_fsa`, except r, g, b and a are represented in byte form.",2,null],[11,"to_hex","","Return the hex representation of this color in the format #RRGGBBAA\ne.g. `Color(1.0, 0.0, 5.0, 1.0) == "#FF0080FF"`",2,null],[11,"with_luminance","","Return the same color but with the given luminance.",2,null],[11,"alpha","","Return the same color but with the alpha multiplied by the given alpha.",2,null],[11,"with_alpha","","Return the same color but with the given alpha.",2,null],[11,"highlighted","","Return a highlighted version of the current Color.",2,null],[11,"clicked","","Return a clicked version of the current Color.",2,null],[11,"invert","","Return the Color's invert.",2,null],[11,"red","","Return the red value.",2,null],[11,"green","","Return the green value.",2,null],[11,"blue","","Return the blue value.",2,null],[11,"set_red","","Set the red value.",2,null],[11,"set_green","","Set the green value.",2,null],[11,"set_blue","","Set the blue value.",2,null],[11,"fmt","","",0,null],[11,"clone","","",0,null],[11,"fmt","","",1,null],[11,"clone","","",1,null],[11,"fmt","","",3,null],[11,"clone","","",3,null],[0,"element","elmesque","",null,null],[3,"Properties","elmesque::element","An Element's Properties.",null,null],[12,"width","","",5,null],[12,"height","","",5,null],[12,"opacity","","",5,null],[12,"crop","","",5,null],[12,"color","","",5,null],[3,"Element","","Graphical elements that snap together to build complex widgets and layouts.",null,null],[12,"props","","",6,null],[12,"element","","",6,null],[3,"Position","","An element's Position.",null,null],[3,"Renderer","","",null,null],[4,"Prim","","The various kinds of Elements.",null,null],[13,"Image","","",7,null],[13,"Container","","",7,null],[13,"Flow","","",7,null],[13,"Collage","","",7,null],[13,"Cleared","","",7,null],[13,"Spacer","","",7,null],[4,"ImageStyle","","Styling for the Image Element.",null,null],[13,"Plain","","",8,null],[13,"Fitted","","",8,null],[13,"Cropped","","",8,null],[13,"Tiled","","",8,null],[4,"Three","","",null,null],[13,"P","","",9,null],[13,"Z","","",9,null],[13,"N","","",9,null],[4,"Pos","","",null,null],[13,"Absolute","","",10,null],[13,"Relative","","",10,null],[4,"Direction","","The direction for a flow of `Element`s.",null,null],[13,"Up","","",11,null],[13,"Down","","",11,null],[13,"Left","","",11,null],[13,"Right","","",11,null],[13,"In","","",11,null],[13,"Out","","",11,null],[5,"size_of","","Return the size of the Element.",null,null],[5,"new_element","","Construct a new Element from width, height and some Prim.\nIterates the global GUID counter by one and returns that as the Element id.",null,{"inputs":[{"name":"i32"},{"name":"i32"},{"name":"prim"}],"output":{"name":"element"}}],[5,"spacer","","Create an empty box. this is useful for getting your spacing right and making borders.",null,{"inputs":[{"name":"i32"},{"name":"i32"}],"output":{"name":"element"}}],[5,"empty","","An Element that takes up no space. Good for things that appear conditionally.",null,{"inputs":[],"output":{"name":"element"}}],[5,"image","","Create an image given a width, height and texture.",null,{"inputs":[{"name":"i32"},{"name":"i32"},{"name":"pathbuf"}],"output":{"name":"element"}}],[5,"fitted_image","","Create a fitted image given a width, height and texture. This will crop the picture to best\nfill the given dimensions.",null,{"inputs":[{"name":"i32"},{"name":"i32"},{"name":"pathbuf"}],"output":{"name":"element"}}],[5,"cropped_image","","Create a cropped image. Take a rectangle out of the picture starting at the given top left\ncoordinate.",null,{"inputs":[{"name":"i32"},{"name":"i32"},{"name":"i32"},{"name":"i32"},{"name":"pathbuf"}],"output":{"name":"element"}}],[5,"tiled_image","","Create a tiled image given a width, height and texture.",null,{"inputs":[{"name":"i32"},{"name":"i32"},{"name":"pathbuf"}],"output":{"name":"element"}}],[5,"flow","","Have a list of elements flow in a particular direction. The `Direction` starts from the first\nelement in the list. The result is an `Element`.",null,{"inputs":[{"name":"direction"},{"name":"vec"}],"output":{"name":"element"}}],[5,"layers","","Layer elements on top of each other, starting from the bottom.",null,{"inputs":[{"name":"vec"}],"output":{"name":"element"}}],[5,"absolute","","Repetitive things.",null,{"inputs":[{"name":"i32"}],"output":{"name":"pos"}}],[5,"relative","","",null,{"inputs":[{"name":"f32"}],"output":{"name":"pos"}}],[5,"middle","","",null,{"inputs":[],"output":{"name":"position"}}],[5,"top_left","","",null,{"inputs":[],"output":{"name":"position"}}],[5,"top_right","","",null,{"inputs":[],"output":{"name":"position"}}],[5,"bottom_left","","",null,{"inputs":[],"output":{"name":"position"}}],[5,"bottom_right","","",null,{"inputs":[],"output":{"name":"position"}}],[5,"mid_left","","",null,{"inputs":[],"output":{"name":"position"}}],[5,"mid_right","","",null,{"inputs":[],"output":{"name":"position"}}],[5,"mid_top","","",null,{"inputs":[],"output":{"name":"position"}}],[5,"mid_bottom","","",null,{"inputs":[],"output":{"name":"position"}}],[5,"middle_at","","",null,{"inputs":[{"name":"pos"},{"name":"pos"}],"output":{"name":"position"}}],[5,"top_left_at","","",null,{"inputs":[{"name":"pos"},{"name":"pos"}],"output":{"name":"position"}}],[5,"top_right_at","","",null,{"inputs":[{"name":"pos"},{"name":"pos"}],"output":{"name":"position"}}],[5,"bottom_left_at","","",null,{"inputs":[{"name":"pos"},{"name":"pos"}],"output":{"name":"position"}}],[5,"bottom_right_at","","",null,{"inputs":[{"name":"pos"},{"name":"pos"}],"output":{"name":"position"}}],[5,"mid_left_at","","",null,{"inputs":[{"name":"pos"},{"name":"pos"}],"output":{"name":"position"}}],[5,"mid_right_at","","",null,{"inputs":[{"name":"pos"},{"name":"pos"}],"output":{"name":"position"}}],[5,"mid_top_at","","",null,{"inputs":[{"name":"pos"},{"name":"pos"}],"output":{"name":"position"}}],[5,"mid_bottom_at","","",null,{"inputs":[{"name":"pos"},{"name":"pos"}],"output":{"name":"position"}}],[5,"up","","",null,{"inputs":[],"output":{"name":"direction"}}],[5,"down","","",null,{"inputs":[],"output":{"name":"direction"}}],[5,"left","","",null,{"inputs":[],"output":{"name":"direction"}}],[5,"right","","",null,{"inputs":[],"output":{"name":"direction"}}],[5,"inward","","",null,{"inputs":[],"output":{"name":"direction"}}],[5,"outward","","",null,{"inputs":[],"output":{"name":"direction"}}],[5,"draw_element","","Draw an Element.",null,{"inputs":[{"name":"element"},{"name":"f32"},{"name":"g"},{"name":"option"},{"name":"context"}],"output":null}],[11,"fmt","","",5,null],[11,"clone","","",5,null],[11,"fmt","","",6,null],[11,"clone","","",6,null],[11,"width","","Create an `Element` with a given width.",6,null],[11,"height","","Create an `Element` with a given height.",6,null],[11,"size","","Create an `Element` with a given size.",6,null],[11,"opacity","","Create an `Element` with a given opacity.",6,null],[11,"color","","Create an `Element with a given background color.",6,null],[11,"crop","","Crops an `Element` with the given rectangle.",6,null],[11,"container","","Put an element in a container. This lets you position the element really easily, and there are\ntons of ways to set the `Position`.",6,null],[11,"clear","","Put an element in a cleared wrapper. The color provided will be the color that clears the\nscreen before rendering the contained element.",6,null],[11,"above","","Stack elements vertically. To put `a` above `b` you would say: `a.above(b)`",6,null],[11,"below","","Stack elements vertically. To put `a` below `b` you would say: `a.below(b)`",6,null],[11,"beside","","Put elements beside each other horizontally. To put `b` to the right of `a` you would say:\n`a.beside(b)`",6,null],[11,"get_width","","Return the width of the Element.",6,null],[11,"get_height","","Return the height of the Element.",6,null],[11,"get_size","","Return the size of the Element's bounding rectangle.",6,null],[11,"draw","","Draw the form with some given graphics backend.",6,null],[11,"is_over","","Return whether or not a point is over the element.",6,null],[11,"fmt","","",7,null],[11,"clone","","",7,null],[11,"fmt","","",8,null],[11,"clone","","",8,null],[11,"fmt","","",9,null],[11,"clone","","",9,null],[11,"fmt","","",10,null],[11,"clone","","",10,null],[11,"fmt","","",12,null],[11,"clone","","",12,null],[11,"fmt","","",11,null],[11,"clone","","",11,null],[11,"new","","Construct a renderer, used for rendering elmesque `Element`s.",13,{"inputs":[{"name":"context"},{"name":"g"}],"output":{"name":"renderer"}}],[11,"character_cache","","Builder method for constructing a Renderer with a GlyphCache for drawing text.",13,null],[0,"form","elmesque","",null,null],[3,"Form","elmesque::form","A general, freeform 2D graphics structure.",null,null],[12,"theta","","",14,null],[12,"scale","","",14,null],[12,"x","","",14,null],[12,"y","","",14,null],[12,"alpha","","",14,null],[12,"form","","",14,null],[3,"LineStyle","","",null,null],[12,"color","","",15,null],[12,"width","","",15,null],[12,"cap","","",15,null],[12,"join","","",15,null],[12,"dashing","","",15,null],[12,"dash_offset","","",15,null],[3,"PointPath","","A path described by a sequence of points.",null,null],[12,"0","","",16,null],[3,"Shape","","A shape described by its edges.",null,null],[12,"0","","",17,null],[4,"FillStyle","","",null,null],[13,"Solid","","",18,null],[13,"Texture","","",18,null],[13,"Grad","","",18,null],[4,"LineCap","","",null,null],[13,"Flat","","",19,null],[13,"Round","","",19,null],[13,"Padded","","",19,null],[4,"LineJoin","","",null,null],[13,"Smooth","","",20,null],[13,"Sharp","","",20,null],[13,"Clipped","","",20,null],[4,"BasicForm","","The basic variants a Form can consist of.",null,null],[13,"PointPath","","",21,null],[13,"Shape","","",21,null],[13,"OutlinedText","","",21,null],[13,"Text","","",21,null],[13,"Image","","",21,null],[13,"Element","","",21,null],[13,"Group","","",21,null],[4,"ShapeStyle","","Whether a shape is outlined or filled.",null,null],[13,"Line","","",22,null],[13,"Fill","","",22,null],[5,"solid","","Create a solid line style with a given color.",null,{"inputs":[{"name":"color"}],"output":{"name":"linestyle"}}],[5,"dashed","","Create a dashed line style with a given color. Dashing equals `[8, 4]`.",null,{"inputs":[{"name":"color"}],"output":{"name":"linestyle"}}],[5,"dotted","","Create a dotted line style with a given color. Dashing equals `[3, 3]`.",null,{"inputs":[{"name":"color"}],"output":{"name":"linestyle"}}],[5,"to_form","","Turn any `Element` into a `Form`. This lets you use text, gifs, and video in your collage. This\nmeans you can move, rotate, and scale an `Element` however you want.",null,{"inputs":[{"name":"element"}],"output":{"name":"form"}}],[5,"group","","Flatten many forms into a single `Form`. This lets you move and rotate them as a single unit,\nmaking it possible to build small, modular components.",null,{"inputs":[{"name":"vec"}],"output":{"name":"form"}}],[5,"group_transform","","Flatten many forms into a single `Form` and then apply a matrix transformation.",null,{"inputs":[{"name":"transform2d"},{"name":"vec"}],"output":{"name":"form"}}],[5,"traced","","Trace a path with a given line style.",null,{"inputs":[{"name":"linestyle"},{"name":"pointpath"}],"output":{"name":"form"}}],[5,"line","","Create a line with a given line style.",null,{"inputs":[{"name":"linestyle"},{"name":"f64"},{"name":"f64"},{"name":"f64"},{"name":"f64"}],"output":{"name":"form"}}],[5,"sprite","","Create a sprite from a sprite sheet. It cuts out a rectangle at a given position.",null,null],[5,"collage","","A collage is a collection of 2D forms. There are no strict positioning relationships between\nforms, so you are free to do all kinds of 2D graphics.",null,{"inputs":[{"name":"i32"},{"name":"i32"},{"name":"vec"}],"output":{"name":"element"}}],[5,"point_path","","Create a PointPath that follows a sequence of points.",null,{"inputs":[{"name":"vec"}],"output":{"name":"pointpath"}}],[5,"segment","","Create a PointPath along a given line segment.",null,null],[5,"polygon","","Create an arbitrary polygon by specifying its corners in order. `polygon` will automatically\nclose all shapes, so the given list of points does not need to start and end with the same\nposition.",null,{"inputs":[{"name":"vec"}],"output":{"name":"shape"}}],[5,"rect","","A rectangle with a given width and height.",null,{"inputs":[{"name":"f64"},{"name":"f64"}],"output":{"name":"shape"}}],[5,"square","","A square with a given edge length.",null,{"inputs":[{"name":"f64"}],"output":{"name":"shape"}}],[5,"oval","","An oval with a given width and height.",null,{"inputs":[{"name":"f64"},{"name":"f64"}],"output":{"name":"shape"}}],[5,"circle","","A circle with a given radius.",null,{"inputs":[{"name":"f64"}],"output":{"name":"shape"}}],[5,"ngon","","A regular polygon with N sides. The first argument specifies the number of sides and the second\nis the radius. So to create a pentagon with radius 30, you would say `ngon(5, 30.0)`",null,{"inputs":[{"name":"usize"},{"name":"f64"}],"output":{"name":"shape"}}],[5,"text","","Create some text. Details like size and color are part of the `Text` value itself, so you can\nmix colors and sizes and fonts easily.",null,{"inputs":[{"name":"text"}],"output":{"name":"form"}}],[5,"draw_form","","",null,{"inputs":[{"name":"form"},{"name":"f32"},{"name":"g"},{"name":"option"},{"name":"context"}],"output":null}],[11,"fmt","","",14,null],[11,"clone","","",14,null],[11,"fmt","","",18,null],[11,"clone","","",18,null],[11,"fmt","","",19,null],[11,"clone","","",19,null],[11,"fmt","","",20,null],[11,"clone","","",20,null],[11,"fmt","","",15,null],[11,"clone","","",15,null],[11,"default","","The default LineStyle.",15,{"inputs":[],"output":{"name":"linestyle"}}],[11,"width","","The LineStyle with some given width.",15,null],[11,"fmt","","",21,null],[11,"clone","","",21,null],[11,"fmt","","",22,null],[11,"clone","","",22,null],[11,"shift","","Move a form by the given amount. this is a relative translation so `shift(10.0, 10.0, form)\nwould move `form` ten pixels up and ten pixels to the right.",14,null],[11,"shift_x","","Move a shape in the x direction. This is relative so `shift_x(10.0, form)` moves `form` 10\npixels to the right.",14,null],[11,"shift_y","","Move a shape in the y direction. This is relative so `shift_y(10.0, form)` moves `form\nupwards by 10 pixels.",14,null],[11,"scale","","Scale a form by a given factor. Scaling by 2 doubles both dimensions and quadruples the\narea.",14,null],[11,"rotate","","Rotate a form by a given angle. Rotate takes radians and turns things counterclockwise.\nSo to turn `form` 30 degrees to the left you would say `rotate(degrees(30), form)`.",14,null],[11,"alpha","","Set the alpha of a Form. The default is 1 and 0 is totally transparent.",14,null],[11,"fmt","","",16,null],[11,"clone","","",16,null],[11,"fmt","","",17,null],[11,"clone","","",17,null],[11,"filled","","Create a filled-in shape.",17,null],[11,"textured","","Create a textured shape.\nThe texture is described by some path and is tiled to fill the entire shape.",17,null],[11,"gradient","","Fill a shape with a gradient.",17,null],[11,"outlined","","Outline a shape with a given line style.",17,null],[0,"text","elmesque","",null,null],[3,"Text","elmesque::text","Drawable Text.",null,null],[12,"sequence","","",23,null],[12,"position","","",23,null],[3,"TextUnit","","",null,null],[12,"string","","",24,null],[12,"style","","",24,null],[3,"Style","","Represents all the ways you can style `Text`. If the `type_face` list is empty or the `height`\nis `None`, the users will fall back on their default settings. The following `Style` is black,\n16 pixel tall, underlined, and Times New Roman (assuming that typeface is available on the\nuser's computer):",null,null],[12,"typeface","","",25,null],[12,"height","","",25,null],[12,"color","","",25,null],[12,"bold","","",25,null],[12,"italic","","",25,null],[12,"line","","",25,null],[12,"monospace","","",25,null],[4,"Line","","Styles for lines on text. This allows you to add an underline, an overline, or strike out text.",null,null],[13,"Under","","",26,null],[13,"Over","","",26,null],[13,"Through","","",26,null],[4,"Position","","Text position relative to center point",null,null],[13,"Center","","",27,null],[13,"ToLeft","","",27,null],[13,"ToRight","","",27,null],[11,"fmt","","",23,null],[11,"clone","","",23,null],[11,"fmt","","",24,null],[11,"clone","","",24,null],[11,"fmt","","",26,null],[11,"clone","","",26,null],[11,"fmt","","",27,null],[11,"clone","","",27,null],[11,"fmt","","",25,null],[11,"clone","","",25,null],[11,"default","","",25,{"inputs":[],"output":{"name":"style"}}],[11,"from_string","","Convert a string into text which can be styled and displayed.",23,{"inputs":[{"name":"string"}],"output":{"name":"text"}}],[11,"empty","","Text with nothing in it.",23,{"inputs":[],"output":{"name":"text"}}],[11,"append","","Put two chunks of text together.",23,null],[11,"concat","","Put many chunks of text together.",23,{"inputs":[{"name":"vec"}],"output":{"name":"text"}}],[11,"join","","Put many chunks of text together with a separator.",23,{"inputs":[{"name":"text"},{"name":"vec"}],"output":{"name":"text"}}],[11,"style","","Set the style of some text. For example, if you design a `Style` called `foorter_style` that is\nspecifically for the bottom of your page, you could apply it to text like this:",23,null],[11,"typeface","","Provide a path of a typeface to be used for some text.",23,null],[11,"monospace","","Switch to a monospace typeface. Good for code snippets.",23,null],[11,"height","","Set the height of some text in pixels.",23,null],[11,"color","","Set the color of some text.",23,null],[11,"bold","","Make the text bold.",23,null],[11,"italic","","Make the text italic.",23,null],[11,"line","","Put lines on text.",23,null],[11,"position","","Change the text position relative to it's center point",23,null],[0,"transform_2d","elmesque","",null,null],[3,"Transform2D","elmesque::transform_2d","Represents a 2D transform.",null,null],[12,"0","","",28,null],[5,"identity","","Create an identity transform. Transforming by the identity does not change anything, but it can\ncome in handy as a default or base case.",null,{"inputs":[],"output":{"name":"transform2d"}}],[5,"matrix","","Creates a transformation matrix. This lets you create transforms such as scales, shears,\nreflections and translations.",null,{"inputs":[{"name":"f64"},{"name":"f64"},{"name":"f64"},{"name":"f64"},{"name":"f64"},{"name":"f64"}],"output":{"name":"transform2d"}}],[5,"rotation","","Create a [rotation matrix](http://en.wikipedia.org/wiki/Rotation_matrix). Given an angle t, it\ncreates a counterclockwise rotation matrix.",null,{"inputs":[{"name":"f64"}],"output":{"name":"transform2d"}}],[5,"translation","","Creates a transformation matrix for translation.",null,{"inputs":[{"name":"f64"},{"name":"f64"}],"output":{"name":"transform2d"}}],[5,"scale","","Creates a transformation matrix for scaling by all directions.",null,{"inputs":[{"name":"f64"}],"output":{"name":"transform2d"}}],[5,"scale_x","","Creates a transformation for horizontal scaling.",null,{"inputs":[{"name":"f64"}],"output":{"name":"transform2d"}}],[5,"scale_y","","Creates a transformation for vertical scaling.",null,{"inputs":[{"name":"f64"}],"output":{"name":"transform2d"}}],[6,"Matrix2d","","",null,null],[11,"fmt","","",28,null],[11,"clone","","",28,null],[11,"multiply","","Multiply two transforms together.",28,null],[0,"utils","elmesque","",null,null],[5,"clampf32","elmesque::utils","Clamp a f32 between 0f32 and 1f32.",null,{"inputs":[{"name":"f32"}],"output":{"name":"f32"}}],[5,"degrees","","Convert degrees to radians.",null,{"inputs":[{"name":"f"}],"output":{"name":"f"}}],[5,"turns","","Convert turns to radians.",null,{"inputs":[{"name":"f"}],"output":{"name":"f"}}],[5,"modulo","","The modulo function.",null,{"inputs":[{"name":"i"},{"name":"i"}],"output":{"name":"i"}}],[5,"fmod","","Modulo float.",null,{"inputs":[{"name":"f32"},{"name":"i32"}],"output":{"name":"f32"}}],[5,"min","","Return the min between to floats.",null,{"inputs":[{"name":"f32"},{"name":"f32"}],"output":{"name":"f32"}}],[5,"max","","Return the max between to floats.",null,{"inputs":[{"name":"f32"},{"name":"f32"}],"output":{"name":"f32"}}],[5,"clamp","","Clamp a value to a range.",null,{"inputs":[{"name":"t"},{"name":"t"},{"name":"t"}],"output":{"name":"t"}}],[5,"map_range","","Map a value from a given range to a new given range.",null,{"inputs":[{"name":"x"},{"name":"x"},{"name":"x"},{"name":"y"},{"name":"y"}],"output":{"name":"y"}}]],"paths":[[3,"Hsla"],[3,"Rgba"],[4,"Color"],[4,"Gradient"],[8,"Colorable"],[3,"Properties"],[3,"Element"],[4,"Prim"],[4,"ImageStyle"],[4,"Three"],[4,"Pos"],[4,"Direction"],[3,"Position"],[3,"Renderer"],[3,"Form"],[3,"LineStyle"],[3,"PointPath"],[3,"Shape"],[4,"FillStyle"],[4,"LineCap"],[4,"LineJoin"],[4,"BasicForm"],[4,"ShapeStyle"],[3,"Text"],[3,"TextUnit"],[3,"Style"],[4,"Line"],[4,"Position"],[3,"Transform2D"]]}; initSearch(searchIndex);