This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Elm.Settings.Item (Eo.Base) { | |
eo_prefix: elm_obj_settingspane_item; | |
methods { | |
@property name { | |
get { | |
[[Get the name of the item]] | |
} | |
set { | |
[[Set the name of the item]] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buffer :: (Integer, Integer) -> Integer | |
buffer (x,y) | |
| x >= 0 && x < 200 && y >= 0 && y < 200 = 0 | |
| otherwise = -1 | |
addRect :: ((Integer, Integer) -> Integer, Integer, Integer, Integer, Integer) -> (Integer, Integer) -> Integer | |
addRect (b,px,py,pw,ph) = newbuffer | |
where newbuffer :: (Integer, Integer) -> Integer | |
newbuffer (x,y) | |
| px < x && px+pw > x && py < y && py+ph > y = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Eina_Bool | |
_elm_config_key_binding_call(const char *widget_name, | |
Evas_Object *obj, | |
const Evas_Event_Key_Down *ev, | |
const Elm_Action *actions) | |
{ | |
Elm_Config_Binding_Key *binding; | |
Eina_List *binding_list, *l; | |
int i = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Renderer(Renderer, SofwareBuffer, SoftwareRenderer) where | |
import Rectangle | |
import Data.Colour | |
-- graphical primitiv | |
data Primitiv = Rect Rectangle | |
class Renderer f where | |
emptyFrame :: () -> f | |
renderFramePrimitiv :: f -> Primitiv -> f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Api | |
Method | URI | Description | | |
-------:|:------------------------------------------------------|:----------------------------------------------------------------| | |
GET | / | Lists all endpoints, used for checking authentication. | |
GET | /experiments | List all experiments. | |
PUT | /experiments | Creates a new experiment. | |
GET | /experiments/**{id}** | Lists all properties of a given experiment. | |
PATCH | /experiments/**{id}** | Edits the given properties of an experiment. | |
DELETE | /experiments/**{id}** | Deletes an experiment and all results permanently. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Efm.Key_Binding{ | |
action : const(char)*; | |
description : const(char)*; | |
key : const(char)*; | |
mods : FancyType; | |
} | |
struct Efm.Key_Binding.Action{ | |
action : const(char)*; | |
cb : CallbackType; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Efm.Key_Binding{ | |
action : const(char)*; | |
description : const(char)*; | |
key : const(char)*; | |
mods : FancyType; | |
} | |
struct Efm.Key_Binding.Action{ | |
action : const(char)*; | |
cb : CallbackType; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group { name: "elm/file_preview/base/default"; | |
parts { | |
rect { "background" | |
desc { | |
color: 255 255 255 100; | |
} | |
} | |
textblock { "visible" | |
multiline: 1; | |
desc { "default"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(PaymentJob paymentJob : paymentJobs) { | |
Assignment assignment = workerAssignmentId.get(paymentJob.getWorkerRecord().getIdentification()); | |
if (assignment == null) { | |
//FIXME this is fatal!! we cannot pay a worker here!! | |
continue; | |
} | |
if (assignment.getAssignmentStatus().equals(AssignmentStatus.SUBMITTED)) { | |
//approving here triggers base payment | |
//TODO approve assignment | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Elm.Focus_Manager () { | |
eo_prefix: bla; | |
[[A focusable Object should register itself to the next available Focus_Manager. | |
The next Focus_Manager which is found up in the widget tree is used. | |
Container widgets can also implement this interface to set there own right left top bottom objects, they just have to redirect the call up the widget tree so the next focus_manager registers the object]] | |
methods { | |
register { |
OlderNewer