Documentation ¶
Index ¶
- Constants
- type Backgrounds
- type Device
- type Dimensions
- type JPGImage
- type Placement
- type Resolution
- type Result
- type Snappshot
- func (c Snappshot) FAQ() revel.Result
- func (c Snappshot) Image(image_id string) revel.Result
- func (c Snappshot) Index() revel.Result
- func (c Snappshot) Screenshot(res string) revel.Result
- func (c Snappshot) Upload(image_id int) revel.Result
- func (c Snappshot) Uploaded(image_id int, file_input []byte) revel.Result
- func (c Snappshot) UploadedGet(image_id int) revel.Result
Constants ¶
const GENERATED_DIR = "generated/"
Location where all generated images will be saved
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backgrounds ¶
type Backgrounds struct {
// contains filtered or unexported fields
}
Backgrounds contains a list of all potential background images
func (Backgrounds) GetActive ¶
func (b Backgrounds) GetActive(image int) string
Get the active background(which one is the main image)
func (Backgrounds) GetImageList ¶
func (b Backgrounds) GetImageList() []int
Get a list of all backgrounds
func (Backgrounds) GetImageMap ¶
func (b Backgrounds) GetImageMap() map[int]string
Get a mapping of all backgrounds
type Device ¶
type Device struct { Resolution Resolution `xml:"resolution"` Placement Placement `xml:"placement"` }
A device screenshot representation, how big it is and where it should go
type Dimensions ¶
type Dimensions struct {
// contains filtered or unexported fields
}
The dimensions of a screenshot to be placed
type Placement ¶
type Placement struct { Top_left_x string `xml:"top_left_x"` Top_left_y string `xml:"top_left_y"` Top_right_x string `xml:"top_right_x"` Top_right_y string `xml:"top_right_y"` Bottom_left_x string `xml:"bottom_left_x"` Bottom_left_y string `xml:"bottom_left_y"` Bottom_right_x string `xml:"bottom_right_x"` Bottom_right_y string `xml:"bottom_right_y"` }
The placement of a screenshot image onto a background image
type Resolution ¶
The resolution of a background image
type Result ¶
type Result struct { XMLName xml.Name `xml:"background"` Location string `xml:"location"` Device Device `xml:"device"` }
The overall resukting image information. The background image and all of the information for the screenshot image to be placed
type Snappshot ¶
type Snappshot struct {
*revel.Controller
}
Snappshot Controller
func (Snappshot) Upload ¶
Basic page showing a background and gives user option to upload screenshot